コード例 #1
0
ファイル: Ensemble.php プロジェクト: sinfocol/gwf3
 private function templateEnsemble()
 {
     $l = new GWF_LangTrans($this->module->getModuleFilePath('lang/ensemble'));
     GWF_Website::setPageTitle($l->lang('page_title'));
     $tVars = array('title' => $l->lang('title'), 'text' => $l->lang('text'), 'text2' => $l->lang('text2'), 'types' => $l->lang('types'), 'other' => $l->lang('other'), 't1' => $l->lang('t1'), 't2' => $l->lang('t2'), 'altimg1' => $l->lang('altimg1'), 'altimg2' => $l->lang('altimg2'));
     return $this->module->template('ensemble.tpl', $tVars);
 }
コード例 #2
0
ファイル: Presse.php プロジェクト: sinfocol/gwf3
 private function templatePresse()
 {
     $l = new GWF_LangTrans($this->module->getModuleFilePath('lang/presse'));
     GWF_Website::setPageTitle($l->lang('page_title'));
     $tVars = array('title' => $l->lang('title'), 'subtitle' => $l->lang('subtitle'), 'text' => $l->lang('text'), 'altimg' => $l->lang('altimg'), 't1' => $l->lang('t1'), 't2' => $l->lang('t2'), 't3' => $l->lang('t3'), 't4' => $l->lang('t4'), 't5' => $l->lang('t5'));
     return $this->module->template('presse.tpl', $tVars);
 }
コード例 #3
0
ファイル: Arrangements.php プロジェクト: sinfocol/gwf3
 private function templateArrangements()
 {
     $l = new GWF_LangTrans($this->module->getModuleFilePath('lang/arrangements'));
     GWF_Website::setPageTitle($l->lang('page_title'));
     $tVars = array('title' => $l->lang('title'), 'h1' => $l->lang('h1'), 't1' => $l->lang('t1'), 'h2' => $l->lang('h2'), 't2' => $l->lang('t2'), 'h3' => $l->lang('h3'), 't3' => $l->lang('t3'), 'title2' => $l->lang('title2'), 'text2' => $l->lang('text2'));
     return $this->module->template('arrangements.tpl', $tVars);
 }
コード例 #4
0
ファイル: Repertoire.php プロジェクト: sinfocol/gwf3
 private function templateRepertoire()
 {
     $l = new GWF_LangTrans($this->module->getModuleFilePath('lang/repertoire'));
     GWF_Website::setPageTitle($l->lang('page_title'));
     $tVars = array('text' => $l->lang('text'), 'rep' => $l->lang('repertoire'), 't1' => $l->lang('t1'), 'altimg' => $l->lang('altimg'));
     return $this->module->template('repertoire.tpl', $tVars);
 }
コード例 #5
0
ファイル: Exklusiv.php プロジェクト: sinfocol/gwf3
 private function templateExklusiv()
 {
     $l = new GWF_LangTrans($this->module->getModuleFilePath('lang/exklusiv'));
     GWF_Website::setPageTitle($l->lang('page_title'));
     $tVars = array('l' => $l);
     return $this->module->template('exklusiv.tpl', $tVars);
 }
コード例 #6
0
ファイル: License.php プロジェクト: sinfocol/gwf3
 private function templateLicense()
 {
     $lang = new GWF_LangTrans(GWF_CORE_PATH . 'module/WeChall/lang/tos/_wc_tos');
     GWF_Website::setPageTitle($lang->lang('pt_license'));
     $tVars = array('license' => $lang);
     return $this->module->templatePHP('license.php', $tVars);
 }
コード例 #7
0
ファイル: Sponsoren.php プロジェクト: sinfocol/gwf3
 private function templateSponsoren()
 {
     $l = new GWF_LangTrans($this->module->getModuleFilePath('lang/sponsoren'));
     GWF_Website::setPageTitle($l->lang('page_title'));
     $tVars = array('title' => $l->lang('title'), 'subtitle' => $l->lang('subtitle'));
     return $this->module->template('sponsoren.tpl', $tVars);
 }
コード例 #8
0
ファイル: Add.php プロジェクト: sinfocol/gwf3
 private function templateAdd()
 {
     GWF_Website::setPageTitle($this->module->lang('ft_add'));
     $form = $this->getForm();
     $tVars = array('preview' => '', 'form' => $form->templateY($this->module->lang('ft_add')));
     return $this->module->templatePHP('add.php', $tVars);
 }
