public function getContent() { global $sql; if (LOGGED) { $note = new Notifier(); Kio::addCssFile('modules/pm/pm.css'); // Tabs Kio::addTabs(array(t('Received (%messages)', array('%messages' => User::$pmInbox)) => 'pm/inbox', t('Sent (%messages)', array('%messages' => User::$pmOutbox)) => 'pm/outbox', t('Write') => 'pm/write')); switch (u1) { case 'write': return $this->getComposeForm(); break; case 'inbox': case 'outbox': if (u2 == 'read' && ctype_digit(u3)) { return $this->getMessage(); } else { return $this->getFolder(u1 == 'inbox' ? 0 : 1); } break; default: redirect(HREF . 'pm/inbox'); // //$info->negative('Pojemność skrzynki jest na wyczeraniu.'); // $tpl = new PHPTAL('modules/pm/default.html'); // $tpl->cfg = $cfg; // $tpl->form = $form; // $tpl->user = $user; // $tpl->note = $note; // echo $tpl->execute(); } } else { return no_access(array('Dostęp do prywatnych wiadomości jest możliwy tylko po zalogowaniu się.', t('REGISTER'))); } }
function __construct() { Kio::addTitle(t('News')); Kio::addBreadcrumb(t('News'), 'news'); Kio::addCssFile('modules/news/news.css'); }
public function __construct($attributes = array()) { parent::__construct($attributes); Kio::addCssFile('blocks/shoutbox/shoutbox.css'); }
public function __construct() { Kio::addTitle(t('Gallery')); Kio::addBreadcrumb(t('Gallery'), 'gallery'); Kio::addCssFile('modules/gallery/gallery.css'); }
public function __construct($attributes = array()) { parent::__construct($attributes); Kio::addCssFile('blocks/calendar/calendar.css'); }
public function __construct() { Kio::addCssFile('modules/profile/profile.css'); $this->blocks = array('left' => array('user_panel', 'partners', 'news_categories', 'shoutbox')); }