本文整理匯總了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"');
}