Commit 411f9469 by Crisu83

updated the demo

parent 1bd58945
...@@ -1213,19 +1213,25 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin ...@@ -1213,19 +1213,25 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
'heading'=>'Hello, world!', '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>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(); ?> <?php $this->endWidget(); ?>
<h4>Source code</h4> <h4>Source code</h4>
<?php echo $phpLighter->highlight("<?php \$this->beginWidget('bootstrap.widgets.BootHero', array( <?php echo $phpLighter->highlight("<?php \$this->beginWidget('bootstrap.widgets.BootHero', array(
'heading'=>'Hello, world!', '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>
<?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><?php \$this->widget('bootstrap.widgets.BootButton', array(
<p><a class=\"btn btn-primary btn-large\">Learn more</a></p>"); ?> 'type'=>'primary',
'size'=>'large',
<?php echo $phpLighter->highlight("<?php \$this->endWidget(); ?>"); ?> 'label'=>'Learn more',
)); ?></p>
<?php \$this->endWidget(); ?>"); ?>
<a class="top" href="#top">Back to top &uarr;</a> <a class="top" href="#top">Back to top &uarr;</a>
......
...@@ -71,7 +71,7 @@ class BootCarousel extends BootWidget ...@@ -71,7 +71,7 @@ class BootCarousel extends BootWidget
if (isset($this->events['slide'])) if (isset($this->events['slide']))
{ {
$fn = CJavaScript::encode($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});"); "jQuery('#{$id}').on('slide', {$fn});");
} }
...@@ -79,7 +79,7 @@ class BootCarousel extends BootWidget ...@@ -79,7 +79,7 @@ class BootCarousel extends BootWidget
if (isset($this->events['slid'])) if (isset($this->events['slid']))
{ {
$fn = CJavaScript::encode($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});"); "jQuery('#{$id}').on('slid', {$fn});");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment