diff --git a/config.dev.php b/config.dev.php index 3d989b063c..712f69b498 100755 --- a/config.dev.php +++ b/config.dev.php @@ -55,6 +55,10 @@ class Brizy_Config { // this file will be stored in uploads/brizy/ const PROJECT_STLYES_FILE_PATH = DIRECTORY_SEPARATOR . 'project' . DIRECTORY_SEPARATOR . 'styles.css'; + const TEMPLATES_URL = 'https://template-2.b-cdn.net'; + + const TEMPLATES_IMAGE_URL = 'https://cloud-1de12d.b-cdn.net/media/iW=1024&iH=1024/'; + static public function getCompilerUrls() { $host = self::getEnvValue('COMPILER_HOST'); return new Brizy_Admin_UrlIterator( diff --git a/config.php b/config.php index ec55fd4402..62260c2b70 100755 --- a/config.php +++ b/config.php @@ -53,6 +53,10 @@ class Brizy_Config { // this file will be stored in uploads/brizy/ const PROJECT_STLYES_FILE_PATH = '/project/styles.css'; + + const TEMPLATES_URL = 'https://template-2.b-cdn.net'; + const TEMPLATES_IMAGE_URL = 'https://cloud-1de12d.b-cdn.net/media/iW=1024&iH=1024/'; + static public function getCompilerUrls() { return new Brizy_Admin_UrlIterator( array( diff --git a/editor/editor/editor.php b/editor/editor/editor.php index 80cb9ebdf5..43ba163124 100755 --- a/editor/editor/editor.php +++ b/editor/editor/editor.php @@ -414,8 +414,9 @@ private function getApiConfigFields($config, $context) 'layoutsUrl' => Brizy_Config::getEditorTemplatesUrl('layouts'), 'popupsUrl' => Brizy_Config::getEditorTemplatesUrl('popups'), 'storiesUrl' => Brizy_Config::getEditorTemplatesUrl('stories'), - 'templatesUrl' => 'https://template-2.b-cdn.net' + 'templatesUrl' => Brizy_Config::TEMPLATES_URL ], + 'templatesImageUrl' => Brizy_Config::TEMPLATES_IMAGE_URL ], ];