Commits

Christoffer Niska committed 3f88471

updated the demo

Comments (0)

Files changed (3)

demo/less/styles.less

 	padding-bottom: 60px;
 }
 
-h1, h2, h3, h4, h5, h6 {
-	margin-bottom: 0.6em;
-}
-
 p {
 	font-size: 14px;
 	margin-bottom: 1.6em;

demo/protected/views/site/index.php

     <div class="well">
         <?php $this->widget('bootstrap.widgets.TbButton', array(
         'label'=>'Click me',
-        'url'=>'#myModal',
         'type'=>'primary',
-        'htmlOptions'=>array('data-toggle'=>'modal'),
+        'htmlOptions'=>array(
+			'data-toggle'=>'modal',
+			'data-target'=>'#myModal',
+		),
     )); ?>
     </div>
 
 
     <?php echo $phpLighter->highlight("<?php \$this->widget('bootstrap.widgets.TbButton', array(
 	'label'=>'Click me',
-	'url'=>'#myModal',
 	'type'=>'primary',
-	'htmlOptions'=>array('data-toggle'=>'modal'),
+	'htmlOptions'=>array(
+		'data-toggle'=>'modal',
+		'data-target'=>'#myModal',
+	),
 )); ?>"); ?>
 
     <a class="top" href="#top">Back to top &uarr;</a>
             ),
         ),
     ),
-)); ?>
+)); ?>

widgets/TbNavbar.php

  */
 class TbNavbar extends CWidget
 {
-    // Navbar types.
-    const TYPE_SUBNAV = 'subnav';
-
 	// Navbar fix locations.
 	const FIXED_TOP = 'top';
 	const FIXED_BOTTOM = 'bottom';