本文整理汇总了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;
}
示例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"];