Пример #1
0
 /**
  * 
  */
 protected function checkExtensionList()
 {
     $list = AAM_Core_API::getOption('aam-extension-list', array());
     $repo = AAM_Core_Repository::getInstance();
     foreach ($list as $extension) {
         $status = $repo->extensionStatus($extension->title);
         if ($status == AAM_Core_Repository::STATUS_UPDATE) {
             AAM_Core_Console::add(sprintf(__('Extension %s has new update available for download.'), $extension->title));
         }
     }
 }
Пример #2
0
 /**
  * Check caching status
  * 
  * If caching is off, show notification about it
  * 
  * @return void
  * 
  * @access protected
  */
 protected function checkCacheStatus()
 {
     if (apply_filters('aam-cache-status-filter', false) === false) {
         $message = __('AAM caching is off. To speed-up the website turn it on.', AAM_KEY);
         $message .= '&nbsp;<a href="#cache-info-modal" data-toggle="modal">';
         $message .= __('Read more.', AAM_KEY) . '</a>';
         AAM_Core_Console::add($message);
     }
 }