protected function renderContent() { $content = '<div class="view-toolbar-container clearfix">'; $content .= '<div class="view-toolbar">' . $this->renderActionElementBar(false) . '</div>'; if (!Yii::app()->userInterface->isMobile() && null != ($secondActionElementBarContent = $this->renderSecondActionElementBar(false))) { $content .= '<div class="view-toolbar">' . $secondActionElementBarContent . '</div>'; } $content .= '</div>'; if (isset($this->introView)) { $content .= $this->introView->render(); } return $content; }
protected function renderContent() { $content = '<div class="view-toolbar-container clearfix">'; $firstActionElementBarContent = $this->renderActionElementBar(false); if ($firstActionElementBarContent == null) { $extraClass = ' empty'; } else { $extraClass = null; } $content .= '<nav class="pillbox clearfix' . $extraClass . '">' . $firstActionElementBarContent . '</nav>'; // Not Coding Standard if (!Yii::app()->userInterface->isMobile() && null != ($secondActionElementBarContent = $this->renderSecondActionElementBar(false))) { $content .= '<nav class="pillbox clearfix">' . $secondActionElementBarContent . '</nav>'; } $content .= '</div>'; if (isset($this->introView)) { $content .= $this->introView->render(); } return $content; }
protected function registerScripts() { parent::registerScripts(); $content = "\$('#security-advanced-toggle').click(function()\n {\n \$('#security-advanced-intro').toggle();\n return false;\n });"; Yii::app()->clientScript->registerScript('SecurityIntroAdvancedToggle', $content); }