linccce

TbMenu and popover problem

Jul 15th, 2014
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.96 KB | None | 0 0
  1. Menu object:
  2.     <?php
  3.     $data123 = $this->renderPartial('webroot.themes.bootstrap.views.layouts.languages', null, true, false);
  4.     $this->widget(
  5.         'TbMenu',
  6.         array(
  7.             'type'=>'pills',
  8.             'stacked'=>true,
  9.             'justified'=>true,
  10.             //'encodeLabel'=>false,
  11.             'items' => array(
  12.                 array('icon'=>'fa fa-language fa-2x',  'url' => '#',
  13.                     //'template'=>'<li><i class="{value}"></i></li>',
  14.                     'linkOptions'=>array(
  15.                     'style'=>'z-index: 2030;',
  16.                     'data-trigger'=>'click',
  17.                     'data-placement' => 'bottom',
  18.                     'data-content' => $data123,
  19.                     'data-toggle' => 'popover',
  20.                     'id'=>'language-switch',
  21.                     )),
  22.                 array('icon' => 'fa fa-search fa-2x', 'url' => '#', 'linkOptions'=>array('class'=>'search-button', 'style'=>'padding-left: 0px;')),
  23.                 array('icon' => 'fa fa-facebook-square fa-2x', 'url' => '#', 'linkOptions'=>array('class'=>'facebook-button', 'style'=>'padding-left: 0px;'))
  24.             ),
  25.             'htmlOptions'=>array(
  26.                 'style'=>'z-index: 2030; width: 100px; display: inline-block; height: 26px; margin-left: 30px; padding-top: 30px; top: 0; left: 0; color: gray; position: absolute;',
  27.                 'class'=>'social-etc'
  28.             ),
  29.  
  30.         )
  31.     );
  32.     ?>
  33.  
  34. Generated output:
  35.  
  36. <ul style="z-index: 2030; width: 100px; display: inline-block; height: 26px; margin-left: 30px; padding-top: 30px; top: 0; left: 0; color: gray; position: absolute;" class="social-etc nav nav-pills nav-stacked nav-justified" id="yw1">
  37. <li>
  38. <a style="z-index: 2030;" data-trigger="click" data-placement="bottom" data-content="<ul id=&quot;yw0&quot; class=&quot;nav nav-list&quot;>
  39. <li>
  40. <a href=&quot;/sventessvesk/index.php/site/index?lang=lt&quot;>LT</a></li>
  41. <li class=&quot;active&quot;>
  42. <a href=&quot;/sventessvesk/index.php/site/index?lang=en&quot;>EN</a></li>
  43. </ul>
  44. " data-toggle="popover" id="language-switch" href="#" data-original-title="" title=""><i class="fa fa-language fa-2x"></i>
  45. </a><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;
  46. &lt;li&gt;
  47. &lt;a href="/sventessvesk/index.php/site/index?lang=lt"&gt;LT&lt;/a&gt;&lt;/li&gt;
  48. &lt;li class="active"&gt;
  49. &lt;a href="/sventessvesk/index.php/site/index?lang=en"&gt;EN&lt;/a&gt;&lt;/li&gt;
  50. &lt;/ul&gt;
  51. </div></div></li>
  52. <li>
  53. <a class="search-button" style="padding-left: 0px;" href="#"><i class="fa fa-search fa-2x"></i>
  54. </a></li>
  55. <li>
  56. <a class="facebook-button" style="padding-left: 0px;" href="#"><i class="fa fa-facebook-square fa-2x"></i>
  57. </a></li>
  58. </ul>
  59.  
  60. Screenshot:
  61.  
  62. http://www.webpagescreenshot.info/img/53c5220e01f1f7-00987547
Advertisement
Add Comment
Please, Sign In to add comment