本文整理汇总了PHP中FrontController::displayHeader方法的典型用法代码示例。如果您正苦于以下问题:PHP FrontController::displayHeader方法的具体用法?PHP FrontController::displayHeader怎么用?PHP FrontController::displayHeader使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FrontController
的用法示例。
在下文中一共展示了FrontController::displayHeader方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayHeader
public function displayHeader()
{
if (!$this->instantSearch and !$this->ajaxSearch) {
parent::displayHeader();
} else {
self::$smarty->assign('static_token', Tools::getToken(false));
}
}
示例2: displayHeader
public function displayHeader()
{
if (Tools::getValue('orderby', false)) {
self::$smarty->assign('nobots', 1);
}
$rewrited_url = self::$link->getCategoryLink((int) $this->category->id, $this->category->link_rewrite);
self::$smarty->assign('paginationBaseUrl', $rewrited_url);
parent::displayHeader();
}
示例3: displayHeader
public function displayHeader()
{
global $link;
$pageNo = Tools::getValue('p', '');
self::$smarty->assign('meta_title', 'Recent searches on IndusDiva.com');
self::$smarty->assign('meta_description', 'Popular products searhes ' . $pageNo);
self::$smarty->assign('nobots', 1);
parent::displayHeader();
}
示例4: displayHeader
public function displayHeader()
{
self::$smarty->assign('nobots', 1);
parent::displayHeader();
}
示例5: displayHeader
public function displayHeader()
{
global $link;
$images = $this->product->getImages((int) self::$cookie->id_lang);
foreach ($images as $k => $image) {
if ($image['cover']) {
$cover = $image;
$cover['id_image'] = Configuration::get('PS_LEGACY_IMAGES') ? $this->product->id . '-' . $image['id_image'] : $image['id_image'];
}
}
$pageTitle = 'Buy ' . $this->product->name . ' (CODE:' . $this->product->reference . ') online from India - IndusDiva.com';
$pageDescription = 'Shop for original ' . $this->product->name . ' (CODE:' . $this->product->reference . ') online. 100% authentic. Free Shipping in India and across world (over $300)';
$og_description = $pageDescription;
$og_page_url = $this->product->getLink();
$og_image_url = $link->getImageLink($this->product->link_rewrite, $cover['id_image'], 'large');
$og_title = $this->product->name;
self::$smarty->assign(array('og_meta' => 1, 'og_description' => $og_description, 'og_page_url' => $og_page_url, 'canonical_url' => $og_page_url, 'og_image_url' => $og_image_url, 'og_title' => $og_title, 'og_type' => 'indusdiva:product'));
self::$smarty->assign('meta_title', $pageTitle);
self::$smarty->assign('meta_description', $pageDescription);
parent::displayHeader();
}
示例6: displayHeader
public function displayHeader()
{
if (!$this->instantSearch and !$this->ajaxSearch) {
parent::displayHeader();
}
}
示例7: displayHeader
public function displayHeader()
{
parent::displayHeader();
}
示例8: displayHeader
public function displayHeader($display = true)
{
if (!$this->instant_search && !$this->ajax_search) {
parent::displayHeader();
} else {
$this->context->smarty->assign('static_token', Tools::getToken(false));
}
}
示例9: displayHeader
public function displayHeader()
{
if (Tools::getValue('ajax') != 'true') {
parent::displayHeader();
}
}
示例10: displayHeader
public function displayHeader()
{
if ($this->display_header) {
parent::displayHeader();
}
}
示例11: displayHeader
public function displayHeader()
{
self::$smarty->assign('nobots', 1);
if (Tools::getValue('ajax') != 'true') {
parent::displayHeader();
}
}
示例12: displayHeader
public function displayHeader()
{
self::$smarty->assign('canonical_url', _PS_BASE_URL_ . __PS_BASE_URI__);
parent::displayHeader();
}
示例13: displayHeader
public function displayHeader()
{
global $link;
//self::$smarty->assign('show_banner', 1);
if (Tools::getValue('orderby', false)) {
self::$smarty->assign('nobots', 1);
}
if ($id_manufacturer = Tools::getValue('id_manufacturer')) {
$this->manufacturer = new Manufacturer((int) $id_manufacturer, self::$cookie->id_lang);
if (Validate::isLoadedObject($this->manufacturer) and $this->manufacturer->active) {
$pageTitle = $this->manufacturer->name . ' | Buy ' . $this->manufacturer->name . ' products online in India - IndusDiva.com';
$pageDescription = 'Shop for 100% authentic ' . $this->manufacturer->name . ' products online at discounted rates! Free Shipping & Cash on Delivery anywhere in India.';
self::$smarty->assign('meta_title', $pageTitle);
self::$smarty->assign('meta_description', $pageDescription);
//$bannername = str_replace(" ", "-", strtolower($this->manufacturer->name));
//$bannername = str_replace("'", "", $bannername);
$bannername = $this->manufacturer->banner_img;
if ($bannername) {
self::$smarty->assign('bannername', $bannername);
}
$paginationBaseUrl = $link->getmanufacturerLink($id_manufacturer, $this->manufacturer->link_rewrite);
self::$smarty->assign('paginationBaseUrl', $paginationBaseUrl);
}
}
parent::displayHeader();
}
示例14: displayHeader
public function displayHeader()
{
parent::displayHeader();
$this->productSort();
}
示例15: displayHeader
private function displayHeader()
{
if (isset(Context::getContext()->controller)) {
$controller = Context::getContext()->controller;
} else {
$controller = new FrontController();
$controller->init();
$controller->setMedia();
}
Tools::displayFileAsDeprecated();
$controller->displayHeader();
}