linccce

Language Select popover

Jul 14th, 2014
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.84 KB | None | 0 0
  1.    $this->widget(
  2.         'TbMenu',
  3.         array(
  4.             'type'=>'pills',
  5.             'stacked'=>true,
  6.             'justified'=>true,
  7.             'items' => array(
  8.                 array('icon'=>'fa fa-language fa-2x',  'url' => '#', 'linkOptions'=>array(
  9.                     'style'=>'z-index: 2030',
  10.                     'class'=>'ipopover',
  11.                     'data-trigger'=>'click',
  12.                     //'data-title' => 'A Title',
  13.                     'data-placement' => 'bottom',
  14.                     'data-content' => $this->renderPartial('webroot.themes.bootstrap.views.layouts.languages', null, true),
  15.                     'data-toggle' => 'popover'
  16.                     )),
  17.                 array('icon' => 'fa fa-search fa-2x', 'url' => '#', 'linkOptions'=>array('class'=>'search-button')),
  18.                 array('icon' => 'fa fa-facebook-square fa-2x', 'url' => '#', 'linkOptions'=>array('class'=>'facebook-button'))
  19.             ),
  20.             'htmlOptions'=>array(
  21.                 'style'=>'z-index: 2030; width: 100px; display: inline-block; height: 20px; margin-left: 30px; padding-top: 30px; color: gray; position: absolute;',
  22.                 'class'=>'pull-left'
  23.             ),
  24.  
  25.         )
  26.     );
  27.  
  28. Rendered string looks like that, so instead of getting something like that in this example: http://www.newsweek.com/ when I hover on globe I get this:
  29. <div class="popover fade bottom in" style="top: 48px; left: -30px; display: block;"><div class="arrow" style="left: 20.652173913043477%;"></div><h3 class="popover-title" style="display: none;"></h3><div class="popover-content">&lt;ul id="yw0" class="nav nav-list"&gt;
  30. &lt;li&gt;
  31. &lt;a href="/sventessvesk/index.php/site/index?lang=lt"&gt;LT&lt;/a&gt;&lt;/li&gt;
  32. &lt;li&gt;
  33. &lt;a href="/sventessvesk/index.php/site/index?lang=en"&gt;EN&lt;/a&gt;&lt;/li&gt;
  34. &lt;/ul&gt;
  35. </div></div>
Advertisement
Add Comment
Please, Sign In to add comment