Пример #1
0
                    <i class='fa fa-bars'></i>
                </div>
                <a href="<?php 
echo $isGuest ? $this->createUrl('/site/login') : $this->createUrl('/profile/view', array('id' => Yii::app()->user->getId()));
?>
"
                 id='search-bar-title' class='special'>
                <?php 
$custom = Yii::app()->params->logo !== 'uploads/protected/logos/yourlogohere.png';
if ($custom) {
    $media = Media::model()->findByAttributes(array('associationType' => 'logo'));
    if ($media) {
        echo CHtml::image($media->getPublicUrl(), Yii::app()->settings->appName, array('id' => 'your-logo', 'class' => 'custom-logo'));
    }
} else {
    echo X2Html::logo('menu', array('id' => 'your-logo', 'class' => 'default-logo'));
}
?>
                </a>
                <div id='top-menus-container'>
                <div id='top-menus-container-inner'>
                <?php 
//render main menu items
$this->widget('zii.widgets.CMenu', array('id' => 'main-menu', 'encodeLabel' => false, 'htmlOptions' => array('class' => 'main-menu'), 'items' => $menuItems));
//render user menu items if logged in
if (!$isGuest) {
    ?>
                    <div id='user-menus-container'>
                    <?php 
    $this->widget('zii.widgets.CMenu', array('id' => 'user-menu-2', 'items' => $userMenu2, 'htmlOptions' => array('class' => 'main-menu'), 'encodeLabel' => false));
    $this->widget('zii.widgets.CMenu', array('id' => 'user-menu', 'items' => $userMenu, 'htmlOptions' => array('class' => 'main-menu ' . ($isAdmin ? 'three-user-menu-links' : 'two-user-menu-links')), 'encodeLabel' => false));
Пример #2
0
 * 02110-1301 USA.
 * 
 * You can contact X2Engine, Inc. P.O. Box 66752, Scotts Valley,
 * California 95067, USA. or at email address contact@x2engine.com.
 * 
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 * 
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * X2Engine" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by X2Engine".
 *****************************************************************************************/
echo X2Html::logo('mobile', array('id' => 'about-logo'));
?>
<div class='mobile-list-view'>
    <div class='list-view-section-title'><?php 
echo CHtml::encode(Yii::t('mobile', 'Version'));
?>
</div>
    <div class='mobile-list-view-item'>
    <?php 
echo CHtml::encode(Yii::app()->getEditionLabel(true) . ': ' . Yii::app()->params->version);
?>
    </div>
    <?php 
?>

    <div class='list-view-section-title'><?php 
Пример #3
0
 * 
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * X2Engine" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by X2Engine".
 *****************************************************************************************/
Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/css/about-page.css');
$this->layout = '//layouts/column1';
$this->pageTitle = Yii::app()->settings->appName . ' - ' . Yii::t('app', 'About');
$logo = Yii::app()->baseUrl . '/images/x2engine.png';
?>
<div id='icon-container'>
<?php 
if (ThemeGenerator::isThemed()) {
    echo X2Html::logo('about', array('id' => 'x2-about-logo'));
} else {
    echo CHtml::image($logo, '');
}
?>
</div>
<?php 
Yii::app()->clientScript->registerScript('loadJqueryVersion', "\$('#jqueryVersion').html(\$().jquery);", CClientScript::POS_READY);
?>

<div class='center-column-container form left' >
    <b><?php 
echo Yii::t('app', 'Version') . " " . Yii::app()->params->version;
?>
</b><br>
	<b><?php 
Пример #4
0
    </script>
    <?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'login-form-outer', 'enableClientValidation' => false, 'enableAjaxValidation' => false, 'clientOptions' => array('validateOnSubmit' => false)));
?>
    <div class="form" id="login-form">
        <?php 
if (isset($_POST['themeName'])) {
    echo CHtml::hiddenField('themeName', $_POST['themeName']);
}
?>

        <div class="row">
            <div class="cell form-cell" id="login-form-inputs-container">
                </div>
                <?php 
echo X2Html::logo('login_' . (LoginThemeHelper::singleton()->usingDarkTheme ? 'white' : 'black'), array('id' => 'login-form-logo'));
if ($profile) {
    ?>
                <!--<div class='avatar-cell'>
                    <span class='image-alignment-helper'></span>
                    <?php 
    echo Profile::renderFullSizeAvatar($profile->id, 105);
    ?>
                </div>-->
                <?php 
}
if ($profile) {
    ?>
                <div id='full-name'><?php 
    echo $profile->fullName;
    ?>
Пример #5
0
        if ($profile) {
            $profileId = $profile->id;
            $fullName = $profile->fullName;
            $hasProfile = true;
        }
    }
}
?>

<!--<div class='background-stripe'>-->
<!--</div>-->

<div class="form">
    <?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'login-form', 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true)));
echo X2Html::logo('mobile', array('id' => 'login-form-logo'));
?>
    <div data-role="fieldcontain">
        <!--?php echo $form->label($model, 'username', array()); ?-->
        <?php 
if ($hasProfile) {
    $model->username = $profile->username;
}
echo $form->textField($model, 'username', array('placeholder' => Yii::t('app', 'username')));
?>
    </div>
    <div data-role="fieldcontain">
        <!--?php echo $form->label($model, 'password', array()); ?-->
        <?php 
echo $form->passwordField($model, 'password', array('placeholder' => Yii::t('app', 'password')));
?>