コード例 #9
0
ファイル: AboutMelanie.php プロジェクト: sinfocol/gwf3
 private function templateAbout()
 {
     $l = new GWF_LangTrans($this->module->getModuleFilePath('lang/about_meli'));
     GWF_Website::setPageTitle($l->lang('page_title'));
     $tVars = array('l' => $l);
     return $this->module->template('about_melanie.tpl', $tVars);
 }
コード例 #10
0
ファイル: Biography.php プロジェクト: sinfocol/gwf3
 private function templateBiography()
 {
     $l = new GWF_LangTrans($this->module->getModuleFilePath('lang/biography'));
     GWF_Website::setPageTitle($l->lang('page_title'));
     $tVars = array('title' => $l->lang('title'), 'name' => $l->lang('name'), 'sopran' => $l->lang('sopran'), 'text' => $l->lang('text'), 't1' => $l->lang('t1'), 'altimg' => $l->lang('t1'));
     return $this->module->template('biography.tpl', $tVars);
 }
コード例 #11
0
ファイル: ScoringFAQ.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     GWF_Website::setPageTitle($this->module->lang('pt_scorefaq'));
     GWF_Website::setMetaTags($this->module->lang('mt_scorefaq'));
     $tVars = array('scoring' => new GWF_LangTrans(GWF_CORE_PATH . 'module/WeChall/lang/scoring/_wc_scoring'));
     return $this->module->templatePHP('scoring_faq.php', $tVars);
 }
コード例 #12
0
ファイル: Main.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     GWF_Website::setPageTitle($this->module->lang('pt_main'));
     //		GWF_Website::setMetaTags($this->module->lang('mt_main'));
     //		GWF_Website::setMetaDescr($this->module->lang('md_main'));
     $tVars = array();
     return $this->module->templatePHP('main.php', $tVars);
 }
コード例 #13
0
ファイル: About.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     $lang = new GWF_LangTrans(GWF_CORE_PATH . 'module/WeChall/lang/about/_wc_about');
     GWF_Website::setPageTitle($lang->lang('about_pagetitle'));
     GWF_Website::setMetaTags($lang->lang('about_meta'));
     $tVars = array('about_08' => $lang->lang('about_08'));
     return $this->module->template('about.tpl', $tVars);
 }
コード例 #14
0
ファイル: Search.php プロジェクト: sinfocol/gwf3
 public function templateSearch(array $matches, $term)
 {
     GWF_Website::setPageTitle($this->module->lang('pt_search'));
     GWF_Website::setMetaTags($this->module->lang('mt_search'));
     GWF_Website::setMetaDescr($this->module->lang('md_search'));
     $tVars = array('cloud' => $this->module->templateCloud(), 'matches' => $this->module->templateLinks($matches, '#', '', ''), 'form' => $this->templateQuickSearch(), 'term' => $term);
     return $this->module->templatePHP('search.php', $tVars);
 }
コード例 #15
0
ファイル: Overview.php プロジェクト: sinfocol/gwf3
 private function templateOverview()
 {
     GWF_Website::setPageTitle($this->module->lang('pt_pm'));
     $fname = $this->folder->urlencodeSEO('pmf_name');
     $hrefPage = GWF_WEB_ROOT . sprintf('pm/folder/%s/%s/by/%s/%s/page-%%PAGE%%', $this->fid, $fname, urlencode(Common::getGet('by')), urlencode(Common::getGet('dir')));
     $hrefSort = GWF_WEB_ROOT . 'pm/folder/' . $this->fid . '/' . $fname . '/by/%BY%/%DIR%/page-1';
     $tVars = array('folder' => $this->folder, 'folders' => $this->folderTable(), 'form_new_folder' => $this->getFormNewFolder()->templateX($this->module->lang('ft_new_folder')), 'pms' => $this->pms, 'pagemenu' => GWF_PageMenu::display($this->page, $this->nPages, $hrefPage), 'sort_url' => $hrefSort, 'new_pm' => $this->getNewPMForm(), 'href_options' => $this->module->getOptionsHREF(), 'href_search' => $this->module->getSearchHREF(), 'folder_select' => GWF_PMFolder::getSelectS($this->module, Common::getRequest('folders', '0')), 'form_action' => isset($_SERVER['REQUEST_URI']) ? GWF_HTML::display($_SERVER['REQUEST_URI']) : GWF_WEB_ROOT . 'pm', 'href_trashcan' => $this->module->getMethodURL('Trashcan&by=pm_date&dir=DESC'));
     return $this->module->templatePHP('overview.php', $tVars);
 }
