本文整理汇总了PHP中JHtml::iframe方法的典型用法代码示例。如果您正苦于以下问题:PHP JHtml::iframe方法的具体用法?PHP JHtml::iframe怎么用?PHP JHtml::iframe使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JHtml
的用法示例。
在下文中一共展示了JHtml::iframe方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testIframe
/**
* Tests the iframe method.
*
* @param string $url iframe URL
* @param string $name URL name
* @param string $attribs iframe attribs
* @param string $noFrames replacement for no frames
* @param string $expected expected value
*
* @return void
*
* @since 3.1
* @dataProvider dataTestIFrame
*/
public function testIframe($url, $name, $attribs, $noFrames, $expected)
{
$this->assertEquals(JHtml::iframe($url, $name, $attribs, $noFrames), $expected);
}
示例2: testIframe
/**
* Tests the iframe method.
*
* @param string $url iframe URL
* @param string $name URL name
* @param string $attribs iframe attribs
* @param string $noFrames replacement for no frames
* @param string $expected expected value
*
* @return void
*
* @since 11.1
* @dataProvider dataTestIFrame
*/
public function testIframe($url, $name, $attribs, $noFrames, $expected)
{
$this->assertThat(JHtml::iframe($url, $name, $attribs, $noFrames), $this->equalTo($expected));
}
示例3: fbLikeButton
static function fbLikeButton($auction)
{
$url = '//www.facebook.com/plugins/like.php?href=' . urlencode(trim(JUri::root(), '/') . self::auctionDetailsURL($auction)) . '&send=false&layout=button_count&width=90&show_faces=false&action=like&colorscheme=light&font&height=50';
return JHtml::iframe($url, 'bidsFBbutton', 'scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:90px;" allowTransparency="true"');
}