本文整理匯總了PHP中seo::getDinamicContent方法的典型用法代碼示例。如果您正苦於以下問題:PHP seo::getDinamicContent方法的具體用法?PHP seo::getDinamicContent怎麽用?PHP seo::getDinamicContent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類seo
的用法示例。
在下文中一共展示了seo::getDinamicContent方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: header
//if(is_numeric($_GET['dir'])) {
// $section_id = intval($_GET['dir']);
// $section_content = seo::getSectionById($section_id);
//} else {
$section_name = $_GET['dir'];
$section_content = $seo->getSectionByName($section_name, true, $direct_id, $_GET['cat']);
//}
if (!$section_content['id'] || $section_content['direct_id'] != $direct_id || $seo->subdomain['id'] != $section_content['subdomain_id']) {
header('Location: /404.php');
exit;
}
//$seo = new seo((int)$section_content['subdomain_id']);
$page_keyw = $section_content['meta_keywords'];
$page_descr = $section_content['meta_description'];
$content_type = 'article';
$dinamic_content = $seo->getDinamicContent($page_keyw, $seo->subdomain['name_subdomain']);
$dinamic_content_articles = $seo->getDinamicContentArticles($page_keyw);
} elseif (!$subdomain && $direct_link) {
$section_direction = $direct;
} else {
$section_direction = $direct;
$seo = new seo($subdomain);
}
$directions = $seo->getDirections($direct_id);
$res = $seo->getSections(true, $direct_id);
$sections = array();
if ($res) {
foreach ($res as $row) {
$sections[$row['direct_id']][] = $row;
}
}