Пример #1
0
 /**
  * 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
0
 /**
  * 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
0
 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"');
 }