Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $this->widget(
- 'TbMenu',
- array(
- 'type'=>'pills',
- 'stacked'=>true,
- 'justified'=>true,
- 'items' => array(
- array('icon'=>'fa fa-language fa-2x', 'url' => '#', 'linkOptions'=>array(
- 'style'=>'z-index: 2030',
- 'class'=>'ipopover',
- 'data-trigger'=>'click',
- //'data-title' => 'A Title',
- 'data-placement' => 'bottom',
- 'data-content' => $this->renderPartial('webroot.themes.bootstrap.views.layouts.languages', null, true),
- 'data-toggle' => 'popover'
- )),
- array('icon' => 'fa fa-search fa-2x', 'url' => '#', 'linkOptions'=>array('class'=>'search-button')),
- array('icon' => 'fa fa-facebook-square fa-2x', 'url' => '#', 'linkOptions'=>array('class'=>'facebook-button'))
- ),
- 'htmlOptions'=>array(
- 'style'=>'z-index: 2030; width: 100px; display: inline-block; height: 20px; margin-left: 30px; padding-top: 30px; color: gray; position: absolute;',
- 'class'=>'pull-left'
- ),
- )
- );
- 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:
- <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"><ul id="yw0" class="nav nav-list">
- <li>
- <a href="/sventessvesk/index.php/site/index?lang=lt">LT</a></li>
- <li>
- <a href="/sventessvesk/index.php/site/index?lang=en">EN</a></li>
- </ul>
- </div></div>
Advertisement
Add Comment
Please, Sign In to add comment