Open meta tag to all version desktop and mobile
This commit is contained in:
parent
ae95bf66d9
commit
6e6d8e25f9
@ -22,7 +22,7 @@ class Ant_Canonical extends Module
|
||||
public function install()
|
||||
{
|
||||
// Register hooks
|
||||
if(!(parent::install())
|
||||
if(!parent::install()
|
||||
|| !$this->registerHook('header')) {
|
||||
return false;
|
||||
}
|
||||
@ -32,10 +32,6 @@ class Ant_Canonical extends Module
|
||||
|
||||
public function hookHeader($params)
|
||||
{
|
||||
if(!_PS_MOBILE_){
|
||||
return false;
|
||||
}
|
||||
|
||||
global $cookie, $smarty, $page_name, $site_version;
|
||||
|
||||
switch ($site_version) {
|
||||
@ -72,7 +68,11 @@ class Ant_Canonical extends Module
|
||||
return self::display(__FILE__, 'views/front/header.tpl');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Real product rewrite link
|
||||
* @param int $id
|
||||
* @return string
|
||||
*/
|
||||
private function getLinkRewriteProduct($id)
|
||||
{
|
||||
global $cookie;
|
||||
@ -82,6 +82,12 @@ class Ant_Canonical extends Module
|
||||
.'/'.$id.'-'.$product->link_rewrite[$cookie->id_lang];
|
||||
}
|
||||
|
||||
/**
|
||||
* Real category rewrite link
|
||||
* @param int $id
|
||||
* @param boolean $product
|
||||
* @return string
|
||||
*/
|
||||
private function getLinkRewriteCategory($id, $product = false)
|
||||
{
|
||||
global $cookie;
|
||||
|
Loading…
Reference in New Issue
Block a user