当前位置: 首页>>代码示例>>PHP>>正文


PHP GWF_Website::setMetaDescr方法代码示例

本文整理汇总了PHP中GWF_Website::setMetaDescr方法的典型用法代码示例。如果您正苦于以下问题:PHP GWF_Website::setMetaDescr方法的具体用法?PHP GWF_Website::setMetaDescr怎么用?PHP GWF_Website::setMetaDescr使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GWF_Website的用法示例。


在下文中一共展示了GWF_Website::setMetaDescr方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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

示例2: 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

示例3: 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

示例4: 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

示例5: 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

示例6: 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

示例7: 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

示例8: 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

示例9: 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

示例10: setPageDescription

 private function setPageDescription($tag)
 {
     $which = (string) $this->getWhich();
     if ($tag !== '') {
         $tag = " {$tag} ";
     }
     if ($tag !== '') {
         $this->pageTitle = $this->module->lang('pt_sites_' . $which . '_tagged', array($tag));
     } else {
         $this->pageTitle = $this->module->lang('pt_sites_' . $which);
     }
     GWF_Website::setPageTitle($this->pageTitle);
     GWF_Website::setMetaDescr($this->module->lang('md_sites_' . $which));
     GWF_Website::setMetaTags($this->module->lang('mt_sites_' . $which));
 }
开发者ID:sinfocol,项目名称:gwf3,代码行数:15,代码来源:Sites.php

示例11: templateRanking

 private function templateRanking(GWF_Language $lang, $user)
 {
     $db = gdo_db();
     $ipp = 50;
     $iso = $lang->getISO();
     $langid = $lang->getID();
     $users = GWF_TABLE_PREFIX . 'user';
     $regat = GWF_TABLE_PREFIX . 'wc_regat';
     # Count number of users playing this language.
     $query = "SELECT COUNT(DISTINCT regat_uid) AS c FROM {$regat} WHERE regat_langid={$langid} AND regat_options&4=0";
     if (false === ($result = $db->queryFirst($query))) {
         return GWF_HTML::err('ERR_DATABASE', array(__FILE__, __LINE__));
     }
     # Page Menu
     $nItems = intval($result['c']);
     $nPages = GWF_PageMenu::getPagecount($ipp, $nItems);
     list($page, $hl_rank) = $this->getPageRank($langid, $ipp, $user);
     GWF_Website::setPageTitle($this->module->lang('pt_langrank', array($lang->displayName(), $page, $nPages)));
     GWF_Website::setMetaTags($this->module->lang('mt_ranking_lang', array($lang->displayName())));
     GWF_Website::setMetaDescr($this->module->lang('md_ranking_lang', array($lang->displayName(), $page, $nPages)));
     //		echo 'PAGE:';
     //		var_dump($page);
     //
     //		echo 'RANK:';
     //		var_dump($hl_rank);
     //
     $page = Common::clamp($page, 1, $nPages);
     $from = GWF_PageMenu::getFrom($page, $ipp);
     # Query Data
     $query = "SELECT r1.regat_uid AS user_id, user_name, user_level, user_countryid, r1.regat_sid, r1.regat_solved AS solved, r2.sum AS sum " . "FROM {$regat} AS r1 " . "JOIN (SELECT regat_uid,SUM(regat_score) AS sum FROM {$regat} WHERE regat_langid={$langid}  GROUP BY regat_uid ORDER BY SUM(regat_score) DESC LIMIT {$from},{$ipp}) AS r2 ON r1.regat_uid=r2.regat_uid " . "JOIN {$users} AS u ON u.user_id=r1.regat_uid " . "WHERE regat_options&4=0 " . "ORDER BY sum DESC ";
     if (false === ($result = $db->queryRead($query))) {
         return GWF_HTML::err('ERR_DATABASE', array(__FILE__, __LINE__));
     }
     //		var_dump($query);
     $data = array();
     while (false !== ($row = $db->fetchAssoc($result))) {
         $uid = intval($row['user_id']);
         if (!isset($data[$uid])) {
             $data[$uid] = new GWF_User($row);
         }
         $sid = $row['regat_sid'];
         $data[$uid]->setVar('ss_' . $sid, (double) $row['solved']);
     }
     $db->free($result);
     # Show template
     $tVars = array('rank' => $from + 1, 'hlrank' => $hl_rank, 'page_menu' => GWF_PageMenu::display($page, $nPages, GWF_WEB_ROOT . 'lang_ranking/' . $iso . '/page-%PAGE%'), 'langname' => $lang->displayName(), 'users' => $data, 'sites' => WC_Site::getSitesLang($langid), 'form_action' => $this->getMethodHref(), 'iso' => $lang->getISO());
     return $this->module->templatePHP('ranking_lang.php', $tVars);
 }
开发者ID:sinfocol,项目名称:gwf3,代码行数:48,代码来源:RankingLang.php

示例12: execute

 public function execute()
 {
     # SEO
     GWF_Website::setMetaTags($this->module->lang('mt_list'));
     GWF_Website::setMetaDescr($this->module->lang('md_list'));
     GWF_Website::setPageTitle($this->module->lang('pt_list'));
     $user = GWF_Session::getUser();
     # Permission
     //		if ((false === ($user = GWF_Session::getUser())) && (!$this->module->cfgAnonDown())) {
     //			return GWF_HTML::err('ERR_NO_PERMISSION');
     //		}
     if (false !== ($mod_pay = GWF_Module::getModule('Payment'))) {
         $mod_pay->onInclude();
     }
     return $this->templateList($user);
 }
