Ejemplo n.º 1
0
 /**
  * Event handler: SkinTag (widget)
  *
  * @param array Associative array of parameters.
  * @return boolean did we display?
  */
 function SkinTag($params)
 {
     global $Plugins;
     if ($Plugins->trigger_event_first_true('CacheIsCollectingContent')) {
         // A caching plugin collecting the content
         return false;
     }
     echo $params['block_start'];
     echo $params['block_title_start'];
     echo T_('Who\'s Online?');
     echo $params['block_title_end'];
     echo $params['block_body_start'];
     $OnlineSessions = new OnlineSessions($params['timeout_online_user']);
     $OnlineSessions->display_onliners($params);
     echo $params['block_body_end'];
     echo $params['block_end'];
     return true;
 }
Ejemplo n.º 2
0
 /**
  * Event handler: SkinTag (widget)
  *
  * @param array Associative array of parameters.
  * @return boolean did we display?
  */
 function SkinTag($params)
 {
     global $generating_static, $Plugins;
     if (!empty($generating_static) || $Plugins->trigger_event_first_true('CacheIsCollectingContent')) {
         // We're not generating static pages nor is a caching plugin collecting the content, so we can display this block
         return false;
     }
     echo $params['block_start'];
     echo $params['block_title_start'];
     echo T_('Who\'s Online?');
     echo $params['block_title_end'];
     $OnlineSessions = new OnlineSessions();
     $OnlineSessions->display_onliners($params);
     echo $params['block_end'];
     return true;
 }