PluginProbe
Kirki – Freeform Page Builder, Website Builder & Customizer / 6.0.2
Kirki – Freeform Page Builder, Website Builder & Customizer v6.0.2
6.3.0 6.2.5 6.2.4 6.2.3 6.2.2 6.2.1 6.2.0 6.1.1 6.1.0 6.0.14 6.0.13 6.0.12 6.0.11 6.0.10 6.0.9 6.0.8 6.0.7 6.0.6 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 3.1.3 3.1.4 All 56 releases
kirki / config.php

config.php in Kirki – Freeform Page Builder, Website Builder & Customizer 6.0.2, at config.php

232 lines 8.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Kirki Configurations
4 *
5 * @package kirki
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit; // Exit if accessed directly.
10 }
11
12 define( 'KIRKI_VERSION', '6.0.2' );
13 define( 'KIRKI_APP_PREFIX', 'kirki' );
14 define( 'KIRKI_CORE_PLUGIN_URL', 'https://kirki.com' );
15 define( 'KIRKI_PUBLIC_ASSETS_URL', 'https://d31d7414w5c76z.cloudfront.net' );
16
17 define( 'KIRKI_META_NAME_FOR_POST_EDITOR_MODE', 'kirki_editor_mode' );
18 define( 'KIRKI_META_NAME_FOR_USED_STYLE_BLOCK_IDS', 'kirki_used_style_block_ids' );
19 define( 'KIRKI_META_NAME_FOR_USED_FONT_LIST', 'kirki_used_font_list' );
20 define( 'KIRKI_META_NAME_FOR_STAGED_VERSIONS', 'kirki_stage_versions' );
21 define( 'KIRKI_META_NAME_FOR_PAGE_HF_SYMBOL_DISABLE_STATUS', 'kirki_disabled_page_symbols' );
22
23
24 // droip apps.
25 define( 'IS_DEVELOPING_KIRKI_APPS', false );
26 if ( IS_DEVELOPING_KIRKI_APPS ) {
27 define( 'KIRKI_APPS_BASE_URL', content_url() . '/kirki-apps-dev/build' );
28 } else {
29 define( 'KIRKI_APPS_BASE_URL', KIRKI_PUBLIC_ASSETS_URL . '/kirki-apps' );
30 }
31 define( 'KIRKI_DEVELOPING_APPS_INCLUDES', plugin_dir_path( __FILE__ ) . '../../kirki-apps-dev/index.php' );
32
33
34 /* all types of file paths start */
35 define( 'KIRKI_PLUGIN_REL_URL', dirname( plugin_basename( __FILE__ ) ) );
36 define( 'KIRKI_ROOT_URL', plugin_dir_url( __FILE__ ) );
37 define( 'KIRKI_ASSETS_URL', KIRKI_ROOT_URL . 'assets/' );
38 define( 'KIRKI_ROOT_PATH', plugin_dir_path( __FILE__ ) );
39 define( 'KIRKI_FULL_CANVAS_TEMPLATE_PATH', str_replace( '\\', '/', KIRKI_ROOT_PATH . 'includes' . DIRECTORY_SEPARATOR . 'Frontend' . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'page.php' ) );
40 /* all types of file paths end */
41
42 /* all types of post types start */
43 define( 'KIRKI_GLOBAL_DATA_POST_TYPE_NAME','kirki_global_data' );
44 define( 'KIRKI_POST_TYPE','kirki_post' );
45 define( 'KIRKI_SYMBOL_TYPE','kirki_symbol' );
46 define( 'KIRKI_CONTENT_MANAGER_PREFIX','kirki_cm' );
47 /* all types of post types end */
48
49 /* all types of option meta types start */
50 define( 'KIRKI_USER_CONTROLLER_META_KEY','kirki_user_controller' );
51 define( 'KIRKI_GLOBAL_STYLE_BLOCK_META_KEY','kirki_global_style_block' );
52 define( 'KIRKI_USER_SAVED_DATA_META_KEY','kirki_user_saved_data' );
53 define( 'KIRKI_USER_CUSTOM_FONTS_META_KEY','kirki_user_custom_fonts' );
54 define( 'KIRKI_PAGE_SEO_SETTINGS_META_KEY','kirki_page_seo_settings' );
55 define( 'KIRKI_PAGE_CUSTOM_CODE','kirki_page_custom_code' );
56
57 define( 'KIRKI_WP_ADMIN_COMMON_DATA','kirki_wp_admin_common_data' );
58 /* all types of option meta types end */
59
60 /* all types of user meta types start */
61 define( 'KIRKI_USER_WALKTHROUGH_SHOWN_META_KEY','kirki_user_walkthrough_shown_state' );
62 /* all types of user meta types end */
63
64 define( 'KIRKI_EDITOR_ACTION', 'kirki' );
65
66 define(
67 'KIRKI_ACCESS_LEVELS',
68 array(
69 'NO_ACCESS' => 'no',
70 'FULL_ACCESS' => 'full',
71 'CONTENT_ACCESS' => 'content',
72 'VIEW_ACCESS' => 'view',
73 )
74 );
75 define( 'KIRKI_USERS_DEFAULT_FULL_ACCESS', array( 'administrator', 'editor' ) );
76
77 /* Custom DB table names */
78 define( 'KIRKI_FORM_TABLE','kirki_forms' );
79 define( 'KIRKI_FORM_DATA_TABLE','kirki_forms_data' );
80 define( 'KIRKI_COLLABORATION_TABLE','kirki_collaborations' );
81 define( 'KIRKI_CM_REFERENCE_TABLE','kirki_cm_reference' );
82 define( 'KIRKI_COMMENTS_TABLE','kirki_comments' );
83 /* Custom DB table names */
84
85 define(
86 'KIRKI_SUPPORTED_MEDIA_TYPES',
87 array(
88 'image' => array( 'image/jpeg', 'image/jpg', 'image/png', 'image/gif', 'image/webp' ),
89 'video' => array( 'video/mp4', 'video/ogg', 'video/quicktime' ),
90 'svg' => array( 'image/svg+xml' ),
91 'audio' => array( 'audio/mpeg', 'audio/ogg' ),
92 'json' => array( 'application/json' ),
93 'lottie' => array( 'text/plain', 'application/json' ),
94 'pdf' => array( 'application/pdf' ),
95 )
96 );
97
98
99 define(
100 'KIRKI_SUPPORTED_MEDIA_TYPES_FOR_FILE_INPUT',
101 array(
102 'default' => array( 'image/jpeg', 'image/jpg', 'image/png', 'image/gif', 'image/webp', 'video/mp4', 'video/ogg', 'video/quicktime', 'application/pdf', 'application/msword', 'text/plain' ),
103 '.doc, .pdf, .txt' => array( 'application/pdf', 'application/msword', 'text/plain' ),
104 '.mp4, .mov' => array( 'video/mp4', 'video/ogg', 'video/quicktime' ),
105 '.jpg, .jpeg, .png, .gif' => array( 'image/jpeg', 'image/jpg', 'image/png', 'image/gif', 'image/webp' ),
106 )
107 );
108
109 define(
110 'KIRKI_WORDPRESS_SORT_BY_OPTIONS',
111 array( 'none', 'ID', 'author', 'title', 'name', 'type', 'date', 'modified', 'parent', 'comment_count', 'menu_order' )
112 );
113
114 define(
115 'KIRKI_PRESERVED_CLASS_LIST',
116 array(
117 'kirki-current-tab',
118 'kirki-tab-active',
119 'kirki-slide-active',
120 'kirki-slider-nav-item-active',
121 'kirki-slider-arrow-left-active',
122 'kirki-slider-arrow-right-active',
123 'kirki-navigation-item-active',
124 'kirki-active',
125 'kirki-pagination-item-active',
126 'kirki-active-link',
127 )
128 );
129
130 define(
131 'KIRKI_PLUGIN_SETTINGS',
132 array(
133 'INPUT_TEXT' => array(
134 'type' => 'inputtext',
135 'placeholder' => 'Placeholder text',
136 ),
137 'INPUT' => array(
138 'type' => 'input',
139 'placeholder' => 'Placeholder text',
140 ),
141 'INPUT_NUMBER' => array(
142 'type' => 'inputnumber',
143 'placeholder' => 'Placeholder text',
144 ),
145 'DYNAMIC_INPUT' => array(
146 'type' => 'dynamicinput',
147 'placeholder' => 'Placeholder text',
148 ),
149 'CHECKBOX' => array( 'type' => 'checkbox' ),
150 'TOGGLER' => array( 'type' => 'toggler' ),
151 'COLOR_PICKER' => array(
152 'type' => 'colorpicker',
153 'title' => 'Heading Color',
154 ),
155 'SELECT' => array(
156 'type' => 'select',
157 'options' => array(
158 array(
159 'value' => 'value1',
160 'title' => 'Value One',
161 ),
162 array(
163 'value' => 'value2',
164 'title' => 'Value Two',
165 ),
166 ),
167 ),
168 'DIVIDER_FULL' => array(
169 'type' => 'divider',
170 'style' => 'full',
171 ),
172 'DIVIDER_HALF' => array(
173 'type' => 'divider',
174 'style' => 'half',
175 ),
176 'DIVIDER_TRANSPARENT' => array( 'type' => 'divider_tansparent' ),
177 'TAB' => array(
178 'type' => 'tab',
179 'tabs' => array(),
180 ),
181 'DATEPICKER' => array( 'type' => 'datepicker' ),
182 'SELECT_WITH_WP_POST_SUGGESTION' => array(
183 'postType' =>'kirki_popup',
184 'type' => 'select_with_wp_post_suggestion',
185 ),
186 )
187 );
188
189 define(
190 'KIRKI_MIGRATION_REPLACEMENTS',
191 array(
192 'droip_global_data' => 'kirki_global_data',
193 'droip_global_style_block' => 'kirki_global_style_block',
194 'droip_template_conditions' => 'kirki_template_conditions',
195 'droip_disabled_page_symbols' => 'kirki_disabled_page_symbols',
196 'droip_used_style_block_ids' => 'kirki_used_style_block_ids',
197 'droip_imported_batch_id' => 'kirki_imported_batch_id',
198 'droip_page_seo_settings' => 'kirki_page_seo_settings',
199 'droip_user_custom_fonts' => 'kirki_user_custom_fonts',
200 'droip_page_custom_code' => 'kirki_page_custom_code',
201 'droip_stage_versions' => 'kirki_stage_versions',
202 'droip_used_font_list' => 'kirki_used_font_list',
203 'droip_user_controller' => 'kirki_user_controller',
204 'droip_user_saved_data' => 'kirki_user_saved_data',
205 'droip_editor_mode' => 'kirki_editor_mode',
206 'droip_cm_fields' => 'kirki_cm_fields',
207 'droip_cm_field_' => 'kirki_cm_field_',
208
209 'droip_template' => 'kirki_template',
210 'droip_utility' => 'kirki_utility',
211 'droip_symbol' => 'kirki_symbol',
212 'droip_popup' => 'kirki_popup',
213 'droip_post' => 'kirki_post',
214 'droip_cm' => 'kirki_cm',
215
216 'DROIP_' => 'KIRKI_',
217 'Droip_' => 'Kirki_',
218 'droip_' => 'kirki_',
219 'droip-' => 'kirki-',
220 '_droip' => '_kirki',
221 '-droip' => '-kirki',
222
223 '"droip_' => '"kirki_',
224 '"droip"' => '"kirki"',
225 "'droip_" => "'kirki_",
226 "'droip'" => "'kirki'",
227
228 'droip' => 'kirki',
229 'Droip' => 'Kirki',
230 'DROIP' => 'KIRKI',
231 )
232 );