当前位置: 首页>>代码示例>>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;未经允许,请勿转载。