當前位置: 首頁>>代碼示例>>PHP>>正文


PHP GWF_Website::setMetaTags方法代碼示例

本文整理匯總了PHP中GWF_Website::setMetaTags方法的典型用法代碼示例。如果您正苦於以下問題:PHP GWF_Website::setMetaTags方法的具體用法?PHP GWF_Website::setMetaTags怎麽用?PHP GWF_Website::setMetaTags使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在GWF_Website的用法示例。


在下文中一共展示了GWF_Website::setMetaTags方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: execute

 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);
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:7,代碼來源:ScoringFAQ.php

示例2: onStartup

 public function onStartup()
 {
     $this->onLoadLanguage();
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'tpl/konz/js/konzert.js?v=5');
     GWF_Website::addJavascriptOnload('initKonzert();');
     GWF_Website::setMetaTags($this->lang('meta_tags'));
     GWF_Website::setMetaDescr($this->lang('meta_descr'));
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:8,代碼來源:Module_Konzert.php

示例3: execute

 public function execute()
 {
     GWF_Website::setPageTitle($this->module->lang('pt_tut'));
     GWF_Website::setMetaTags($this->module->lang('mt_tut'));
     GWF_Website::setMetaDescr($this->module->lang('md_tut'));
     $tVars = array();
     return $this->module->templatePHP('tutorial.php', $tVars);
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:8,代碼來源:Tutorial.php

示例4: execute

 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);
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:8,代碼來源:About.php

示例5: templateSearch

 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);
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:8,代碼來源:Search.php

示例6: execute

 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();
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:9,代碼來源:Form.php

示例7: onStartup

 public function onStartup()
 {
     require_once 'PT.php';
     require_once 'PT_Menu.php';
     self::$instance = $this;
     $this->onLoadLanguage();
     //		GWF_Website::setPageTitlePre('PoolTool');
     GWF_Website::setMetaTags($this->lang('mt_about'));
     GWF_Website::setMetaDescr($this->lang('md_about'));
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:10,代碼來源:Module_PoolTool.php

示例8: execute

 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();
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:10,代碼來源:Form.php

示例9: execute

 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();
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:10,代碼來源:NewLinks.php

示例10: execute

 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();
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:11,代碼來源:Page.php

示例11: templateMibbit

 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);
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:11,代碼來源:Mibbit.php

示例12: execute

 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);
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:11,代碼來源:Overview.php

示例13: execute

 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();
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:13,代碼來源:Forum.php

示例14: execute

 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);
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:14,代碼來源:Profile.php

示例15: templateShow

 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);
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:14,代碼來源:Show.php


注:本文中的GWF_Website::setMetaTags方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。