Ejemplo n.º 1
0
 /**
  * Check - templates profiling mode is enabled or not
  *
  * @return boolean
  */
 public static function markTemplatesEnabled()
 {
     return parent::markTemplatesEnabled() && !\XLite\Core\Config::getInstance()->XC->ThemeTweaker->edit_mode;
 }
Ejemplo n.º 2
0
 /**
  * So called "static constructor".
  * NOTE: do not call the "parent::__constructStatic()" explicitly: it will be called automatically
  *
  * @return void
  */
 public static function __constructStatic()
 {
     parent::__constructStatic();
     static::$profilerInfo = array('isEnabled' => \XLite\Module\XC\WebmasterKit\Core\Profiler::isTemplatesProfilingEnabled(), 'markTemplates' => \XLite\Module\XC\WebmasterKit\Core\Profiler::markTemplatesEnabled(), 'countDeep' => 0, 'countLevel' => 0);
 }