private static function _generate_authors() { $authors = author::get_authors(); $current_lastname_firstchar = $robotstxt = ""; foreach ($authors as $key => $var) { $robotstxt .= "Allow: /" . _("quotes") . "/" . _("authors") . "/" . $var["url_friendly_author_name"] . "\n"; } $author_index = author::get_author_index(); foreach ($author_index as $key => $var) { $robotstxt .= "Disallow: /" . _("quotes") . "/" . _("authors") . "/" . $var["char"] . "/\n"; } return $robotstxt; }
function _generate_authors() { global $config_q; $out = ""; $authors = author::get_authors(); $current_lastname_firstchar = $robotstxt = ""; foreach ($authors as $key => $var) { $out .= "<url>" . "\n"; $out .= " <loc>" . $config_q["baseurl"] . "/" . _("quotes") . "/" . _("authors") . "/" . $var["url_friendly_author_name"] . "</loc>\n"; $out .= " <priority>0.80</priority>\n"; $out .= " <lastmod>" . date("Y-m-d\\T07:28:24+00:00", time()) . "</lastmod>\n"; $out .= " <changefreq>daily</changefreq>\n"; $out .= "</url>\n"; //$this->count_links++; } return $out; }
/*case "image": $i = new image(array( "file" => $a_path[2] )); break;*/ /* Authors */ case "quotes-authors": $smarty_q->assign("h1", _("Quotations by Author")); $smarty_q->assign("fake_h1", _("Quotations by Author")); break; case "quotes-authors-%author_index%": $context["h1"] == _("Quotations by Author"); $context["fake_h1"] = _("Quotations by Author") . ": " . utf8_strtoupper($a_path[2]); $context["authors_list"] = author::get_authors(array( "char" => $a_path[2])); break; case "quotes-authors-%author%": $context["robots_index"] = true; $quotes_temp = quote::get_quotes(array( "url_friendly_author_name" => $a_path[2], "start" => (navi::get_current_page()-1)*$config_q["quotes_on_page"], "length" => $config_q["quotes_on_page"], "order_by" => "created_time asc", )); $context["quotes"] = $quotes_temp; $context["navi"] = navi::get_page_navi(array( "baseurl" => $config_q["baseurl"]."/"._("quotes")."/"._("authors")."/".$a_path[2], "max_items" => $quotes_temp[0]["quotes_total_count"], )); if (strlen($quotes_temp[0]["author_born_death"])>0)