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); }
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); }
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); }
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); }
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); }
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); }
private function templateTermine() { $l = new GWF_LangTrans($this->module->getModuleFilePath('lang/termine')); GWF_Website::setPageTitle($l->lang('page_title')); $termine = GDO::table('Konzert_Termin'); $where = 'kt_options&1'; $by = Common::getGetString('by', self::DEFAULT_BY); $dir = Common::getGetString('dir', self::DEFAULT_DIR); $orderby = $termine->getMultiOrderby($by, $dir); $nItems = $termine->countRows($where); $nPages = GWF_PageMenu::getPagecount(self::IPP, $nItems); $page = Common::clamp(Common::getGetInt('page'), 1, $nPages); $from = GWF_PageMenu::getFrom($page, self::IPP); $tVars = array('l' => $l, 'href_admin' => $this->module->getMethodURL('AdminTermine'), 'user' => GWF_User::getStaticOrGuest(), 'termine' => $termine->selectObjects('*', $where, $orderby, self::IPP, $from), 'pagemenu' => GWF_PageMenu::display($page, $nPages, GWF_WEB_ROOT . 'index.php?mo=Konzert&me=Termine&by=' . urlencode($by) . '&dir=' . urlencode($dir) . '&page=%PAGE%'), 'sort_url' => GWF_WEB_ROOT . 'index.php?mo=Konzert&me=Termine&by=%BY%&dir=%DIR%&page=1'); return $this->module->template('termine.tpl', $tVars); }
public function getHelp($trigger, $args = NULL) { $key = 'help_' . $trigger; if ($key === ($help = $this->lang_->lang($key))) { return Dog::lang('err_no_help'); } return $this->replaceLang($help, $args, $trigger); }
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); }
public function execute() { if (Common::getGetString('list', '0') === '1') { return $this->module->template("tools/list.tpl"); } $whitelist = array('jpk', 'yabfdbg', 'jcs', 'jdictac', 'wordpat', 'wordlists', 'startcpp', 'encodings'); $file = Common::getGet('file'); if (!in_array($file, $whitelist, true)) { return GWF_HTML::err('ERR_PARAMETER', array(__FILE__, __LINE__, 'file')); } # Counter Box $count = GWF_Counter::getAndCount($file, 1); $box = GWF_Box::box($this->module->lang('pi_viewcount', array($count))); # Translations $langpath = $this->module->getDir() . '/lang/' . $file; #.'/'.$file; $trans = new GWF_LangTrans($langpath); GWF_Website::setPageTitle($trans->lang('page_title')); GWF_Website::setMetaTags($trans->lang('meta_tags')); $tVars = array('lang2' => $trans); return $this->module->templatePHP("tools/{$file}/{$file}.php", $tVars) . $box; }
public function execute() { $lang = new GWF_LangTrans(GWF_CORE_PATH . 'module/WeChall/lang/join_us/_wc_join'); GWF_Website::setPageTitle($lang->lang('pt_joinus')); GWF_Website::setMetaTags($lang->lang('mt_joinus')); $section = Common::getGetString('section', 'join'); switch ($section) { case 'optional': $filename = 'join_opt.php'; break; case 'wechall_api': $filename = 'join_api.php'; break; case 'warbox': $filename = 'join_warbox.php'; break; default: $filename = 'join.php'; break; } $tVars = array('join' => $lang); return $this->module->templatePHP($filename, $tVars); }
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); }
public function lang(SR_Player $player, $key, $args = NULL) { return $this->lang->langISO($player->getLangISO(), $key, $args); }
public static function langUser(GWF_User $user, $key, $args = NULL) { return self::$trans->langUser($user, $key, $args); }
/** * Return a human readable duration. * Example: 666 returns 11 minutes 6 seconds. * @param $duration in seconds. * @param $nUnits how many units to display max. * @return string */ public static function humanDuration($duration, $nUnits = 2) { return self::humanDurationISO(GWF_LangTrans::getBrowserISO(), $duration, $nUnits); }
public static function displayDate($gwf_date, $default_return = 'ERROR') { return self::displayDateISO($gwf_date, GWF_LangTrans::getBrowserISO(), $default_return); }
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); }
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); }