本文整理汇总了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));
示例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
示例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
示例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;
?>
示例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')));
?>