예제 #1
0
파일: base.php 프로젝트: vicpril/rep_bidqa
 private static function _createApplication($name)
 {
     if (isset(self::$applicationInfos[$name])) {
         self::init();
         /**
          * @var $nextendApp N2Application
          */
         self::$applications[$name] = self::$applicationInfos[$name]->getInstance();
     } else {
         N2SystemHelper::getDebugTrace("Application not available: '{$name}'");
     }
 }
예제 #2
0
 public function renderPlaceholder($sizes)
 {
     if (!$this->slider->isAdmin && $this->fadeOnLoad && ($this->slider->features->responsive->scaleDown || $this->slider->features->responsive->scaleUp)) {
         if (N2SystemHelper::testMemoryLimit()) {
             if ($sizes['width'] + $sizes['marginHorizontal'] > 0 && $sizes['height'] > 0 && function_exists('imagecreatetruecolor')) {
                 return N2Html::tag("div", array("id" => $this->slider->elementId . "-placeholder", "encode" => false, "style" => 'position: relative;z-index:2;'), $this->makeImage($sizes));
             } else {
                 N2CSS::addCode("#{$this->slider->elementId} .n2-ss-load-fade{position: relative !important;}", $this->slider->cacheId);
             }
         } else {
             N2Message::error(n2_("It seems like the <a href='http://php.net/manual/en/ini.core.php#ini.memory-limit'>memory_limit</a> on the server is too low for the fade on load feature. Please set it minimum 60M and reload the page! You can disable this message in <a href='" . N2Form::$documentation . "#Troubleshooting-G-Server'>global configuration</a> 'Frontend debug message' option."));
         }
     } else {
         N2CSS::addCode("#{$this->slider->elementId}.n2-ss-load-fade{position: relative !important;}", $this->slider->cacheId);
     }
     return '';
 }
예제 #3
0
파일: lessc.php 프로젝트: vicpril/rep_bidqa
 protected function injectVariables($args)
 {
     $this->pushEnv();
     $parser = new n2lessc_parser($this, __METHOD__);
     foreach ($args as $name => $strValue) {
         if ($name[0] != '@') {
             $name = '@' . $name;
         }
         $parser->count = 0;
         $parser->buffer = (string) $strValue;
         if (!$parser->propertyValue($value)) {
             N2SystemHelper::getDebugTrace("failed to parse passed in variable {$name}: {$strValue}", 15);
             //                throw new Exception("failed to parse passed in variable $name: $strValue");
         }
         $this->set($name, $value);
     }
 }