Ejemplo n.º 1
0
    break;
	case "quotes-authors-%author%-%quote_id%":
 		$quotes_temp = quote::get_quotes(array(
			"q_id" => $a_path[3]
		));
    $context["quotes"] = $quotes_temp;

		if (strlen($quotes_temp[0]["author_born_death"])>0)
		{
			$author_born_death = " (" . $quotes_temp[0]["author_born_death"] . ")";
		}
		$context["h1"] = $quotes_temp[0]["author_name"] . " " . $context["labels"]["quotes_clean"];
		$context["fake_h1"] = $quotes_temp[0]["author_name"] . $author_born_death;
		$context["profession"] = $quotes_temp[0]["author_profession_parsed"];
		$context["title"] = $quotes_temp[0]["author_name_wo_brackets"] . " " . $context["labels"]["quotes_clean"];
    $context["keywords"] = $smarty_q->tpl_vars['keywords']->value . ", " . tag::get_keywords_for_author_meta_description($a_path[2], $quotes_temp);
    $context["comments"] = comment::get_comments(array("quote_id"=>$a_path[3]));

    /*
		$quotes_temp = quote::get_quotes(array(
			"q_id" => $a_path[3]
		));
		$smarty_q->assign("quotes", $quotes_temp);
		if (strlen($quotes_temp[0]["author_born_death"])>0)
		{
			$author_born_death = " (" . $quotes_temp[0]["author_born_death"] . ")";
		}
		$smarty_q->assign("h1", $quotes_temp[0]["author_name"] . " " . _("quotes"));
		$smarty_q->assign("fake_h1", $quotes_temp[0]["author_name"] . $author_born_death);
		$smarty_q->assign("profession",  $quotes_temp[0]["author_profession_parsed"]);
		$smarty_q->assign ("title", $quotes_temp[0]["author_name_wo_brackets"] . " " . _("quotes"));