diff --git a/classes/controller/FrontController.php b/classes/controller/FrontController.php index a7046cef1..15f3dc69d 100644 --- a/classes/controller/FrontController.php +++ b/classes/controller/FrontController.php @@ -435,7 +435,6 @@ class FrontControllerCore extends Controller $this->context->smarty->assign(array( 'HOOK_HEADER' => Hook::exec('displayHeader'), 'HOOK_TOP' => Hook::exec('displayTop'), - 'HOOK_TOP_COLUMN' => ($this->display_column_left ? Hook::exec('displayTopColumn') : ''), 'HOOK_LEFT_COLUMN' => ($this->display_column_left ? Hook::exec('displayLeftColumn') : ''), 'HOOK_RIGHT_COLUMN' => ($this->display_column_right ? Hook::exec('displayRightColumn', array('cart' => $this->context->cart)) : ''), )); diff --git a/modules/blockbanner/blockbanner.php b/modules/blockbanner/blockbanner.php index 7642b835b..b2fd8e628 100644 --- a/modules/blockbanner/blockbanner.php +++ b/modules/blockbanner/blockbanner.php @@ -33,7 +33,7 @@ class BlockBanner extends Module { $this->name = 'blockbanner'; $this->tab = 'other'; - $this->version = 1.0; + $this->version = 1.1; $this->author = 'PrestaShop'; $this->need_instance = 0; @@ -49,7 +49,7 @@ class BlockBanner extends Module Configuration::updateValue('BLOCKBANNER_IMG', 'sale70.gif'); Configuration::updateValue('BLOCKBANNER_LINK', ''); Configuration::updateValue('BLOCKBANNER_DESC', ''); - return parent::install() && $this->registerHook('displayTop') && $this->registerHook('header'); + return parent::install() && $this->registerHook('displayBanner') && $this->registerHook('displayHeader'); } public function uninstall() @@ -76,10 +76,21 @@ class BlockBanner extends Module if ($total <= 0) return; } + return $this->display(__FILE__, 'blockbanner.tpl', $this->getCacheId()); } - public function hookHeader($params) + public function hookDisplayBanner($params) + { + return $this->hookDisplayTop($params); + } + + public function hookDisplayFooter($params) + { + return $this->hookDisplayTop($params); + } + + public function hookDisplayHeader($params) { $this->context->controller->addCSS($this->_path.'blockbanner.css', 'all'); } diff --git a/modules/blockbanner/config.xml b/modules/blockbanner/config.xml index 6271f1933..e9bd378a3 100644 --- a/modules/blockbanner/config.xml +++ b/modules/blockbanner/config.xml @@ -2,7 +2,7 @@ blockbanner - + diff --git a/modules/blockbanner/upgrade/install-1.1.php b/modules/blockbanner/upgrade/install-1.1.php new file mode 100644 index 000000000..556edf5c6 --- /dev/null +++ b/modules/blockbanner/upgrade/install-1.1.php @@ -0,0 +1,9 @@ +registerHook('displayBanner') && $object->unregisterHook('displayTop')); +} diff --git a/modules/blockcurrencies/blockcurrencies.css b/modules/blockcurrencies/blockcurrencies.css index 1b40e9dcf..b26e08c49 100644 --- a/modules/blockcurrencies/blockcurrencies.css +++ b/modules/blockcurrencies/blockcurrencies.css @@ -1,5 +1,5 @@ /* block top currencies */ -#header_right #currencies_block_top { +#currencies_block_top { float:right; margin: 0 6px 0 0; padding: 2px 6px; @@ -11,7 +11,7 @@ border-bottom-left-radius: 3px; background: none repeat scroll 0 0 #000; } -#header_right #currencies_block_top p { +#currencies_block_top p { clear: left; padding-right:16px; font: 11px Arial,Verdana,sans-serif; @@ -57,4 +57,4 @@ width: auto; background:#000000; } -#setCurrency .currencies_ul_hover a {color:#fff;} +#setCurrency .currencies_ul_hover a {color:#fff;} \ No newline at end of file diff --git a/modules/blocklanguages/blocklanguages.css b/modules/blocklanguages/blocklanguages.css index aff58e084..ff58aafdb 100644 --- a/modules/blocklanguages/blocklanguages.css +++ b/modules/blocklanguages/blocklanguages.css @@ -1,5 +1,5 @@ /* block top languages */ -#header_right #languages_block_top { +#languages_block_top { float:right; margin: 0; padding:2px 6px 1px 6px; @@ -11,7 +11,7 @@ border-bottom-left-radius: 3px; background: none repeat scroll 0 0 #000; } -#header_right #languages_block_top p { +#languages_block_top p { clear: left; padding-right:20px; font: 11px Arial,Verdana,sans-serif; diff --git a/modules/blockuserinfo/blockuserinfo.css b/modules/blockuserinfo/blockuserinfo.css index 0e8984980..6f9ca2327 100644 --- a/modules/blockuserinfo/blockuserinfo.css +++ b/modules/blockuserinfo/blockuserinfo.css @@ -1,12 +1,12 @@ /* block top user information */ -#header_right #header_user { +#header_user { clear:both; float: right; margin-top:8px; } -#header_right #header_user.header_user_catalog { +#header_user.header_user_catalog { margin-top: 15px; min-height: 60px; } @@ -36,26 +36,26 @@ #header_user #your_account a { background-image: url('img/icon/my-account.gif') } /* user infos */ -#header_user_info { +.header_user_info { clear:both; float:right; margin-top:10px; padding:0; font-size:12px } -#header_user_info a { +.header_user_info a { display:inline-block; margin:0 0 0 10px; padding:3px 0 0 34px; line-height: 11px; border-left:1px solid #000 } -#header_user_info a.account { +.header_user_info a.account { border: none; display: inline; margin: 0; padding: 0; } -*:first-child+html #header_user_info a {line-height:14px;} -#header_user_info a.login {background: url('img/icon/login.gif') no-repeat 10px 0} -#header_user_info a.logout {background: url('img/icon/logout.png') no-repeat 10px -1px} +*:first-child+html .header_user_info a {line-height:14px;} +.header_user_info a.login {background: url('img/icon/login.gif') no-repeat 10px 0} +.header_user_info a.logout {background: url('img/icon/logout.png') no-repeat 10px -1px} diff --git a/modules/blockuserinfo/blockuserinfo.php b/modules/blockuserinfo/blockuserinfo.php index 6ac696863..6ea18ea89 100644 --- a/modules/blockuserinfo/blockuserinfo.php +++ b/modules/blockuserinfo/blockuserinfo.php @@ -33,7 +33,7 @@ class BlockUserInfo extends Module { $this->name = 'blockuserinfo'; $this->tab = 'front_office_features'; - $this->version = 0.1; + $this->version = 0.2; $this->author = 'PrestaShop'; $this->need_instance = 0; @@ -45,7 +45,7 @@ class BlockUserInfo extends Module public function install() { - return (parent::install() AND $this->registerHook('top') AND $this->registerHook('header')); + return (parent::install() && $this->registerHook('displayNav') && $this->registerHook('displayNav') && $this->registerHook('displayHeader')); } /** @@ -54,7 +54,7 @@ class BlockUserInfo extends Module * @param array $params Parameters * @return string Content */ - public function hookTop($params) + public function hookDisplayTop($params) { if (!$this->active) return; @@ -71,10 +71,13 @@ class BlockUserInfo extends Module return $this->display(__FILE__, 'blockuserinfo.tpl'); } - public function hookHeader($params) + public function hookDisplayHeader($params) { $this->context->controller->addCSS(($this->_path).'blockuserinfo.css', 'all'); } -} - + public function hookDisplayNav($params) + { + return $this->display(__FILE__, 'nav.tpl'); + } +} \ No newline at end of file diff --git a/modules/blockuserinfo/config.xml b/modules/blockuserinfo/config.xml index bce2a3a27..d439c1db3 100755 --- a/modules/blockuserinfo/config.xml +++ b/modules/blockuserinfo/config.xml @@ -2,7 +2,7 @@ blockuserinfo - + diff --git a/modules/blockuserinfo/nav.tpl b/modules/blockuserinfo/nav.tpl new file mode 100644 index 000000000..5c71c4990 --- /dev/null +++ b/modules/blockuserinfo/nav.tpl @@ -0,0 +1,14 @@ + +{if $logged} + +{/if} + + \ No newline at end of file diff --git a/modules/blockuserinfo/upgrade/install-0.2.php b/modules/blockuserinfo/upgrade/install-0.2.php new file mode 100644 index 000000000..8d71d3742 --- /dev/null +++ b/modules/blockuserinfo/upgrade/install-0.2.php @@ -0,0 +1,9 @@ +registerHook('displayNav')); +} diff --git a/modules/homeslider/homeslider.php b/modules/homeslider/homeslider.php index 04a4ecae3..9d7458de9 100644 --- a/modules/homeslider/homeslider.php +++ b/modules/homeslider/homeslider.php @@ -60,7 +60,7 @@ class HomeSlider extends Module public function install() { /* Adds Module */ - if (parent::install() && $this->registerHook('displayTopColumn') && $this->registerHook('actionShopDataDuplication')) + if (parent::install() && $this->registerHook('displayHeader') && $this->registerHook('displayTopColumn') && $this->registerHook('actionShopDataDuplication')) { /* Sets up configuration */ $res = Configuration::updateValue('HOMESLIDER_WIDTH', '779'); @@ -660,16 +660,25 @@ class HomeSlider extends Module return true; } - public function hookdisplayTopColumn() + public function hookdisplayHeader($params) + { + $this->context->controller->addJS($this->_path.'js/jquery.bxSlider.min.js'); + $this->context->controller->addCSS($this->_path.'bx_styles.css'); + $this->context->controller->addJS($this->_path.'js/homeslider.js'); + } + + public function hookdisplayTop($params) + { + return $this->hookdisplayTopColumn(); + } + + public function hookdisplayTopColumn($params) { if ($this->context->smarty->tpl_vars['page_name'] != 'index' || $this->context->getMobileDevice() != false) return false; if(!$this->_prepareHook()) return false; - $this->context->controller->addJS($this->_path.'js/jquery.bxSlider.min.js'); - $this->context->controller->addCSS($this->_path.'bx_styles.css'); - $this->context->controller->addJS($this->_path.'js/homeslider.js'); return $this->display(__FILE__, 'homeslider.tpl', $this->getCacheId()); } diff --git a/modules/homeslider/upgrade/install-1.2.3.php b/modules/homeslider/upgrade/install-1.2.3.php index 017e14f10..f27cbe931 100644 --- a/modules/homeslider/upgrade/install-1.2.3.php +++ b/modules/homeslider/upgrade/install-1.2.3.php @@ -5,5 +5,5 @@ if (!defined('_PS_VERSION_')) function upgrade_module_1_2_3($object) { - return ($object->unregisterHook('displayHome') && $object->registerHook('displayTopColumn')); + return ($object->unregisterHook('displayHome') && $object->registerHook('displayHeader') && $object->registerHook('displayTopColumn')); } \ No newline at end of file diff --git a/modules/themeconfigurator/sass/theme-style1.scss b/modules/themeconfigurator/sass/theme-style1.scss index 993336649..9711e0b9c 100644 --- a/modules/themeconfigurator/sass/theme-style1.scss +++ b/modules/themeconfigurator/sass/theme-style1.scss @@ -24,13 +24,13 @@ body{background:#282828} #currencies-block-top, #languages-block-top, - .header-row #header_user_info{ + .header-row .header_user_info{ border-color:#c6c6c6; } #currencies-block-top div.current, #languages-block-top div.current, - .header-row #header_user_info a + .header-row .header_user_info a { color:$color1-style1; &:hover, &.active { @@ -74,7 +74,7 @@ body{background:#282828} background:$color1-style1} } - #header_right #header_user #shopping_cart a{ + #header_user #shopping_cart a{ background:$color-style1; color:white; &:after{color:white} diff --git a/modules/themeconfigurator/sass/theme-style2.scss b/modules/themeconfigurator/sass/theme-style2.scss index bf0198bf1..945c5ff65 100644 --- a/modules/themeconfigurator/sass/theme-style2.scss +++ b/modules/themeconfigurator/sass/theme-style2.scss @@ -25,13 +25,13 @@ body{background:#232323} #currencies-block-top, #languages-block-top, - .header-row #header_user_info{ + .header-row .header_user_info{ border-color:#656565; } #currencies-block-top div.current, #languages-block-top div.current, - .header-row #header_user_info a + .header-row .header_user_info a { color:white; &:hover, &.active { @@ -84,7 +84,7 @@ body{background:#232323} - #header_right #header_user #shopping_cart a{ + #header_user #shopping_cart a{ background:$color-style1; color:white; &:after{color:white} diff --git a/modules/themeconfigurator/sass/theme-style3.scss b/modules/themeconfigurator/sass/theme-style3.scss index e38d6b14a..709c09031 100644 --- a/modules/themeconfigurator/sass/theme-style3.scss +++ b/modules/themeconfigurator/sass/theme-style3.scss @@ -23,13 +23,13 @@ body{background:$color1-style1} #currencies-block-top, #languages-block-top, - .header-row #header_user_info{ + .header-row .header_user_info{ border-color:#515151; } #currencies-block-top div.current, #languages-block-top div.current, - .header-row #header_user_info a + .header-row .header_user_info a { color:white; &:hover, &.active { @@ -86,7 +86,7 @@ body{background:$color1-style1} #search_block_top #search_query_top{color:#686666} - #header_right #header_user #shopping_cart a{ + #header_user #shopping_cart a{ background:$color-style1; color:white; text-shadow:0 1px #567931; diff --git a/modules/themeconfigurator/sass/theme-style8.scss b/modules/themeconfigurator/sass/theme-style8.scss index 93fcc3f88..87ec9f4d2 100644 --- a/modules/themeconfigurator/sass/theme-style8.scss +++ b/modules/themeconfigurator/sass/theme-style8.scss @@ -26,13 +26,13 @@ body{background:#282828} #currencies-block-top, #languages-block-top, - .header-row #header_user_info{ + .header-row .header_user_info{ border-color:#515151; } #currencies-block-top div.current, #languages-block-top div.current, - .header-row #header_user_info a + .header-row .header_user_info a { color:$color1-style1; &:hover, &.active { @@ -76,7 +76,7 @@ body{background:#282828} background:$color2-style1} } - #header_right #header_user #shopping_cart a{ + #header_user #shopping_cart a{ background:$color-style1; color:white; &:after{color:white} diff --git a/modules/themeconfigurator/sass/theme2.scss b/modules/themeconfigurator/sass/theme2.scss index e2183f9dc..026afe528 100644 --- a/modules/themeconfigurator/sass/theme2.scss +++ b/modules/themeconfigurator/sass/theme2.scss @@ -24,13 +24,13 @@ body{background:#282828} #currencies-block-top, #languages-block-top, - .header-row #header_user_info{ + .header-row .header_user_info{ border-color:#c6c6c6; } #currencies-block-top div.current, #languages-block-top div.current, - .header-row #header_user_info a + .header-row .header_user_info a { color:$color1-style1; &:hover, &.active { @@ -74,7 +74,7 @@ body{background:#282828} background:$color1-style1} } - #header_right #header_user #shopping_cart a{ + #header_user #shopping_cart a{ background:$color-style1; color:white; &:after{color:white} diff --git a/modules/themeconfigurator/sass/theme3.scss b/modules/themeconfigurator/sass/theme3.scss index 91de21c11..3cb2768f1 100644 --- a/modules/themeconfigurator/sass/theme3.scss +++ b/modules/themeconfigurator/sass/theme3.scss @@ -28,13 +28,13 @@ body{background:#3c281c} #currencies-block-top, #languages-block-top, - .header-row #header_user_info{ + .header-row .header_user_info{ border-color:#656565; } #currencies-block-top div.current, #languages-block-top div.current, - .header-row #header_user_info a + .header-row .header_user_info a { color:#fff; &:hover, &.active { @@ -94,7 +94,7 @@ body{background:#3c281c} - #header_right #header_user #shopping_cart a{ + #header_user #shopping_cart a{ background:$color1-style1; color:white; &:after{color:white} diff --git a/modules/themeconfigurator/sass/theme4.scss b/modules/themeconfigurator/sass/theme4.scss index c93b3c387..c30dee8d1 100644 --- a/modules/themeconfigurator/sass/theme4.scss +++ b/modules/themeconfigurator/sass/theme4.scss @@ -29,13 +29,13 @@ body{background:#1b1b1b} #currencies-block-top, #languages-block-top, - .header-row #header_user_info{ + .header-row .header_user_info{ border-color:#656565; } #currencies-block-top div.current, #languages-block-top div.current, - .header-row #header_user_info a + .header-row .header_user_info a { color:$color1-style1; &:hover, &.active { @@ -100,7 +100,7 @@ body{background:#1b1b1b} - #header_right #header_user #shopping_cart a{ + #header_user #shopping_cart a{ background:$color-style1; color:white; &:after{color:white} diff --git a/modules/themeconfigurator/sass/theme5.scss b/modules/themeconfigurator/sass/theme5.scss index 786cf28cd..624aef524 100644 --- a/modules/themeconfigurator/sass/theme5.scss +++ b/modules/themeconfigurator/sass/theme5.scss @@ -28,13 +28,13 @@ body{background:#181212} #currencies-block-top, #languages-block-top, - .header-row #header_user_info{ + .header-row .header_user_info{ border-color:#515151; } #currencies-block-top div.current, #languages-block-top div.current, - .header-row #header_user_info a + .header-row .header_user_info a { color:$color1-style1; &:hover, &.active { @@ -100,7 +100,7 @@ body{background:#181212} - #header_right #header_user #shopping_cart a{ + #header_user #shopping_cart a{ background:$color-style1; color:white; text-shadow:$color-shadow; diff --git a/modules/themeconfigurator/sass/theme6.scss b/modules/themeconfigurator/sass/theme6.scss index dcdbd2076..4b7ed13da 100644 --- a/modules/themeconfigurator/sass/theme6.scss +++ b/modules/themeconfigurator/sass/theme6.scss @@ -25,13 +25,13 @@ $color-shadow: 0 1px #567931; #currencies-block-top, #languages-block-top, - .header-row #header_user_info{ + .header-row .header_user_info{ border-color:#515151; } #currencies-block-top div.current, #languages-block-top div.current, - .header-row #header_user_info a + .header-row .header_user_info a { color:white; &:hover, &.active { @@ -87,7 +87,7 @@ $color-shadow: 0 1px #567931; #search_block_top #search_query_top{color:#686666} - #header_right #header_user #shopping_cart a{ + #header_user #shopping_cart a{ background:$color-style1; color:white; text-shadow:$color-shadow; diff --git a/modules/themeconfigurator/sass/theme7.scss b/modules/themeconfigurator/sass/theme7.scss index e01c4b83b..4059aa8e6 100644 --- a/modules/themeconfigurator/sass/theme7.scss +++ b/modules/themeconfigurator/sass/theme7.scss @@ -28,13 +28,13 @@ body{background:#282828} #currencies-block-top, #languages-block-top, - .header-row #header_user_info{ + .header-row .header_user_info{ border-color:#515151; } #currencies-block-top div.current, #languages-block-top div.current, - .header-row #header_user_info a + .header-row .header_user_info a { color:$color1-style1; &:hover, &.active { @@ -95,7 +95,7 @@ body{background:#282828} - #header_right #header_user #shopping_cart a{ + #header_user #shopping_cart a{ background:$color-style1; color:white; text-shadow:$color-shadow; diff --git a/modules/themeconfigurator/sass/theme8.scss b/modules/themeconfigurator/sass/theme8.scss index 05f20dd70..83bff12d3 100644 --- a/modules/themeconfigurator/sass/theme8.scss +++ b/modules/themeconfigurator/sass/theme8.scss @@ -28,14 +28,14 @@ body{background:#282828} #currencies-block-top, #languages-block-top, - .header-row #header_user_info{ + .header-row .header_user_info{ border-color:#515151; } #currencies-block-top div.current, #languages-block-top div.current, - .header-row #header_user_info a + .header-row .header_user_info a { color:$color1-style1; &:hover, &.active { @@ -101,7 +101,7 @@ body{background:#282828} - #header_right #header_user #shopping_cart a{ + #header_user #shopping_cart a{ background:$color-style1; color:white; text-shadow:$color-shadow; diff --git a/modules/themeconfigurator/sass/theme9.scss b/modules/themeconfigurator/sass/theme9.scss index 01e0de900..b1eda4a28 100644 --- a/modules/themeconfigurator/sass/theme9.scss +++ b/modules/themeconfigurator/sass/theme9.scss @@ -28,14 +28,14 @@ body{background:#282828} } #currencies-block-top, #languages-block-top, - .header-row #header_user_info{ + .header-row .header_user_info{ border-color:#515151; } #currencies-block-top div.current, #languages-block-top div.current, - .header-row #header_user_info a + .header-row .header_user_info a { color:$color1-style1; &:hover, &.active { @@ -101,7 +101,7 @@ body{background:#282828} - #header_right #header_user #shopping_cart a{ + #header_user #shopping_cart a{ background:$color-style1; color:white; text-shadow:$color-shadow; diff --git a/modules/themeconfigurator/themeconfigurator.php b/modules/themeconfigurator/themeconfigurator.php index c9cf4df17..4e0f0835a 100644 --- a/modules/themeconfigurator/themeconfigurator.php +++ b/modules/themeconfigurator/themeconfigurator.php @@ -203,7 +203,12 @@ class ThemeConfigurator extends Module } } - public function hookdisplayTopColumn() + public function hookdisplayTopColumn($params) + { + return $this->hookdisplayTop($params); + } + + public function hookdisplayTop($params) { if ((int)Tools::getValue('live_configurator', 0) == 1) { diff --git a/themes/default-bootstrap/css/global.css b/themes/default-bootstrap/css/global.css index bcef03df2..b5fc35e08 100644 --- a/themes/default-bootstrap/css/global.css +++ b/themes/default-bootstrap/css/global.css @@ -5295,6 +5295,7 @@ div.star a:hover { background: white; } #header .header-row { background: #333333; } + #header .header-row.container {background:none; position:relative; z-index:1;} #header .header-row .shop-phone { display: block; padding: 5px 0 10px; } @@ -5308,21 +5309,23 @@ div.star a:hover { padding-right: 7px; } #header .header-row .shop-phone strong { color: white; } - #header .header-row #header_user_info { - float: right; + #header .header-row nav { + float: right; } + #header .header-row .header_user_info { + float: left; border-left: 1px solid #515151; border-right: 1px solid #515151; } @media (max-width: 479px) { - #header .header-row #header_user_info { + #header .header-row .header_user_info { width: 25%; text-align: center; } } - #header .header-row #header_user_info a { + #header .header-row .header_user_info a { color: white; font-weight: bold; display: block; padding: 8px 9px 11px 8px; } @media (max-width: 479px) { - #header .header-row #header_user_info a { + #header .header-row .header_user_info a { font-size: 11px; } } #header .header-row-2 { position: relative; @@ -5347,8 +5350,6 @@ div.star a:hover { left: 50%; margin-left: -100px; top: 20px; } } - #header #header_right { - position: relative; } #header #currencies-block-top, #header #languages-block-top { float: right; @@ -5440,13 +5441,13 @@ div.star a:hover { padding-left: 5px; padding-right: 5px; } } #header #contact-link a, - #header .header-row #header_user_info a, + #header .header-row .header_user_info a, #header #currencies-block-top div.current, #header #languages-block-top div.current { cursor: pointer; } #header #contact-link a:hover, #header #contact-link a.active, - #header .header-row #header_user_info a:hover, - #header .header-row #header_user_info a.active, + #header .header-row .header_user_info a:hover, + #header .header-row .header_user_info a.active, #header #currencies-block-top div.current:hover, #header #currencies-block-top div.current.active, #header #languages-block-top div.current:hover, diff --git a/themes/default-bootstrap/css/modules/blockuserinfo/blockuserinfo.css b/themes/default-bootstrap/css/modules/blockuserinfo/blockuserinfo.css index af97ffdfd..4876a1169 100644 --- a/themes/default-bootstrap/css/modules/blockuserinfo/blockuserinfo.css +++ b/themes/default-bootstrap/css/modules/blockuserinfo/blockuserinfo.css @@ -1,16 +1,16 @@ /* block top user information */ -#header_right #header_user { +#header_user { clear: both; float: right; margin-top: 50px; } @media (min-width: 480px) and (max-width: 767px) { - #header_right #header_user { + #header_user { margin-top: 25px; } } @media (max-width: 479px) { - #header_right #header_user { + #header_user { float: none; margin-left: auto; margin-right: auto; @@ -18,7 +18,7 @@ width: 270px; } } -#header_right #header_user #shopping_cart a { +#header_user #shopping_cart a { padding: 7px 10px 14px 16px; background: #333333; width: 270px; @@ -29,21 +29,21 @@ overflow: hidden; } @media (min-width: 768px) and (max-width: 991px) { - #header_right #header_user #shopping_cart a { + #header_user #shopping_cart a { width: 190px; } } @media (min-width: 768px) and (max-width: 991px) { - #header_right #header_user #shopping_cart a span.ajax_cart_product_txt, #header_right #header_user #shopping_cart a span.ajax_cart_product_txt_s { + #header_user #shopping_cart a span.ajax_cart_product_txt, #header_user #shopping_cart a span.ajax_cart_product_txt_s { display: none !important; } } -#header_right #header_user #shopping_cart a b { +#header_user #shopping_cart a b { color: white; font: 600 18px/22px "Open Sans", sans-serif; padding-right: 5px; } -#header_right #header_user #shopping_cart a:before { +#header_user #shopping_cart a:before { content: ""; font-family: "FontAwesome"; display: inline-block; @@ -52,7 +52,7 @@ color: white; padding-right: 15px; } -#header_right #header_user #shopping_cart a:after { +#header_user #shopping_cart a:after { content: ""; font-family: "FontAwesome"; display: inline-block; @@ -61,6 +61,6 @@ color: #686666; padding: 6px 0 0 0; } -#header_right #header_user #shopping_cart .ajax_cart_total { +#header_user #shopping_cart .ajax_cart_total { display: none !important; } diff --git a/themes/default-bootstrap/css/theme2.css b/themes/default-bootstrap/css/theme2.css index 2f692e461..d755946bd 100644 --- a/themes/default-bootstrap/css/theme2.css +++ b/themes/default-bootstrap/css/theme2.css @@ -22,19 +22,19 @@ body { } #header #currencies-block-top, #header #languages-block-top, -#header .header-row #header_user_info { +#header .header-row .header_user_info { border-color: #c6c6c6; } #header #currencies-block-top div.current, #header #languages-block-top div.current, -#header .header-row #header_user_info a { +#header .header-row .header_user_info a { color: #333333; } #header #currencies-block-top div.current:hover, #header #currencies-block-top div.current.active, #header #languages-block-top div.current:hover, #header #languages-block-top div.current.active, -#header .header-row #header_user_info a:hover, -#header .header-row #header_user_info a.active { +#header .header-row .header_user_info a:hover, +#header .header-row .header_user_info a.active { background: #b7b7b7; color: white; } @@ -69,14 +69,14 @@ body { background: #333333; } -#header_right #header_user #shopping_cart a { +#header_user #shopping_cart a { background: #f44051; color: white; } -#header_right #header_user #shopping_cart a:after { +#header_user #shopping_cart a:after { color: white; } -#header_right #header_user #shopping_cart a:hover { +#header_user #shopping_cart a:hover { color: white; background: #333333; } diff --git a/themes/default-bootstrap/css/theme3.css b/themes/default-bootstrap/css/theme3.css index 5e9f0b732..91a8e6068 100644 --- a/themes/default-bootstrap/css/theme3.css +++ b/themes/default-bootstrap/css/theme3.css @@ -23,19 +23,19 @@ body { } #header #currencies-block-top, #header #languages-block-top, -#header .header-row #header_user_info { +#header .header-row .header_user_info { border-color: #656565; } #header #currencies-block-top div.current, #header #languages-block-top div.current, -#header .header-row #header_user_info a { +#header .header-row .header_user_info a { color: #fff; } #header #currencies-block-top div.current:hover, #header #currencies-block-top div.current.active, #header #languages-block-top div.current:hover, #header #languages-block-top div.current.active, -#header .header-row #header_user_info a:hover, -#header .header-row #header_user_info a.active { +#header .header-row .header_user_info a:hover, +#header .header-row .header_user_info a.active { background: #878872; color: white; } @@ -84,14 +84,14 @@ body { color: #686666; } -#header_right #header_user #shopping_cart a { +#header_user #shopping_cart a { background: #878872; color: white; } -#header_right #header_user #shopping_cart a:after { +#header_user #shopping_cart a:after { color: white; } -#header_right #header_user #shopping_cart a:hover { +#header_user #shopping_cart a:hover { color: white; text-shadow: 0 1px #333; background: #333333; diff --git a/themes/default-bootstrap/css/theme4.css b/themes/default-bootstrap/css/theme4.css index 7ace7e45e..ce913443b 100644 --- a/themes/default-bootstrap/css/theme4.css +++ b/themes/default-bootstrap/css/theme4.css @@ -23,19 +23,19 @@ body { } #header #currencies-block-top, #header #languages-block-top, -#header .header-row #header_user_info { +#header .header-row .header_user_info { border-color: #656565; } #header #currencies-block-top div.current, #header #languages-block-top div.current, -#header .header-row #header_user_info a { +#header .header-row .header_user_info a { color: white; } #header #currencies-block-top div.current:hover, #header #currencies-block-top div.current.active, #header #languages-block-top div.current:hover, #header #languages-block-top div.current.active, -#header .header-row #header_user_info a:hover, -#header .header-row #header_user_info a.active { +#header .header-row .header_user_info a:hover, +#header .header-row .header_user_info a.active { background: #eac12d; color: white; } @@ -89,14 +89,14 @@ body { color: #686666; } -#header_right #header_user #shopping_cart a { +#header_user #shopping_cart a { background: #eac12d; color: white; } -#header_right #header_user #shopping_cart a:after { +#header_user #shopping_cart a:after { color: white; } -#header_right #header_user #shopping_cart a:hover { +#header_user #shopping_cart a:hover { color: white; background: #333; } diff --git a/themes/default-bootstrap/css/theme5.css b/themes/default-bootstrap/css/theme5.css index 3b10719b0..6e6a48e6a 100644 --- a/themes/default-bootstrap/css/theme5.css +++ b/themes/default-bootstrap/css/theme5.css @@ -22,19 +22,19 @@ body { } #header #currencies-block-top, #header #languages-block-top, -#header .header-row #header_user_info { +#header .header-row .header_user_info { border-color: #515151; } #header #currencies-block-top div.current, #header #languages-block-top div.current, -#header .header-row #header_user_info a { +#header .header-row .header_user_info a { color: white; } #header #currencies-block-top div.current:hover, #header #currencies-block-top div.current.active, #header #languages-block-top div.current:hover, #header #languages-block-top div.current.active, -#header .header-row #header_user_info a:hover, -#header .header-row #header_user_info a.active { +#header .header-row .header_user_info a:hover, +#header .header-row .header_user_info a.active { background: #b04445; color: white; } @@ -90,15 +90,15 @@ body { color: #686666; } -#header_right #header_user #shopping_cart a { +#header_user #shopping_cart a { background: #b04445; color: white; text-shadow: 0 1px #8b3637; } -#header_right #header_user #shopping_cart a:after { +#header_user #shopping_cart a:after { color: white; } -#header_right #header_user #shopping_cart a:hover { +#header_user #shopping_cart a:hover { color: white; text-shadow: 0 1px #333; background: #333333; diff --git a/themes/default-bootstrap/css/theme6.css b/themes/default-bootstrap/css/theme6.css index 4c14f4c32..800f078bc 100644 --- a/themes/default-bootstrap/css/theme6.css +++ b/themes/default-bootstrap/css/theme6.css @@ -22,19 +22,19 @@ body { } #header #currencies-block-top, #header #languages-block-top, -#header .header-row #header_user_info { +#header .header-row .header_user_info { border-color: #515151; } #header #currencies-block-top div.current, #header #languages-block-top div.current, -#header .header-row #header_user_info a { +#header .header-row .header_user_info a { color: white; } #header #currencies-block-top div.current:hover, #header #currencies-block-top div.current.active, #header #languages-block-top div.current:hover, #header #languages-block-top div.current.active, -#header .header-row #header_user_info a:hover, -#header .header-row #header_user_info a.active { +#header .header-row .header_user_info a:hover, +#header .header-row .header_user_info a.active { background: #2b2b2b; color: white; } @@ -78,15 +78,15 @@ body { color: #686666; } -#header_right #header_user #shopping_cart a { +#header_user #shopping_cart a { background: #719f41; color: white; text-shadow: 0 1px #567931; } -#header_right #header_user #shopping_cart a:after { +#header_user #shopping_cart a:after { color: white; } -#header_right #header_user #shopping_cart a:hover { +#header_user #shopping_cart a:hover { color: white; text-shadow: 0 1px #333; background: #333333; diff --git a/themes/default-bootstrap/css/theme7.css b/themes/default-bootstrap/css/theme7.css index 223b390d5..4bc8a072d 100644 --- a/themes/default-bootstrap/css/theme7.css +++ b/themes/default-bootstrap/css/theme7.css @@ -22,19 +22,19 @@ body { } #header #currencies-block-top, #header #languages-block-top, -#header .header-row #header_user_info { +#header .header-row .header_user_info { border-color: #515151; } #header #currencies-block-top div.current, #header #languages-block-top div.current, -#header .header-row #header_user_info a { +#header .header-row .header_user_info a { color: white; } #header #currencies-block-top div.current:hover, #header #currencies-block-top div.current.active, #header #languages-block-top div.current:hover, #header #languages-block-top div.current.active, -#header .header-row #header_user_info a:hover, -#header .header-row #header_user_info a.active { +#header .header-row .header_user_info a:hover, +#header .header-row .header_user_info a.active { background: #327082; color: white; } @@ -85,15 +85,15 @@ body { color: #686666; } -#header_right #header_user #shopping_cart a { +#header_user #shopping_cart a { background: #327082; color: white; text-shadow: 0 1px #265563; } -#header_right #header_user #shopping_cart a:after { +#header_user #shopping_cart a:after { color: white; } -#header_right #header_user #shopping_cart a:hover { +#header_user #shopping_cart a:hover { color: white; text-shadow: 0 1px #333; background: #333333; diff --git a/themes/default-bootstrap/css/theme8.css b/themes/default-bootstrap/css/theme8.css index 6dc6e7974..27591a322 100644 --- a/themes/default-bootstrap/css/theme8.css +++ b/themes/default-bootstrap/css/theme8.css @@ -22,19 +22,19 @@ body { } #header #currencies-block-top, #header #languages-block-top, -#header .header-row #header_user_info { +#header .header-row .header_user_info { border-color: #515151; } #header #currencies-block-top div.current, #header #languages-block-top div.current, -#header .header-row #header_user_info a { +#header .header-row .header_user_info a { color: white; } #header #currencies-block-top div.current:hover, #header #currencies-block-top div.current.active, #header #languages-block-top div.current:hover, #header #languages-block-top div.current.active, -#header .header-row #header_user_info a:hover, -#header .header-row #header_user_info a.active { +#header .header-row .header_user_info a:hover, +#header .header-row .header_user_info a.active { background: #2b2b2b; color: white; } @@ -85,15 +85,15 @@ body { color: #686666; } -#header_right #header_user #shopping_cart a { +#header_user #shopping_cart a { background: #43bebd; color: white; text-shadow: 0 1px #379c9c; } -#header_right #header_user #shopping_cart a:after { +#header_user #shopping_cart a:after { color: white; } -#header_right #header_user #shopping_cart a:hover { +#header_user #shopping_cart a:hover { color: white; text-shadow: 0 1px #333; background: #333333; diff --git a/themes/default-bootstrap/css/theme9.css b/themes/default-bootstrap/css/theme9.css index f3794b675..8a011ff87 100644 --- a/themes/default-bootstrap/css/theme9.css +++ b/themes/default-bootstrap/css/theme9.css @@ -22,19 +22,19 @@ body { } #header #currencies-block-top, #header #languages-block-top, -#header .header-row #header_user_info { +#header .header-row .header_user_info { border-color: #515151; } #header #currencies-block-top div.current, #header #languages-block-top div.current, -#header .header-row #header_user_info a { +#header .header-row .header_user_info a { color: white; } #header #currencies-block-top div.current:hover, #header #currencies-block-top div.current.active, #header #languages-block-top div.current:hover, #header #languages-block-top div.current.active, -#header .header-row #header_user_info a:hover, -#header .header-row #header_user_info a.active { +#header .header-row .header_user_info a:hover, +#header .header-row .header_user_info a.active { background: #2b2b2b; color: white; } @@ -85,15 +85,15 @@ body { color: #686666; } -#header_right #header_user #shopping_cart a { +#header_user #shopping_cart a { background: #eea200; color: white; text-shadow: 0 1px #b57b00; } -#header_right #header_user #shopping_cart a:after { +#header_user #shopping_cart a:after { color: white; } -#header_right #header_user #shopping_cart a:hover { + #header_user #shopping_cart a:hover { color: white; text-shadow: 0 1px #333; background: #333333; diff --git a/themes/default-bootstrap/header.tpl b/themes/default-bootstrap/header.tpl index eba5859cd..51f35ae56 100644 --- a/themes/default-bootstrap/header.tpl +++ b/themes/default-bootstrap/header.tpl @@ -46,7 +46,6 @@ - @@ -104,98 +103,21 @@
-
+
{if $page_name !='index' && $page_name !='pagenotfound'} @@ -203,14 +125,14 @@ {/if}
- {$HOOK_TOP_COLUMN} + {hook h="displayTopColumn"}
+
+
{if isset($left_column_size) && !empty($left_column_size)} -
{$HOOK_LEFT_COLUMN}
{/if} -
{/if} \ No newline at end of file diff --git a/themes/default-bootstrap/js/modules/blockcart/ajax-cart.js b/themes/default-bootstrap/js/modules/blockcart/ajax-cart.js index 23c36ec02..043cd19f3 100644 --- a/themes/default-bootstrap/js/modules/blockcart/ajax-cart.js +++ b/themes/default-bootstrap/js/modules/blockcart/ajax-cart.js @@ -726,23 +726,23 @@ $(document).ready(function() $("#shopping_cart a:first").hover( function() { if (ajaxCart.nb_total_products > 0 || cart_qty > 0) - $("#header_right #cart_block").stop(true, true).slideDown(450); + $("#header #cart_block").stop(true, true).slideDown(450); }, function() { setTimeout(function() { if (!shopping_cart.isHoveringOver() && !cart_block.isHoveringOver()) - $("#header_right #cart_block").stop(true, true).slideUp(450); + $("#header #cart_block").stop(true, true).slideUp(450); }, 200); } ); - $("#header_right #cart_block").hover( + $("#header #cart_block").hover( function() { }, function() { setTimeout(function() { if (!shopping_cart.isHoveringOver()) - $("#header_right #cart_block").stop(true, true).slideUp(450); + $("#header #cart_block").stop(true, true).slideUp(450); }, 200); } ); diff --git a/themes/default-bootstrap/modules/blockuserinfo/nav.tpl b/themes/default-bootstrap/modules/blockuserinfo/nav.tpl new file mode 100644 index 000000000..8c074d1c3 --- /dev/null +++ b/themes/default-bootstrap/modules/blockuserinfo/nav.tpl @@ -0,0 +1,14 @@ + +{if $logged} + +{/if} + + \ No newline at end of file diff --git a/themes/default-bootstrap/sass/global.scss b/themes/default-bootstrap/sass/global.scss index 279eae389..16a43981f 100644 --- a/themes/default-bootstrap/sass/global.scss +++ b/themes/default-bootstrap/sass/global.scss @@ -1648,6 +1648,8 @@ div.star_hover a, div.star a:hover { background-position: 0 -32px } .header-row { background:$dark-background; + + .container {background:none; position:relative; z-index:1;} .shop-phone { display:block; @@ -1665,9 +1667,12 @@ div.star_hover a, div.star a:hover { background-position: 0 -32px } strong {color:$light-text-color;} } + + .header-row nav { + float: right; } - #header_user_info { - float:right; + .header_user_info { + float:left; border-left:1px solid #515151; border-right:1px solid #515151; @media (max-width: $screen-xs - 1) { // max 479px @@ -1685,7 +1690,6 @@ div.star_hover a, div.star a:hover { background-position: 0 -32px } } } } - .header-row-2 { position:relative; z-index:1;} #header_logo { position: absolute; left:0; @@ -1707,9 +1711,6 @@ div.star_hover a, div.star a:hover { background-position: 0 -32px } top:20px; } } - #header_right { - position:relative; - } /* languages/currencies */ #currencies-block-top, #languages-block-top { float:right; @@ -1803,7 +1804,7 @@ div.star_hover a, div.star a:hover { background-position: 0 -32px } } } } - #contact-link a, .header-row #header_user_info a, #currencies-block-top div.current, #languages-block-top div.current { + #contact-link a, .header-row .header_user_info a, #currencies-block-top div.current, #languages-block-top div.current { cursor:pointer; &:hover, &.active { diff --git a/themes/default-bootstrap/sass/modules/blockuserinfo/blockuserinfo.scss b/themes/default-bootstrap/sass/modules/blockuserinfo/blockuserinfo.scss index 8b2e104c3..172883816 100644 --- a/themes/default-bootstrap/sass/modules/blockuserinfo/blockuserinfo.scss +++ b/themes/default-bootstrap/sass/modules/blockuserinfo/blockuserinfo.scss @@ -1,71 +1,69 @@ @import '../../_theme_variables'; /* block top user information */ -#header_right { + +#header_user { - #header_user { + clear:both; + float: right; + margin-top:50px; + @media (min-width: $screen-xs) and (max-width: $screen-xs-max) { // min 480px max 767px + margin-top:25px; + } + @media (max-width: $screen-xs - 1) { // max 479px + float: none; + margin-left: auto; + margin-right: auto; + margin-top: 95px; + width: 270px; + } + + #shopping_cart { - clear:both; - float: right; - margin-top:50px; - @media (min-width: $screen-xs) and (max-width: $screen-xs-max) { // min 480px max 767px - margin-top:25px; - } - @media (max-width: $screen-xs - 1) { // max 479px - float: none; - margin-left: auto; - margin-right: auto; - margin-top: 95px; - width: 270px; - } - - #shopping_cart { - - a { - padding:7px 10px 14px 16px; - background:$dark-background; - width: 270px; - display:block; - font-weight:bold; - color:#777777; - text-shadow:1px 1px rgba(0,0,0,0.2); - overflow:hidden; - @media (min-width: $screen-sm) and (max-width: $screen-sm-max) { // min 768px max 991px - width:190px; - } - span.ajax_cart_product_txt, span.ajax_cart_product_txt_s { - @media (min-width: $screen-sm) and (max-width: $screen-sm-max) { // min 768px max 991px - display:none !important; - } - } - - b { - color:$light-text-color; - font:600 18px/22px $font-custom; - padding-right:5px; - } - - &:before { - content:""; - font-family:$font-icon; - display:inline-block; - font-size:23px; - line-height:23px; - color:$light-text-color; - padding-right:15px; - } - - &:after { - content:""; - font-family:$font-icon; - display:inline-block; - float:right; - font-size:18px; - color:#686666; - padding:6px 0 0 0; - } + a { + padding:7px 10px 14px 16px; + background:$dark-background; + width: 270px; + display:block; + font-weight:bold; + color:#777777; + text-shadow:1px 1px rgba(0,0,0,0.2); + overflow:hidden; + @media (min-width: $screen-sm) and (max-width: $screen-sm-max) { // min 768px max 991px + width:190px; + } + span.ajax_cart_product_txt, span.ajax_cart_product_txt_s { + @media (min-width: $screen-sm) and (max-width: $screen-sm-max) { // min 768px max 991px + display:none !important; + } } - .ajax_cart_total { display:none !important; } + b { + color:$light-text-color; + font:600 18px/22px $font-custom; + padding-right:5px; + } + + &:before { + content:""; + font-family:$font-icon; + display:inline-block; + font-size:23px; + line-height:23px; + color:$light-text-color; + padding-right:15px; + } + + &:after { + content:""; + font-family:$font-icon; + display:inline-block; + float:right; + font-size:18px; + color:#686666; + padding:6px 0 0 0; + } } + + .ajax_cart_total { display:none !important; } } } \ No newline at end of file