public static function renderFlash() { if (Yum::hasFlash()) { echo '<div class="info">'; echo Yum::getFlash(); echo '</div>'; Yii::app()->clientScript->registerScript('fade', "\n\t\t\t\t\tsetTimeout(function() { \$('.info').fadeOut('slow'); },\n\t\t\t\t\t\t{$_SESSION['yum_delay']});\t\n\t\t\t\t\t"); } }
<section class="container-fluid inner"> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6 left"> <div class="memberlogin nobefore register"> <h3 class="text-center">Recovery Account</h3> <?php $this->pageTitle = Yum::t('Password recovery'); $this->breadcrumbs = array(Yum::t('Login') => Yum::module()->loginUrl, Yum::t('Restore')); if (Yum::hasFlash()) { echo '<div class="alert alert-success">'; echo Yum::getFlash(); echo '</div>'; } else { //echo '<h2>'.Yum::t('Password recovery').'</h2>'; echo CHtml::beginForm('', 'post', array('class' => 'form-group')); ?> <?php echo CHtml::errorSummary($form); ?> <?php echo CHtml::activeTextField($form, 'login_or_email', $htmlOptions = array('class' => 'form-control', 'placeholder' => 'EMAIL')); ?> <?php echo CHtml::error($form, 'login_or_email'); ?> <?php echo CHtml::submitButton(Yum::t('Restore'), array('class' => 'form-control')); echo CHtml::endForm(); ?>
public static function renderFlash() { if (Yum::hasFlash()) { echo '<div class="alert"><button type="button" class="close" data-dismiss="alert">×</button>'; echo Yum::getFlash(); echo '</div>'; Yii::app()->clientScript->registerScript('fade', "\r\n setTimeout(function() { \$('.info').fadeOut('slow'); },\r\n {$_SESSION['yum_delay']});\r\n "); } if (Yum::module()->debug) { echo CHtml::openTag('div', array('class' => 'yumwarning')); echo Yum::t('You are running the Yii User Management Module {version} in Debug Mode!', array('{version}' => Yum::module()->version)); echo CHtml::closeTag('div'); } }