[+] 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
This commit is contained in:
@@ -485,6 +485,21 @@ class AdminPerformanceControllerCore extends AdminController
|
|||||||
$this->tpl_form_vars['servers'] = CacheMemcache::getMemcachedServers();
|
$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.').'<br />'.
|
||||||
|
$this->l('CloudCache supercharges your site in minutes through its state-of-the-art content delivery network.').'<br /><br />'.
|
||||||
|
$this->l('Subscribe now using the code "presta25" and get an exclusive discount of 25% per month on every available package.').'<br /><br />
|
||||||
|
<a style="color: blue" href="index.php?controller=AdminModules&token='.Tools::getAdminTokenLite('AdminModules').'&filtername=cloudcache" id="installCloudCache">> '.$this->l('Click here to install the CloudCache module for PrestaShop').'</a><br />'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
public function renderForm()
|
public function renderForm()
|
||||||
{
|
{
|
||||||
// Initialize fieldset for a form
|
// Initialize fieldset for a form
|
||||||
@@ -494,6 +509,7 @@ class AdminPerformanceControllerCore extends AdminController
|
|||||||
$this->initFieldsetMediaServer();
|
$this->initFieldsetMediaServer();
|
||||||
$this->initFieldsetCiphering();
|
$this->initFieldsetCiphering();
|
||||||
$this->initFieldsetCaching();
|
$this->initFieldsetCaching();
|
||||||
|
$this->initFieldsetCloudCache();
|
||||||
|
|
||||||
// Activate multiple fieldset
|
// Activate multiple fieldset
|
||||||
$this->multiple_fieldsets = true;
|
$this->multiple_fieldsets = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user