本文整理汇总了PHP中X2Html::settingsButton方法的典型用法代码示例。如果您正苦于以下问题:PHP X2Html::settingsButton方法的具体用法?PHP X2Html::settingsButton怎么用?PHP X2Html::settingsButton使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类X2Html
的用法示例。
在下文中一共展示了X2Html::settingsButton方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
class="wide x2-layout-island<?php
if ($emailSent) {
echo ' hidden';
}
?>
">
<span class='widget-resize-handle'></span>
<div class='email-title-bar submenu-title-bar widget-title-bar'>
<span class='widget-title'><?php
echo CHtml::encode(Yii::t('app', 'New Message'));
?>
</span>
<?php
if (!$this->disableTemplates) {
echo X2Html::settingsButton(Yii::t('app', 'Email Widget Settings'), array('id' => 'email-settings-button', 'class' => 'right x2-popup-dropdown-button widget-settings-button x2-icon-button', 'style' => 'display: none;'));
?>
<ul id='email-settings-menu' class='x2-popup-dropdown-menu' style='display: none;'>
<li>
<span><?php
echo Yii::t('app', 'Set Default Template');
?>
</span>
</li>
</ul>
<?php
}
?>
<?php
// echo X2Html::fa ('fa-expand', array (
示例2: array
Yii::app()->clientScript->registerScript('setUpActivityFeedManager', "\n\nx2.activityFeed = new x2.ActivityFeed ({\n translations: " . CJSON::encode(array('Unselect All' => Yii::t('app', 'Unselect All'), 'Select All' => Yii::t('app', 'Select All'), 'Uncheck All' => Yii::t('app', 'Uncheck All'), 'Check All' => Yii::t('app', 'Check All'), 'Enter text here...' => Yii::t('app', 'Enter text here...'), 'Broadcast Event' => Yii::t('app', 'Broadcast Event'), 'Make Important' => Yii::t('app', 'Make Important'), 'Broadcast' => Yii::t('app', 'Broadcast'), 'broadcast error message 1' => Yii::t('app', 'Select at least one user to broadcast to'), 'broadcast error message 2' => Yii::t('app', 'Select at least one broadcast method'), 'Okay' => Yii::t('app', 'Okay'), 'Nevermind' => Yii::t('app', 'Cancel'), 'Create' => Yii::t('app', 'Create'), 'Cancel' => Yii::t('app', 'Cancel'), 'Read more' => Yii::t('app', 'Read') . ' ' . Yii::t('app', 'More'), 'Read less' => Yii::t('app', 'Read') . ' ' . Yii::t('app', 'Less'))) . ",\n usersGroups: '" . $usersGroups . "',\n minimizeFeed: " . (Yii::app()->params->profile->minimizeFeed == 1 ? 'true' : 'false') . ",\n commentFlag: false,\n lastEventId: " . (!empty($lastEventId) ? $lastEventId : 0) . ",\n lastTimestamp: " . (!empty($lastTimestamp) ? $lastTimestamp : 0) . ",\n profileId: " . $profileId . ",\n myProfileId: " . Yii::app()->params->profile->id . ",\n deletePostUrl: '" . $this->createUrl('/profile/deletePost') . "'\n});\n\n", CClientScript::POS_END);
?>
<div id='activity-feed-container' class='x2-layout-island'>
<div id='page-title-container'>
<div class="page-title icon rounded-top activity-feed">
<h2><?php
echo Yii::t('app', 'Activity Feed');
?>
</h2>
<span title='<?php
echo Yii::t('app', 'Feed Settings');
?>
'>
<?php
echo X2Html::settingsButton(Yii::t('app', 'Feed Settings'), array('id' => 'activity-feed-settings-button'));
?>
</span>
<a href='#' id='feed-filters-button'
class='filter-button right'>
<span class='fa fa-filter'></span>
</a>
<div id="menu-links" class="title-bar" style='display: none;'>
<?php
echo CHtml::link(Yii::t('app', 'Toggle Comments'), '#', array('id' => 'toggle-all-comments', 'class' => 'x2-button x2-minimal-button right'));
echo CHtml::link(Yii::t('app', 'Restore Posts'), '#', array('id' => 'restore-posts', 'style' => 'display:none;', 'class' => 'x2-button x2-minimal-button right'));
echo CHtml::link(Yii::t('app', 'Minimize Posts'), '#', array('id' => 'min-posts', 'class' => 'x2-button x2-minimal-button right'));
?>
</div>
</div>
</div>