Skip to content

Commit

Permalink
Added template url in client env
Browse files Browse the repository at this point in the history
  • Loading branch information
ViorelEremia committed Apr 26, 2024
1 parent 2c269a8 commit dfd55f6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions config.dev.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 4 additions & 0 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 2 additions & 1 deletion editor/editor/editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
],
];

Expand Down

0 comments on commit dfd55f6

Please sign in to comment.