diff --git a/admin-dev/functions.php b/admin-dev/functions.php
index 314d2b867..bb090884e 100644
--- a/admin-dev/functions.php
+++ b/admin-dev/functions.php
@@ -185,10 +185,10 @@ function getPath($urlBase, $id_category, $path = '', $highlight = '', $categoryT
$edit = '
';
if ($category->id == 1)
- $edit = '
-
';
- $path = $edit.'
- '.$name.' > '.$path;
+ $edit = '
- +
{/foreach} @@ -163,11 +163,11 @@ {elseif $field['type'] == 'file'} {if isset($field['thumb']) && $field['thumb']} -'.$this->l('There is no page available!').'
', ), @@ -282,27 +280,31 @@ class AdminMetaControllerCore extends AdminController 'label' => $this->l('Page title:'), 'name' => 'title', 'lang' => true, - 'hint' => $this->l('Invalid characters:').' <>;=#{}', - 'desc' => $this->l('Title of this page'), - 'size' => 30 + 'hint' => array( + $this->l('Title of this page.'), + $this->l('Invalid characters:').' <>;=#{}' + ) ), array( 'type' => 'text', 'label' => $this->l('Meta description:'), 'name' => 'description', 'lang' => true, - 'hint' => $this->l('Invalid characters:').' <>;=#{}', - 'desc' => $this->l('A short description of your shop'), - 'size' => 50 + 'hint' => array( + $this->l('Invalid characters:').' <>;=#{}', + $this->l('A short description of your shop') + ) ), array( 'type' => 'tags', 'label' => $this->l('Meta keywords:'), 'name' => 'keywords', 'lang' => true, - 'hint' => $this->l('Invalid characters:').' <>;=#{}', - 'desc' => $this->l('List of keywords for search engines').' '.$this->l('To add "tags," click in the field, write something, and then press "Enter."'), - 'size' => 50 + 'hint' => array( + $this->l('Invalid characters:').' <>;=#{}', + $this->l('List of keywords for search engines'), + $this->l('To add "tags," click in the field, write something, and then press "Enter."') + ) ), array( 'type' => 'text', @@ -310,14 +312,15 @@ class AdminMetaControllerCore extends AdminController 'name' => 'url_rewrite', 'lang' => true, 'required' => true, - 'hint' => $this->l('Only letters and hyphens are allowed'), - 'desc' => $this->l('e.g. "contacts" for http://mysite.com/shop/contacts to redirect to http://mysite.com/shop/contact-form.php'), - 'size' => 50 + 'hint' => array( + $this->l('Only letters and hyphens are allowed'), + $this->l('e.g. "contacts" for http://mysite.com/shop/contacts to redirect to http://mysite.com/shop/contact-form.php'), + ) ), ), 'submit' => array( - 'title' => $this->l(' Save '), - 'class' => 'button' + 'title' => $this->l('Save'), + 'class' => 'btn btn-primary' ) ); return parent::renderForm(); diff --git a/controllers/admin/AdminOrderPreferencesController.php b/controllers/admin/AdminOrderPreferencesController.php index fdaa117f5..1ba5faf24 100644 --- a/controllers/admin/AdminOrderPreferencesController.php +++ b/controllers/admin/AdminOrderPreferencesController.php @@ -28,6 +28,7 @@ class AdminOrderPreferencesControllerCore extends AdminController { public function __construct() { + $this->bootstrap = true; $this->className = 'Configuration'; $this->table = 'configuration'; @@ -123,21 +124,21 @@ class AdminOrderPreferencesControllerCore extends AdminController 'fields' => array( 'PS_GIFT_WRAPPING' => array( 'title' => $this->l('Offer gift wrapping'), - 'desc' => $this->l('Suggest gift-wrapping to customers.'), + 'hint' => $this->l('Suggest gift-wrapping to customers.'), 'validation' => 'isBool', 'cast' => 'intval', 'type' => 'bool' ), 'PS_GIFT_WRAPPING_PRICE' => array( 'title' => $this->l('Gift-wrapping price'), - 'desc' => $this->l('Set a price for gift wrapping'), + 'hint' => $this->l('Set a price for gift wrapping'), 'validation' => 'isPrice', 'cast' => 'floatval', 'type' => 'price' ), 'PS_GIFT_WRAPPING_TAX_RULES_GROUP' => array( 'title' => $this->l('Gift-wrapping tax'), - 'desc' => $this->l('Set a tax for gift wrapping'), + 'hint' => $this->l('Set a tax for gift wrapping'), 'validation' => 'isInt', 'cast' => 'intval', 'type' => 'select', @@ -146,7 +147,7 @@ class AdminOrderPreferencesControllerCore extends AdminController ), 'PS_RECYCLABLE_PACK' => array( 'title' => $this->l('Offer recycled packaging'), - 'desc' => $this->l('Suggest recycled packaging to customer'), + 'hint' => $this->l('Suggest recycled packaging to customer'), 'validation' => 'isBool', 'cast' => 'intval', 'type' => 'bool' diff --git a/controllers/admin/AdminPPreferencesController.php b/controllers/admin/AdminPPreferencesController.php index ee69e93ea..2aa580b9a 100644 --- a/controllers/admin/AdminPPreferencesController.php +++ b/controllers/admin/AdminPPreferencesController.php @@ -28,6 +28,7 @@ class AdminPPreferencesControllerCore extends AdminController { public function __construct() { + $this->bootstrap = true; $this->className = 'Configuration'; $this->table = 'configuration'; @@ -39,7 +40,7 @@ class AdminPPreferencesControllerCore extends AdminController 'fields' => array( 'PS_CATALOG_MODE' => array( 'title' => $this->l('Catalog mode'), - 'desc' => $this->l('When active, all shopping features will be disabled.'), + 'hint' => $this->l('When active, all shopping features will be disabled.'), 'validation' => 'isBool', 'cast' => 'intval', 'required' => false, @@ -47,7 +48,7 @@ class AdminPPreferencesControllerCore extends AdminController ), 'PS_COMPARATOR_MAX_ITEM' => array( 'title' => $this->l('Product comparison'), - 'desc' => $this->l('Set the maximum number of products that can be selected for comparison.').' '.$this->l('Set to "0" to disable this feature.'), + 'hint' => $this->l('Set the maximum number of products that can be selected for comparison. Set to "0" to disable this feature.'), 'validation' => 'isUnsignedId', 'required' => true, 'cast' => 'intval', @@ -61,7 +62,7 @@ class AdminPPreferencesControllerCore extends AdminController ), 'PS_CART_REDIRECT' => array( 'title' => $this->l('Redirect after adding product to cart'), - 'desc' => $this->l('Only for non-AJAX versions of the cart.'), + 'hint' => $this->l('Only for non-AJAX versions of the cart.'), 'cast' => 'intval', 'show' => true, 'required' => false, @@ -74,7 +75,7 @@ class AdminPPreferencesControllerCore extends AdminController ), 'PS_PRODUCT_SHORT_DESC_LIMIT' => array( 'title' => $this->l('Max size of short description'), - 'desc' => $this->l('Set the maximum size of product short description (in characters).'), + 'hint' => $this->l('Set the maximum size of product short description (in characters).'), 'validation' => 'isInt', 'cast' => 'intval', 'type' => 'text', @@ -82,7 +83,7 @@ class AdminPPreferencesControllerCore extends AdminController ), 'PS_QTY_DISCOUNT_ON_COMBINATION' => array( 'title' => $this->l('Quantity discounts based on'), - 'desc' => $this->l('How to calculate quantity discounts'), + 'hint' => $this->l('How to calculate quantity discounts'), 'cast' => 'intval', 'show' => true, 'required' => false, @@ -100,14 +101,14 @@ class AdminPPreferencesControllerCore extends AdminController 'fields' => array( 'PS_PRODUCTS_PER_PAGE' => array( 'title' => $this->l('Products per page'), - 'desc' => $this->l('Number of products displayed per page. Default is 10.'), + 'hint' => $this->l('Number of products displayed per page. Default is 10.'), 'validation' => 'isUnsignedInt', 'cast' => 'intval', 'type' => 'text' ), 'PS_PRODUCTS_ORDER_BY' => array( 'title' => $this->l('Default order by'), - 'desc' => $this->l('The order in which products are displayed in the product list.'), + 'hint' => $this->l('The order in which products are displayed in the product list.'), 'type' => 'select', 'list' => array( array('id' => '0', 'name' => $this->l('Product name')), @@ -122,7 +123,7 @@ class AdminPPreferencesControllerCore extends AdminController ), 'PS_PRODUCTS_ORDER_WAY' => array( 'title' => $this->l('Default order method'), - 'desc' => $this->l('Default order method for product list'), + 'hint' => $this->l('Default order method for product list'), 'type' => 'select', 'list' => array( array( @@ -143,7 +144,7 @@ class AdminPPreferencesControllerCore extends AdminController 'fields' => array( 'PS_DISPLAY_QTIES' => array( 'title' => $this->l('Display available quantities on the product page'), - 'desc' => '', + 'hint' => '', 'validation' => 'isBool', 'cast' => 'intval', 'required' => false, @@ -151,7 +152,7 @@ class AdminPPreferencesControllerCore extends AdminController ), 'PS_LAST_QTIES' => array( 'title' => $this->l('Display remaining quantities when the qty is lower than'), - 'desc' => $this->l('Set to "0" to disable this feature.'), + 'hint' => $this->l('Set to "0" to disable this feature.'), 'validation' => 'isUnsignedId', 'required' => true, 'cast' => 'intval', @@ -159,7 +160,7 @@ class AdminPPreferencesControllerCore extends AdminController ), 'PS_DISPLAY_JQZOOM' => array( 'title' => $this->l('Enable JqZoom instead of Thickbox on the product page'), - 'desc' => '', + 'hint' => '', 'validation' => 'isBool', 'cast' => 'intval', 'required' => false, @@ -167,7 +168,7 @@ class AdminPPreferencesControllerCore extends AdminController ), 'PS_DISP_UNAVAILABLE_ATTR' => array( 'title' => $this->l('Display unavailable product attributes on the product page'), - 'desc' => '', + 'hint' => '', 'validation' => 'isBool', 'cast' => 'intval', 'required' => false, @@ -175,7 +176,7 @@ class AdminPPreferencesControllerCore extends AdminController ), 'PS_ATTRIBUTE_CATEGORY_DISPLAY' => array( 'title' => $this->l('Display the "add to cart" button when a product has attributes'), - 'desc' => $this->l('Display or hide the "add to cart" button on category pages for products that have attributes forcing customers to see product details.'), + 'hint' => $this->l('Display or hide the "add to cart" button on category pages for products that have attributes forcing customers to see product details.'), 'validation' => 'isBool', 'cast' => 'intval', 'type' => 'bool' @@ -187,7 +188,7 @@ class AdminPPreferencesControllerCore extends AdminController 'fields' => array( 'PS_ORDER_OUT_OF_STOCK' => array( 'title' => $this->l('Allow ordering of out-of-stock products'), - 'desc' => $this->l('Add to cart button is hidden when a product is unavailable'), + 'hint' => $this->l('Add to cart button is hidden when a product is unavailable'), 'validation' => 'isBool', 'cast' => 'intval', 'required' => false, @@ -195,7 +196,7 @@ class AdminPPreferencesControllerCore extends AdminController ), 'PS_STOCK_MANAGEMENT' => array( 'title' => $this->l('Enable stock management'), - 'desc' => '', + 'hint' => '', 'validation' => 'isBool', 'cast' => 'intval', 'required' => false, @@ -207,7 +208,7 @@ class AdminPPreferencesControllerCore extends AdminController ), 'PS_ADVANCED_STOCK_MANAGEMENT' => array( 'title' => $this->l('Enable advanced-stock management'), - 'desc' => $this->l('Allows you to manage physical stock, warehouses and supply orders.'), + 'hint' => $this->l('Allows you to manage physical stock, warehouses and supply orders.'), 'validation' => 'isBool', 'cast' => 'intval', 'required' => false, diff --git a/controllers/admin/AdminThemesController.php b/controllers/admin/AdminThemesController.php index 2d0c63706..c399471d1 100644 --- a/controllers/admin/AdminThemesController.php +++ b/controllers/admin/AdminThemesController.php @@ -94,12 +94,13 @@ class AdminThemesControllerCore extends AdminController public function init() { + // No cache for auto-refresh uploaded logo header('Cache-Control: no-cache, must-revalidate'); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); parent::init(); - + $this->bootstrap = true; $this->can_display_themes = (!Shop::isFeatureActive() || Shop::getContext() == Shop::CONTEXT_SHOP) ? true : false; $this->fields_options = array( @@ -116,13 +117,15 @@ class AdminThemesControllerCore extends AdminController ), ), ), + + /* TO DO - DESC à revoir*/ 'appearance' => array( 'title' => $this->l('Appearance'), 'icon' => 'email', 'fields' => array( 'PS_LOGO' => array( 'title' => $this->l('Header logo'), - 'desc' => $this->l('Will appear on main page.').' '.$this->l('Recommended height: 52px. Maximum height on default theme: 65px.'), + 'hint' => $this->l('Will appear on main page. Recommended height: 52px. Maximum height on default theme: 65px.'), 'type' => 'file', 'thumb' => _PS_IMG_.Configuration::get('PS_LOGO').'?date='.time() ), @@ -153,27 +156,27 @@ class AdminThemesControllerCore extends AdminController 'PS_FAVICON' => array( 'title' => $this->l('Favicon'), 'hint' => $this->l('Only ICO format allowed'), - 'desc' => $this->l('Will appear in the address bar of your web browser.'), + 'hint' => $this->l('Will appear in the address bar of your web browser.'), 'type' => 'file', 'thumb' => _PS_IMG_.Configuration::get('PS_FAVICON').'?date='.time() ), 'PS_STORES_ICON' => array( 'title' => $this->l('Store icon'), 'hint' => $this->l('Only GIF format allowed.'), - 'desc' => $this->l('Will appear on the store locator (inside Google Maps).').'