예제 #1
0
파일: Alert.php 프로젝트: billyprice1/bdApi
 public static function getTemplates(XenForo_View $view, array $alerts, array $handlers)
 {
     $alerts = XenForo_ViewPublic_Helper_Alert::getTemplates($view, $alerts, $handlers);
     foreach ($alerts as $id => $item) {
         $alerts[$id]['template'] = self::convertUrisToAbsoluteUris($alerts[$id]['template']);
     }
     return $alerts;
 }
예제 #2
0
 public function renderHtml()
 {
     $this->_params['alertsUnread'] = XenForo_ViewPublic_Helper_Alert::getTemplates($this, $this->_params['alertsUnread'], $this->_params['alertHandlers']);
     $this->_params['alertsRead'] = XenForo_ViewPublic_Helper_Alert::getTemplates($this, $this->_params['alertsRead'], $this->_params['alertHandlers']);
 }
예제 #3
0
파일: Index.php 프로젝트: Sywooch/forums
 public function renderHtml()
 {
     $this->_params['alerts'] = XenForo_ViewPublic_Helper_Alert::dateSplit(XenForo_ViewPublic_Helper_Alert::getTemplates($this, $this->_params['alerts'], $this->_params['alertHandlers']), 'event_date');
 }