From 938f7dc0a6d00c75eed84b6d01f6eaa09cf16b0e Mon Sep 17 00:00:00 2001 From: gCharmes Date: Tue, 18 Sep 2012 14:09:09 +0000 Subject: [PATCH] [+] BO : Add CloudCache in Performance Tab git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17408 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminPerformanceController.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/controllers/admin/AdminPerformanceController.php b/controllers/admin/AdminPerformanceController.php index 72380d721..4445a3398 100644 --- a/controllers/admin/AdminPerformanceController.php +++ b/controllers/admin/AdminPerformanceController.php @@ -485,6 +485,21 @@ class AdminPerformanceControllerCore extends AdminController $this->tpl_form_vars['servers'] = CacheMemcache::getMemcachedServers(); } + public function initFieldsetCloudCache() + { + if (!class_exists('CloudCache')) + $this->fields_form[6]['form'] = array( + 'legend' => array( + 'title' => $this->l('CloudCache'), + 'image' => '../img/admin/subdomain.gif' + ), + 'desc' => $this->l('Performance matters! Improve speed and conversions the easy way.').'
'. + $this->l('CloudCache supercharges your site in minutes through its state-of-the-art content delivery network.').'

'. + $this->l('Subscribe now using the code "presta25" and get an exclusive discount of 25% per month on every available package.').'

+ > '.$this->l('Click here to install the CloudCache module for PrestaShop').'
' + ); + } + public function renderForm() { // Initialize fieldset for a form @@ -494,6 +509,7 @@ class AdminPerformanceControllerCore extends AdminController $this->initFieldsetMediaServer(); $this->initFieldsetCiphering(); $this->initFieldsetCaching(); + $this->initFieldsetCloudCache(); // Activate multiple fieldset $this->multiple_fieldsets = true;