1 |
1 |
<?php
|
2 |
2 |
/* --------------------------------------------------------------
|
3 |
|
modifier.show_left_column.php 2018-04-30 tw@gambio
|
|
3 |
modifier.show_left_column.php 2018-09-06
|
4 |
4 |
Gambio GmbH
|
5 |
5 |
http://www.gambio.de
|
6 |
6 |
Copyright (c) 2018 Gambio GmbH
|
... | ... | |
16 |
16 |
$applicationBottomExtenderComponent->init_page();
|
17 |
17 |
$page = $applicationBottomExtenderComponent->get_page();
|
18 |
18 |
|
19 |
|
$showOnIndex = $GLOBALS['coo_template_control']->findSettingValueByName('gx-index-full-width');
|
20 |
|
$showOnSearch = $GLOBALS['coo_template_control']->findSettingValueByName('gx-advanced-search-result-full-width');
|
21 |
|
$showOnContent = $GLOBALS['coo_template_control']->findSettingValueByName('gx-shop-content-full-width');
|
22 |
|
$showOnProductInfo = $GLOBALS['coo_template_control']->findSettingValueByName('gx-product-info-full-width');
|
23 |
|
$showOnProductListing = $GLOBALS['coo_template_control']->findSettingValueByName('gx-product-listing-full-width');
|
24 |
|
$showOnCart = $GLOBALS['coo_template_control']->findSettingValueByName('gx-shopping-cart-full-width');
|
25 |
|
$showOnWishlist = $GLOBALS['coo_template_control']->findSettingValueByName('gx-wishlist-full-width');
|
26 |
|
$showOnCheckout = $GLOBALS['coo_template_control']->findSettingValueByName('gx-checkout-full-width');
|
27 |
|
$showOnAccount = $GLOBALS['coo_template_control']->findSettingValueByName('gx-account-full-width');
|
|
19 |
$hideOnIndex = $GLOBALS['coo_template_control']->findSettingValueByName('gx-index-full-width');
|
|
20 |
$hideOnSearch = $GLOBALS['coo_template_control']->findSettingValueByName('gx-advanced-search-result-full-width');
|
|
21 |
$hideOnContent = $GLOBALS['coo_template_control']->findSettingValueByName('gx-shop-content-full-width');
|
|
22 |
$hideOnProductInfo = $GLOBALS['coo_template_control']->findSettingValueByName('gx-product-info-full-width');
|
|
23 |
$hideOnProductListing = $GLOBALS['coo_template_control']->findSettingValueByName('gx-product-listing-full-width');
|
|
24 |
$hideOnCart = $GLOBALS['coo_template_control']->findSettingValueByName('gx-shopping-cart-full-width');
|
|
25 |
$hideOnWishlist = $GLOBALS['coo_template_control']->findSettingValueByName('gx-wishlist-full-width');
|
|
26 |
$hideOnCheckout = $GLOBALS['coo_template_control']->findSettingValueByName('gx-checkout-full-width');
|
|
27 |
$hideOnAccount = $GLOBALS['coo_template_control']->findSettingValueByName('gx-account-full-width');
|
28 |
28 |
|
29 |
|
if (($page === 'Index' && !$showOnIndex)
|
30 |
|
|| ($page === 'Search' && !$showOnSearch)
|
31 |
|
|| ($page === 'Content' && !$showOnContent)
|
32 |
|
|| ($page === 'ProductInfo' && !$showOnProductInfo)
|
33 |
|
|| ($page === 'Cat' && !$showOnProductListing)
|
34 |
|
|| ($page === 'Cart' && !$showOnCart)
|
35 |
|
|| ($page === 'Wishlist' && !$showOnWishlist)
|
36 |
|
|| ($page === 'Checkout' && !$showOnCheckout)
|
37 |
|
|| (($page === 'Account' || $page === 'AccountHistory' || $page === 'AddressBookProcess') && !$showOnAccount)
|
|
29 |
if (($page === 'Index' && $hideOnIndex)
|
|
30 |
|| ($page === 'Search' && $hideOnSearch)
|
|
31 |
|| ($page === 'Content' && $hideOnContent)
|
|
32 |
|| ($page === 'ProductInfo' && $hideOnProductInfo)
|
|
33 |
|| ($page === 'Cat' && $hideOnProductListing)
|
|
34 |
|| ($page === 'Cart' && $hideOnCart)
|
|
35 |
|| ($page === 'Wishlist' && $hideOnWishlist)
|
|
36 |
|| ($page === 'Checkout' && $hideOnCheckout)
|
|
37 |
|| (($page === 'Account' || $page === 'AccountHistory' || $page === 'AddressBookProcess') && $hideOnAccount)
|
38 |
38 |
)
|
39 |
39 |
{
|
40 |
|
return true;
|
41 |
|
}
|
42 |
|
|
43 |
|
return false;
|
|
40 |
return false;
|
|
41 |
}
|
|
42 |
|
|
43 |
return true;
|
44 |
44 |
}
|