示例#1
0
文件: helper.php 项目: Ovi1/modules
 public static function getFeeds($total_row, $show_unread)
 {
     if ($show_unread) {
         $rows = JblanceHelper::getFeeds($total_row, 'notify');
     } else {
         $rows = JblanceHelper::getFeeds($total_row);
     }
     return $rows;
 }
示例#2
0
文件: user.php 项目: Ovi1/LSPB-jombri
 function getDashboard()
 {
     $user = JFactory::getUser();
     $db = JFactory::getDbo();
     $config = JblanceHelper::getConfig();
     //$userInfo = $this->getJBuserInfo($user->get('id'));
     $jbuser = JblanceHelper::get('helper.user');
     // create an instance of the class UserHelper
     $userInfo = $jbuser->getUserGroupInfo($user->id, null);
     // Convert the params field to an array.
     $registry = new JRegistry();
     $registry->loadString($userInfo->params);
     $dbElements = $registry->toArray();
     $limit = $config->feedLimitDashboard;
     $feeds = JblanceHelper::getFeeds($limit);
     $pendings = $this->pendingActions($user->id);
     $return[0] = $dbElements;
     $return[1] = $userInfo;
     $return[2] = $feeds;
     $return[3] = $pendings;
     return $return;
 }
示例#3
0
文件: default.php 项目: Ovi1/modules
 * @author      :	Faisel
 * @description	: 	Entry point for the component (jblance)
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
//JHtml::_('bootstrap.framework');
//
$document = JFactory::getDocument();
$direction = $document->getDirection();
$config = JblanceHelper::getConfig();
$user = JFactory::getUser();
if ($config->loadBootstrap) {
    JHtml::_('bootstrap.loadCss', true, $direction);
}
$limit = $config->feedLimitDashboard;
$notifys = JblanceHelper::getFeeds($limit, 'notify');
//get the notificataion feeds
$newMsgs = JblanceHelper::countUnreadMsg();
$link_messages = JRoute::_('index.php?option=com_jblance&view=message&layout=inbox');
$link_home = '';
$link_logout = JRoute::_('index.php?option=com_users&task=user.logout&' . JSession::getFormToken() . '=1&return=' . base64_encode($link_home));
?>
<script type="text/javascript">
<!--
    function showElement(layer) {
        var myLayer = document.getElementById(layer);
        if (myLayer.style.display == "none") {
            myLayer.style.display = "block";
            myLayer.backgroundPosition = "top";
        } else {
            myLayer.style.display = "none";