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


PHP tag::get_tag_index方法代码示例

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


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

示例1: _generate_tags

 private static function _generate_tags()
 {
     $tags = tag::get_tags();
     $robotstxt = "";
     foreach ($tags as $key => $var) {
         if (strlen($var["tag_for_url"]) > 0) {
             $robotstxt .= "Allow: /" . _("quotes") . "/" . _("tags") . "/" . $var["tag_for_url"] . "\n";
         }
     }
     $tags_index = tag::get_tag_index();
     foreach ($tags_index as $key => $var) {
         $robotstxt .= "Disallow: /" . _("quotes") . "/" . _("tags") . "/" . $var . "/\n";
     }
     return $robotstxt;
 }
开发者ID:hkirsman,项目名称:tsitaat_com,代码行数:15,代码来源:robots.php

示例2:

	{
    $context["admin"] = true;
    $context["categories"] = $category->get_categories();
	}
  $context["username"] = $user->data["username"];
  $context["username_clean"] = $user->data["username_clean"];
  $context["user_id"] = $user->data["user_id"];
  //$smarty_q->assign ("user_type", $user->data["user_type"]);
  //$smarty_q->assign ("group_id", $user->data["group_id"]);
	//$smarty_q->assign ("robots_index", false);

	//$smarty_q->assign ("keywords", _("quotes, quotations, world"));
	//$smarty_q->assign ("author_index", author::get_author_index());
  $context["author_index"] = author::get_author_index();
	//$smarty_q->author_index ("tag_index", tag::get_tag_index());
  $context["tag_index"] = tag::get_tag_index();
  //$smarty_q->assign ("category_index", category::get_categories());
	//$smarty_q->assign ("a_path", $a_path);
  $context["a_path"] = $a_path;
	//$smarty_q->assign ("enable_voting", true);
  $context["enable_voting"] = true;
	//$smarty_q->assign ("show_sidecontent", true);
	//$smarty_q->assign ("search_return_url", $config_q["baseurl"] . "/" . _("search"));
	//$smarty_q->assign ("config_q", $config_q);
	//$smarty_q->assign ("analytics", $config_q["analytics"]);
	////$smarty_q->assign ("label_previous_page", _("Previous page"));
	////$smarty_q->assign ("label_next_page", _("Next page"));
	////$smarty_q->assign ("label_share_on_facebook", _("Share on Facebook"));
	//$smarty_q->assign ("google_site_verification", $config_q["google_site_verification"]);
  //$smarty_q->assign ("current_url", curPageURL());
  $context["session_id"] = $user->data["session_id"];
开发者ID:hkirsman,项目名称:tsitaat_com,代码行数:31,代码来源:init.php


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