Created
March 24, 2015 01:18
-
-
Save b3457m0d3/9a2ae9a363a34ee91816 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
Yii::app()->user->setFlash(BsHtml::ALERT_COLOR_WARNING, | |
'<strong>Warning!</strong> Best check yo self, you\'re not looking too good.'); | |
$this->widget('gmfii.widgets.BsAlert'); | |
$this->widget('gmfii.widgets.BsModal', array( | |
'id' => 'myModal', | |
'header' => 'Modal Heading', | |
'content' => '<p>One fine body...</p>', | |
'footer' => array( | |
BsHtml::button('Save Changes', array('data-dismiss' => 'modal', 'color' => BsHtml::BUTTON_COLOR_PRIMARY)), | |
BsHtml::button('Close', array('data-dismiss' => 'modal')), | |
), | |
)); | |
echo BsHtml::button('Click me to open modal', array( | |
'style' => BsHtml::BUTTON_COLOR_PRIMARY, | |
'size' => BsHtml::BUTTON_SIZE_LARGE, | |
'data-toggle' => 'modal', | |
'data-target' => '#myModal', | |
)); | |
Yii::app()->user->setFlash(BsHtml::ALERT_COLOR_WARNING,'<strong>Warning!</strong> Best check yo self, you\'re not looking too good.'); | |
$this->widget('gmfii.widgets.BsAlert'); | |
/*$this->widget('gmfii.widgets.BsTabs', array( | |
'tabs' => array( | |
array('label' => 'Home', 'content' => '...', 'active' => true), | |
array('label' => 'Profile', 'content' => '...'), | |
array('label' => 'Messages', | |
'items' => array( | |
array('label' => '@fat', 'content' => '...'), | |
array('label' => '@mdo', 'content' => '...'), | |
) | |
), | |
), | |
)); | |
$this->widget('gmfii.widgets.BsNav', array( | |
'type' => BsHtml::NAV_TYPE_TABS, | |
'items' => array( | |
array('label' => 'Home', 'url' => '#', 'active' => true), | |
array('label' => 'Profile', 'url' => '#',), | |
array('label' => 'Messages', 'url' => '#',), | |
), | |
)); | |
$this->widget('gmfii.widgets.BsNavbar', array( | |
'brandLabel' => 'Title', | |
'display' => null, // default is static to top | |
'items' => array( | |
array( | |
'class' => 'gmfii.widgets.BsNav', | |
'items' => array( | |
array('label' => 'Home', 'url' => '#', 'active' => true), | |
array('label' => 'Link', 'url' => '#'), | |
array('label' => 'Link', 'url' => '#'), | |
), | |
), | |
), | |
)); | |
$this->widget('gmfii.widgets.BsTypeAhead', array( | |
'name' => 'typeahead-test', | |
'source' => array('indubitably','eloquent','scallywag','rapscallion'), | |
'htmlOptions' => array( | |
'prepend' => BsHtml::icon(BsHtml::ICON_GLOBE), | |
'placeholder' => 'Write a fancy word' | |
), | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment