本文整理汇总了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);
}
示例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'));
}
示例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);
}
示例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);
}
示例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);
}
示例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();
}
示例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'));
}
示例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();
}
示例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();
}
示例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();
}
示例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);
}
示例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);
}
示例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();
}
示例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);
}
示例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);
}