本文整理汇总了PHP中seo::getTitle方法的典型用法代码示例。如果您正苦于以下问题:PHP seo::getTitle方法的具体用法?PHP seo::getTitle怎么用?PHP seo::getTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类seo
的用法示例。
在下文中一共展示了seo::getTitle方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$smarty->assignByRef('uData', $uData);
// инициируем "Наименование страницы" отображаемое в заголовке формы
$arrNamePage = array(array('name' => MENU_COMPANIES, 'link' => chpu::createChpuUrl(CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type'] . '&do=companies')), array('name' => $uData['company_name'], 'link' => false));
$strWhere = "id_user IN (" . secure::escQuoteData($_GET['id']) . ") AND token IN ('active')";
$arrOrderBy = array('act_datetime' => 'DESC');
$smarty->assign('vacancys', $vacancy->getAnnounces($strWhere, false, $arrOrderBy));
$smarty->assign('link', chpu::createChpuUrl(CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type'] . '&do=vacancy&action=view&id='));
} else {
//$arrErrors[] = ERROR_SELECTED_COMPANY;
messages::error404();
}
}
} else {
// Формируем TITLE страницы
$arrTitle = array();
$seo = seo::getTitle('companies', $currLang);
$arrTitle[] = array('name' => !empty($seo) ? $seo : MENU_COMPANIES);
// СЕО данные
$smarty->assign('meta_keywords', seo::getKeywords('companies', $currLang));
$smarty->assign('meta_description', seo::getDescription('companies', $currLang));
//смещение, всегда 0 (затем берется из $_GET)
$offset = !empty($_GET['offset']) && is_numeric($_GET['offset']) && $_GET['offset'] > 0 ? $_GET['offset'] : 0;
//смещение, всегда 0 (затем берется из $_GET)
$path = CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type'] . '&do=companies&action=offset&';
//получаем массив, содержащий текущий обработанный URL
$arrFields = array(array('conf_users', 'id'), array('conf_users', 'company_name'), array('conf_users', 'company_city'), array('conf_users', 'company_description'), array('conf_users', 'logo'));
$strWhere = "conf_users.token IN ('active') AND conf_users.user_type IN ('company')";
CONF_COMPANIES_SHOW_ONLY_WITH_LOGO ? $strWhere .= " AND conf_users.logo!=''" : null;
$strLimit = $offset . ',' . CONF_COMPANIES_PERPAGE;
$arrCompanies = $user->getCombinedUsersData($arrFields, $strWhere, false, $strLimit);
$smarty->assignByRef('arrCompanies', $arrCompanies);
示例2: IN
$smarty->assign('meta_description', MENU_AGENCIES . ' - ' . $uData['company_name'] . '!');
$strWhere = "id_user IN (" . secure::escQuoteData($_GET['id']) . ") AND token IN ('active')";
$arrOrderBy = array('act_datetime' => 'DESC');
$smarty->assign('vacancys', $vacancy->getAnnounces($strWhere, false, $arrOrderBy));
$smarty->assign('link', chpu::createChpuUrl(CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type'] . '&do=vacancy&action=view&id='));
$smarty->assign('resumes', $resume->getAnnounces($strWhere, false, $arrOrderBy));
$smarty->assign('rlink', chpu::createChpuUrl(CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type'] . '&do=resume&action=view&id='));
} else {
//$arrErrors[] = ERROR_SELECTED_COMPANY;
messages::error404();
}
}
} else {
// Формируем TITLE страницы
$arrTitle = array();
$seo = seo::getTitle('agencies', $currLang);
$arrTitle[] = array('name' => !empty($seo) ? $seo : MENU_AGENCIES);
// СЕО данные
$smarty->assign('meta_keywords', seo::getKeywords('agencies', $currLang));
$smarty->assign('meta_description', seo::getDescription('agencies', $currLang));
//смещение, всегда 0 (затем берется из $_GET)
$offset = !empty($_GET['offset']) && is_numeric($_GET['offset']) && $_GET['offset'] > 0 ? $_GET['offset'] : 0;
//смещение, всегда 0 (затем берется из $_GET)
$path = CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type'] . '&do=agencies&action=offset&';
//получаем массив, содержащий текущий обработанный URL
$arrFields = array(array('conf_users', 'id'), array('conf_users', 'company_name'), array('conf_users', 'company_city'), array('conf_users', 'company_description'), array('conf_users', 'logo'));
$strWhere = "conf_users.token IN ('active') AND conf_users.user_type IN ('agent')";
CONF_AGENCIES_SHOW_ONLY_WITH_LOGO ? $strWhere .= " AND conf_users.logo!=''" : null;
$strLimit = $offset . ',' . CONF_AGENCIES_PERPAGE;
$arrCompanies = $user->getCombinedUsersData($arrFields, $strWhere, false, $strLimit);
$smarty->assignByRef('arrCompanies', $arrCompanies);