コード例 #16
0
ファイル: Intro.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/color.js');
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/ghostwriter.js');
     GWF_Website::addJavascriptOnload('initGhostwriter();');
     GWF_Website::setPageTitle($this->module->lang('page_title'));
     $this->module->setNextHREF(GWF_WEB_ROOT . 'melanie_gobbo.html');
     return $this->templateIntro();
 }
コード例 #17
0
ファイル: Form.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     GWF_Website::setPageTitle($this->module->lang('page_title'));
     GWF_Website::setMetaTags($this->module->lang('page_meta'));
     if (false !== Common::getPost('contact')) {
         return $this->onSend();
     }
     return $this->templateForm();
 }
コード例 #18
0
ファイル: WC_HTML.php プロジェクト: sinfocol/gwf3
function html_head($title = "WeChall", $withSidebar = false, $strict = true, $scripts = array(), $xhtml = true, $css = array())
{
    GWF_Website::setPageTitle($title);
    WC_HTML::$LEFT_PANEL = $withSidebar;
    WC_HTML::$RIGHT_PANEL = $withSidebar;
    foreach ($css as $path) {
        GWF_Website::addCSS($path);
    }
}
コード例 #19
0
ファイル: Show.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     if (false !== ($error = $this->sanitize())) {
         return $error;
     }
     GWF_Website::addJavascript(Common::getProtocol() . '://www.google.com/jsapi');
     GWF_Website::addJavascriptInline('google.load("language", "1");');
     GWF_Website::setPageTitle($this->pm->display('pm_title'));
     return $this->templateShow(Common::getGet('translate') !== false);
 }
コード例 #20
0
ファイル: NewLinks.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     GWF_Website::setPageTitle($this->module->lang('pt_new_links'));
     GWF_Website::setMetaTags($this->module->lang('mt_new_links'));
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/module/Links/gwf_links.js');
     if (Common::getGet('markread') !== false) {
         return $this->onMarkAllRead() . $this->templateNewLinks();
     }
     return $this->templateNewLinks();
 }
コード例 #21
0
ファイル: Form.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     if (false !== Common::getPost('edit')) {
         return $this->onEditSettings() . $this->templateSettings();
     }
     GWF_Website::setPageTitle($this->module->lang('pt_settings'));
     GWF_Website::setMetaTags($this->module->lang('mt_settings'));
     GWF_Website::setMetaTags($this->module->lang('md_settings'));
     return $this->templateSettings();
 }
コード例 #22
0
ファイル: Form.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     GWF_Website::setPageTitle($this->module->lang('pt_login'));
     if (false !== GWF_Session::getUser()) {
         return $this->module->error('err_already_logged_in');
     }
     if (false !== Common::getPost('login')) {
         return $this->onLogin();
     }
     return $this->form();
 }
コード例 #23
0
ファイル: Mibbit.php プロジェクト: sinfocol/gwf3
 private function templateMibbit()
 {
     if (!$this->module->cfgMibbit()) {
         return GWF_HTML::err('ERR_MODULE_DISABLED', array('Chat_Mibbit'));
     }
     GWF_Website::setPageTitle($this->module->lang('pt_irc_chat'));
     GWF_Website::setMetaTags($this->module->lang('mt_irc_chat'));
     GWF_Website::setMetaDescr($this->module->lang('md_irc_chat'));
     $tVars = array('href_webchat' => GWF_WEB_ROOT . 'chat', 'href_ircchat' => GWF_WEB_ROOT . 'irc_chat', 'href_ircchat_full' => GWF_WEB_ROOT . 'irc_chat_fullscreen', 'mibbit_url' => $this->module->cfgMibbitURL(), 'mibbit' => $this->module->cfgMibbit(), 'gwf_chat' => $this->module->cfgGWFChat());
     return $this->module->templatePHP('mibbit.php', $tVars);
 }
コード例 #24
0
ファイル: Overview.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     $module = $this->module;
     $module instanceof Module_PageBuilder;
     $user = GWF_User::getStaticOrGuest();
     GWF_Website::setMetaTags($module->lang('mt_overview'));
     GWF_Website::setMetaDescr($module->lang('md_overview'));
     GWF_Website::setPageTitle($module->lang('overview_title'));
     $tVars = array('add_perms' => $module->isAuthor($user), 'add_guest' => $module->cfgLockedPosting(), 'href_add' => GWF_WEB_ROOT . 'index.php?mo=PageBuilder&me=Add', 'href_search' => GWF_WEB_ROOT . 'index.php?mo=PageBuilder&me=Search');
     return $this->module->template('overview.tpl', $tVars);
 }
