Commits

Christoffer Niska committed ae8f1a4

updated the demo

Comments (0)

Files changed (2)

demo/protected/views/site/index.php

 		'heading'=>'Hello, world!',
 	)); ?>
 		<p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
-		<p><a class="btn btn-primary btn-large">Learn more</a></p>
+		<p><?php $this->widget('bootstrap.widgets.BootButton', array(
+			'type'=>'primary',
+			'size'=>'large',
+			'label'=>'Learn more',
+		)); ?></p>
 	<?php $this->endWidget(); ?>
 
 	<h4>Source code</h4>
 
 <?php echo $phpLighter->highlight("<?php \$this->beginWidget('bootstrap.widgets.BootHero', array(
 	'heading'=>'Hello, world!',
-)); ?>"); ?>
-
-<?php echo $htmlLighter->highlight("<p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
-<p><a class=\"btn btn-primary btn-large\">Learn more</a></p>"); ?>
-
-<?php echo $phpLighter->highlight("<?php \$this->endWidget(); ?>"); ?>
+)); ?>
+	<p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
+	<p><?php \$this->widget('bootstrap.widgets.BootButton', array(
+		'type'=>'primary',
+		'size'=>'large',
+		'label'=>'Learn more',
+	)); ?></p>
+<?php \$this->endWidget(); ?>"); ?>
 
 		<a class="top" href="#top">Back to top &uarr;</a>
 

widgets/BootCarousel.php

         if (isset($this->events['slide']))
         {
             $fn = CJavaScript::encode($this->events['slide']);
-	        $cs->registerScript(__CLASS__.'#'.$this->id.'.slide',
+	        $cs->registerScript(__CLASS__.'#'.$id.'.slide',
 	                "jQuery('#{$id}').on('slide', {$fn});");
         }
 
         if (isset($this->events['slid']))
         {
             $fn = CJavaScript::encode($this->events['slid']);
-	        $cs->registerScript(__CLASS__.'#'.$this->id.'.slid',
+	        $cs->registerScript(__CLASS__.'#'.$id.'.slid',
 	                "jQuery('#{$id}').on('slid', {$fn});");
         }
 	}