Example #1
0
 /**
  * 
  * @return type
  */
 public static function getUtilityIcons()
 {
     $aButtons = array();
     $aButtons[1]['link'] = JchPlatformPaths::adminController('browsercaching');
     $aButtons[1]['icon'] = 'fa-globe';
     $aButtons[1]['color'] = '#51A351';
     $aButtons[1]['text'] = JchPlatformUtility::translate('Leverage browser caching');
     $aButtons[1]['script'] = '';
     $aButtons[1]['class'] = 'enabled';
     $aButtons[1]['tooltip'] = JchPlatformUtility::translate('Use this button to add codes to your htaccess file to leverage browser caching.');
     $aButtons[3]['link'] = JchPlatformPaths::adminController('filepermissions');
     $aButtons[3]['icon'] = 'fa-file-text';
     $aButtons[3]['color'] = '#166BEC';
     $aButtons[3]['text'] = JchPlatformUtility::translate('Fix file permissions');
     $aButtons[3]['script'] = '';
     $aButtons[3]['class'] = 'enabled';
     $aButtons[3]['tooltip'] = JchPlatformUtility::translate('If your site has lost CSS formatting after enabling the plugin, the problem could be that the plugin files were installed with incorrect file permissions so the browser cannot access the cached combined file. Click here to correct the plugin\'s file permissions.');
     $aButtons[5]['link'] = JchPlatformPaths::adminController('cleancache');
     $aButtons[5]['icon'] = 'fa-times-circle';
     $aButtons[5]['color'] = '#C0110A';
     $aButtons[5]['text'] = JchPlatformUtility::translate('Clean Cache');
     $aButtons[5]['script'] = '';
     $aButtons[5]['class'] = 'enabled';
     $aButtons[5]['tooltip'] = JchPlatformUtility::translate('Click this button to clean the plugin\'s cache and page cache. If you have edited any CSS or javascript files you need to clean the cache so the changes can be visible.');
     return $aButtons;
 }