Exemplo n.º 1
0
     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 (
Exemplo n.º 2
0
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') . '&nbsp;' . Yii::t('app', 'More'), 'Read less' => Yii::t('app', 'Read') . '&nbsp;' . 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>