/**
     * Init the widget
     */
    public function init()
    {
        parent::init();
        if (!isset($this->htmlOptions['id'])) {
            $this->htmlOptions['id'] = $this->getId();
        }
        Yii::app()->clientScript->registerCoreScript('jquery');
        if (is_null($this->jsFile)) {
            $jsFile = dirname(__FILE__) . '/js/bootstrap.min.js';
            $this->jsFile = Yii::app()->getAssetManager()->publish($jsFile);
            Yii::app()->clientScript->registerScriptFile($this->jsFile);
        }
        $jsId = 'carousel_' . $this->htmlOptions['id'];
        $js = '';
        if ($this->interval !== false) {
            $js .= $jsId . ' = $("#' . $this->htmlOptions['id'] . '").carousel({
				interval: ' . $this->interval . ',
			});';
        } else {
            $this->interval = 5000;
            $js .= $jsId . ' $("#' . $this->htmlOptions['id'] . '").carousel();';
        }
        if ($this->infinite) {
            $js .= '			
			' . $jsId . '.bind("slide", function() {
				if ($("#' . $this->htmlOptions['id'] . ' .carousel-inner .item:last-child").hasClass("next")) {
					setTimeout("' . $jsId . '.carousel(0)", ' . $this->interval . ');
				}
			});';
        }
        Yii::app()->clientScript->registerScript('ebootstrap-carousel-' . $this->htmlOptions['id'], $js, CClientScript::POS_READY);
    }
    /**
     * Init the widget
     */
    public function init()
    {
        parent::init();
        if (!isset($this->htmlOptions['id'])) {
            $this->htmlOptions['id'] = $this->getId();
        }
        if (is_null($this->jsFile)) {
            $jsFile = dirname(__FILE__) . '/js/bootstrap.min.js';
            $this->jsFile = Yii::app()->getAssetManager()->publish($jsFile);
            Yii::app()->clientScript->registerScriptFile($this->jsFile);
        } elseif ($this->jsFile !== false) {
            Yii::app()->clientScript->registerScriptFile($this->jsFile);
        }
        if ($this->valueToggle !== false) {
            switch ($this->sender) {
                case 'img':
                case 'input':
                    $jsFunction = 'val';
                    break;
                default:
                    $jsFunction = 'html';
            }
            Yii::app()->clientScript->registerScript('ebootstrap-collapse-' . $this->getId(), '
				$("' . $this->target . '").on("show", function() {
					$("#' . $this->htmlOptions['id'] . '").' . $jsFunction . '("' . $this->valueToggle . '");
				});
				$("' . $this->target . '").on("hide", function() {
					$("#' . $this->htmlOptions['id'] . '").' . $jsFunction . '("' . $this->value . '");;
				});
			', CClientScript::POS_READY);
        }
    }
 /**
  * Init widget
  */
 public function init()
 {
     parent::init();
     if ($this->html === false) {
         $this->htmlOptions['data-toggle'] = 'modal';
         $this->htmlOptions['href'] = '#' . $this->modal;
     }
 }
 /**
  * Init the widget
  */
 public function init()
 {
     parent::init();
     EBootstrap::mergeClass($this->htmlOptions, array('progress', 'progress-' . $this->type));
     if ($this->striped) {
         EBootstrap::mergeClass($this->htmlOptions, array('progress-striped'));
     }
     if ($this->active) {
         EBootstrap::mergeClass($this->htmlOptions, array('active'));
     }
 }
 /**
  * Init the widget
  */
 public function init()
 {
     parent::init();
     Yii::app()->clientScript->registerCoreScript('jquery');
     if (is_null($this->jsFile)) {
         $jsFile = dirname(__FILE__) . '/js/bootstrap.min.js';
         $this->jsFile = Yii::app()->getAssetManager()->publish($jsFile);
         Yii::app()->clientScript->registerScriptFile($this->jsFile);
     } elseif ($this->jsFile !== false) {
         Yii::app()->clientScript->registerScriptFile($this->jsFile);
     }
 }
 /**
  * Init the widget
  *
  * Render header
  */
 public function init()
 {
     parent::init();
     EBootstrap::mergeClass($this->htmlOptions, array('tab-pane'));
     if ($this->active) {
         EBootstrap::mergeClass($this->htmlOptions, array('active'));
     }
     if (is_null($this->id)) {
         $this->id = $this->getId();
     }
     $this->htmlOptions['id'] = $this->id;
     echo EBootstrap::openTag('div', $this->htmlOptions);
 }
 /**
  * Init widget
  */
 public function init()
 {
     parent::init();
     if (!empty($this->position)) {
         switch ($this->position) {
             case 'bottom':
                 echo EBootstrap::openTag('div', array('class' => 'tabbable tabs-below'));
                 break;
             case 'left':
                 echo EBootstrap::openTag('div', array('class' => 'tabbable tabs-left'));
                 break;
             case 'right':
                 echo EBootstrap::openTag('div', array('class' => 'tabbable tabs-right'));
                 break;
         }
     }
 }
 /**
  * Init the widget
  */
 public function init()
 {
     parent::init();
     if (empty($this->content)) {
         ob_start();
     }
     if (is_null($this->jsFile)) {
         $jsFile = dirname(__FILE__) . '/js/google-code-prettify/prettify.js';
         $this->jsFile = Yii::app()->getAssetManager()->publish($jsFile);
         Yii::app()->clientScript->registerScriptFile($this->jsFile);
     } elseif ($this->jsFile !== false) {
         Yii::app()->clientScript->registerScriptFile($this->jsFile);
     }
     if (is_null($this->cssFile)) {
         $cssFile = dirname(__FILE__) . '/js/google-code-prettify/prettify.css';
         $this->cssFile = Yii::app()->getAssetManager()->publish($cssFile);
         Yii::app()->clientScript->registerCssFile($this->cssFile);
     } elseif ($this->cssFile !== false) {
         Yii::app()->clientScript->registerCssFile($this->cssFile);
     }
     Yii::app()->clientScript->RegisterScript('ebootstrapcode-prettify.' . $this->getId(), 'prettyPrint();', CClientScript::POS_READY);
 }
    /**
     * Init the widget and render header
     */
    public function init()
    {
        parent::init();
        if (!isset($this->htmlOptions['id'])) {
            $this->htmlOptions['id'] = $this->getId();
        }
        EBootstrap::mergeClass($this->htmlOptions, array('modal'));
        if (!$this->show) {
            EBootstrap::mergeClass($this->htmlOptions, array('hide'));
        }
        if ($this->fade) {
            EBootstrap::mergeClass($this->htmlOptions, array('fade'));
        }
        Yii::app()->clientScript->registerCoreScript('jquery');
        if (is_null($this->jsFile)) {
            $jsFile = dirname(__FILE__) . '/js/bootstrap.min.js';
            $this->jsFile = Yii::app()->getAssetManager()->publish($jsFile);
            Yii::app()->clientScript->registerScriptFile($this->jsFile);
        } elseif ($this->jsFile !== false) {
            Yii::app()->clientScript->registerScriptFile($this->jsFile);
        }
        $backdrop = $this->backdrop ? 'true' : 'false';
        $keyboard = $this->keyboard ? 'true' : 'false';
        $show = $this->show ? 'true' : 'false';
        Yii::app()->clientScript->registerScript('ebootstrap-model-' . $this->htmlOptions['id'], '
		$("#' . $this->htmlOptions['id'] . '").modal({
			backdrop: ' . $backdrop . ',
			keyboard: ' . $keyboard . ',
			show: ' . $show . ',
		});
		', CClientScript::POS_READY);
        echo EBootstrap::openTag('div', $this->htmlOptions);
        echo EBootstrap::openTag('div', array('class' => 'modal-header'));
        echo EBootstrap::tag('a', array('class' => 'close', 'data-dismiss' => 'modal', 'href' => '#'), $this->close);
        echo EBootstrap::tag('h3', array(), $this->header);
        echo EBootstrap::closeTag('div');
        echo EBootstrap::openTag('div', array('class' => 'modal-body'));
    }
 /**
  * Render header
  */
 public function init()
 {
     parent::init();
     EBootstrap::mergeClass($this->htmlOptions, array('tab-content'));
     echo EBootstrap::openTag('div', $this->htmlOptions);
 }
 /**
  * Init the widget
  */
 public function init()
 {
     parent::init();
     EBootstrap::mergeClass($this->htmlOptions, array('hero-unit'));
 }
 /**
  * Init the widget
  */
 public function init()
 {
     parent::init();
 }