コード例 #25
0
ファイル: Page.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     GWF_ChatOnline::onRequest($this->module);
     GWF_Website::setPageTitle($this->module->lang('pt_chat'));
     GWF_Website::setMetaTags($this->module->lang('mt_chat'));
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/module/Chat/gwf_chat.js?v=4');
     if (false !== Common::getPost('post')) {
         return $this->onPost() . $this->templatePage();
     }
     return $this->templatePage();
 }
コード例 #26
0
ファイル: Form.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     GWF_Website::setPageTitle($this->module->lang('pt_register'));
     if (false !== GWF_Session::getUser()) {
         return $this->module->error('ERR_ALREADY_REDISTERED');
     }
     if (false !== Common::getPost('register')) {
         return $this->onRegister();
     }
     return $this->templateForm();
 }
コード例 #27
0
ファイル: Forum.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     if (false !== ($error = $this->sanitize())) {
         return $error;
     }
     GWF_Website::setPageTitle($this->module->lang('pt_board', array($this->board->getVar('board_title'))));
     GWF_Website::setMetaDescr($this->module->lang('md_board', array($this->board->getVar('board_descr'))));
     GWF_Website::setMetaTags($this->module->lang('mt_board'));
     if (false !== Common::getGet('mark_all_read')) {
         return $this->markAllRead() . $this->templateForum();
     }
     return $this->templateForum();
 }
コード例 #28
0
ファイル: Show.php プロジェクト: sinfocol/gwf3
 public function templateShow()
 {
     if (false === ($news = GWF_News::getNewsQuick($this->module->getNewsPerPage(), $this->catid, $this->page, GWF_Language::getCurrentID()))) {
         return GWF_HTML::err('ERR_DATABASE', array(__FILE__, __LINE__));
     }
     $date = count($news) > 0 ? $news[0]['news_date'] : GWF_Settings::getSetting('gwf_site_birthday') . '090000';
     $date = GWF_Time::displayDate($date);
     GWF_Website::setPageTitle($this->module->lang('pt_news', array($date)));
     GWF_Website::setMetaTags($this->module->lang('mt_news', array($date)));
     GWF_Website::setMetaDescr($this->module->lang('md_news', array($this->page, $this->nPages)));
     //		$mod_forum = GWF_Module::getModule('Forum', true);
     $tVars = array('news' => $news, 'titles' => GWF_News::getTitlesQuick($this->catid, GWF_Language::getCurrentID()), 'cats' => GWF_News::getCategories(), 'catid' => $this->catid, 'cat' => GWF_HTML::display($this->catTitle), 'page_menu' => $this->getPageMenu(), 'page' => $this->page, 'can_sign' => $this->module->canSignNewsletter(GWF_Session::getUser()), 'href_sign_news' => $this->module->hrefSignNewsletter(), 'may_add' => GWF_User::isAdminS() || GWF_User::isStaffS(), 'href_add' => $this->module->hrefAddNews());
     return $this->module->templatePHP('show.php', $tVars);
 }
コード例 #29
0
ファイル: ShowThread.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     GWF_ForumBoard::init(true);
     if (false !== ($error = $this->sanitize())) {
         return $error;
     }
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/module/Forum/gwf_forum.js');
     if ($this->module->cfgUseGTranslate()) {
         GWF_Website::addJavascript(Common::getProtocol() . '://www.google.com/jsapi');
         GWF_Website::addJavascriptInline('google.load("language", "1");');
     }
     GWF_Website::setPageTitle($this->module->lang('pt_thread', array($this->thread->getBoard()->getVar('board_title'), $this->thread->getVar('thread_title'))));
     return $this->templateThread();
 }
コード例 #30
0
ファイル: Profile.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     if (false === ($user = GWF_User::getByName(Common::getGet('username')))) {
         return GWF_HTML::err('ERR_UNKNOWN_USER');
     }
     if ($user->isDeleted()) {
         return GWF_HTML::err('ERR_UNKNOWN_USER');
     }
     $uname = $user->displayUsername();
     GWF_Website::setPageTitle($this->module->lang('pt_profile', array($uname, $uname)));
     GWF_Website::setMetaTags($this->module->lang('mt_profile', array($uname, $uname)));
     GWF_Website::setMetaDescr($this->module->lang('md_profile', array($uname, $uname)));
     return $this->profile($user);
 }