PluginProbe
Brizy – Page Builder / trunk
Brizy – Page Builder vtrunk
2.8.23 2.8.22 2.8.21 2.8.20 2.8.19 2.8.18 2.8.17 2.8.16 2.8.15 2.8.14 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9 2.7.0 2.7.1 2.7.10 2.7.11 2.7.12 2.7.13 2.7.14 2.7.15 2.7.16 All 188 releases
brizy / config.php

config.php in Brizy – Page Builder trunk, at config.php

133 lines 5.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 class Brizy_Config
5 {
6
7 const SITE_URL_PLACEHOLDER = '{@brizy_SITE_URL_PLACEHOLDER@}';
8 const SITE_URL_PLACEHOLDER_REGEX = '/{@brizy_SITE_URL_PLACEHOLDER@}/im';
9 const LOCAL_PAGE_ASSET_STATIC_URL = '/brizy/%s';
10 const MEDIA_IMAGE_URL = '/media';
11 const EDITOR_HELP_VIDEOS_URL = 'https://b-cloud.b-cdn.net/WordPress+Editor+Help+Videos';
12
13 // this seems like it's not used any more. Leaving untouched
14 const GATEWAY_URI = 'https://api.brizy.io';
15 const CDN = 'http://bzassets.net/upload';
16
17 const BRIZY_BLANK_TEMPLATE_FILE_NAME = 'brizy-blank-template.php';
18 const BRIZY_TEMPLATE_FILE_NAME = 'brizy-header-footer-template.php';
19
20 const BRIZY_APPLICATION_FORM_ID = '6_5968m8wd3r8kcwww8o480w4c4c84sc8gw4kwk80s4k0c48ogkc';
21 const BRIZY_APPLICATION_FORM_NOTIFICATION_URL = 'http://cloud.bodnar.site/form/submit';
22 const BRIZY_PLATFORM_MULTIPASS_LOGIN = '/multipass/login/%s/%s?email=%s';
23
24 const PLATFORM_CLIENT_ID = "2_5to57xuihv48c4s400sk0wgwcw0gg4s4ggwccos4g4c4444occ";
25 const PLATFORM_CLIENT_SECRET = "3kfsu3y91csg08oskg8kowg4844go0o88sow48c00wwsgwk00s";
26 const PLATFORM_EMAIL = "admin@admin.com";
27
28 const UPGRADE_TO_PRO_URL = "https://www.brizy.io/pricing-wordpress/?utm_source=wp-menu&utm_campaign=gopro&utm_medium=wp-dash/";
29 const SUPPORT_URL = "https://support.brizy.io";
30 const ABOUT_URL = "https://www.brizy.io";
31 const TERMS_OF_SERVICE_URL = "https://www.brizy.io/terms-and-conditions";
32 const EDITOR_BUILD_PATH = BRIZY_PLUGIN_PATH.DIRECTORY_SEPARATOR.'public'.DIRECTORY_SEPARATOR.'editor-build'.DIRECTORY_SEPARATOR.'prod';
33 const EDITOR_BUILD_RELATIVE_PATH = 'public/editor-build/prod';
34
35 const CLOUD_APP_KEY = 'YTVhMDEwMGUyNGE4OTQ5OWM2NTY3OGM3N2MxNzMzMTBjOWVlNTg0OGM0NWU1NGYzY2QxMGEzOWQ3NWNjMDk3Zg';
36 const CLOUD_ENDPOINT = 'https://admin.brizy.io';
37 const CLOUD_EDITOR_VERSIONS = '/api/versions';
38 const CLOUD_LIBRARY = '/dev/library';
39 const CLOUD_SIGNIN = '/api/sign_ins';
40 const CLOUD_SIGNUP = '/api/sign_ups';
41 const CLOUD_RESET_PASSWORD = '/api/recover_passwords';
42 const CLOUD_MEDIA = '/api/media';
43 const CLOUD_CONTAINERS = '/api/containers';
44 const CLOUD_PROJECTS = '/api/projects';
45 const CLOUD_SAVEDBLOCKS = '/api/saved_blocks';
46 const CLOUD_FONTS = '/api/fonts';
47 const CLOUD_POPUPS = '/api/saved_popups';
48 const CLOUD_LAYOUTS = '/api/layouts';
49 const CLOUD_SCREENSHOT = '/screenshot/%s';
50 const CLOUD_SCREENSHOTS = '/api/screenshots';
51 const CLOUD_CUSTOM_FILES = '/api/custom_files';
52 const GENERATE_GLOBAL_STYLES_ENDPOINT = 'https://ai.brizy.io';
53 const WP_HTTP_TIMEOUT = 30;
54
55 const LAYOUTS_CHUNK_URL = 'https://template-mk.b-cdn.net/api/get-layouts-chunk';
56 const LAYOUTS_PAGES_URL = 'https://template-mk.b-cdn.net/api/get-layouts-pages';
57 const LAYOUTS_PAGE_DATA_URL = 'https://template-mk.b-cdn.net/api/get-layouts-page';
58
59 const BLOCKS_CHUNK_URL = "https://template-mk.b-cdn.net/api/get-kit-collections-chunk";
60 const BLOCKS_KITS_URL = "https://template-mk.b-cdn.net/api/get-kits";
61 const BLOCKS_DATA_URL = "https://template-mk.b-cdn.net/api/get-item";
62
63 const POPUPS_CHUNK_URL = "https://template-mk.b-cdn.net/api/get-popups-chunk";
64 const POPUPS_DATA_URL = "https://template-mk.b-cdn.net/api/get-popup-data";
65
66 const STORIES_CHUNK_URL = "https://template-mk.b-cdn.net/api/get-story-chunk";
67 const STORIES_PAGES_URL = "https://template-mk.b-cdn.net/api/get-story-page";
68 const STORIES_DATA_URL = "https://template-mk.b-cdn.net/api/get-story-page-data";
69
70 const TEMPLATES_IMAGE_URL = 'https://cloud-1de12d.b-cdn.net/media/iW=1024&iH=1024/';
71
72 // this file will be stored in uploads/brizy/
73 const PROJECT_STLYES_FILE_PATH = '/project/styles.css';
74
75 static public function getCompilerUrls()
76 {
77 return new Brizy_Admin_UrlIterator(
78 array(
79 'https://compiler.brizy.io/compile/v4',
80 'https://compiler1.brizycompiler.run/compile/v4',
81 'https://compiler2.brizycompiler.run/compile/v4',
82 )
83 );
84 }
85
86 static public function getStaticUrls()
87 {
88 return new Brizy_Admin_UrlIterator(
89 array(
90 'https://static.brizy.io/builds/free/%s',
91 'http://static1.brizycompiler.run/builds/free/%s',
92 'http://static2.brizycompiler.run/builds/free/%s',
93 )
94 );
95 }
96
97 static public function getEditorBaseUrls()
98 {
99 return new Brizy_Admin_UrlIterator(
100 array(
101 'https://admin.brizy.io',
102 'http://media1.brizycompiler.run',
103 'http://media2.brizycompiler.run',
104 )
105 );
106 }
107
108 static public function getFontsUrl()
109 {
110 return "https://admin.brizy.io/fonts/wp?path=%s";
111 }
112
113 static public function getCompilerDownloadUrl()
114 {
115 return 'https://static.brizy.io/builds/free/'.BRIZY_EDITOR_VERSION;
116 }
117
118 static public function getSupportUrl()
119 {
120 return __bt('support-url', apply_filters('brizy_support_url', self::SUPPORT_URL));
121 }
122
123 static public function getUpgradeUrl()
124 {
125 return apply_filters('brizy_upgrade_to_pro_url', self::UPGRADE_TO_PRO_URL);
126 }
127
128 static public function getTermsOfServiceUrl()
129 {
130 return apply_filters('brizy_config_terms_of_service_url', self::TERMS_OF_SERVICE_URL);
131 }
132 }
133