开发者ID:sinfocol,项目名称:gwf3,代码行数:16,代码来源:List.php

示例13: templatePage

 private function templatePage()
 {
     $ipp = $this->module->cfgIPP();
     $shouts = GDO::table('GWF_Shoutbox');
     $by = Common::getGet('by', 'shout_date');
     $dir = Common::getGet('dir', 'ASC');
     $orderby = $shouts->getMultiOrderby($by, $dir);
     $nItems = $shouts->countRows();
     $nPages = GWF_PageMenu::getPagecount($ipp, $nItems);
     $page = Common::clamp(intval(Common::getGet('page', $nPages)), 1, $nPages);
     $from = GWF_PageMenu::getFrom($page, $ipp);
     GWF_Website::setPageTitle($this->module->lang('pt_history', array($page, $nPages)));
     GWF_Website::setMetaDescr($this->module->lang('md_history'));
     GWF_Website::setMetaTags($this->module->lang('mt_history'));
     $tVars = array('data' => $shouts->selectAll('*', '', $orderby, array('shout_uid'), $ipp, $from, GDO::ARRAY_O), 'sort_url' => GWF_WEB_ROOT . 'shoutbox/history/by/%BY%/%DIR%/page-1', 'page_menu' => GWF_PageMenu::display($page, $nPages, GWF_WEB_ROOT . 'shoutbox/history/by/' . urlencode($by) . '/' . urlencode($dir) . '/page-%PAGE%'), 'form_action' => $this->module->hrefShout());
     return $this->module->templatePHP('history.php', $tVars);
 }
开发者ID:sinfocol,项目名称:gwf3,代码行数:17,代码来源:History.php

示例14: templateRanking

 public function templateRanking()
 {
     if (false === ($site = WC_Site::getByID(Common::getGet('sid')))) {
         return $this->module->error('err_site');
     }
     $ipp = $this->module->cfgItemsPerPage();
     $nItems = $site->getLinkcount() - $this->getLinkcountUnranked($site->getID());
     $nPages = GWF_PageMenu::getPagecount($ipp, $nItems);
     $page = Common::clamp(intval(Common::getGet('page', 1)), 1, $nPages);
     $from = GWF_PageMenu::getFrom($page, $ipp);
     $args = array($site->displayName(), $page);
     $title = $this->module->lang('pt_site_ranking', $args);
     GWF_Website::setPageTitle($title);
     GWF_Website::setMetaTags($this->module->lang('mt_site_ranking', $args));
     GWF_Website::setMetaDescr($this->module->lang('md_site_ranking', $args));
     $tVars = array('userdata' => $this->getRankedUsers($site, $from, $ipp), 'site' => $site, 'sites' => $site->getSimilarSites(), 'site_quickjump' => $this->module->templateSiteQuickjumpRanking(), 'rank' => $from + 1, 'page_menu' => GWF_PageMenu::display($page, $nPages, GWF_WEB_ROOT . 'site/ranking/for/' . $site->getID() . '/' . $site->urlencodeSEO('site_name') . '/page-%PAGE%'), 'page_title' => $title);
     return $this->module->templatePHP('site_ranking.php', $tVars);
 }
开发者ID:sinfocol,项目名称:gwf3,代码行数:18,代码来源:SiteRankings.php

示例15: templateSingle

 private function templateSingle($cid, $user)
 {
     if (false === ($country = GWF_Country::getByID($cid))) {
         return GWF_HTML::err('ERR_UNKNOWN_COUNTRY');
     }
     require_once GWF_CORE_PATH . 'module/WeChall/WC_RegAt.php';
     $cid = $country->getID();
     $ipp = 50;
     $nItems = GDO::table('GWF_User')->countRows("user_countryid={$cid}");
     $nPages = GWF_PageMenu::getPagecount($ipp, $nItems);
     list($page, $hlrank) = $this->getSinglePageRank($cid, $ipp, $user);
     $page = Common::clamp($page, 1, $nPages);
     $rank = ($page - 1) * $ipp + 1;
     $from = GWF_PageMenu::getFrom($page, $ipp);
     $cname = $country->display('country_name');
     GWF_Website::setPageTitle($this->module->lang('pt_crank', array($cname, $page)));
     GWF_Website::setMetaTags($this->module->lang('mt_crank', array($cname, $cname)));
     GWF_Website::setMetaDescr($this->module->lang('md_crank', array($cname, $page)));
     $tVars = array('country' => $country, 'cid' => $cid, 'cname' => $cname, 'rank' => $rank, 'hl_rank' => $hlrank, 'page' => $page, 'page_menu' => GWF_PageMenu::display($page, $nPages, GWF_WEB_ROOT . 'country_ranking/for/' . $cid . '/' . $country->urlencodeSEO('country_name') . '/page-%PAGE%'), 'data' => $this->getDataForCountry($country, $ipp, $from));
     return $this->module->templatePHP('ranking_country.php', $tVars);
 }
开发者ID:sinfocol,项目名称:gwf3,代码行数:21,代码来源:RankingCountry.php


注:本文中的GWF_Website::setMetaDescr方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。