当前位置: 首页>>代码示例>>PHP>>正文


PHP X2Html::logo方法代码示例

本文整理汇总了PHP中X2Html::logo方法的典型用法代码示例。如果您正苦于以下问题:PHP X2Html::logo方法的具体用法?PHP X2Html::logo怎么用?PHP X2Html::logo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在X2Html的用法示例。


在下文中一共展示了X2Html::logo方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

                    <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));
开发者ID:shuvro35,项目名称:X2CRM,代码行数:31,代码来源:main.php

示例2: array

 * 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 
开发者ID:tymiles003,项目名称:X2CRM,代码行数:31,代码来源:about.php

示例3: array

 * 
 * 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 
开发者ID:shuvro35,项目名称:X2CRM,代码行数:31,代码来源:about.php

示例4: array

    </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;
    ?>
开发者ID:THHTnhom2,项目名称:Tich-Hop-He-Thong-Nhom-2,代码行数:31,代码来源:login.php

示例5: array

        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')));
?>
开发者ID:xl602,项目名称:X2CRM,代码行数:31,代码来源:login.php


注:本文中的X2Html::logo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。