WP ULike - Version 4.1.8

Version Description

  • Added: New REST API Routes. [PRO]
  • Added: New option to customize user login template.
  • Fixed: Conflicts in setting panel framework.
  • Fixed: Some small issues.
Download this release

Release Info

Developer alimir
Plugin Icon 128x128 WP ULike
Version 4.1.8
Comparing to
See all releases

Code changes from version 4.1.7 to 4.1.8

admin/admin-functions.php CHANGED
@@ -331,4 +331,22 @@ function wp_ulike_convert_old_options_array( $data ){
331
  }
332
  }
333
  return $output;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
334
  }
331
  }
332
  }
333
  return $output;
334
+ }
335
+
336
+ /**
337
+ * Check plugin admin pages
338
+ *
339
+ * @return bool
340
+ */
341
+ function wp_ulike_is_plugin_screen(){
342
+ $screen = get_current_screen();
343
+
344
+ if( strpos( $screen->base, WP_ULIKE_SLUG ) === false ){
345
+ if( defined( 'WP_ULIKE_PRO_DOMAIN' ) && in_array( $screen->base, array( 'post' ) ) ){
346
+ return true;
347
+ }
348
+ return false;
349
+ }
350
+
351
+ return true;
352
  }
admin/assets/css/admin.css CHANGED
@@ -356,6 +356,78 @@ https://wordpress.org/plugins/wp-ulike/
356
  padding: 0 5px;
357
  }
358
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
359
  /**
360
  * RTL support
361
  */
356
  padding: 0 5px;
357
  }
358
 
359
+ .wp-ulike-simple-table {
360
+ width: 100%;
361
+ max-width: 100%;
362
+ margin-bottom: 2rem;
363
+ background-color: transparent;
364
+ }
365
+ .wp-ulike-simple-table > thead > tr,
366
+ .wp-ulike-simple-table > tbody > tr,
367
+ .wp-ulike-simple-table > tfoot > tr {
368
+ -webkit-transition: all 0.3s ease;
369
+ -o-transition: all 0.3s ease;
370
+ transition: all 0.3s ease;
371
+ }
372
+ .wp-ulike-simple-table > thead > tr > th,
373
+ .wp-ulike-simple-table > thead > tr > td,
374
+ .wp-ulike-simple-table > tbody > tr > th,
375
+ .wp-ulike-simple-table > tbody > tr > td,
376
+ .wp-ulike-simple-table > tfoot > tr > th,
377
+ .wp-ulike-simple-table > tfoot > tr > td {
378
+ text-align: left;
379
+ padding: 1rem;
380
+ vertical-align: top;
381
+ border-top: 0;
382
+ -webkit-transition: all 0.3s ease;
383
+ -o-transition: all 0.3s ease;
384
+ transition: all 0.3s ease;
385
+ }
386
+ .wp-ulike-simple-table > thead > tr > th {
387
+ font-weight: 600;
388
+ color: #757575;
389
+ vertical-align: bottom;
390
+ border-bottom: 1px solid rgba(0, 0, 0, 0.12);
391
+ }
392
+ .wp-ulike-simple-table > caption + thead > tr:first-child > th,
393
+ .wp-ulike-simple-table > caption + thead > tr:first-child > td,
394
+ .wp-ulike-simple-table > colgroup + thead > tr:first-child > th,
395
+ .wp-ulike-simple-table > colgroup + thead > tr:first-child > td,
396
+ .wp-ulike-simple-table > thead:first-child > tr:first-child > th,
397
+ .wp-ulike-simple-table > thead:first-child > tr:first-child > td {
398
+ border-top: 0;
399
+ }
400
+ .wp-ulike-simple-table > tbody + tbody {
401
+ border-top: 1px solid rgba(0, 0, 0, 0.12);
402
+ }
403
+ .wp-ulike-simple-table .table {
404
+ background-color: transparent;
405
+ }
406
+ .wp-ulike-simple-table .no-border {
407
+ border: 0;
408
+ }
409
+ .wp-ulike-simple-table.table-bordered {
410
+ border: 0;
411
+ }
412
+ .wp-ulike-simple-table.table-bordered > thead > tr > th,
413
+ .wp-ulike-simple-table.table-bordered > thead > tr > td,
414
+ .wp-ulike-simple-table.table-bordered > tbody > tr > th,
415
+ .wp-ulike-simple-table.table-bordered > tbody > tr > td,
416
+ .wp-ulike-simple-table.table-bordered > tfoot > tr > th,
417
+ .wp-ulike-simple-table.table-bordered > tfoot > tr > td {
418
+ border: 0;
419
+ border-bottom: 1px solid #e0e0e0;
420
+ }
421
+ .wp-ulike-simple-table.table-bordered > thead > tr > th,
422
+ .wp-ulike-simple-table.table-bordered > thead > tr > td {
423
+ border-bottom-width: 2px;
424
+ }
425
+
426
+ .wp-ulike-table-icon {
427
+ width: 18px;
428
+ height: 18px;
429
+ }
430
+
431
  /**
432
  * RTL support
433
  */
admin/assets/css/plugins.css CHANGED
@@ -475,76 +475,6 @@ https://wordpress.org/plugins/wp-ulike/
475
  margin-top: 5px;
476
  margin-right: 15px;
477
  }
478
- .wp-ulike-go-pro-page .wp-ulike-simple-table {
479
- width: 100%;
480
- max-width: 100%;
481
- margin-bottom: 2rem;
482
- background-color: transparent;
483
- }
484
- .wp-ulike-go-pro-page .wp-ulike-simple-table > thead > tr,
485
- .wp-ulike-go-pro-page .wp-ulike-simple-table > tbody > tr,
486
- .wp-ulike-go-pro-page .wp-ulike-simple-table > tfoot > tr {
487
- -webkit-transition: all 0.3s ease;
488
- -o-transition: all 0.3s ease;
489
- transition: all 0.3s ease;
490
- }
491
- .wp-ulike-go-pro-page .wp-ulike-simple-table > thead > tr > th,
492
- .wp-ulike-go-pro-page .wp-ulike-simple-table > thead > tr > td,
493
- .wp-ulike-go-pro-page .wp-ulike-simple-table > tbody > tr > th,
494
- .wp-ulike-go-pro-page .wp-ulike-simple-table > tbody > tr > td,
495
- .wp-ulike-go-pro-page .wp-ulike-simple-table > tfoot > tr > th,
496
- .wp-ulike-go-pro-page .wp-ulike-simple-table > tfoot > tr > td {
497
- text-align: left;
498
- padding: 1rem;
499
- vertical-align: top;
500
- border-top: 0;
501
- -webkit-transition: all 0.3s ease;
502
- -o-transition: all 0.3s ease;
503
- transition: all 0.3s ease;
504
- }
505
- .wp-ulike-go-pro-page .wp-ulike-simple-table > thead > tr > th {
506
- font-weight: 600;
507
- color: #757575;
508
- vertical-align: bottom;
509
- border-bottom: 1px solid rgba(0, 0, 0, 0.12);
510
- }
511
- .wp-ulike-go-pro-page .wp-ulike-simple-table > caption + thead > tr:first-child > th,
512
- .wp-ulike-go-pro-page .wp-ulike-simple-table > caption + thead > tr:first-child > td,
513
- .wp-ulike-go-pro-page .wp-ulike-simple-table > colgroup + thead > tr:first-child > th,
514
- .wp-ulike-go-pro-page .wp-ulike-simple-table > colgroup + thead > tr:first-child > td,
515
- .wp-ulike-go-pro-page .wp-ulike-simple-table > thead:first-child > tr:first-child > th,
516
- .wp-ulike-go-pro-page .wp-ulike-simple-table > thead:first-child > tr:first-child > td {
517
- border-top: 0;
518
- }
519
- .wp-ulike-go-pro-page .wp-ulike-simple-table > tbody + tbody {
520
- border-top: 1px solid rgba(0, 0, 0, 0.12);
521
- }
522
- .wp-ulike-go-pro-page .wp-ulike-simple-table .table {
523
- background-color: transparent;
524
- }
525
- .wp-ulike-go-pro-page .wp-ulike-simple-table .no-border {
526
- border: 0;
527
- }
528
- .wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered {
529
- border: 0;
530
- }
531
- .wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered > thead > tr > th,
532
- .wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered > thead > tr > td,
533
- .wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered > tbody > tr > th,
534
- .wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered > tbody > tr > td,
535
- .wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered > tfoot > tr > th,
536
- .wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered > tfoot > tr > td {
537
- border: 0;
538
- border-bottom: 1px solid #e0e0e0;
539
- }
540
- .wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered > thead > tr > th,
541
- .wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered > thead > tr > td {
542
- border-bottom-width: 2px;
543
- }
544
- .wp-ulike-go-pro-page .wp-ulike-table-icon {
545
- width: 18px;
546
- height: 18px;
547
- }
548
 
549
  /**
550
  * Logs Page
475
  margin-top: 5px;
476
  margin-right: 15px;
477
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
478
 
479
  /**
480
  * Logs Page
admin/assets/js/plugins.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! WP ULike - v4.1.7
2
  * https://wpulike.com
3
  * TechnoWich 2020;
4
  */
1
+ /*! WP ULike - v4.1.8
2
  * https://wpulike.com
3
  * TechnoWich 2020;
4
  */
admin/classes/class-wp-ulike-admin-assets.php CHANGED
@@ -89,23 +89,16 @@ if ( ! class_exists( 'wp_ulike_admin_assets' ) ) {
89
  true
90
  );
91
 
92
- // Enqueue admin scripts
93
- // wp_enqueue_script(
94
- // 'wp_ulike_admin_scripts',
95
- // WP_ULIKE_ADMIN_URL . '/assets/js/scripts.js',
96
- // array( 'wp_ulike_admin_plugins', 'wp_ulike_vuejs'),
97
- // false,
98
- // true
99
- // );
100
-
101
- // Enqueue statistics script
102
- wp_enqueue_script(
103
- 'wp_ulike_admin_statistics_scripts',
104
- WP_ULIKE_ADMIN_URL . '/assets/js/solo/statistics.js',
105
- array( 'wp_ulike_admin_plugins'),
106
- false,
107
- true
108
- );
109
 
110
  // Localize scripts
111
  wp_localize_script( 'wp_ulike_admin_plugins', 'wp_ulike_admin', array(
89
  true
90
  );
91
 
92
+ if( ! defined( 'WP_ULIKE_PRO_DOMAIN' ) ){
93
+ // Enqueue statistics script
94
+ wp_enqueue_script(
95
+ 'wp_ulike_admin_statistics_scripts',
96
+ WP_ULIKE_ADMIN_URL . '/assets/js/solo/statistics.js',
97
+ array( 'wp_ulike_admin_plugins'),
98
+ false,
99
+ true
100
+ );
101
+ }
 
 
 
 
 
 
 
102
 
103
  // Localize scripts
104
  wp_localize_script( 'wp_ulike_admin_plugins', 'wp_ulike_admin', array(
admin/classes/class-wp-ulike-admin-panel.php CHANGED
@@ -323,8 +323,14 @@ if ( ! class_exists( 'wp_ulike_admin_panel' ) ) {
323
  * Customization Section
324
  */
325
  CSF::createSection( $this->option_domain, array(
326
- 'title' => __( 'Customization',WP_ULIKE_SLUG),
327
- 'icon' => 'fa fa-code',
 
 
 
 
 
 
328
  'fields' => apply_filters( 'wp_ulike_panel_customization', array(
329
  array(
330
  'id' => 'custom_css',
@@ -516,12 +522,27 @@ if ( ! class_exists( 'wp_ulike_admin_panel' ) ) {
516
  'type' => 'button_set',
517
  'title' => __( 'Display Type', WP_ULIKE_SLUG),
518
  'options' => array(
519
- 'alert' => __('Alert', WP_ULIKE_SLUG),
520
  'button' => __('Button', WP_ULIKE_SLUG)
521
  ),
522
  'default' => 'button',
523
  'dependency' => array( 'enable_only_logged_in_users', '==', 'true' ),
524
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
525
  'enable_likers_box' => array(
526
  'id' => 'enable_likers_box',
527
  'type' => 'switcher',
323
  * Customization Section
324
  */
325
  CSF::createSection( $this->option_domain, array(
326
+ 'id' => 'customization',
327
+ 'title' => __( 'Developer Tools',WP_ULIKE_SLUG),
328
+ 'icon' => 'fa fa-code',
329
+ ) );
330
+
331
+ CSF::createSection( $this->option_domain, array(
332
+ 'parent' => 'customization',
333
+ 'title' => __( 'Custom Style',WP_ULIKE_SLUG),
334
  'fields' => apply_filters( 'wp_ulike_panel_customization', array(
335
  array(
336
  'id' => 'custom_css',
522
  'type' => 'button_set',
523
  'title' => __( 'Display Type', WP_ULIKE_SLUG),
524
  'options' => array(
525
+ 'alert' => __('Template', WP_ULIKE_SLUG),
526
  'button' => __('Button', WP_ULIKE_SLUG)
527
  ),
528
  'default' => 'button',
529
  'dependency' => array( 'enable_only_logged_in_users', '==', 'true' ),
530
  ),
531
+ 'login_template' => array(
532
+ 'id' => 'login_template',
533
+ 'type' => 'code_editor',
534
+ 'settings' => array(
535
+ 'theme' => 'shadowfox',
536
+ 'mode' => 'htmlmixed',
537
+ ),
538
+ 'default' => sprintf( '<p class="alert alert-info fade in" role="alert">%s<a href="%s">%s</a></p>',
539
+ __('You need to login in order to like this post: ',WP_ULIKE_SLUG),
540
+ wp_login_url( get_permalink() ),
541
+ __('click here',WP_ULIKE_SLUG)
542
+ ),
543
+ 'title' => __('Custom HTML Template', WP_ULIKE_SLUG),
544
+ 'dependency'=> array( 'logged_out_display_type', '==', 'alert' ),
545
+ ),
546
  'enable_likers_box' => array(
547
  'id' => 'enable_likers_box',
548
  'type' => 'switcher',
admin/settings/classes/setup.class.php CHANGED
@@ -44,7 +44,7 @@ if( ! class_exists( 'CSF' ) ) {
44
  self::includes();
45
 
46
  // setup textdomain
47
- self::textdomain();
48
 
49
  add_action( 'after_setup_theme', array( 'CSF', 'setup' ) );
50
  add_action( 'init', array( 'CSF', 'setup' ) );
44
  self::includes();
45
 
46
  // setup textdomain
47
+ // self::textdomain();
48
 
49
  add_action( 'after_setup_theme', array( 'CSF', 'setup' ) );
50
  add_action( 'init', array( 'CSF', 'setup' ) );
admin/settings/functions/actions.php CHANGED
@@ -174,6 +174,9 @@ if( ! function_exists( 'csf_chosen_ajax' ) ) {
174
  */
175
  if( ! function_exists( 'csf_set_icons' ) ) {
176
  function csf_set_icons() {
 
 
 
177
  ?>
178
  <div id="csf-modal-icon" class="csf-modal csf-modal-icon">
179
  <div class="csf-modal-table">
174
  */
175
  if( ! function_exists( 'csf_set_icons' ) ) {
176
  function csf_set_icons() {
177
+ if( ! wp_ulike_is_plugin_screen() ){
178
+ return;
179
+ }
180
  ?>
181
  <div id="csf-modal-icon" class="csf-modal csf-modal-icon">
182
  <div class="csf-modal-table">
admin/settings/languages/csf.pot DELETED
@@ -1,669 +0,0 @@
1
- # Copyright (C) 2020 Codestar
2
- # This file is distributed under the same license as the Codestar Framework package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: Codestar Framework 2.1.3\n"
6
- "Report-Msgid-Bugs-To: "
7
- "https://wordpress.org/support/plugin/codestar-framework\n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=utf-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
-
12
- #: classes/comment-metabox.class.php:190 classes/metabox.class.php:255
13
- #: classes/options.class.php:650
14
- msgid "No option provided by developer."
15
- msgstr ""
16
-
17
- #: classes/comment-metabox.class.php:208 classes/metabox.class.php:273
18
- msgid "Restore"
19
- msgstr ""
20
-
21
- #: classes/comment-metabox.class.php:209 classes/metabox.class.php:274
22
- msgid "update post for restore "
23
- msgstr ""
24
-
25
- #: classes/comment-metabox.class.php:209 classes/metabox.class.php:274
26
- msgid "Cancel"
27
- msgstr ""
28
-
29
- #: classes/options.class.php:238
30
- msgid "Error while saving."
31
- msgstr ""
32
-
33
- #: classes/options.class.php:285
34
- msgid "Success. Imported backup options."
35
- msgstr ""
36
-
37
- #: classes/options.class.php:295
38
- msgid "Default options restored."
39
- msgstr ""
40
-
41
- #: classes/options.class.php:309
42
- msgid "Default options restored for only this section."
43
- msgstr ""
44
-
45
- #: classes/options.class.php:367
46
- msgid "Settings saved."
47
- msgstr ""
48
-
49
- #: classes/options.class.php:548
50
- msgid "Settings have changed, you should save them!"
51
- msgstr ""
52
-
53
- #: classes/options.class.php:550
54
- msgid "show all options"
55
- msgstr ""
56
-
57
- #: classes/options.class.php:552
58
- msgid "Search option(s)"
59
- msgstr ""
60
-
61
- #: classes/options.class.php:555 classes/options.class.php:674
62
- msgid "Save"
63
- msgstr ""
64
-
65
- #: classes/options.class.php:555 classes/options.class.php:674
66
- msgid "Saving..."
67
- msgstr ""
68
-
69
- #: classes/options.class.php:556 classes/options.class.php:675
70
- msgid "Reset Section"
71
- msgstr ""
72
-
73
- #: classes/options.class.php:556 classes/options.class.php:675
74
- msgid "Are you sure to reset this section options?"
75
- msgstr ""
76
-
77
- #: classes/options.class.php:557 classes/options.class.php:676
78
- #: fields/backup/backup.php:34
79
- msgid "Reset All"
80
- msgstr ""
81
-
82
- #: classes/options.class.php:557 classes/options.class.php:676
83
- msgid "Are you sure to reset all options?"
84
- msgstr ""
85
-
86
- #: classes/setup.class.php:429
87
- msgid "Are you sure?"
88
- msgstr ""
89
-
90
- #: classes/setup.class.php:430
91
- msgid "Restoring options."
92
- msgstr ""
93
-
94
- #: classes/setup.class.php:431
95
- msgid "Importing options."
96
- msgstr ""
97
-
98
- #: classes/setup.class.php:434
99
- msgid "Please enter %s or more characters"
100
- msgstr ""
101
-
102
- #: classes/setup.class.php:435
103
- msgid "Searching..."
104
- msgstr ""
105
-
106
- #: classes/setup.class.php:436
107
- msgid "No results match"
108
- msgstr ""
109
-
110
- #: classes/setup.class.php:507
111
- msgid "Ooops! This field type (%s) can not be used here, yet."
112
- msgstr ""
113
-
114
- #: classes/setup.class.php:570
115
- msgid "This field class is not available!"
116
- msgstr ""
117
-
118
- #: classes/setup.class.php:574
119
- msgid "This type is not found!"
120
- msgstr ""
121
-
122
- #: classes/shortcoder.class.php:242
123
- msgid "Add one more"
124
- msgstr ""
125
-
126
- #: classes/shortcoder.class.php:279 functions/actions.php:43
127
- #: functions/actions.php:103 functions/actions.php:125
128
- #: functions/actions.php:160
129
- msgid "Error: Nonce verification has failed. Please try again."
130
- msgstr ""
131
-
132
- #: fields/background/background.php:35
133
- msgid "No background selected"
134
- msgstr ""
135
-
136
- #: fields/background/background.php:66 fields/date/date.php:31
137
- msgid "From"
138
- msgstr ""
139
-
140
- #: fields/background/background.php:84 fields/date/date.php:32
141
- msgid "To"
142
- msgstr ""
143
-
144
- #: fields/background/background.php:102
145
- msgid "Direction"
146
- msgstr ""
147
-
148
- #: fields/background/background.php:108
149
- msgid "Gradient Direction"
150
- msgstr ""
151
-
152
- #: fields/background/background.php:109
153
- msgid "&#8659; top to bottom"
154
- msgstr ""
155
-
156
- #: fields/background/background.php:110
157
- msgid "&#8658; left to right"
158
- msgstr ""
159
-
160
- #: fields/background/background.php:111
161
- msgid "&#8664; corner top to right"
162
- msgstr ""
163
-
164
- #: fields/background/background.php:112
165
- msgid "&#8665; corner top to left"
166
- msgstr ""
167
-
168
- #: fields/background/background.php:155
169
- msgid "Background Position"
170
- msgstr ""
171
-
172
- #: fields/background/background.php:156
173
- msgid "Left Top"
174
- msgstr ""
175
-
176
- #: fields/background/background.php:157
177
- msgid "Left Center"
178
- msgstr ""
179
-
180
- #: fields/background/background.php:158
181
- msgid "Left Bottom"
182
- msgstr ""
183
-
184
- #: fields/background/background.php:159
185
- msgid "Center Top"
186
- msgstr ""
187
-
188
- #: fields/background/background.php:160
189
- msgid "Center Center"
190
- msgstr ""
191
-
192
- #: fields/background/background.php:161
193
- msgid "Center Bottom"
194
- msgstr ""
195
-
196
- #: fields/background/background.php:162
197
- msgid "Right Top"
198
- msgstr ""
199
-
200
- #: fields/background/background.php:163
201
- msgid "Right Center"
202
- msgstr ""
203
-
204
- #: fields/background/background.php:164
205
- msgid "Right Bottom"
206
- msgstr ""
207
-
208
- #: fields/background/background.php:178
209
- msgid "Background Repeat"
210
- msgstr ""
211
-
212
- #: fields/background/background.php:179
213
- msgid "Repeat"
214
- msgstr ""
215
-
216
- #: fields/background/background.php:180
217
- msgid "No Repeat"
218
- msgstr ""
219
-
220
- #: fields/background/background.php:181
221
- msgid "Repeat Horizontally"
222
- msgstr ""
223
-
224
- #: fields/background/background.php:182
225
- msgid "Repeat Vertically"
226
- msgstr ""
227
-
228
- #: fields/background/background.php:196
229
- msgid "Background Attachment"
230
- msgstr ""
231
-
232
- #: fields/background/background.php:197
233
- msgid "Scroll"
234
- msgstr ""
235
-
236
- #: fields/background/background.php:198
237
- msgid "Fixed"
238
- msgstr ""
239
-
240
- #: fields/background/background.php:212
241
- msgid "Background Size"
242
- msgstr ""
243
-
244
- #: fields/background/background.php:213
245
- msgid "Cover"
246
- msgstr ""
247
-
248
- #: fields/background/background.php:214
249
- msgid "Contain"
250
- msgstr ""
251
-
252
- #: fields/background/background.php:228
253
- msgid "Background Origin"
254
- msgstr ""
255
-
256
- #: fields/background/background.php:229 fields/background/background.php:247
257
- msgid "Padding Box"
258
- msgstr ""
259
-
260
- #: fields/background/background.php:230 fields/background/background.php:246
261
- msgid "Border Box"
262
- msgstr ""
263
-
264
- #: fields/background/background.php:231 fields/background/background.php:248
265
- msgid "Content Box"
266
- msgstr ""
267
-
268
- #: fields/background/background.php:245
269
- msgid "Background Clip"
270
- msgstr ""
271
-
272
- #: fields/background/background.php:262
273
- msgid "Background Blend Mode"
274
- msgstr ""
275
-
276
- #: fields/background/background.php:263 fields/link_color/link_color.php:36
277
- #: fields/typography/typography.php:173
278
- msgid "Normal"
279
- msgstr ""
280
-
281
- #: fields/background/background.php:264
282
- msgid "Multiply"
283
- msgstr ""
284
-
285
- #: fields/background/background.php:265
286
- msgid "Screen"
287
- msgstr ""
288
-
289
- #: fields/background/background.php:266
290
- msgid "Overlay"
291
- msgstr ""
292
-
293
- #: fields/background/background.php:267
294
- msgid "Darken"
295
- msgstr ""
296
-
297
- #: fields/background/background.php:268
298
- msgid "Lighten"
299
- msgstr ""
300
-
301
- #: fields/background/background.php:269
302
- msgid "Color Dodge"
303
- msgstr ""
304
-
305
- #: fields/background/background.php:270
306
- msgid "Saturation"
307
- msgstr ""
308
-
309
- #: fields/background/background.php:271
310
- msgid "Color"
311
- msgstr ""
312
-
313
- #: fields/background/background.php:272
314
- msgid "Luminosity"
315
- msgstr ""
316
-
317
- #: fields/backup/backup.php:26
318
- msgid "Import"
319
- msgstr ""
320
-
321
- #: fields/backup/backup.php:27
322
- msgid "copy-paste your backup string here"
323
- msgstr ""
324
-
325
- #: fields/backup/backup.php:31
326
- msgid "Export and Download Backup"
327
- msgstr ""
328
-
329
- #: fields/backup/backup.php:35
330
- msgid "Please be sure for reset all of options."
331
- msgstr ""
332
-
333
- #: fields/border/border.php:25 fields/spacing/spacing.php:25
334
- msgid "top"
335
- msgstr ""
336
-
337
- #: fields/border/border.php:26 fields/spacing/spacing.php:26
338
- msgid "right"
339
- msgstr ""
340
-
341
- #: fields/border/border.php:27 fields/spacing/spacing.php:27
342
- msgid "bottom"
343
- msgstr ""
344
-
345
- #: fields/border/border.php:28 fields/spacing/spacing.php:28
346
- msgid "left"
347
- msgstr ""
348
-
349
- #: fields/border/border.php:29 fields/spacing/spacing.php:29
350
- msgid "all"
351
- msgstr ""
352
-
353
- #: fields/border/border.php:51 fields/typography/typography.php:201
354
- msgid "Solid"
355
- msgstr ""
356
-
357
- #: fields/border/border.php:52 fields/typography/typography.php:204
358
- msgid "Dashed"
359
- msgstr ""
360
-
361
- #: fields/border/border.php:53 fields/typography/typography.php:203
362
- msgid "Dotted"
363
- msgstr ""
364
-
365
- #: fields/border/border.php:54 fields/typography/typography.php:202
366
- msgid "Double"
367
- msgstr ""
368
-
369
- #: fields/border/border.php:55
370
- msgid "Inset"
371
- msgstr ""
372
-
373
- #: fields/border/border.php:56
374
- msgid "Outset"
375
- msgstr ""
376
-
377
- #: fields/border/border.php:57
378
- msgid "Groove"
379
- msgstr ""
380
-
381
- #: fields/border/border.php:58
382
- msgid "ridge"
383
- msgstr ""
384
-
385
- #: fields/border/border.php:59 fields/typography/typography.php:186
386
- #: fields/typography/typography.php:200
387
- msgid "None"
388
- msgstr ""
389
-
390
- #: fields/checkbox/checkbox.php:63 fields/radio/radio.php:62
391
- #: fields/select/select.php:112
392
- msgid "No data provided for this option type."
393
- msgstr ""
394
-
395
- #: fields/dimensions/dimensions.php:22
396
- msgid "width"
397
- msgstr ""
398
-
399
- #: fields/dimensions/dimensions.php:23
400
- msgid "height"
401
- msgstr ""
402
-
403
- #: fields/gallery/gallery.php:20
404
- msgid "Add Gallery"
405
- msgstr ""
406
-
407
- #: fields/gallery/gallery.php:21
408
- msgid "Edit Gallery"
409
- msgstr ""
410
-
411
- #: fields/gallery/gallery.php:22
412
- msgid "Clear"
413
- msgstr ""
414
-
415
- #: fields/group/group.php:23
416
- msgid "Add New"
417
- msgstr ""
418
-
419
- #: fields/group/group.php:35 fields/repeater/repeater.php:30
420
- msgid "Error: Nested field id can not be same with another nested field id."
421
- msgstr ""
422
-
423
- #: fields/group/group.php:46 fields/group/group.php:86
424
- #: fields/repeater/repeater.php:51 fields/repeater/repeater.php:82
425
- msgid "Are you sure to delete this item?"
426
- msgstr ""
427
-
428
- #: fields/group/group.php:121 fields/repeater/repeater.php:96
429
- msgid "You can not add more than"
430
- msgstr ""
431
-
432
- #: fields/group/group.php:122 fields/repeater/repeater.php:97
433
- msgid "You can not remove less than"
434
- msgstr ""
435
-
436
- #: fields/icon/icon.php:20 functions/actions.php:184
437
- msgid "Add Icon"
438
- msgstr ""
439
-
440
- #: fields/icon/icon.php:21
441
- msgid "Remove Icon"
442
- msgstr ""
443
-
444
- #: fields/link_color/link_color.php:37
445
- msgid "Hover"
446
- msgstr ""
447
-
448
- #: fields/link_color/link_color.php:38
449
- msgid "Active"
450
- msgstr ""
451
-
452
- #: fields/link_color/link_color.php:39
453
- msgid "Visited"
454
- msgstr ""
455
-
456
- #: fields/link_color/link_color.php:40
457
- msgid "Focus"
458
- msgstr ""
459
-
460
- #: fields/map/map.php:23
461
- msgid "Search your address..."
462
- msgstr ""
463
-
464
- #: fields/map/map.php:24
465
- msgid "Latitude"
466
- msgstr ""
467
-
468
- #: fields/map/map.php:25
469
- msgid "Longitude"
470
- msgstr ""
471
-
472
- #: fields/media/media.php:23 fields/upload/upload.php:21
473
- msgid "Upload"
474
- msgstr ""
475
-
476
- #: fields/media/media.php:24 fields/upload/upload.php:22
477
- msgid "Remove"
478
- msgstr ""
479
-
480
- #: fields/media/media.php:57
481
- msgid "No media selected"
482
- msgstr ""
483
-
484
- #: fields/sorter/sorter.php:21
485
- msgid "Enabled"
486
- msgstr ""
487
-
488
- #: fields/sorter/sorter.php:22
489
- msgid "Disabled"
490
- msgstr ""
491
-
492
- #: fields/switcher/switcher.php:20
493
- msgid "On"
494
- msgstr ""
495
-
496
- #: fields/switcher/switcher.php:21
497
- msgid "Off"
498
- msgstr ""
499
-
500
- #: fields/textarea/textarea.php:37
501
- msgid "Add Shortcode"
502
- msgstr ""
503
-
504
- #: fields/typography/typography.php:83
505
- msgid "Font Family"
506
- msgstr ""
507
-
508
- #: fields/typography/typography.php:84
509
- msgid "Select a font"
510
- msgstr ""
511
-
512
- #: fields/typography/typography.php:92
513
- msgid "Backup Font Family"
514
- msgstr ""
515
-
516
- #: fields/typography/typography.php:106 fields/typography/typography.php:119
517
- #: fields/typography/typography.php:132 fields/typography/typography.php:147
518
- #: fields/typography/typography.php:163 fields/typography/typography.php:176
519
- #: fields/typography/typography.php:190 fields/typography/typography.php:208
520
- msgid "Default"
521
- msgstr ""
522
-
523
- #: fields/typography/typography.php:117
524
- msgid "Font Style"
525
- msgstr ""
526
-
527
- #: fields/typography/typography.php:131 fields/typography/typography.php:132
528
- msgid "Load Extra Styles"
529
- msgstr ""
530
-
531
- #: fields/typography/typography.php:145
532
- msgid "Subset"
533
- msgstr ""
534
-
535
- #: fields/typography/typography.php:155
536
- msgid "Text Align"
537
- msgstr ""
538
-
539
- #: fields/typography/typography.php:157
540
- msgid "Inherit"
541
- msgstr ""
542
-
543
- #: fields/typography/typography.php:158
544
- msgid "Left"
545
- msgstr ""
546
-
547
- #: fields/typography/typography.php:159
548
- msgid "Center"
549
- msgstr ""
550
-
551
- #: fields/typography/typography.php:160
552
- msgid "Right"
553
- msgstr ""
554
-
555
- #: fields/typography/typography.php:161
556
- msgid "Justify"
557
- msgstr ""
558
-
559
- #: fields/typography/typography.php:162
560
- msgid "Initial"
561
- msgstr ""
562
-
563
- #: fields/typography/typography.php:171
564
- msgid "Font Variant"
565
- msgstr ""
566
-
567
- #: fields/typography/typography.php:174
568
- msgid "Small Caps"
569
- msgstr ""
570
-
571
- #: fields/typography/typography.php:175
572
- msgid "All Small Caps"
573
- msgstr ""
574
-
575
- #: fields/typography/typography.php:184
576
- msgid "Text Transform"
577
- msgstr ""
578
-
579
- #: fields/typography/typography.php:187
580
- msgid "Capitalize"
581
- msgstr ""
582
-
583
- #: fields/typography/typography.php:188
584
- msgid "Uppercase"
585
- msgstr ""
586
-
587
- #: fields/typography/typography.php:189
588
- msgid "Lowercase"
589
- msgstr ""
590
-
591
- #: fields/typography/typography.php:198
592
- msgid "Text Decoration"
593
- msgstr ""
594
-
595
- #: fields/typography/typography.php:205
596
- msgid "Wavy"
597
- msgstr ""
598
-
599
- #: fields/typography/typography.php:206
600
- msgid "Overline"
601
- msgstr ""
602
-
603
- #: fields/typography/typography.php:207
604
- msgid "Line-through"
605
- msgstr ""
606
-
607
- #: fields/typography/typography.php:220
608
- msgid "Font Size"
609
- msgstr ""
610
-
611
- #: fields/typography/typography.php:232
612
- msgid "Line Height"
613
- msgstr ""
614
-
615
- #: fields/typography/typography.php:244
616
- msgid "Letter Spacing"
617
- msgstr ""
618
-
619
- #: fields/typography/typography.php:256
620
- msgid "Word Spacing"
621
- msgstr ""
622
-
623
- #: fields/typography/typography.php:271
624
- msgid "Font Color"
625
- msgstr ""
626
-
627
- #: fields/typography/typography.php:282
628
- msgid "Custom Style"
629
- msgstr ""
630
-
631
- #: fields/typography/typography.php:349
632
- msgid "Custom Web Fonts"
633
- msgstr ""
634
-
635
- #: fields/typography/typography.php:355
636
- msgid "Safe Web Fonts"
637
- msgstr ""
638
-
639
- #: fields/typography/typography.php:375
640
- msgid "Google Web Fonts"
641
- msgstr ""
642
-
643
- #: functions/actions.php:35
644
- msgid "No data provided by developer"
645
- msgstr ""
646
-
647
- #: functions/actions.php:156
648
- msgid "You do not have required permissions to access."
649
- msgstr ""
650
-
651
- #: functions/actions.php:188
652
- msgid "Search a Icon..."
653
- msgstr ""
654
-
655
- #: functions/validate.php:14 functions/validate.php:86
656
- msgid "Please write a valid email address!"
657
- msgstr ""
658
-
659
- #: functions/validate.php:32 functions/validate.php:106
660
- msgid "Please write a numeric data!"
661
- msgstr ""
662
-
663
- #: functions/validate.php:50 functions/validate.php:126
664
- msgid "Error! This field is required!"
665
- msgstr ""
666
-
667
- #: functions/validate.php:68 functions/validate.php:146
668
- msgid "Please write a valid url!"
669
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/settings/languages/es_ES.mo DELETED
Binary file
admin/settings/languages/es_ES.po DELETED
@@ -1,277 +0,0 @@
1
- # Copyright (C) 2019 Codestar
2
- # This file is distributed under the same license as the Codestar Framework package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: Codestar Framework 2.0.2\n"
6
- "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/codestar-"
7
- "framework\n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=UTF-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "POT-Creation-Date: \n"
12
- "PO-Revision-Date: \n"
13
- "Language-Team: https://doothemes.com\n"
14
- "X-Generator: Poedit 2.2\n"
15
- "Last-Translator: Erick Meza <emeza@doothemes.com>\n"
16
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
- "Language: es_ES\n"
18
- "X-Poedit-Basepath: ..\n"
19
- "X-Poedit-SearchPath-0: .\n"
20
-
21
- #: classes/metabox.class.php:232 classes/options.class.php:670
22
- msgid "No option provided by developer."
23
- msgstr "Ninguna opción proporcionada por el desarrollador."
24
-
25
- #: classes/metabox.class.php:250
26
- msgid "Restore"
27
- msgstr "Restaurar"
28
-
29
- #: classes/metabox.class.php:251
30
- msgid "update post for restore "
31
- msgstr "actualizar la publicación para restaurar "
32
-
33
- #: classes/metabox.class.php:251
34
- msgid "Cancel"
35
- msgstr "Cancelar"
36
-
37
- #: classes/options.class.php:232 classes/options.class.php:388
38
- #: functions/actions.php:43 functions/actions.php:103 functions/actions.php:125
39
- msgid "Error while saving."
40
- msgstr "Error durante el guardado."
41
-
42
- #: classes/options.class.php:278
43
- msgid "Success. Imported backup options."
44
- msgstr "Excelente. Todas las opciones han sido importadas."
45
-
46
- #: classes/options.class.php:300
47
- msgid "Default options restored."
48
- msgstr "Opciones por defecto restauradas."
49
-
50
- #: classes/options.class.php:326
51
- msgid "Default options restored for only this section."
52
- msgstr "Opciones predeterminadas restauradas sólo para esta sección."
53
-
54
- #: classes/options.class.php:384
55
- msgid "Settings saved."
56
- msgstr "Ajustes guardados."
57
-
58
- #: classes/options.class.php:570
59
- msgid "show all options"
60
- msgstr "ver todas las opciones"
61
-
62
- #: classes/options.class.php:572
63
- msgid "Search option(s)"
64
- msgstr "Buscar opciones"
65
-
66
- #: classes/options.class.php:575 classes/options.class.php:694
67
- msgid "Save"
68
- msgstr "Guardar"
69
-
70
- #: classes/options.class.php:575 classes/options.class.php:694
71
- msgid "Saving..."
72
- msgstr "Guardando…"
73
-
74
- #: classes/options.class.php:576 classes/options.class.php:695
75
- msgid "Reset Section"
76
- msgstr "Restablecer sección"
77
-
78
- #: classes/options.class.php:577 classes/options.class.php:696
79
- #: fields/backup/backup.php:34
80
- msgid "Reset All"
81
- msgstr "Restablecer todo"
82
-
83
- #: classes/setup.class.php:372
84
- msgid "Ooops! This field type (%s) can not be used here, yet."
85
- msgstr "Ooops! Este tipo de campo (%s) no se puede utilizar aquí, todavía."
86
-
87
- #: classes/setup.class.php:414
88
- msgid "This field class is not available!"
89
- msgstr "¡Esta clase de campo no está disponible!"
90
-
91
- #: classes/setup.class.php:418
92
- msgid "This type is not found!"
93
- msgstr "¡ Este tipo no se encuentra!"
94
-
95
- #: classes/shortcoder.class.php:220
96
- msgid "Add one more"
97
- msgstr "Añadir una más"
98
-
99
- #: classes/shortcoder.class.php:257
100
- msgid "Security check"
101
- msgstr "Verificación de seguridad"
102
-
103
- #: fields/background/background.php:34
104
- msgid "No background selected"
105
- msgstr "No hay fondo seleccionado"
106
-
107
- #: fields/backup/backup.php:26
108
- msgid "Import"
109
- msgstr "Importar"
110
-
111
- #: fields/backup/backup.php:27
112
- msgid "copy-paste your backup string here"
113
- msgstr "copie-pegue su cadena de respaldo aquí"
114
-
115
- #: fields/backup/backup.php:31
116
- msgid "Export and Download Backup"
117
- msgstr "Exportar y Descargar Copia de Seguridad"
118
-
119
- #: fields/backup/backup.php:35
120
- msgid "Please be sure for reset all of options."
121
- msgstr "Por favor, asegúrese de restablecer todas las opciones."
122
-
123
- #: fields/gallery/gallery.php:20
124
- msgid "Add Gallery"
125
- msgstr "Agregar Galería"
126
-
127
- #: fields/gallery/gallery.php:21
128
- msgid "Edit Gallery"
129
- msgstr "Editar Galería"
130
-
131
- #: fields/gallery/gallery.php:22
132
- msgid "Clear"
133
- msgstr "Limpiar"
134
-
135
- #: fields/group/group.php:23
136
- msgid "Add New"
137
- msgstr "Añadir nuevo"
138
-
139
- #: fields/group/group.php:24 fields/icon/icon.php:21
140
- msgid "Remove Icon"
141
- msgstr "Eliminar Icono"
142
-
143
- #: fields/group/group.php:58 fields/media/media.php:24
144
- #: fields/upload/upload.php:22
145
- msgid "Remove"
146
- msgstr "Quitar"
147
-
148
- #: fields/group/group.php:113 fields/repeater/repeater.php:94
149
- msgid "You can not add more than"
150
- msgstr "No se puede agregar más de"
151
-
152
- #: fields/group/group.php:114 fields/repeater/repeater.php:95
153
- msgid "You can not remove less than"
154
- msgstr "No se puede quitar menos de"
155
-
156
- #: fields/icon/icon.php:20 functions/actions.php:147
157
- msgid "Add Icon"
158
- msgstr "Añadir Icono"
159
-
160
- #: fields/media/media.php:23 fields/upload/upload.php:21
161
- msgid "Upload"
162
- msgstr "Cargar"
163
-
164
- #: fields/media/media.php:46
165
- msgid "No media selected"
166
- msgstr "No se ha seleccionado ningún medio"
167
-
168
- #: fields/select/select.php:72
169
- msgid "No data provided for this option type."
170
- msgstr "No hay datos proporcionados para este tipo de opción."
171
-
172
- #: fields/sorter/sorter.php:21
173
- msgid "Enabled"
174
- msgstr "Habilitado"
175
-
176
- #: fields/sorter/sorter.php:22
177
- msgid "Disabled"
178
- msgstr "Deshabilitado"
179
-
180
- #: fields/textarea/textarea.php:37
181
- msgid "Add Shortcode"
182
- msgstr "Añadir Shortcode"
183
-
184
- #: fields/typography/typography.php:82
185
- msgid "Font Family"
186
- msgstr "Familia de Fuente"
187
-
188
- #: fields/typography/typography.php:83
189
- msgid "Select a font"
190
- msgstr "Seleccione una fuente"
191
-
192
- #: fields/typography/typography.php:91
193
- msgid "Backup Font Family"
194
- msgstr "Tipografía de respaldo"
195
-
196
- #: fields/typography/typography.php:105 fields/typography/typography.php:118
197
- #: fields/typography/typography.php:131 fields/typography/typography.php:146
198
- #: fields/typography/typography.php:162 fields/typography/typography.php:175
199
- #: fields/typography/typography.php:189 fields/typography/typography.php:207
200
- msgid "Default"
201
- msgstr "Predeterminado"
202
-
203
- #: fields/typography/typography.php:116
204
- msgid "Font Style"
205
- msgstr "Estilo de Fuente"
206
-
207
- #: fields/typography/typography.php:130 fields/typography/typography.php:131
208
- msgid "Load Extra Styles"
209
- msgstr "Cargar estilos adicionales"
210
-
211
- #: fields/typography/typography.php:144
212
- msgid "Subset"
213
- msgstr "Subconjunto"
214
-
215
- #: fields/typography/typography.php:154
216
- msgid "Text Align"
217
- msgstr "Texto alineado"
218
-
219
- #: fields/typography/typography.php:170
220
- msgid "Font Variant"
221
- msgstr "Variante de fuente"
222
-
223
- #: fields/typography/typography.php:183
224
- msgid "Text Transform"
225
- msgstr "Transformación de texto"
226
-
227
- #: fields/typography/typography.php:197
228
- msgid "Text Decoration"
229
- msgstr "Decoración del texto"
230
-
231
- #: fields/typography/typography.php:219
232
- msgid "Font Size"
233
- msgstr "Tamaño de fuente"
234
-
235
- #: fields/typography/typography.php:231
236
- msgid "Line Height"
237
- msgstr "Altura de la línea"
238
-
239
- #: fields/typography/typography.php:243
240
- msgid "Letter Spacing"
241
- msgstr "Espacio entre letras"
242
-
243
- #: fields/typography/typography.php:255
244
- msgid "Word Spacing"
245
- msgstr "Espaciado entre palabras"
246
-
247
- #: fields/typography/typography.php:269
248
- msgid "Font Color"
249
- msgstr "Color de fuente"
250
-
251
- #: fields/typography/typography.php:280
252
- msgid "Custom Style"
253
- msgstr "Estilo personalizado"
254
-
255
- #: functions/actions.php:35
256
- msgid "No data provided by developer"
257
- msgstr "No hay datos proporcionados por el desarrollador"
258
-
259
- #: functions/actions.php:151
260
- msgid "Search a Icon..."
261
- msgstr "Buscar un Icono…"
262
-
263
- #: functions/validate.php:14 functions/validate.php:86
264
- msgid "Please write a valid email address!"
265
- msgstr "¡Por favor escriba una dirección válida de correo electrónico!"
266
-
267
- #: functions/validate.php:32 functions/validate.php:106
268
- msgid "Please write a numeric data!"
269
- msgstr "¡Por favor introduce un dato numérico!"
270
-
271
- #: functions/validate.php:50 functions/validate.php:126
272
- msgid "Fatal Error! This field is required!"
273
- msgstr "¡Error Fatal! Este dato es obligatorio!"
274
-
275
- #: functions/validate.php:68 functions/validate.php:146
276
- msgid "Please write a valid url!"
277
- msgstr "Por favor, escriba una URL válida!"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/settings/samples/comment-metabox.samples.php DELETED
@@ -1,89 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
2
-
3
- //
4
- // Comment Metabox
5
- // Set a unique slug-like ID
6
- //
7
- $prefix_comment = '_prefix_comment';
8
-
9
- //
10
- // Create a comment metabox
11
- //
12
- CSF::createCommentMetabox( $prefix_comment, array(
13
- 'title' => 'Custom Comment Options',
14
- ) );
15
-
16
- //
17
- // Create a section
18
- //
19
- CSF::createSection( $prefix_comment, array(
20
-
21
- 'fields' => array(
22
-
23
- //
24
- // A text field
25
- //
26
- array(
27
- 'id' => 'opt-text',
28
- 'type' => 'text',
29
- 'title' => 'Text',
30
- ),
31
-
32
- array(
33
- 'id' => 'opt-textarea',
34
- 'type' => 'textarea',
35
- 'title' => 'Textarea',
36
- 'help' => 'The help text of the field.',
37
- ),
38
-
39
- array(
40
- 'id' => 'opt-upload',
41
- 'type' => 'upload',
42
- 'title' => 'Upload',
43
- ),
44
-
45
- array(
46
- 'id' => 'opt-switcher',
47
- 'type' => 'switcher',
48
- 'title' => 'Switcher',
49
- 'label' => 'The label text of the switcher.',
50
- ),
51
-
52
- array(
53
- 'id' => 'opt-color',
54
- 'type' => 'color',
55
- 'title' => 'Color',
56
- ),
57
-
58
- array(
59
- 'id' => 'opt-checkbox',
60
- 'type' => 'checkbox',
61
- 'title' => 'Checkbox',
62
- 'label' => 'The label text of the checkbox.',
63
- ),
64
-
65
- array(
66
- 'id' => 'opt-radio',
67
- 'type' => 'radio',
68
- 'title' => 'Radio',
69
- 'options' => array(
70
- 'yes' => 'Yes, Please.',
71
- 'no' => 'No, Thank you.',
72
- ),
73
- 'default' => 'yes',
74
- ),
75
-
76
- array(
77
- 'id' => 'opt-select',
78
- 'type' => 'select',
79
- 'title' => 'Select',
80
- 'placeholder' => 'Select an option',
81
- 'options' => array(
82
- 'opt-1' => 'Option 1',
83
- 'opt-2' => 'Option 2',
84
- 'opt-3' => 'Option 3',
85
- ),
86
- ),
87
-
88
- )
89
- ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/settings/samples/customize-options.samples.php DELETED
@@ -1,3413 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
2
-
3
- //
4
- // Set a unique slug-like ID
5
- //
6
- $prefix = 'csf_demo_customizer';
7
-
8
- //
9
- // Create customize options
10
- //
11
- CSF::createCustomizeOptions( $prefix );
12
-
13
- //
14
- // Create a section
15
- //
16
- CSF::createSection( $prefix, array(
17
- 'title' => 'CSF - Overview',
18
- 'priority' => 1,
19
- 'fields' => array(
20
-
21
- //
22
- // A text field
23
- //
24
- array(
25
- 'id' => 'opt-overview-text',
26
- 'type' => 'text',
27
- 'title' => 'Text',
28
- ),
29
-
30
- array(
31
- 'id' => 'opt-overview-textarea',
32
- 'type' => 'textarea',
33
- 'title' => 'Textarea',
34
- 'help' => 'The help text of the field.',
35
- ),
36
-
37
- array(
38
- 'id' => 'opt-upload',
39
- 'type' => 'upload',
40
- 'title' => 'Upload',
41
- ),
42
-
43
- array(
44
- 'id' => 'opt-overview-switcher',
45
- 'type' => 'switcher',
46
- 'title' => 'Switcher',
47
- 'label' => 'The label text of the switcher.',
48
- ),
49
-
50
- array(
51
- 'id' => 'opt-overview-color',
52
- 'type' => 'color',
53
- 'title' => 'Color',
54
- 'default' => '#3498db',
55
- ),
56
-
57
- array(
58
- 'id' => 'opt-overview-checkbox',
59
- 'type' => 'checkbox',
60
- 'title' => 'Checkbox',
61
- 'label' => 'The label text of the checkbox.',
62
- ),
63
-
64
- array(
65
- 'id' => 'opt-overview-radio',
66
- 'type' => 'radio',
67
- 'title' => 'Radio',
68
- 'options' => array(
69
- 'yes' => 'Yes, Please.',
70
- 'no' => 'No, Thank you.',
71
- ),
72
- 'default' => 'yes',
73
- ),
74
-
75
- array(
76
- 'id' => 'opt-overview-select',
77
- 'type' => 'select',
78
- 'title' => 'Select',
79
- 'placeholder' => 'Select an option',
80
- 'options' => array(
81
- 'opt-1' => 'Option 1',
82
- 'opt-2' => 'Option 2',
83
- 'opt-3' => 'Option 3',
84
- ),
85
- ),
86
-
87
- )
88
- ) );
89
-
90
- //
91
- // Create a section
92
- //
93
- CSF::createSection( $prefix, array(
94
- 'id' => 'nested_panel',
95
- 'title' => 'CSF - Nested Panels',
96
- 'priority' => 2,
97
- ) );
98
-
99
- //
100
- // Create a section
101
- //
102
- CSF::createSection( $prefix, array(
103
- 'parent' => 'nested_panel',
104
- 'title' => 'Nested Panel 1',
105
- 'priority' => 3,
106
- 'fields' => array(
107
-
108
- array(
109
- 'id' => 'opt-nested-text',
110
- 'type' => 'text',
111
- 'title' => 'Text',
112
- ),
113
-
114
- array(
115
- 'id' => 'opt-nested-textarea',
116
- 'type' => 'textarea',
117
- 'title' => 'Textarea',
118
- ),
119
-
120
- ),
121
- ) );
122
-
123
- //
124
- // Create a section
125
- //
126
- CSF::createSection( $prefix, array(
127
- 'parent' => 'nested_panel',
128
- 'title' => 'Nested Panel 2',
129
- 'priority' => 4,
130
- 'fields' => array(
131
-
132
- array(
133
- 'id' => 'opt-nested-color-1',
134
- 'type' => 'color',
135
- 'title' => 'Color 1',
136
- ),
137
-
138
- array(
139
- 'id' => 'opt-nested-color-2',
140
- 'type' => 'color',
141
- 'title' => 'Color 2',
142
- ),
143
-
144
- array(
145
- 'id' => 'opt-nested-color-3',
146
- 'type' => 'color',
147
- 'title' => 'Color 3',
148
- ),
149
-
150
- ),
151
- ) );
152
-
153
- //
154
- // Create a section
155
- //
156
- CSF::createSection( $prefix, array(
157
- 'id' => 'fields',
158
- 'title' => 'CSF - Fields',
159
- 'priority' => 5,
160
- ) );
161
-
162
- //
163
- // Field: text
164
- //
165
- CSF::createSection( $prefix, array(
166
- 'parent' => 'fields',
167
- 'title' => 'Text',
168
- 'icon' => 'fa fa-square-o',
169
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=text" target="_blank">Field: text</a>',
170
- 'fields' => array(
171
-
172
- array(
173
- 'id' => 'opt-text-1',
174
- 'type' => 'text',
175
- 'title' => 'Text',
176
- ),
177
-
178
- array(
179
- 'id' => 'opt-text-2',
180
- 'type' => 'text',
181
- 'title' => 'Text with default',
182
- 'default' => 'This is default value bla bla bla',
183
- ),
184
-
185
- array(
186
- 'id' => 'opt-text-3',
187
- 'type' => 'text',
188
- 'title' => 'Text field ingenuity',
189
- 'subtitle' => 'The field of subtitle text.',
190
- 'help' => 'The field of help text.',
191
- 'before' => '<p>The field of before text.</p>',
192
- 'after' => '<p>The field of after text.</p>',
193
- ),
194
-
195
- array(
196
- 'id' => 'opt-text-4',
197
- 'type' => 'text',
198
- 'title' => 'Text with placeholder',
199
- 'placeholder' => 'Typed something...'
200
- ),
201
-
202
- array(
203
- 'id' => 'opt-text-5',
204
- 'type' => 'text',
205
- 'title' => 'Text readonly',
206
- 'attributes' => array(
207
- 'readonly' => 'readonly'
208
- ),
209
- 'default' => 'readonly text field, can not be changed'
210
- ),
211
-
212
- array(
213
- 'id' => 'opt-text-6',
214
- 'type' => 'text',
215
- 'title' => 'Text with maxlength (5)',
216
- 'attributes' => array(
217
- 'maxlength' => '5'
218
- ),
219
- 'default' => 'abc',
220
- ),
221
-
222
- array(
223
- 'id' => 'opt-text-7',
224
- 'type' => 'text',
225
- 'title' => 'Text usign custom styles',
226
- 'attributes' => array(
227
- 'style' => 'width: 100%; height: 40px; border-color: #93C054;'
228
- ),
229
- ),
230
-
231
- array(
232
- 'id' => 'opt-text-8',
233
- 'type' => 'text',
234
- 'after' => '<p>It shows full width if there is no field of title.</p>',
235
- ),
236
-
237
- )
238
- ) );
239
-
240
- //
241
- // Field: textarea
242
- //
243
- CSF::createSection( $prefix, array(
244
- 'parent' => 'fields',
245
- 'title' => 'Textarea',
246
- 'icon' => 'fa fa-square-o',
247
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=textarea" target="_blank">Field: textrea</a>',
248
- 'fields' => array(
249
-
250
- array(
251
- 'id' => 'opt-textarea-1',
252
- 'type' => 'textarea',
253
- 'title' => 'Textarea',
254
- ),
255
-
256
- array(
257
- 'id' => 'opt-textarea-2',
258
- 'type' => 'textarea',
259
- 'title' => 'Textarea wtih default',
260
- 'default' => 'This is default value bla bla bla',
261
- ),
262
-
263
- array(
264
- 'id' => 'opt-textarea-3',
265
- 'type' => 'textarea',
266
- 'title' => 'Text with placeholder',
267
- 'placeholder' => 'Typed something...'
268
- ),
269
-
270
- array(
271
- 'id' => 'opt-textarea-4',
272
- 'type' => 'textarea',
273
- 'title' => 'Textarea with shortcoder',
274
- 'shortcoder' => 'csf_demo_shortcodes',
275
- ),
276
-
277
- array(
278
- 'id' => 'opt-textarea-5',
279
- 'type' => 'textarea',
280
- 'title' => 'Textarea field ingenuity',
281
- 'subtitle' => 'The field of subtitle text.',
282
- 'help' => 'The field of help text.',
283
- 'before' => '<p>The field of before text.</p>',
284
- 'after' => '<p>The field of after text.</p>',
285
- ),
286
-
287
- array(
288
- 'id' => 'opt-textarea-6',
289
- 'type' => 'textarea',
290
- 'after' => '<p>It shows full width if there is no field of title.</p>',
291
- ),
292
-
293
- )
294
- ) );
295
-
296
- //
297
- // Field: select
298
- //
299
- CSF::createSection( $prefix, array(
300
- 'parent' => 'fields',
301
- 'title' => 'Select',
302
- 'icon' => 'fa fa-list',
303
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=select" target="_blank">Field: select</a>',
304
- 'fields' => array(
305
-
306
- array(
307
- 'id' => 'opt-select-1',
308
- 'type' => 'select',
309
- 'title' => 'Select',
310
- 'placeholder' => 'Select an option',
311
- 'options' => array(
312
- 'opt-1' => 'Option 1',
313
- 'opt-2' => 'Option 2',
314
- 'opt-3' => 'Option 3',
315
- ),
316
- ),
317
-
318
- array(
319
- 'id' => 'opt-select-2',
320
- 'type' => 'select',
321
- 'title' => 'Select with default',
322
- 'placeholder' => 'Select an option',
323
- 'options' => array(
324
- 'opt-1' => 'Option 1',
325
- 'opt-2' => 'Option 2',
326
- 'opt-3' => 'Option 3',
327
- ),
328
- 'default' => 'opt-2'
329
- ),
330
-
331
- array(
332
- 'id' => 'opt-select-3',
333
- 'type' => 'select',
334
- 'title' => 'Select with group related options',
335
- 'placeholder' => 'Select an option',
336
- 'options' => array(
337
- 'Group 1' => array(
338
- 'opt-1' => 'Option 1',
339
- 'opt-2' => 'Option 2',
340
- 'opt-3' => 'Option 3',
341
- ),
342
- 'Group 2' => array(
343
- 'opt-4' => 'Option 4',
344
- 'opt-5' => 'Option 5',
345
- 'opt-6' => 'Option 6',
346
- ),
347
- 'Group 3' => array(
348
- 'opt-7' => 'Option 7',
349
- 'opt-8' => 'Option 8',
350
- 'opt-9' => 'Option 9',
351
- ),
352
- ),
353
- ),
354
-
355
- array(
356
- 'id' => 'opt-select-4',
357
- 'type' => 'select',
358
- 'title' => 'Select with multiple choice',
359
- 'multiple' => true,
360
- 'attributes' => array(
361
- 'style' => 'min-width: 200px;'
362
- ),
363
- 'options' => array(
364
- 'opt-1' => 'Option 1',
365
- 'opt-2' => 'Option 2',
366
- 'opt-3' => 'Option 3',
367
- 'opt-4' => 'Option 4',
368
- 'opt-5' => 'Option 5',
369
- 'opt-6' => 'Option 6',
370
- ),
371
- 'default' => array( 'opt-2', 'opt-3' ),
372
- ),
373
-
374
- array(
375
- 'type' => 'notice',
376
- 'style' => 'info',
377
- 'content' => 'Select with <strong>chosen</strong> style.',
378
- ),
379
-
380
- array(
381
- 'id' => 'opt-select-5',
382
- 'type' => 'select',
383
- 'title' => 'Select with Chosen',
384
- 'chosen' => true,
385
- 'placeholder' => 'Select an option',
386
- 'options' => array(
387
- 'opt-1' => 'Option 1',
388
- 'opt-2' => 'Option 2',
389
- 'opt-3' => 'Option 3',
390
- 'opt-4' => 'Option 4',
391
- 'opt-5' => 'Option 5',
392
- 'opt-6' => 'Option 6',
393
- ),
394
- ),
395
-
396
- array(
397
- 'id' => 'opt-select-6',
398
- 'type' => 'select',
399
- 'title' => 'Select with multiple Chosen',
400
- 'chosen' => true,
401
- 'multiple' => true,
402
- 'placeholder' => 'Select an option',
403
- 'options' => array(
404
- 'opt-1' => 'Option 1',
405
- 'opt-2' => 'Option 2',
406
- 'opt-3' => 'Option 3',
407
- 'opt-4' => 'Option 4',
408
- 'opt-5' => 'Option 5',
409
- 'opt-6' => 'Option 6',
410
- ),
411
- ),
412
-
413
- array(
414
- 'id' => 'opt-select-7',
415
- 'type' => 'select',
416
- 'title' => 'Select with multiple Chosen and Sortable',
417
- 'chosen' => true,
418
- 'multiple' => true,
419
- 'sortable' => true,
420
- 'placeholder' => 'Select an option',
421
- 'options' => array(
422
- 'opt-1' => 'Option 1',
423
- 'opt-2' => 'Option 2',
424
- 'opt-3' => 'Option 3',
425
- 'opt-4' => 'Option 4',
426
- 'opt-5' => 'Option 5',
427
- 'opt-6' => 'Option 6',
428
- ),
429
- 'default' => array( 'opt-1', 'opt-2', 'opt-3' )
430
- ),
431
-
432
- array(
433
- 'id' => 'opt-select-8',
434
- 'type' => 'select',
435
- 'title' => 'Select with multiple AJAX search Pages',
436
- 'chosen' => true,
437
- 'multiple' => true,
438
- 'sortable' => true,
439
- 'ajax' => true,
440
- 'options' => 'pages',
441
- 'placeholder' => 'Select pages',
442
- ),
443
-
444
- array(
445
- 'id' => 'opt-select-9',
446
- 'type' => 'select',
447
- 'title' => 'Select with multiple AJAX search Posts',
448
- 'chosen' => true,
449
- 'multiple' => true,
450
- 'sortable' => true,
451
- 'ajax' => true,
452
- 'options' => 'posts',
453
- 'placeholder' => 'Select posts',
454
- ),
455
-
456
- array(
457
- 'id' => 'opt-select-10',
458
- 'type' => 'select',
459
- 'title' => 'Select with AJAX search Category',
460
- 'chosen' => true,
461
- 'ajax' => true,
462
- 'options' => 'category',
463
- 'placeholder' => 'Select a category',
464
- ),
465
-
466
- array(
467
- 'type' => 'notice',
468
- 'style' => 'info',
469
- 'content' => 'Select with <strong>predefined wp query</strong> options.',
470
- ),
471
-
472
- array(
473
- 'id' => 'opt-select-11',
474
- 'type' => 'select',
475
- 'title' => 'Select with pages',
476
- 'placeholder' => 'Select a page',
477
- 'options' => 'pages',
478
- ),
479
-
480
- array(
481
- 'id' => 'opt-select-12',
482
- 'type' => 'select',
483
- 'title' => 'Select with posts',
484
- 'placeholder' => 'Select a post',
485
- 'options' => 'posts',
486
- ),
487
-
488
- array(
489
- 'id' => 'opt-select-13',
490
- 'type' => 'select',
491
- 'title' => 'Select with categories',
492
- 'placeholder' => 'Select a category',
493
- 'options' => 'categories',
494
- ),
495
-
496
- array(
497
- 'id' => 'opt-select-14',
498
- 'type' => 'select',
499
- 'title' => 'Select with menus',
500
- 'placeholder' => 'Select a menu',
501
- 'options' => 'menus',
502
- ),
503
-
504
- array(
505
- 'id' => 'opt-select-15',
506
- 'type' => 'select',
507
- 'title' => 'Select with sidebars',
508
- 'placeholder' => 'Select a sidebar',
509
- 'options' => 'sidebars',
510
- ),
511
-
512
- array(
513
- 'id' => 'opt-select-16',
514
- 'type' => 'select',
515
- 'title' => 'Select with wp roles',
516
- 'placeholder' => 'Select a role',
517
- 'options' => 'roles',
518
- ),
519
-
520
- array(
521
- 'id' => 'opt-select-17',
522
- 'type' => 'select',
523
- 'title' => 'Select with users',
524
- 'placeholder' => 'Select a user',
525
- 'options' => 'users',
526
- ),
527
-
528
- array(
529
- 'id' => 'opt-select-18',
530
- 'type' => 'select',
531
- 'title' => 'Select with post type',
532
- 'placeholder' => 'Select a post type',
533
- 'options' => 'post_types',
534
- ),
535
-
536
- array(
537
- 'id' => 'opt-select-19',
538
- 'type' => 'select',
539
- 'title' => 'Select with CPT (custom post type) posts',
540
- 'placeholder' => 'Select a post',
541
- 'options' => 'posts',
542
- 'query_args' => array(
543
- 'post_type' => 'your_post_type_name',
544
- ),
545
- ),
546
-
547
- array(
548
- 'id' => 'opt-select-20',
549
- 'type' => 'select',
550
- 'title' => 'Select with CPT (custom post type) categories',
551
- 'placeholder' => 'Select a category',
552
- 'options' => 'categories',
553
- 'query_args' => array(
554
- 'taxonomy' => 'your_taxonomy_name',
555
- ),
556
- ),
557
-
558
- )
559
- ) );
560
-
561
- //
562
- // Field: checkbox
563
- //
564
- CSF::createSection( $prefix, array(
565
- 'parent' => 'fields',
566
- 'title' => 'Checkbox',
567
- 'icon' => 'fa fa-check-square',
568
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=checkbox" target="_blank">Field: checkbox</a>',
569
- 'fields' => array(
570
-
571
- array(
572
- 'id' => 'opt-checkbox-1',
573
- 'type' => 'checkbox',
574
- 'title' => 'Checkbox',
575
- 'label' => 'The label text of the checkbox.',
576
- ),
577
-
578
- array(
579
- 'id' => 'opt-checkbox-2',
580
- 'type' => 'checkbox',
581
- 'title' => 'Checkbox with default',
582
- 'label' => 'The label text of the checkbox.',
583
- 'default' => true,
584
- ),
585
-
586
- array(
587
- 'id' => 'opt-checkbox-3',
588
- 'type' => 'checkbox',
589
- 'title' => 'Checkbox with multiple choice',
590
- 'options' => array(
591
- 'opt-1' => 'Option 1',
592
- 'opt-2' => 'Option 2',
593
- 'opt-3' => 'Option 3',
594
- ),
595
- ),
596
-
597
- array(
598
- 'id' => 'opt-checkbox-4',
599
- 'type' => 'checkbox',
600
- 'title' => 'Checkbox inline with multiple choice',
601
- 'inline' => true,
602
- 'options' => array(
603
- 'opt-1' => 'Option 1',
604
- 'opt-2' => 'Option 2',
605
- 'opt-3' => 'Option 3',
606
- ),
607
- ),
608
-
609
- array(
610
- 'id' => 'opt-checkbox-5',
611
- 'type' => 'checkbox',
612
- 'title' => 'Checkbox multiple choice with default',
613
- 'options' => array(
614
- 'opt-1' => 'Option 1',
615
- 'opt-2' => 'Option 2',
616
- 'opt-3' => 'Option 3',
617
- ),
618
- 'default' => array( 'opt-1', 'opt-2' )
619
- ),
620
-
621
- array(
622
- 'id' => 'opt-checkbox-6',
623
- 'type' => 'checkbox',
624
- 'title' => 'Checkbox with group related options',
625
- 'options' => array(
626
- 'Group 1' => array(
627
- 'opt-1' => 'Option 1',
628
- 'opt-2' => 'Option 2',
629
- 'opt-3' => 'Option 3',
630
- ),
631
- 'Group 2' => array(
632
- 'opt-4' => 'Option 4',
633
- 'opt-5' => 'Option 5',
634
- 'opt-6' => 'Option 6',
635
- ),
636
- ),
637
- ),
638
-
639
- array(
640
- 'id' => 'opt-checkbox-7',
641
- 'type' => 'checkbox',
642
- 'title' => 'Checkbox testing on many items',
643
- 'options' => array(
644
- 'opt-1' => 'Option 1',
645
- 'opt-2' => 'Option 2',
646
- 'opt-3' => 'Option 3',
647
- 'opt-4' => 'Option 4',
648
- 'opt-5' => 'Option 5',
649
- 'opt-6' => 'Option 6',
650
- 'opt-7' => 'Option 7',
651
- 'opt-8' => 'Option 8',
652
- 'opt-9' => 'Option 9',
653
- 'opt-10' => 'Option 10',
654
- 'opt-11' => 'Option 11',
655
- 'opt-12' => 'Option 12',
656
- 'opt-13' => 'Option 13',
657
- 'opt-14' => 'Option 14',
658
- 'opt-15' => 'Option 15',
659
- ),
660
- 'after' => '<p class="csf-text-muted">Vertical scroll showing automatically after add many items</p>'
661
- ),
662
-
663
- array(
664
- 'type' => 'notice',
665
- 'style' => 'info',
666
- 'content' => 'Checkbox with <strong>predefined wp query</strong> options similar like <strong>select</strong> field. (see select field for all options models.)',
667
- ),
668
-
669
- array(
670
- 'id' => 'opt-checkbox-8',
671
- 'type' => 'checkbox',
672
- 'title' => 'Checkbox with categories',
673
- 'options' => 'categories',
674
- ),
675
-
676
- )
677
- ) );
678
-
679
- //
680
- // Field: radio
681
- //
682
- CSF::createSection( $prefix, array(
683
- 'parent' => 'fields',
684
- 'title' => 'Radio',
685
- 'icon' => 'fa fa-dot-circle-o',
686
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=radio" target="_blank">Field: radio</a>',
687
- 'fields' => array(
688
-
689
- array(
690
- 'id' => 'opt-radio-1',
691
- 'type' => 'radio',
692
- 'title' => 'Radio',
693
- 'options' => array(
694
- 'opt-1' => 'Option 1',
695
- 'opt-2' => 'Option 2',
696
- 'opt-3' => 'Option 3',
697
- ),
698
- ),
699
-
700
- array(
701
- 'id' => 'opt-radio-2',
702
- 'type' => 'radio',
703
- 'title' => 'Radio with default',
704
- 'options' => array(
705
- 'opt-1' => 'Option 1',
706
- 'opt-2' => 'Option 2',
707
- 'opt-3' => 'Option 3',
708
- ),
709
- 'default' => 'opt-2',
710
- ),
711
-
712
- array(
713
- 'id' => 'opt-radio-3',
714
- 'type' => 'radio',
715
- 'title' => 'Radio with inline style',
716
- 'inline' => true,
717
- 'options' => array(
718
- 'opt-1' => 'Option 1',
719
- 'opt-2' => 'Option 2',
720
- 'opt-3' => 'Option 3',
721
- ),
722
- ),
723
-
724
- array(
725
- 'id' => 'opt-radio-4',
726
- 'type' => 'radio',
727
- 'title' => 'Radio with group related options',
728
- 'options' => array(
729
- 'Group 1' => array(
730
- 'opt-1' => 'Option 1',
731
- 'opt-2' => 'Option 2',
732
- 'opt-3' => 'Option 3',
733
- ),
734
- 'Group 2' => array(
735
- 'opt-4' => 'Option 4',
736
- 'opt-5' => 'Option 5',
737
- 'opt-6' => 'Option 6',
738
- ),
739
- ),
740
- ),
741
-
742
- array(
743
- 'id' => 'opt-radio-5',
744
- 'type' => 'radio',
745
- 'title' => 'Radio testing on many items',
746
- 'options' => array(
747
- 'opt-1' => 'Option 1',
748
- 'opt-2' => 'Option 2',
749
- 'opt-3' => 'Option 3',
750
- 'opt-4' => 'Option 4',
751
- 'opt-5' => 'Option 5',
752
- 'opt-6' => 'Option 6',
753
- 'opt-7' => 'Option 7',
754
- 'opt-8' => 'Option 8',
755
- 'opt-9' => 'Option 9',
756
- 'opt-10' => 'Option 10',
757
- 'opt-11' => 'Option 11',
758
- 'opt-12' => 'Option 12',
759
- 'opt-13' => 'Option 13',
760
- 'opt-14' => 'Option 14',
761
- 'opt-15' => 'Option 15',
762
- ),
763
- 'after' => '<p class="csf-text-muted">Vertical scroll showing automatically after add many items</p>'
764
- ),
765
-
766
- array(
767
- 'type' => 'notice',
768
- 'style' => 'info',
769
- 'content' => 'Radio with <strong>predefined wp query</strong> options similar like <strong>select</strong> field. (see select field for all options models.)',
770
- ),
771
-
772
- array(
773
- 'id' => 'opt-radio-6',
774
- 'type' => 'radio',
775
- 'title' => 'Radio with categories',
776
- 'options' => 'categories',
777
- ),
778
-
779
- )
780
- ) );
781
-
782
- //
783
- // Field: repeater
784
- //
785
- CSF::createSection( $prefix, array(
786
- 'parent' => 'fields',
787
- 'title' => 'Repeater',
788
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=repeater" target="_blank">Field: repeater</a>',
789
- 'fields' => array(
790
-
791
- array(
792
- 'id' => 'opt-repeater-1',
793
- 'type' => 'repeater',
794
- 'title' => 'Repeater',
795
- 'fields' => array(
796
- array(
797
- 'id' => 'opt-text',
798
- 'type' => 'text',
799
- 'title' => 'Text'
800
- ),
801
- ),
802
- ),
803
-
804
- array(
805
- 'id' => 'opt-repeater-2',
806
- 'type' => 'repeater',
807
- 'title' => 'Repeater with default',
808
- 'fields' => array(
809
- array(
810
- 'id' => 'opt-text',
811
- 'type' => 'text',
812
- 'title' => 'Text',
813
- ),
814
- ),
815
- 'default' => array(
816
- array(
817
- 'opt-text' => 'Text default 1',
818
- ),
819
- array(
820
- 'opt-text' => 'Text default 2',
821
- ),
822
- ),
823
- ),
824
-
825
- array(
826
- 'id' => 'opt-repeater-3',
827
- 'type' => 'repeater',
828
- 'title' => 'Repeater with multiple fields',
829
- 'fields' => array(
830
- array(
831
- 'id' => 'opt-switcher',
832
- 'type' => 'switcher',
833
- 'title' => 'Switcher',
834
- ),
835
- array(
836
- 'id' => 'opt-color',
837
- 'type' => 'color',
838
- 'title' => 'Color',
839
- ),
840
- array(
841
- 'id' => 'opt-text',
842
- 'type' => 'text',
843
- 'title' => 'Text',
844
- ),
845
- ),
846
- 'default' => array(
847
- array(
848
- 'opt-switcher' => false,
849
- 'opt-color' => '#3498db',
850
- 'opt-text' => 'Text default 1',
851
- ),
852
- ),
853
- ),
854
-
855
- array(
856
- 'id' => 'opt-repeater-4',
857
- 'type' => 'repeater',
858
- 'title' => 'Repeater with limited (min - max items)',
859
- 'subtitle' => 'The maximum/minimum number of items the user can add. (In this example min:1, max:3)',
860
- 'button_title' => 'Add Text',
861
- 'min' => 1,
862
- 'max' => 3,
863
- 'fields' => array(
864
- array(
865
- 'id' => 'opt-text',
866
- 'type' => 'text',
867
- 'title' => 'Text',
868
- ),
869
- ),
870
- 'default' => array(
871
- array(
872
- 'opt-text' => 'Text default 1',
873
- ),
874
- array(
875
- 'opt-text' => 'Text default 2',
876
- ),
877
- ),
878
- ),
879
-
880
- array(
881
- 'id' => 'opt-repeater-6',
882
- 'type' => 'repeater',
883
- 'title' => 'Repeater nested repeater',
884
- 'subtitle' => 'Can be added unlimited nested repeater',
885
- 'fields' => array(
886
- array(
887
- 'id' => 'opt-text',
888
- 'type' => 'text',
889
- 'title' => 'Text',
890
- ),
891
- array(
892
- 'id' => 'opt-repeater-6-nested-1',
893
- 'type' => 'repeater',
894
- 'title' => 'Repeater',
895
- 'fields' => array(
896
- array(
897
- 'id' => 'opt-text',
898
- 'type' => 'text',
899
- 'title' => 'Text'
900
- ),
901
- ),
902
- ),
903
- ),
904
- 'default' => array(
905
- array(
906
- 'opt-text' => 'Text default 1',
907
- 'opt-repeater-6-nested-1' => array(
908
- array(
909
- 'opt-text' => 'Text default 1',
910
- ),
911
- array(
912
- 'opt-text' => 'Text default 2',
913
- ),
914
- ),
915
- ),
916
- ),
917
- ),
918
-
919
- )
920
- ) );
921
-
922
- //
923
- // Field: group
924
- //
925
- CSF::createSection( $prefix, array(
926
- 'parent' => 'fields',
927
- 'title' => 'Group',
928
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=group" target="_blank">Field: group</a>',
929
- 'fields' => array(
930
-
931
- array(
932
- 'id' => 'opt-group-1',
933
- 'type' => 'group',
934
- 'title' => 'Group',
935
- 'fields' => array(
936
- array(
937
- 'id' => 'opt-text',
938
- 'type' => 'text',
939
- 'title' => 'Text',
940
- ),
941
- array(
942
- 'id' => 'opt-switcher',
943
- 'type' => 'switcher',
944
- 'title' => 'Switcher',
945
- ),
946
- array(
947
- 'id' => 'opt-textarea',
948
- 'type' => 'textarea',
949
- 'title' => 'Textarea',
950
- ),
951
- )
952
- ),
953
-
954
- array(
955
- 'id' => 'opt-group-2',
956
- 'type' => 'group',
957
- 'title' => 'Group with default',
958
- 'fields' => array(
959
- array(
960
- 'id' => 'opt-text',
961
- 'type' => 'text',
962
- 'title' => 'Text',
963
- ),
964
- array(
965
- 'id' => 'opt-switcher',
966
- 'type' => 'switcher',
967
- 'title' => 'Switcher',
968
- ),
969
- array(
970
- 'id' => 'opt-textarea',
971
- 'type' => 'textarea',
972
- 'title' => 'Textarea',
973
- ),
974
- ),
975
- 'default' => array(
976
- array(
977
- 'opt-text' => 'Some text 1',
978
- 'opt-switcher' => true,
979
- 'opt-textarea' => 'Some textarea content 1',
980
- ),
981
- array(
982
- 'opt-text' => 'Some text 2',
983
- 'opt-switcher' => false,
984
- 'opt-textarea' => 'Some textarea content 2',
985
- ),
986
- )
987
- ),
988
-
989
- array(
990
- 'id' => 'opt-group-3',
991
- 'type' => 'group',
992
- 'title' => 'Group with limited (min - max items)',
993
- 'subtitle' => 'The maximum/minimum number of items the user can add. (In this example min:1, max:3)',
994
- 'min' => 1,
995
- 'max' => 3,
996
- 'fields' => array(
997
- array(
998
- 'id' => 'opt-text',
999
- 'type' => 'text',
1000
- 'title' => 'Text',
1001
- ),
1002
- array(
1003
- 'id' => 'opt-textarea',
1004
- 'type' => 'textarea',
1005
- 'title' => 'Textarea',
1006
- ),
1007
- ),
1008
- 'default' => array(
1009
- array(
1010
- 'opt-text' => 'Limited text 1',
1011
- 'opt-textarea' => 'Limited textarea content 1',
1012
- ),
1013
- array(
1014
- 'opt-text' => 'Limited text 2',
1015
- 'opt-textarea' => 'Limited textarea content 2',
1016
- ),
1017
- )
1018
- ),
1019
-
1020
- array(
1021
- 'id' => 'opt-group-4',
1022
- 'type' => 'group',
1023
- 'title' => 'Group with WP Editor',
1024
- 'subtitle' => 'WP Editor integrated for Ajax Call.',
1025
- 'fields' => array(
1026
- array(
1027
- 'id' => 'opt-text',
1028
- 'type' => 'text',
1029
- 'title' => 'Text',
1030
- ),
1031
- array(
1032
- 'id' => 'opt-editor',
1033
- 'type' => 'wp_editor',
1034
- 'title' => 'WP Editor',
1035
- ),
1036
- ),
1037
- 'default' => array(
1038
- array(
1039
- 'opt-text' => 'WP Editor 1',
1040
- 'opt-editor' => 'Editor content 1',
1041
- ),
1042
- array(
1043
- 'opt-text' => 'WP Editor 2',
1044
- 'opt-editor' => 'Editor content 2',
1045
- ),
1046
- )
1047
- ),
1048
-
1049
- array(
1050
- 'id' => 'opt-group-5',
1051
- 'type' => 'group',
1052
- 'title' => 'Group nested',
1053
- 'subtitle' => 'Can be added unlimited nested groups',
1054
- 'fields' => array(
1055
- array(
1056
- 'id' => 'opt-text',
1057
- 'type' => 'text',
1058
- 'title' => 'Text',
1059
- ),
1060
- array(
1061
- 'id' => 'opt-group-5-sublevel-1',
1062
- 'type' => 'group',
1063
- 'title' => 'Group Nested',
1064
- 'fields' => array(
1065
- array(
1066
- 'id' => 'opt-text',
1067
- 'type' => 'text',
1068
- 'title' => 'Text',
1069
- ),
1070
- array(
1071
- 'id' => 'opt-group-5-sublevel-2',
1072
- 'type' => 'group',
1073
- 'title' => 'Group Nested',
1074
- 'fields' => array(
1075
- array(
1076
- 'id' => 'opt-text',
1077
- 'type' => 'text',
1078
- 'title' => 'Text',
1079
- ),
1080
- array(
1081
- 'id' => 'opt-switcher',
1082
- 'type' => 'switcher',
1083
- 'title' => 'Switcher',
1084
- ),
1085
- array(
1086
- 'id' => 'opt-textarea',
1087
- 'type' => 'textarea',
1088
- 'title' => 'Textarea',
1089
- ),
1090
- )
1091
- ),
1092
- array(
1093
- 'id' => 'opt-switcher',
1094
- 'type' => 'switcher',
1095
- 'title' => 'Switcher',
1096
- ),
1097
- array(
1098
- 'id' => 'opt-textarea',
1099
- 'type' => 'textarea',
1100
- 'title' => 'Textarea',
1101
- ),
1102
- )
1103
- ),
1104
- array(
1105
- 'id' => 'opt-switcher',
1106
- 'type' => 'switcher',
1107
- 'title' => 'Switcher',
1108
- ),
1109
- array(
1110
- 'id' => 'opt-textarea',
1111
- 'type' => 'textarea',
1112
- 'title' => 'Textarea',
1113
- ),
1114
- ),
1115
- 'default' => array(
1116
-
1117
- // top level defaults
1118
- array(
1119
- 'opt-text' => 'Top Level 1',
1120
-
1121
- // sub level 1 defaults
1122
- 'opt-group-5-sublevel-1' => array(
1123
- array(
1124
- 'opt-text' => 'Sub Level 1',
1125
-
1126
- // sub level 2 defaults
1127
- 'opt-group-5-sublevel-2' => array(
1128
- array(
1129
- 'opt-text' => 'Sub Sub Level 1',
1130
- ),
1131
- array(
1132
- 'opt-text' => 'Sub Sub Level 2',
1133
- )
1134
- ),
1135
- ),
1136
- array(
1137
- 'opt-text' => 'Sub Level 2',
1138
- )
1139
- ),
1140
- ),
1141
-
1142
- // top level defaults
1143
- array(
1144
- 'opt-text' => 'Top Level 2',
1145
- ),
1146
- )
1147
- ),
1148
-
1149
- array(
1150
- 'id' => 'opt-group-6',
1151
- 'type' => 'group',
1152
- 'title' => 'Group with Repeater Field',
1153
- 'fields' => array(
1154
- array(
1155
- 'id' => 'opt-text',
1156
- 'type' => 'text',
1157
- 'title' => 'Text',
1158
- ),
1159
- array(
1160
- 'id' => 'opt-group-6-repeater',
1161
- 'type' => 'repeater',
1162
- 'title' => 'Repeater',
1163
- 'fields' => array(
1164
- array(
1165
- 'id' => 'opt-text',
1166
- 'type' => 'text',
1167
- 'title' => 'Text'
1168
- ),
1169
- ),
1170
- ),
1171
- array(
1172
- 'id' => 'opt-switcher',
1173
- 'type' => 'switcher',
1174
- 'title' => 'Switcher',
1175
- ),
1176
- array(
1177
- 'id' => 'opt-textarea',
1178
- 'type' => 'textarea',
1179
- 'title' => 'Textarea',
1180
- ),
1181
- ),
1182
- 'default' => array(
1183
- array(
1184
- 'opt-text' => 'Some text 1',
1185
- 'opt-group-6-repeater' => array(
1186
- array(
1187
- 'opt-text' => 'Some text 1',
1188
- ),
1189
- array(
1190
- 'opt-text' => 'Some text 2',
1191
- ),
1192
- )
1193
- ),
1194
- )
1195
- ),
1196
-
1197
- array(
1198
- 'id' => 'opt-group-7',
1199
- 'type' => 'group',
1200
- 'title' => 'Group with static prefix of title',
1201
- 'subtitle' => 'accordion_title_prefix => "Static Prefix:"',
1202
- 'accordion_title_prefix' => 'Static Prefix:',
1203
- 'fields' => array(
1204
- array(
1205
- 'id' => 'opt-text',
1206
- 'type' => 'text',
1207
- 'title' => 'Text',
1208
- ),
1209
- array(
1210
- 'id' => 'opt-switcher',
1211
- 'type' => 'switcher',
1212
- 'title' => 'Switcher',
1213
- ),
1214
- array(
1215
- 'id' => 'opt-textarea',
1216
- 'type' => 'textarea',
1217
- 'title' => 'Textarea',
1218
- ),
1219
- ),
1220
- 'default' => array(
1221
- array(
1222
- 'opt-text' => 'Some text 1',
1223
- 'opt-switcher' => true,
1224
- 'opt-textarea' => 'Some textarea content 1',
1225
- ),
1226
- array(
1227
- 'opt-text' => 'Some text 2',
1228
- 'opt-switcher' => false,
1229
- 'opt-textarea' => 'Some textarea content 2',
1230
- ),
1231
- )
1232
- ),
1233
-
1234
- array(
1235
- 'id' => 'opt-group-8',
1236
- 'type' => 'group',
1237
- 'title' => 'Group with title numbers',
1238
- 'subtitle' => 'accordion_title_number => true',
1239
- 'accordion_title_number' => true,
1240
- 'fields' => array(
1241
- array(
1242
- 'id' => 'opt-text',
1243
- 'type' => 'text',
1244
- 'title' => 'Text',
1245
- ),
1246
- array(
1247
- 'id' => 'opt-switcher',
1248
- 'type' => 'switcher',
1249
- 'title' => 'Switcher',
1250
- ),
1251
- array(
1252
- 'id' => 'opt-textarea',
1253
- 'type' => 'textarea',
1254
- 'title' => 'Textarea',
1255
- ),
1256
- ),
1257
- 'default' => array(
1258
- array(
1259
- 'opt-text' => 'Some text 1',
1260
- 'opt-switcher' => true,
1261
- 'opt-textarea' => 'Some textarea content 1',
1262
- ),
1263
- array(
1264
- 'opt-text' => 'Some text 2',
1265
- 'opt-switcher' => false,
1266
- 'opt-textarea' => 'Some textarea content 2',
1267
- ),
1268
- )
1269
- ),
1270
-
1271
- )
1272
- ) );
1273
-
1274
- //
1275
- // Field: accordion
1276
- //
1277
- CSF::createSection( $prefix, array(
1278
- 'parent' => 'fields',
1279
- 'title' => 'Accordion',
1280
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=accordion" target="_blank">Field: accordion</a>',
1281
- 'fields' => array(
1282
-
1283
- array(
1284
- 'id' => 'opt-accordion-1',
1285
- 'type' => 'accordion',
1286
- 'title' => 'Accordion',
1287
- 'accordions' => array(
1288
-
1289
- array(
1290
- 'title' => 'Accordion 1',
1291
- 'fields' => array(
1292
- array(
1293
- 'id' => 'opt-text-1',
1294
- 'type' => 'text',
1295
- 'title' => 'Text',
1296
- ),
1297
- array(
1298
- 'id' => 'opt-switcher-1',
1299
- 'type' => 'switcher',
1300
- 'title' => 'Switcher',
1301
- ),
1302
- array(
1303
- 'id' => 'opt-textarea-1',
1304
- 'type' => 'textarea',
1305
- 'title' => 'Textarea',
1306
- ),
1307
- )
1308
- ),
1309
-
1310
- array(
1311
- 'title' => 'Accordion 2',
1312
- 'fields' => array(
1313
- array(
1314
- 'id' => 'opt-text-2',
1315
- 'type' => 'text',
1316
- 'title' => 'Text',
1317
- ),
1318
- array(
1319
- 'id' => 'opt-color-1',
1320
- 'type' => 'color',
1321
- 'title' => 'Color',
1322
- ),
1323
- )
1324
- ),
1325
-
1326
- )
1327
- ),
1328
-
1329
- array(
1330
- 'id' => 'opt-accordion-2',
1331
- 'type' => 'accordion',
1332
- 'title' => 'Accordion with default',
1333
- 'accordions' => array(
1334
-
1335
- array(
1336
- 'title' => 'Fields 1',
1337
- 'fields' => array(
1338
- array(
1339
- 'id' => 'opt-text-1',
1340
- 'type' => 'text',
1341
- 'title' => 'Text 1',
1342
- ),
1343
- array(
1344
- 'id' => 'opt-text-2',
1345
- 'type' => 'text',
1346
- 'title' => 'Text 2',
1347
- ),
1348
- )
1349
- ),
1350
-
1351
- array(
1352
- 'title' => 'Fields 2',
1353
- 'fields' => array(
1354
- array(
1355
- 'id' => 'opt-color-1',
1356
- 'type' => 'color',
1357
- 'title' => 'Color 1',
1358
- ),
1359
- array(
1360
- 'id' => 'opt-color-2',
1361
- 'type' => 'color',
1362
- 'title' => 'Color 2',
1363
- ),
1364
- )
1365
- ),
1366
-
1367
- array(
1368
- 'title' => 'Fields 3',
1369
- 'fields' => array(
1370
- array(
1371
- 'id' => 'opt-textarea-1',
1372
- 'type' => 'textarea',
1373
- 'title' => 'Textarea 3',
1374
- ),
1375
- array(
1376
- 'id' => 'opt-textarea-2',
1377
- 'type' => 'textarea',
1378
- 'title' => 'Textarea 4',
1379
- ),
1380
- )
1381
- ),
1382
-
1383
- ),
1384
- 'default' => array(
1385
- 'opt-text-1' => 'This is text 1 default value',
1386
- 'opt-text-2' => 'This is text 2 default value',
1387
- 'opt-color-1' => '#1e73be',
1388
- 'opt-color-2' => '#ffbc00',
1389
- 'opt-textarea-1' => 'This is textarea 1 default value',
1390
- 'opt-textarea-2' => 'This is textarea 2 default value',
1391
- )
1392
- ),
1393
-
1394
- array(
1395
- 'id' => 'accordion_3',
1396
- 'type' => 'accordion',
1397
- 'title' => 'Accordion with custom icons',
1398
- 'accordions' => array(
1399
-
1400
- array(
1401
- 'title' => 'Other 1',
1402
- 'icon' => 'fa fa-check',
1403
- 'fields' => array(
1404
- array(
1405
- 'id' => 'opt-text-1',
1406
- 'type' => 'text',
1407
- 'title' => 'Text 1',
1408
- ),
1409
- )
1410
- ),
1411
-
1412
- array(
1413
- 'title' => 'Other 2',
1414
- 'icon' => 'fa fa-star',
1415
- 'fields' => array(
1416
- array(
1417
- 'id' => 'opt-text-2',
1418
- 'type' => 'text',
1419
- 'title' => 'Text 2',
1420
- ),
1421
- )
1422
- ),
1423
-
1424
- )
1425
- ),
1426
-
1427
- )
1428
- ) );
1429
-
1430
- //
1431
- // Field: tabbed
1432
- //
1433
- CSF::createSection( $prefix, array(
1434
- 'parent' => 'fields',
1435
- 'title' => 'Tabbed',
1436
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=tabbed" target="_blank">Field: tabbed</a>',
1437
- 'fields' => array(
1438
-
1439
- array(
1440
- 'id' => 'opt-tabbed-1',
1441
- 'type' => 'tabbed',
1442
- 'title' => 'Tabbed',
1443
- 'tabs' => array(
1444
-
1445
- array(
1446
- 'title' => 'Tab 1',
1447
- 'fields' => array(
1448
- array(
1449
- 'id' => 'opt-text-1',
1450
- 'type' => 'text',
1451
- 'title' => 'Text 1',
1452
- ),
1453
- array(
1454
- 'id' => 'opt-textarea-1',
1455
- 'type' => 'textarea',
1456
- 'title' => 'Textarea 1',
1457
- ),
1458
- ),
1459
- ),
1460
-
1461
- array(
1462
- 'title' => 'Tab 2',
1463
- 'fields' => array(
1464
- array(
1465
- 'id' => 'opt-text-2',
1466
- 'type' => 'text',
1467
- 'title' => 'Text 2',
1468
- ),
1469
- array(
1470
- 'id' => 'opt-textarea-2',
1471
- 'type' => 'textarea',
1472
- 'title' => 'Textarea 2',
1473
- ),
1474
- ),
1475
- ),
1476
-
1477
- ),
1478
- ),
1479
-
1480
- array(
1481
- 'id' => 'opt-tabbed-2',
1482
- 'type' => 'tabbed',
1483
- 'title' => 'Tabbed with default and icons',
1484
- 'tabs' => array(
1485
- array(
1486
- 'title' => 'Fields 1',
1487
- 'icon' => 'fa fa-check',
1488
- 'fields' => array(
1489
- array(
1490
- 'id' => 'opt-text-1',
1491
- 'type' => 'text',
1492
- 'title' => 'Text 1',
1493
- ),
1494
- array(
1495
- 'id' => 'opt-text-2',
1496
- 'type' => 'text',
1497
- 'title' => 'Text 2',
1498
- ),
1499
- ),
1500
- ),
1501
- array(
1502
- 'title' => 'Fields 2',
1503
- 'icon' => 'fa fa-star',
1504
- 'fields' => array(
1505
- array(
1506
- 'id' => 'opt-color-1',
1507
- 'type' => 'color',
1508
- 'title' => 'Color 1',
1509
- ),
1510
- array(
1511
- 'id' => 'opt-color-2',
1512
- 'type' => 'color',
1513
- 'title' => 'Color 2',
1514
- ),
1515
- ),
1516
- ),
1517
- array(
1518
- 'title' => 'Fields 3',
1519
- 'icon' => 'fa fa-gear',
1520
- 'fields' => array(
1521
- array(
1522
- 'id' => 'opt-textarea-1',
1523
- 'type' => 'textarea',
1524
- 'title' => 'Textarea 1',
1525
- ),
1526
- array(
1527
- 'id' => 'opt-textarea-2',
1528
- 'type' => 'textarea',
1529
- 'title' => 'Textarea 2',
1530
- ),
1531
- ),
1532
- ),
1533
- ),
1534
- 'default' => array(
1535
- 'opt-text-1' => 'This is text 1 default value',
1536
- 'opt-text-2' => 'This is text 2 default value',
1537
- 'opt-color-1' => '#1e73be',
1538
- 'opt-color-2' => '#ffbc00',
1539
- 'opt-textarea-1' => 'This is textarea 1 default value',
1540
- 'opt-textarea-2' => 'This is textarea 2 default value',
1541
- )
1542
- ),
1543
-
1544
- )
1545
- ) );
1546
-
1547
- //
1548
- // Field: fieldset
1549
- //
1550
- CSF::createSection( $prefix, array(
1551
- 'parent' => 'fields',
1552
- 'title' => 'Fieldset',
1553
- 'fields' => array(
1554
-
1555
- array(
1556
- 'id' => 'opt-fieldset-1',
1557
- 'type' => 'fieldset',
1558
- 'title' => 'Fieldset',
1559
- 'fields' => array(
1560
- array(
1561
- 'id' => 'opt-color',
1562
- 'type' => 'color',
1563
- 'title' => 'Color',
1564
- ),
1565
- array(
1566
- 'id' => 'opt-text',
1567
- 'type' => 'text',
1568
- 'title' => 'Text',
1569
- ),
1570
- array(
1571
- 'id' => 'opt-textarea',
1572
- 'type' => 'textarea',
1573
- 'title' => 'Textarea',
1574
- ),
1575
- ),
1576
- ),
1577
-
1578
- array(
1579
- 'id' => 'opt-fieldset-2',
1580
- 'type' => 'fieldset',
1581
- 'title' => 'Fieldset with default',
1582
- 'fields' => array(
1583
- array(
1584
- 'type' => 'subheading',
1585
- 'content' => 'Title of the fieldset',
1586
- ),
1587
- array(
1588
- 'id' => 'opt-color',
1589
- 'type' => 'color',
1590
- 'title' => 'Color',
1591
- ),
1592
- array(
1593
- 'id' => 'opt-text',
1594
- 'type' => 'text',
1595
- 'title' => 'Text',
1596
- ),
1597
- array(
1598
- 'id' => 'opt-textarea',
1599
- 'type' => 'textarea',
1600
- 'title' => 'Textarea',
1601
- ),
1602
- ),
1603
- 'default' => array(
1604
- 'opt-color' => '#1e73be',
1605
- 'opt-text' => 'This is text default value',
1606
- 'opt-textarea' => 'This is textarea default value',
1607
- )
1608
- ),
1609
-
1610
- )
1611
- ) );
1612
-
1613
- //
1614
- // Field: media
1615
- //
1616
- CSF::createSection( $prefix, array(
1617
- 'parent' => 'fields',
1618
- 'title' => 'Media',
1619
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=media" target="_blank">Field: media</a>',
1620
- 'fields' => array(
1621
-
1622
- array(
1623
- 'id' => 'opt-media-1',
1624
- 'type' => 'media',
1625
- 'title' => 'Media',
1626
- ),
1627
-
1628
- array(
1629
- 'id' => 'opt-media-2',
1630
- 'type' => 'media',
1631
- 'title' => 'Media without preview',
1632
- 'preview' => false,
1633
- ),
1634
-
1635
- array(
1636
- 'id' => 'opt-media-3',
1637
- 'type' => 'media',
1638
- 'title' => 'Media without url',
1639
- 'url' => false,
1640
- ),
1641
-
1642
- array(
1643
- 'id' => 'opt-media-4',
1644
- 'type' => 'media',
1645
- 'title' => 'Media with only image type',
1646
- 'library' => 'image',
1647
- ),
1648
-
1649
- array(
1650
- 'id' => 'opt-media-5',
1651
- 'type' => 'media',
1652
- 'title' => 'Media with only video type',
1653
- 'library' => 'video',
1654
- ),
1655
-
1656
- array(
1657
- 'id' => 'opt-media-6',
1658
- 'type' => 'media',
1659
- 'title' => 'Media with only audio type',
1660
- 'library' => 'audio',
1661
- ),
1662
-
1663
- )
1664
- ) );
1665
-
1666
- //
1667
- // Field: upload
1668
- //
1669
- CSF::createSection( $prefix, array(
1670
- 'parent' => 'fields',
1671
- 'title' => 'Upload',
1672
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=upload" target="_blank">Field: upload</a>',
1673
- 'fields' => array(
1674
-
1675
- array(
1676
- 'id' => 'opt-upload-1',
1677
- 'type' => 'upload',
1678
- 'title' => 'Upload',
1679
- ),
1680
-
1681
- array(
1682
- 'id' => 'opt-upload-2',
1683
- 'type' => 'upload',
1684
- 'title' => 'Upload with placeholder',
1685
- 'placeholder' => 'http://'
1686
- ),
1687
-
1688
- array(
1689
- 'id' => 'opt-upload-3',
1690
- 'type' => 'upload',
1691
- 'title' => 'Upload with only image type',
1692
- 'library' => 'image',
1693
- 'button_title' => 'Upload Image',
1694
- ),
1695
-
1696
- array(
1697
- 'id' => 'opt-upload-4',
1698
- 'type' => 'upload',
1699
- 'title' => 'Upload with only video type',
1700
- 'library' => 'video',
1701
- 'button_title' => 'Upload Video',
1702
- ),
1703
-
1704
- array(
1705
- 'id' => 'opt-upload-5',
1706
- 'type' => 'upload',
1707
- 'title' => 'Upload with only audio type',
1708
- 'library' => 'audio',
1709
- 'button_title' => 'Upload Audio',
1710
- ),
1711
-
1712
- )
1713
- ) );
1714
-
1715
- //
1716
- // Field: gallery
1717
- //
1718
- CSF::createSection( $prefix, array(
1719
- 'parent' => 'fields',
1720
- 'title' => 'Gallery',
1721
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=gallery" target="_blank">Field: gallery</a>',
1722
- 'fields' => array(
1723
-
1724
- array(
1725
- 'id' => 'opt-gallery-1',
1726
- 'type' => 'gallery',
1727
- 'title' => 'Gallery',
1728
- ),
1729
-
1730
- array(
1731
- 'id' => 'opt-gallery-2',
1732
- 'type' => 'gallery',
1733
- 'title' => 'Gallery with custom button names',
1734
- 'add_title' => 'Add Image(s)',
1735
- 'edit_title' => 'Edit Images',
1736
- 'clear_title' => 'Remove Images',
1737
- ),
1738
-
1739
- )
1740
- ) );
1741
-
1742
- //
1743
- // Field: code_editor
1744
- //
1745
- CSF::createSection( $prefix, array(
1746
- 'parent' => 'fields',
1747
- 'title' => 'Code Editor',
1748
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=code-editor" target="_blank">Field: code_editor</a>',
1749
- 'fields' => array(
1750
-
1751
- array(
1752
- 'id' => 'opt-code-editor-1',
1753
- 'type' => 'code_editor',
1754
- 'title' => 'Code Editor',
1755
- 'subtitle' => '<strong>Default Editor</strong> Using: theme: default and mode: htmlmixed',
1756
- ),
1757
-
1758
- array(
1759
- 'id' => 'code_editor_2',
1760
- 'type' => 'code_editor',
1761
- 'title' => 'Code Editor',
1762
- 'subtitle' => '<strong>HTML Editor</strong> Using: theme: shadowfox and mode: htmlmixed',
1763
- 'settings' => array(
1764
- 'theme' => 'shadowfox',
1765
- 'mode' => 'htmlmixed',
1766
- ),
1767
- 'default' =>'<div class="wrapper">
1768
- <h1>Hello world</h1>
1769
- <p>Lorem <strong>ipsum</strong> dollar.</p>
1770
- </div>',
1771
- ),
1772
-
1773
- array(
1774
- 'id' => 'opt-code-editor-2',
1775
- 'type' => 'code_editor',
1776
- 'title' => 'Code Editor',
1777
- 'subtitle' => '<strong>JS Editor</strong> Using: theme: dracula and mode: javascript',
1778
- 'settings' => array(
1779
- 'theme' => 'dracula',
1780
- 'mode' => 'javascript',
1781
- ),
1782
- 'default' =>';(function( $, window, document, undefined ) {
1783
- "use strict";
1784
-
1785
- $(document).ready( function() {
1786
-
1787
- // do stuff
1788
-
1789
- });
1790
-
1791
- })( jQuery, window, document );',
1792
- ),
1793
-
1794
- array(
1795
- 'id' => 'opt-code-editor-3',
1796
- 'type' => 'code_editor',
1797
- 'before' => '<p class="csf-text-muted"><strong>CSS Editor</strong> It shows full width if there is no field of title and using: theme: mbo and mode: css</p>',
1798
- 'settings' => array(
1799
- 'theme' => 'mbo',
1800
- 'mode' => 'css',
1801
- ),
1802
- 'default' =>'.wrapper {
1803
- font-family: "Open Sans";
1804
- font-size: 13px;
1805
- width: 250px;
1806
- height: 100px;
1807
- color: #fff;
1808
- background-color: #555;
1809
- }',
1810
- ),
1811
-
1812
- )
1813
- ) );
1814
-
1815
- //
1816
- // Field: wp_editor
1817
- //
1818
- CSF::createSection( $prefix, array(
1819
- 'parent' => 'fields',
1820
- 'title' => 'WP Editor',
1821
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=wp-editor" target="_blank">Field: wp_editor</a>',
1822
- 'fields' => array(
1823
-
1824
- array(
1825
- 'id' => 'opt-wp-editor-1',
1826
- 'type' => 'wp_editor',
1827
- 'title' => 'WP Editor',
1828
- ),
1829
-
1830
- array(
1831
- 'id' => 'opt-wp-editor-2',
1832
- 'type' => 'wp_editor',
1833
- 'title' => 'WP Editor with Custom Height and No Media Buttons',
1834
- 'subtitle' => 'Settings: height => 100px, media_buttons => false',
1835
- 'height' => '100px',
1836
- 'media_buttons' => false,
1837
- ),
1838
-
1839
- array(
1840
- 'id' => 'opt-wp-editor-3',
1841
- 'type' => 'wp_editor',
1842
- 'title' => 'WP Editor without QuickTags and Media Buttons',
1843
- 'subtitle' => 'Settings: height => 100px, media_buttons => false, quicktags => false',
1844
- 'height' => '100px',
1845
- 'media_buttons' => false,
1846
- 'quicktags' => false,
1847
- ),
1848
-
1849
- array(
1850
- 'id' => 'opt-wp-editor-4',
1851
- 'type' => 'wp_editor',
1852
- 'title' => 'WP Editor without Tinymce and Media Buttons',
1853
- 'subtitle' => 'Settings: height => 100px, media_buttons => false, tinymce => false',
1854
- 'height' => '100px',
1855
- 'media_buttons' => false,
1856
- 'tinymce' => false,
1857
- ),
1858
-
1859
- )
1860
- ) );
1861
-
1862
- //
1863
- // Field: color
1864
- //
1865
- CSF::createSection( $prefix, array(
1866
- 'parent' => 'fields',
1867
- 'title' => 'Color',
1868
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=color" target="_blank">Field: color</a>',
1869
- 'fields' => array(
1870
-
1871
- array(
1872
- 'id' => 'opt-color-1',
1873
- 'type' => 'color',
1874
- 'title' => 'Color',
1875
- ),
1876
-
1877
- array(
1878
- 'id' => 'opt-color-2',
1879
- 'type' => 'color',
1880
- 'title' => 'Color with default (hex)',
1881
- 'default' => '#3498db',
1882
- ),
1883
-
1884
- array(
1885
- 'id' => 'opt-color-3',
1886
- 'type' => 'color',
1887
- 'title' => 'Color with default (rgba)',
1888
- 'default' => 'rgba(255,255,0,0.25)',
1889
- ),
1890
-
1891
- array(
1892
- 'id' => 'opt-color-4',
1893
- 'type' => 'color',
1894
- 'title' => 'Color with default (transparent)',
1895
- 'default' => 'transparent',
1896
- ),
1897
-
1898
- )
1899
- ) );
1900
-
1901
- //
1902
- // Field: link_color
1903
- //
1904
- CSF::createSection( $prefix, array(
1905
- 'parent' => 'fields',
1906
- 'title' => 'Link Color',
1907
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=link-color" target="_blank">Field: link_color</a>',
1908
- 'fields' => array(
1909
-
1910
- array(
1911
- 'id' => 'opt-link-color-1',
1912
- 'type' => 'link_color',
1913
- 'title' => 'Link Color',
1914
- ),
1915
-
1916
- array(
1917
- 'id' => 'opt-link-color-2',
1918
- 'type' => 'link_color',
1919
- 'title' => 'Link Color with default',
1920
- 'default' => array(
1921
- 'color' => '#1e73be',
1922
- 'hover' => '#259ded',
1923
- ),
1924
- ),
1925
-
1926
- array(
1927
- 'id' => 'opt-link-color-3',
1928
- 'type' => 'link_color',
1929
- 'title' => 'Link Color with more color options',
1930
- 'color' => true,
1931
- 'hover' => true,
1932
- 'visited' => true,
1933
- 'active' => true,
1934
- 'focus' => true,
1935
- ),
1936
-
1937
- )
1938
- ) );
1939
-
1940
- //
1941
- // Field: color_group
1942
- //
1943
- CSF::createSection( $prefix, array(
1944
- 'parent' => 'fields',
1945
- 'title' => 'Color Group',
1946
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=color-group" target="_blank">Field: color_group</a>',
1947
- 'fields' => array(
1948
-
1949
- array(
1950
- 'id' => 'opt-color-group-1',
1951
- 'type' => 'color_group',
1952
- 'title' => 'Color Group',
1953
- 'options' => array(
1954
- 'color-1' => 'Color 1',
1955
- 'color-2' => 'Color 2',
1956
- )
1957
- ),
1958
-
1959
- array(
1960
- 'id' => 'opt-color-group-2',
1961
- 'type' => 'color_group',
1962
- 'title' => 'Color Group',
1963
- 'options' => array(
1964
- 'color-1' => 'Color 1',
1965
- 'color-2' => 'Color 2',
1966
- 'color-3' => 'Color 3',
1967
- )
1968
- ),
1969
-
1970
- array(
1971
- 'id' => 'opt-color-group-3',
1972
- 'type' => 'color_group',
1973
- 'title' => 'Color Group with default',
1974
- 'subtitle' => 'Can be add unlimited color options.',
1975
- 'options' => array(
1976
- 'color-1' => 'Color 1',
1977
- 'color-2' => 'Color 2',
1978
- 'color-3' => 'Color 3',
1979
- 'color-4' => 'Color 4',
1980
- 'color-5' => 'Color 5',
1981
- ),
1982
- 'default' => array(
1983
- 'color-1' => '#000100',
1984
- 'color-2' => '#002642',
1985
- 'color-3' => '#ffce4b',
1986
- 'color-4' => '#ff595e',
1987
- 'color-5' => '#0052cc',
1988
- )
1989
- ),
1990
-
1991
- )
1992
- ) );
1993
-
1994
- //
1995
- // Field: palette
1996
- //
1997
- CSF::createSection( $prefix, array(
1998
- 'parent' => 'fields',
1999
- 'title' => 'Color Palette',
2000
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=palette" target="_blank">Field: palette</a>',
2001
- 'fields' => array(
2002
-
2003
- array(
2004
- 'id' => 'opt-palette-1',
2005
- 'type' => 'palette',
2006
- 'title' => 'Palette',
2007
- 'subtitle' => 'Three set colors',
2008
- 'options' => array(
2009
- 'set-1' => array( '#f36e27', '#f3d430', '#ed1683' ),
2010
- 'set-2' => array( '#4153ab', '#6e86c7', '#211f27' ),
2011
- 'set-3' => array( '#162526', '#508486', '#C8C6CE' ),
2012
- 'set-4' => array( '#ccab5e', '#fff55f', '#197c5d' ),
2013
- ),
2014
- 'default' => 'set-1',
2015
- ),
2016
-
2017
- array(
2018
- 'id' => 'opt-palette-1',
2019
- 'type' => 'palette',
2020
- 'title' => 'Palette',
2021
- 'subtitle' => 'Four set colors',
2022
- 'options' => array(
2023
- 'set-1' => array( '#f04e36', '#f36e27', '#f3d430', '#ed1683' ),
2024
- 'set-2' => array( '#f9ca06', '#b5b546', '#2f4d48', '#212b2f' ),
2025
- 'set-3' => array( '#4153ab', '#6e86c7', '#211f27', '#d69762' ),
2026
- 'set-4' => array( '#162526', '#508486', '#C8C6CE', '#B45F1A' ),
2027
- 'set-5' => array( '#bbd5ff', '#ccab5e', '#fff55f', '#197c5d' ),
2028
- ),
2029
- 'default' => 'set-3',
2030
- ),
2031
-
2032
- array(
2033
- 'id' => 'opt-palette-2',
2034
- 'type' => 'palette',
2035
- 'title' => 'Palette',
2036
- 'subtitle' => 'Five set colors',
2037
- 'options' => array(
2038
- 'set-1' => array( '#bbd5ff', '#ccab5e', '#fff55f', '#197c5d', '#bce2c4' ),
2039
- 'set-2' => array( '#6d3264', '#edf7f6', '#fde8e9', '#006675', '#e49ab0' ),
2040
- 'set-3' => array( '#000100', '#002642', '#ffce4b', '#ff595e', '#0052cc' ),
2041
- ),
2042
- 'default' => 'set-1',
2043
- ),
2044
-
2045
- )
2046
- ) );
2047
-
2048
- //
2049
- // Field: background
2050
- //
2051
- CSF::createSection( $prefix, array(
2052
- 'parent' => 'fields',
2053
- 'title' => 'Background',
2054
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=background" target="_blank">Field: background</a>',
2055
- 'fields' => array(
2056
-
2057
- array(
2058
- 'id' => 'opt-background-1',
2059
- 'type' => 'background',
2060
- 'title' => 'Background',
2061
- ),
2062
-
2063
- array(
2064
- 'id' => 'opt-background-2',
2065
- 'type' => 'background',
2066
- 'title' => 'Background with default',
2067
- 'default' => array(
2068
- 'background-color' => '#e80000',
2069
- 'background-position' => 'center center',
2070
- 'background-repeat' => 'repeat-x',
2071
- 'background-attachment' => 'fixed',
2072
- 'background-size' => 'cover',
2073
- )
2074
- ),
2075
-
2076
- array(
2077
- 'id' => 'opt-background-3',
2078
- 'type' => 'background',
2079
- 'title' => 'Background with all features',
2080
- 'background_color' => true,
2081
- 'background_image' => true,
2082
- 'background-position' => true,
2083
- 'background_repeat' => true,
2084
- 'background_attachment' => true,
2085
- 'background_size' => true,
2086
- 'background_origin' => true,
2087
- 'background_clip' => true,
2088
- 'background_blend_mode' => true,
2089
- 'background_gradient' => true,
2090
- 'default' => array(
2091
- 'background-color' => '#009e44',
2092
- 'background-gradient-color' => '#81d742',
2093
- 'background-gradient-direction' => '135deg',
2094
- 'background-position' => 'center center',
2095
- 'background-repeat' => 'repeat-x',
2096
- 'background-attachment' => 'fixed',
2097
- 'background-size' => 'cover',
2098
- 'background-origin' => 'border-box',
2099
- 'background-clip' => 'padding-box',
2100
- 'background-blend-mode' => 'normal',
2101
- )
2102
- ),
2103
-
2104
- )
2105
- ) );
2106
-
2107
- //
2108
- // Field: typography
2109
- //
2110
- CSF::createSection( $prefix, array(
2111
- 'parent' => 'fields',
2112
- 'title' => 'Typography',
2113
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=typography" target="_blank">Field: typography</a>',
2114
- 'fields' => array(
2115
-
2116
- array(
2117
- 'id' => 'opt-typography-1',
2118
- 'type' => 'typography',
2119
- 'title' => 'Typography',
2120
- ),
2121
-
2122
- array(
2123
- 'id' => 'opt-typography-2',
2124
- 'type' => 'typography',
2125
- 'title' => 'Typography with default',
2126
- 'default' => array(
2127
- 'font-family' => 'Barlow',
2128
- 'font-weight' => '600',
2129
- 'subset' => 'latin-ext',
2130
- 'type' => 'google',
2131
- 'text-align' => 'center',
2132
- 'text-transform' => 'capitalize',
2133
- 'text-transform' => 'capitalize',
2134
- 'font-size' => '18',
2135
- 'line-height' => '20',
2136
- 'letter-spacing' => '-1',
2137
- 'color' => '#009e44',
2138
- ),
2139
- ),
2140
-
2141
- array(
2142
- 'id' => 'opt-typography-3',
2143
- 'type' => 'typography',
2144
- 'title' => 'Typography with few features',
2145
- 'text_align' => false,
2146
- 'text_transform' => false,
2147
- 'font_size' => false,
2148
- 'line_height' => false,
2149
- 'letter_spacing' => false,
2150
- 'color' => false,
2151
- 'default' => array(
2152
- 'font-family' => 'Lato',
2153
- 'font-weight' => '900',
2154
- 'subset' => 'latin',
2155
- 'type' => 'google',
2156
- ),
2157
- ),
2158
-
2159
-
2160
- array(
2161
- 'id' => 'opt-typography-4',
2162
- 'type' => 'typography',
2163
- 'title' => 'Typography with all features',
2164
- 'font_family' => true,
2165
- 'font_weight' => true,
2166
- 'font_style' => true,
2167
- 'font_size' => true,
2168
- 'line_height' => true,
2169
- 'letter_spacing' => true,
2170
- 'text_align' => true,
2171
- 'text-transform' => true,
2172
- 'color' => true,
2173
- 'subset' => true,
2174
- 'backup_font_family' => true,
2175
- 'font_variant' => true,
2176
- 'word_spacing' => true,
2177
- 'text_decoration' => true,
2178
- 'default' => array(
2179
- 'font-family' => 'Old Standard TT',
2180
- 'type' => 'google',
2181
- ),
2182
- ),
2183
-
2184
- )
2185
- ) );
2186
-
2187
- //
2188
- // Field: dimensions
2189
- //
2190
- CSF::createSection( $prefix, array(
2191
- 'parent' => 'fields',
2192
- 'title' => 'Dimensions',
2193
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=dimensions" target="_blank">Field: dimensions</a>',
2194
- 'fields' => array(
2195
-
2196
- array(
2197
- 'id' => 'opt-dimensions-1',
2198
- 'type' => 'dimensions',
2199
- 'title' => 'Dimensions',
2200
- ),
2201
-
2202
- array(
2203
- 'id' => 'opt-dimensions-2',
2204
- 'type' => 'dimensions',
2205
- 'title' => 'Dimensions with default',
2206
- 'default' => array(
2207
- 'width' => '100',
2208
- 'height' => '250',
2209
- 'unit' => 'px',
2210
- ),
2211
- ),
2212
-
2213
- array(
2214
- 'id' => 'opt-dimensions-3',
2215
- 'type' => 'dimensions',
2216
- 'title' => 'Dimensions with custom text and units',
2217
- 'width_icon' => 'width',
2218
- 'height_icon' => 'height',
2219
- 'units' => array( 'px', '%', 'em', 'rem', 'pt' ),
2220
- 'default' => array(
2221
- 'width' => '100',
2222
- 'height' => '50',
2223
- 'unit' => '%',
2224
- ),
2225
- ),
2226
-
2227
- array(
2228
- 'id' => 'opt-dimensions-4',
2229
- 'type' => 'dimensions',
2230
- 'title' => 'Dimensions with single unit',
2231
- 'units' => array( 'px' ),
2232
- ),
2233
-
2234
- array(
2235
- 'id' => 'opt-dimensions-5',
2236
- 'type' => 'dimensions',
2237
- 'title' => 'Dimensions without unit selector',
2238
- 'unit' => false,
2239
- ),
2240
-
2241
- array(
2242
- 'id' => 'opt-dimensions-6',
2243
- 'type' => 'dimensions',
2244
- 'title' => 'Dimensions with only width',
2245
- 'height' => false,
2246
- ),
2247
-
2248
- array(
2249
- 'id' => 'opt-dimensions-7',
2250
- 'type' => 'dimensions',
2251
- 'title' => 'Dimensions with only width and single unit',
2252
- 'height' => false,
2253
- 'units' => array( 'px' ),
2254
- ),
2255
-
2256
- )
2257
- ) );
2258
-
2259
- //
2260
- // Field: spacing
2261
- //
2262
- CSF::createSection( $prefix, array(
2263
- 'parent' => 'fields',
2264
- 'title' => 'Spacing',
2265
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=spacing" target="_blank">Field: spacing</a>',
2266
- 'fields' => array(
2267
-
2268
- array(
2269
- 'id' => 'opt-spacing-1',
2270
- 'type' => 'spacing',
2271
- 'title' => 'Spacing',
2272
- ),
2273
-
2274
- array(
2275
- 'id' => 'opt-spacing-2',
2276
- 'type' => 'spacing',
2277
- 'title' => 'Spacing with default',
2278
- 'default' => array(
2279
- 'top' => '50',
2280
- 'right' => '100',
2281
- 'bottom' => '50',
2282
- 'left' => '100',
2283
- 'unit' => 'px',
2284
- ),
2285
- ),
2286
-
2287
- array(
2288
- 'id' => 'opt-spacing-2',
2289
- 'type' => 'spacing',
2290
- 'title' => 'Spacing without unit selector',
2291
- 'units' => array( 'px' ),
2292
- 'default' => array(
2293
- 'top' => '50',
2294
- 'right' => '100',
2295
- 'bottom' => '50',
2296
- 'left' => '100',
2297
- 'unit' => 'px',
2298
- ),
2299
- ),
2300
-
2301
- array(
2302
- 'id' => 'opt-spacing-3',
2303
- 'type' => 'spacing',
2304
- 'title' => 'Spacing with only left and right',
2305
- 'top' => false,
2306
- 'bottom' => false,
2307
- ),
2308
-
2309
- array(
2310
- 'id' => 'opt-spacing-4',
2311
- 'type' => 'spacing',
2312
- 'title' => 'Spacing with only top and bottom',
2313
- 'left' => false,
2314
- 'right' => false,
2315
- ),
2316
-
2317
- array(
2318
- 'id' => 'opt-spacing-5',
2319
- 'type' => 'spacing',
2320
- 'title' => 'Spacing with all directions',
2321
- 'all' => true,
2322
- ),
2323
-
2324
- )
2325
- ) );
2326
-
2327
- //
2328
- // Field: border
2329
- //
2330
- CSF::createSection( $prefix, array(
2331
- 'parent' => 'fields',
2332
- 'title' => 'Border',
2333
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=border" target="_blank">Field: border</a>',
2334
- 'fields' => array(
2335
-
2336
- array(
2337
- 'id' => 'opt-border-1',
2338
- 'type' => 'border',
2339
- 'title' => 'Border',
2340
- ),
2341
-
2342
- array(
2343
- 'id' => 'opt-border-2',
2344
- 'type' => 'border',
2345
- 'title' => 'Border with default',
2346
- 'default' => array(
2347
- 'top' => '4',
2348
- 'right' => '8',
2349
- 'bottom' => '4',
2350
- 'left' => '8',
2351
- 'style' => 'dashed',
2352
- 'color' => '#1e73be',
2353
- )
2354
- ),
2355
-
2356
- array(
2357
- 'id' => 'opt-border-3',
2358
- 'type' => 'border',
2359
- 'title' => 'Border with only left and right',
2360
- 'top' => false,
2361
- 'bottom' => false,
2362
- ),
2363
-
2364
- array(
2365
- 'id' => 'opt-border-4',
2366
- 'type' => 'border',
2367
- 'title' => 'Border with only top and bottom',
2368
- 'left' => false,
2369
- 'right' => false,
2370
- ),
2371
-
2372
- array(
2373
- 'id' => 'opt-border-5',
2374
- 'type' => 'border',
2375
- 'title' => 'Border with all directions',
2376
- 'all' => true,
2377
- ),
2378
-
2379
- )
2380
- ) );
2381
-
2382
- //
2383
- // Field: spinner
2384
- //
2385
- CSF::createSection( $prefix, array(
2386
- 'parent' => 'fields',
2387
- 'title' => 'Spinner',
2388
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=spinner" target="_blank">Field: spinner</a>',
2389
- 'fields' => array(
2390
-
2391
- array(
2392
- 'id' => 'opt-spinner-1',
2393
- 'type' => 'spinner',
2394
- 'title' => 'Spinner',
2395
- 'subtitle' => 'max:100 | min:0 | step:1',
2396
- 'max' => 100,
2397
- 'min' => 0,
2398
- 'step' => 1,
2399
- 'default' => 25,
2400
- ),
2401
-
2402
- array(
2403
- 'id' => 'opt-spinner-2',
2404
- 'type' => 'spinner',
2405
- 'title' => 'Spinner',
2406
- 'subtitle' => 'max:200 | min:100 | step:10',
2407
- 'max' => 200,
2408
- 'min' => 100,
2409
- 'step' => 10,
2410
- 'default' => 100,
2411
- ),
2412
-
2413
- array(
2414
- 'id' => 'opt-spinner-3',
2415
- 'type' => 'spinner',
2416
- 'title' => 'Spinner',
2417
- 'subtitle' => 'max:1 | min:0 | step:0.1 | unit:px',
2418
- 'max' => 1,
2419
- 'min' => 0,
2420
- 'step' => 0.1,
2421
- 'unit' => 'px',
2422
- 'default' => 0.5,
2423
- ),
2424
-
2425
- )
2426
- ) );
2427
-
2428
- //
2429
- // Field: number
2430
- //
2431
- CSF::createSection( $prefix, array(
2432
- 'parent' => 'fields',
2433
- 'title' => 'Number',
2434
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=number" target="_blank">Field: number</a>',
2435
- 'fields' => array(
2436
-
2437
- array(
2438
- 'id' => 'opt-number-1',
2439
- 'type' => 'number',
2440
- 'title' => 'Number',
2441
- ),
2442
- array(
2443
- 'id' => 'opt-number-2',
2444
- 'type' => 'number',
2445
- 'title' => 'Number with unit',
2446
- 'unit' => 'px',
2447
- ),
2448
- array(
2449
- 'id' => 'opt-number-3',
2450
- 'type' => 'number',
2451
- 'title' => 'Number with default',
2452
- 'unit' => 'width',
2453
- 'default' => 100,
2454
- ),
2455
-
2456
- )
2457
- ) );
2458
-
2459
- //
2460
- // Field: slider
2461
- //
2462
- CSF::createSection( $prefix, array(
2463
- 'parent' => 'fields',
2464
- 'title' => 'Slider',
2465
- 'icon' => 'fa fa-sliders',
2466
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=slider" target="_blank">Field: slider</a>',
2467
- 'fields' => array(
2468
-
2469
- array(
2470
- 'id' => 'opt-slider-1',
2471
- 'type' => 'slider',
2472
- 'title' => 'Slider',
2473
- ),
2474
-
2475
- array(
2476
- 'id' => 'opt-slider-2',
2477
- 'type' => 'slider',
2478
- 'title' => 'Slider with default',
2479
- 'default' => 50,
2480
- ),
2481
-
2482
- array(
2483
- 'id' => 'opt-slider-3',
2484
- 'type' => 'slider',
2485
- 'title' => 'Slider with unit text',
2486
- 'unit' => '%',
2487
- 'default' => 75,
2488
- ),
2489
-
2490
- array(
2491
- 'id' => 'opt-slider-4',
2492
- 'type' => 'slider',
2493
- 'title' => 'Slider with min/max allowed value',
2494
- 'subtitle' => 'Min: 1 | Max: 10 | Step: 0.1 | Default: 5.5',
2495
- 'unit' => 'px',
2496
- 'min' => 1,
2497
- 'max' => 10,
2498
- 'step' => 0.1,
2499
- 'default' => 5.5,
2500
- ),
2501
-
2502
- )
2503
- ) );
2504
-
2505
- //
2506
- // Field: sorter
2507
- //
2508
- CSF::createSection( $prefix, array(
2509
- 'parent' => 'fields',
2510
- 'title' => 'Sorter',
2511
- 'icon' => 'fa fa-sort-numeric-asc',
2512
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=sorter" target="_blank">Field: sorter</a>',
2513
- 'fields' => array(
2514
-
2515
- array(
2516
- 'id' => 'opt-sorter-1',
2517
- 'type' => 'sorter',
2518
- 'title' => 'Sorter',
2519
- 'default' => array(
2520
- 'enabled' => array(
2521
- 'opt-1' => 'Option 1',
2522
- 'opt-2' => 'Option 2',
2523
- 'opt-3' => 'Option 3',
2524
- ),
2525
- 'disabled' => array(
2526
- 'opt-4' => 'Option 4',
2527
- 'opt-5' => 'Option 5',
2528
- ),
2529
- ),
2530
- ),
2531
-
2532
- array(
2533
- 'id' => 'opt-sorter-2',
2534
- 'type' => 'sorter',
2535
- 'title' => 'Sorter with custom title',
2536
- 'enabled_title' => 'Activated',
2537
- 'disabled_title' => 'Deactivated',
2538
- 'default' => array(
2539
- 'enabled' => array(
2540
- 'opt-1' => 'Option 1',
2541
- 'opt-2' => 'Option 2',
2542
- 'opt-3' => 'Option 3',
2543
- ),
2544
- 'disabled' => array(
2545
- 'opt-4' => 'Option 4',
2546
- 'opt-5' => 'Option 5',
2547
- ),
2548
- ),
2549
- ),
2550
-
2551
- array(
2552
- 'id' => 'opt-sorter-3',
2553
- 'type' => 'sorter',
2554
- 'title' => 'Sorter with use only enabled section and without title',
2555
- 'enabled_title' => false,
2556
- 'disabled' => false,
2557
- 'default' => array(
2558
- 'enabled' => array(
2559
- 'opt-1' => 'Option 1',
2560
- 'opt-2' => 'Option 2',
2561
- 'opt-3' => 'Option 3',
2562
- ),
2563
- ),
2564
- ),
2565
-
2566
- )
2567
- ) );
2568
-
2569
- //
2570
- // Field: sortable
2571
- //
2572
- CSF::createSection( $prefix, array(
2573
- 'parent' => 'fields',
2574
- 'title' => 'Sortable',
2575
- 'icon' => 'fa fa-arrows',
2576
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=sortable" target="_blank">Field: sortable</a>',
2577
- 'fields' => array(
2578
-
2579
- array(
2580
- 'id' => 'opt-sortable-1',
2581
- 'type' => 'sortable',
2582
- 'title' => 'Sortable',
2583
- 'fields' => array(
2584
- array(
2585
- 'id' => 'opt-text-1',
2586
- 'type' => 'text',
2587
- 'title' => 'Text 1'
2588
- ),
2589
- array(
2590
- 'id' => 'opt-text-2',
2591
- 'type' => 'text',
2592
- 'title' => 'Text 2'
2593
- ),
2594
- array(
2595
- 'id' => 'opt-text-3',
2596
- 'type' => 'text',
2597
- 'title' => 'Text 3'
2598
- ),
2599
- ),
2600
- ),
2601
-
2602
- array(
2603
- 'id' => 'opt-sortable-2',
2604
- 'type' => 'sortable',
2605
- 'title' => 'Sortable with default',
2606
- 'fields' => array(
2607
- array(
2608
- 'id' => 'opt-text-1',
2609
- 'type' => 'text',
2610
- 'title' => 'Text 1'
2611
- ),
2612
- array(
2613
- 'id' => 'opt-text-2',
2614
- 'type' => 'text',
2615
- 'title' => 'Text 2'
2616
- ),
2617
- array(
2618
- 'id' => 'opt-text-3',
2619
- 'type' => 'text',
2620
- 'title' => 'Text 3'
2621
- ),
2622
- ),
2623
- 'default' => array(
2624
- 'opt-text-1' => 'This is text 1 default',
2625
- 'opt-text-2' => 'This is text 2 default',
2626
- 'opt-text-3' => 'This is text 3 default',
2627
- )
2628
- ),
2629
-
2630
- )
2631
- ) );
2632
-
2633
- //
2634
- // Field: switcher
2635
- //
2636
- CSF::createSection( $prefix, array(
2637
- 'parent' => 'fields',
2638
- 'title' => 'Switcher',
2639
- 'icon' => 'fa fa-toggle-on',
2640
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=switcher" target="_blank">Field: switcher</a>',
2641
- 'fields' => array(
2642
-
2643
- array(
2644
- 'id' => 'opt-switcher-1',
2645
- 'type' => 'switcher',
2646
- 'title' => 'Switcher',
2647
- ),
2648
-
2649
- array(
2650
- 'id' => 'opt-switcher-2',
2651
- 'type' => 'switcher',
2652
- 'title' => 'Switcher with default',
2653
- 'default' => true,
2654
- ),
2655
-
2656
- array(
2657
- 'id' => 'opt-switcher-3',
2658
- 'type' => 'switcher',
2659
- 'title' => 'Switcher with label',
2660
- 'label' => 'The label text of the switcher.',
2661
- ),
2662
-
2663
- array(
2664
- 'id' => 'opt-switcher-4',
2665
- 'type' => 'switcher',
2666
- 'title' => 'Switcher with Yes/No',
2667
- 'text_on' => 'Yes',
2668
- 'text_off' => 'No',
2669
- ),
2670
-
2671
- array(
2672
- 'id' => 'opt-switcher-4',
2673
- 'type' => 'switcher',
2674
- 'title' => 'Switcher with custom text Enabled/Disabled',
2675
- 'text_on' => 'Enabled',
2676
- 'text_off' => 'Disabled',
2677
- 'text_width' => '100',
2678
- ),
2679
-
2680
- )
2681
- ) );
2682
-
2683
- //
2684
- // Field: icons
2685
- //
2686
- CSF::createSection( $prefix, array(
2687
- 'parent' => 'fields',
2688
- 'title' => 'Icons',
2689
- 'icon' => 'fa fa-star',
2690
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=icon" target="_blank">Field: icon</a>',
2691
- 'fields' => array(
2692
-
2693
- array(
2694
- 'id' => 'opt-icon-1',
2695
- 'type' => 'icon',
2696
- 'title' => 'Icon',
2697
- ),
2698
-
2699
- array(
2700
- 'id' => 'opt-icon-2',
2701
- 'type' => 'icon',
2702
- 'title' => 'Icon with default',
2703
- 'default' => 'fa fa-check',
2704
- ),
2705
-
2706
- )
2707
- ) );
2708
-
2709
- //
2710
- // Field: map
2711
- //
2712
- CSF::createSection( $prefix, array(
2713
- 'parent' => 'fields',
2714
- 'title' => 'Map',
2715
- 'icon' => 'fa fa-map-marker',
2716
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=map" target="_blank">Field: map</a>',
2717
- 'fields' => array(
2718
-
2719
- array(
2720
- 'id' => 'opt-map-1',
2721
- 'type' => 'map',
2722
- 'title' => 'Map',
2723
- ),
2724
-
2725
- array(
2726
- 'id' => 'opt-map-2',
2727
- 'type' => 'map',
2728
- 'title' => 'Map with Default',
2729
- 'default' => array(
2730
- 'address' => 'New York, United States of America',
2731
- 'latitude' => '40.7127281',
2732
- 'longitude' => '-74.0060152',
2733
- 'zoom' => '12',
2734
- )
2735
- ),
2736
-
2737
- array(
2738
- 'type' => 'submessage',
2739
- 'style' => 'info',
2740
- 'content' => 'Using custom <strong>address_field</strong> field in below example.',
2741
- ),
2742
-
2743
- array(
2744
- 'id' => 'my-address-text',
2745
- 'type' => 'text',
2746
- 'title' => 'Address',
2747
- ),
2748
-
2749
- array(
2750
- 'id' => 'opt-map-3',
2751
- 'type' => 'map',
2752
- 'title' => 'Map',
2753
- 'desc' => 'Using custom <strong>address_field</strong> field',
2754
- 'address_field' => 'my-address-text',
2755
- ),
2756
-
2757
- )
2758
- ) );
2759
-
2760
- //
2761
- // Field: date
2762
- //
2763
- CSF::createSection( $prefix, array(
2764
- 'parent' => 'fields',
2765
- 'title' => 'Date',
2766
- 'icon' => 'fa fa-calendar',
2767
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=date" target="_blank">Field: date</a>',
2768
- 'fields' => array(
2769
-
2770
- array(
2771
- 'id' => 'opt-date-1',
2772
- 'type' => 'date',
2773
- 'title' => 'Date',
2774
- ),
2775
-
2776
- array(
2777
- 'id' => 'opt-date-2',
2778
- 'type' => 'date',
2779
- 'title' => 'Date with custom settings',
2780
- 'settings' => array(
2781
- 'dateFormat' => 'mm/dd/yy',
2782
- 'changeMonth' => true,
2783
- 'changeYear' => true,
2784
- 'showWeek' => true,
2785
- 'showButtonPanel' => true,
2786
- 'weekHeader' => 'Week',
2787
- 'monthNamesShort' => array( 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ),
2788
- 'dayNamesMin' => array( 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ),
2789
- )
2790
- ),
2791
-
2792
- array(
2793
- 'id' => 'opt-date-3',
2794
- 'type' => 'date',
2795
- 'title' => 'Date with From &amp; To',
2796
- 'from_to' => true,
2797
- ),
2798
-
2799
- array(
2800
- 'id' => 'opt-date-4',
2801
- 'type' => 'date',
2802
- 'title' => 'Date with custom texts Begin &amp; End',
2803
- 'from_to' => true,
2804
- 'text_from' => 'Begin',
2805
- 'text_to' => 'End',
2806
- ),
2807
-
2808
- )
2809
- ) );
2810
-
2811
- //
2812
- // Field: image_select
2813
- //
2814
- CSF::createSection( $prefix, array(
2815
- 'parent' => 'fields',
2816
- 'title' => 'Image Select',
2817
- 'icon' => 'fa fa-th',
2818
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=image-select" target="_blank">Field: image_select</a>',
2819
- 'fields' => array(
2820
-
2821
- array(
2822
- 'id' => 'opt-image-select-1',
2823
- 'type' => 'image_select',
2824
- 'title' => 'Image Select',
2825
- 'options' => array(
2826
- 'opt-1' => 'http://codestarframework.com/assets/images/placeholder/150x125-2ecc71.gif',
2827
- 'opt-2' => 'http://codestarframework.com/assets/images/placeholder/150x125-e74c3c.gif',
2828
- 'opt-3' => 'http://codestarframework.com/assets/images/placeholder/150x125-ffbc00.gif',
2829
- 'opt-4' => 'http://codestarframework.com/assets/images/placeholder/150x125-3498db.gif',
2830
- ),
2831
- ),
2832
-
2833
- array(
2834
- 'id' => 'opt-image-select-2',
2835
- 'type' => 'image_select',
2836
- 'title' => 'Image Select with default',
2837
- 'options' => array(
2838
- 'opt-1' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2839
- 'opt-2' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2840
- 'opt-3' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2841
- 'opt-4' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2842
- 'opt-5' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2843
- 'opt-6' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2844
- 'opt-7' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2845
- ),
2846
- 'default' => 'opt-4'
2847
- ),
2848
-
2849
- array(
2850
- 'id' => 'opt-image-select-3',
2851
- 'type' => 'image_select',
2852
- 'title' => 'Image Select with multiple choice',
2853
- 'multiple' => true,
2854
- 'options' => array(
2855
- 'opt-1' => 'http://codestarframework.com/assets/images/placeholder/80x80-e74c3c.gif',
2856
- 'opt-2' => 'http://codestarframework.com/assets/images/placeholder/80x80-ffbc00.gif',
2857
- 'opt-3' => 'http://codestarframework.com/assets/images/placeholder/80x80-3498db.gif',
2858
- 'opt-4' => 'http://codestarframework.com/assets/images/placeholder/80x80-2ecc71.gif',
2859
- ),
2860
- ),
2861
-
2862
- array(
2863
- 'id' => 'opt-image-select-4',
2864
- 'type' => 'image_select',
2865
- 'title' => 'Image Select with multiple choice and default',
2866
- 'multiple' => true,
2867
- 'options' => array(
2868
- 'opt-1' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2869
- 'opt-2' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2870
- 'opt-3' => 'http://codestarframework.com/assets/images/placeholder/80x80-e74c3c.gif',
2871
- 'opt-4' => 'http://codestarframework.com/assets/images/placeholder/80x80-ffbc00.gif',
2872
- 'opt-5' => 'http://codestarframework.com/assets/images/placeholder/80x80-3498db.gif',
2873
- 'opt-6' => 'http://codestarframework.com/assets/images/placeholder/80x80-2ecc71.gif',
2874
- 'opt-7' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2875
- 'opt-8' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2876
- ),
2877
- 'default' => array( 'opt-3', 'opt-4', 'opt-5', 'opt-6' )
2878
- ),
2879
-
2880
- )
2881
- ) );
2882
-
2883
- //
2884
- // Field: button_set
2885
- //
2886
- CSF::createSection( $prefix, array(
2887
- 'parent' => 'fields',
2888
- 'title' => 'Button Set',
2889
- 'icon' => 'fa fa-ellipsis-h',
2890
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=button-set" target="_blank">Field: button_set</a>',
2891
- 'fields' => array(
2892
-
2893
- array(
2894
- 'id' => 'opt-button-set-1',
2895
- 'type' => 'button_set',
2896
- 'title' => 'Button Set',
2897
- 'options' => array(
2898
- 'enabled' => 'Enabled',
2899
- 'disabled' => 'Disabled',
2900
- ),
2901
- ),
2902
-
2903
- array(
2904
- 'id' => 'opt-button-set-2',
2905
- 'type' => 'button_set',
2906
- 'title' => 'Button Set with default',
2907
- 'options' => array(
2908
- 'enabled' => 'Enabled',
2909
- '' => 'Default',
2910
- 'disabled' => 'Disabled',
2911
- ),
2912
- ),
2913
-
2914
- array(
2915
- 'id' => 'opt-button-set-3',
2916
- 'type' => 'button_set',
2917
- 'title' => 'Button Set',
2918
- 'options' => array(
2919
- 'activate' => 'Activate',
2920
- 'deactivate' => 'Deactivate',
2921
- ),
2922
- 'default' => 'activate',
2923
- ),
2924
-
2925
- array(
2926
- 'id' => 'opt-button-set-4',
2927
- 'type' => 'button_set',
2928
- 'title' => 'Button Set',
2929
- 'options' => array(
2930
- 'on' => 'ON',
2931
- 'off' => 'OFF',
2932
- ),
2933
- 'default' => 'on',
2934
- ),
2935
-
2936
- array(
2937
- 'id' => 'opt-button-set-5',
2938
- 'type' => 'button_set',
2939
- 'title' => 'Button Set with multiple choice',
2940
- 'multiple' => true,
2941
- 'options' => array(
2942
- 'opt-1' => 'Option 1',
2943
- 'opt-2' => 'Option 2',
2944
- 'opt-3' => 'Option 3',
2945
- 'opt-4' => 'Option 4',
2946
- 'opt-5' => 'Option 5',
2947
- ),
2948
- ),
2949
-
2950
- array(
2951
- 'id' => 'opt-button-set-6',
2952
- 'type' => 'button_set',
2953
- 'title' => 'Button Set with multiple choice and default',
2954
- 'multiple' => true,
2955
- 'options' => array(
2956
- 'opt-1' => 'Option 1',
2957
- 'opt-2' => 'Option 2',
2958
- 'opt-3' => 'Option 3',
2959
- 'opt-4' => 'Option 4',
2960
- 'opt-5' => 'Option 5',
2961
- ),
2962
- 'default' => array( 'opt-2', 'opt-4' )
2963
- ),
2964
-
2965
- )
2966
- ) );
2967
-
2968
- //
2969
- // Dependencies
2970
- //
2971
- CSF::createSection( $prefix, array(
2972
- 'parent' => 'fields',
2973
- 'title' => 'Dependencies',
2974
- 'icon' => 'fa fa-code-fork',
2975
- 'description' => 'Visit documentation for more details: <a href="http://codestarframework.com/documentation/#/faq?id=how-to-use-dependency" target="_blank">How to use dependencies</a>',
2976
- 'fields' => array(
2977
-
2978
- array(
2979
- 'type' => 'subheading',
2980
- 'content' => 'Basic Dependencies',
2981
- ),
2982
-
2983
- //
2984
- // Dependency example 1
2985
- array(
2986
- 'id' => 'opt-depend-switcher',
2987
- 'type' => 'switcher',
2988
- 'title' => 'If switched to (ON)',
2989
- ),
2990
-
2991
- array(
2992
- 'type' => 'notice',
2993
- 'style' => 'success',
2994
- 'content' => 'Success: Switched to (ON).',
2995
- 'dependency' => array( 'opt-depend-switcher', '==', 'true' ),
2996
- ),
2997
-
2998
- //
2999
- // Dependency example 2
3000
- array(
3001
- 'id' => 'opt-depend-text',
3002
- 'type' => 'text',
3003
- 'title' => 'If typed something to field',
3004
- ),
3005
-
3006
- array(
3007
- 'type' => 'notice',
3008
- 'style' => 'success',
3009
- 'content' => 'Success: You typed something.',
3010
- 'dependency' => array( 'opt-depend-text', '!=', '' ),
3011
- ),
3012
-
3013
- //
3014
- // Dependency example 3
3015
- array(
3016
- 'id' => 'opt-depend-select',
3017
- 'type' => 'select',
3018
- 'title' => 'If selected to (Blue) or (Black)',
3019
- 'placeholder' => 'Select a color',
3020
- 'options' => array(
3021
- 'blue' => 'Blue',
3022
- 'yellow' => 'Yellow',
3023
- 'green' => 'Green',
3024
- 'black' => 'Black',
3025
- 'white' => 'White',
3026
- ),
3027
- ),
3028
-
3029
- array(
3030
- 'type' => 'notice',
3031
- 'style' => 'success',
3032
- 'content' => 'Success: Selected to (Blue) or (Black).',
3033
- 'dependency' => array( 'opt-depend-select', 'any', 'blue,black' ),
3034
- ),
3035
-
3036
- //
3037
- // Dependency example 4
3038
- array(
3039
- 'id' => 'opt-depend-radio',
3040
- 'type' => 'radio',
3041
- 'title' => 'If selected to (Yes, Please)',
3042
- 'inline' => true,
3043
- 'options' => array(
3044
- 'no' => 'No, Thanks',
3045
- 'yes' => 'Yes, Please',
3046
- 'any' => 'I am not sure!',
3047
- ),
3048
- 'default' => 'no'
3049
- ),
3050
-
3051
- array(
3052
- 'type' => 'notice',
3053
- 'style' => 'success',
3054
- 'content' => 'Success: Selected to (Yes, Please).',
3055
- 'dependency' => array( 'opt-depend-radio', '==', 'yes' ),
3056
- ),
3057
-
3058
- //
3059
- // Dependency example 5
3060
- array(
3061
- 'id' => 'opt-depend-checkbox',
3062
- 'type' => 'checkbox',
3063
- 'title' => 'If selected to (Green) or (Black)',
3064
- 'inline' => true,
3065
- 'options' => array(
3066
- 'blue' => 'Blue',
3067
- 'yellow' => 'Yellow',
3068
- 'green' => 'Green',
3069
- 'black' => 'Black',
3070
- 'white' => 'White',
3071
- ),
3072
- ),
3073
-
3074
- array(
3075
- 'type' => 'notice',
3076
- 'style' => 'success',
3077
- 'content' => 'Success: Selected to (Green).',
3078
- 'dependency' => array( 'opt-depend-checkbox', 'any', 'green,black' ),
3079
- ),
3080
-
3081
- //
3082
- // Dependency example 6
3083
- array(
3084
- 'id' => 'opt-depend-image-select',
3085
- 'type' => 'image_select',
3086
- 'title' => 'If selected to (Blue) box',
3087
- 'options' => array(
3088
- 'green' => 'http://codestarframework.com/assets/images/placeholder/100x80-2ecc71.gif',
3089
- 'red' => 'http://codestarframework.com/assets/images/placeholder/100x80-e74c3c.gif',
3090
- 'yellow' => 'http://codestarframework.com/assets/images/placeholder/100x80-ffbc00.gif',
3091
- 'blue' => 'http://codestarframework.com/assets/images/placeholder/100x80-3498db.gif',
3092
- 'gray' => 'http://codestarframework.com/assets/images/placeholder/100x80-555555.gif',
3093
- ),
3094
- 'default' => 'green',
3095
- ),
3096
-
3097
- array(
3098
- 'type' => 'notice',
3099
- 'style' => 'success',
3100
- 'content' => 'Success: Selected to (Blue) box.',
3101
- 'dependency' => array( 'opt-depend-image-select', '==', 'blue' ),
3102
- ),
3103
-
3104
- //
3105
- // Dependency example 6
3106
- array(
3107
- 'id' => 'opt-depend-image-select-any',
3108
- 'type' => 'image_select',
3109
- 'title' => 'If selected to (Red) or (Blue) box',
3110
- 'options' => array(
3111
- 'green' => 'http://codestarframework.com/assets/images/placeholder/100x80-2ecc71.gif',
3112
- 'red' => 'http://codestarframework.com/assets/images/placeholder/100x80-e74c3c.gif',
3113
- 'yellow' => 'http://codestarframework.com/assets/images/placeholder/100x80-ffbc00.gif',
3114
- 'blue' => 'http://codestarframework.com/assets/images/placeholder/100x80-3498db.gif',
3115
- 'gray' => 'http://codestarframework.com/assets/images/placeholder/100x80-555555.gif',
3116
- ),
3117
- 'default' => 'green',
3118
- ),
3119
-
3120
- array(
3121
- 'type' => 'notice',
3122
- 'style' => 'success',
3123
- 'content' => 'Success: Selected to (Red) or (Blue) box.',
3124
- 'dependency' => array( 'opt-depend-image-select-any', 'any', 'red,blue' ),
3125
- ),
3126
-
3127
- //
3128
- // Dependency example 7
3129
- array(
3130
- 'type' => 'subheading',
3131
- 'content' => 'Nested Dependencies',
3132
- ),
3133
-
3134
- array(
3135
- 'id' => 'opt-depend-switcher-1',
3136
- 'type' => 'switcher',
3137
- 'title' => 'If switched to (ON) --->',
3138
- ),
3139
-
3140
- array(
3141
- 'id' => 'opt-depend-select-1',
3142
- 'type' => 'select',
3143
- 'title' => '---> and selected to (Blue)',
3144
- 'placeholder' => 'Select a color',
3145
- 'options' => array(
3146
- 'blue' => 'Blue',
3147
- 'yellow' => 'Yellow',
3148
- 'green' => 'Green',
3149
- 'black' => 'Black',
3150
- 'white' => 'White',
3151
- ),
3152
- ),
3153
-
3154
- array(
3155
- 'type' => 'notice',
3156
- 'style' => 'success',
3157
- 'content' => 'Success: Switched to (ON) and selected to (Blue).',
3158
- 'dependency' => array( 'opt-depend-switcher-1|opt-depend-select-1', '==|==', 'true|blue' ),
3159
- ),
3160
-
3161
- //
3162
- // Dependency example 8
3163
- array(
3164
- 'type' => 'subheading',
3165
- 'content' => 'Another Nested Dependencies',
3166
- ),
3167
-
3168
- array(
3169
- 'id' => 'opt-nested-select-1',
3170
- 'type' => 'select',
3171
- 'title' => 'If selected to (Black) or (White) --->',
3172
- 'placeholder' => 'Select a color',
3173
- 'options' => array(
3174
- 'blue' => 'Blue',
3175
- 'yellow' => 'Yellow',
3176
- 'green' => 'Green',
3177
- 'black' => 'Black',
3178
- 'white' => 'White',
3179
- ),
3180
- ),
3181
-
3182
- array(
3183
- 'id' => 'opt-nested-select-2',
3184
- 'type' => 'select',
3185
- 'title' => '---> and selected to (Large) --->',
3186
- 'placeholder' => 'Select a size',
3187
- 'options' => array(
3188
- 'small' => 'Small',
3189
- 'middle' => 'Middle',
3190
- 'large' => 'Large',
3191
- 'xlage' => 'XLarge',
3192
- 'xxlage' => 'XXLarge',
3193
- ),
3194
- 'dependency' => array( 'opt-nested-select-1', 'any', 'black,white' ),
3195
- ),
3196
-
3197
- array(
3198
- 'id' => 'opt-nested-select-3',
3199
- 'type' => 'select',
3200
- 'title' => '---> and selected to (Hello)',
3201
- 'placeholder' => 'Select a word',
3202
- 'options' => array(
3203
- 'hello' => 'Hello',
3204
- 'world' => 'World',
3205
- ),
3206
- 'dependency' => array( 'opt-nested-select-1|opt-nested-select-2', 'any|==', 'black,white|large' ),
3207
- ),
3208
-
3209
- array(
3210
- 'type' => 'notice',
3211
- 'style' => 'success',
3212
- 'content' => 'Congratulations, You are here now!',
3213
- 'dependency' => array( 'opt-nested-select-1|opt-nested-select-2|opt-nested-select-3', 'any|==|==', 'black,white|large|hello' ),
3214
- ),
3215
-
3216
- )
3217
- ) );
3218
-
3219
- //
3220
- // Validate
3221
- //
3222
- CSF::createSection( $prefix, array(
3223
- 'parent' => 'fields',
3224
- 'title' => 'Validate',
3225
- 'icon' => 'fa fa-check-circle',
3226
- 'description' => 'Visit documentation for more details: <a href="http://codestarframework.com/documentation/#/faq?id=how-to-use-validate" target="_blank">How to use validate</a>',
3227
- 'fields' => array(
3228
-
3229
- array(
3230
- 'id' => 'opt-validate-1',
3231
- 'type' => 'text',
3232
- 'title' => 'Email validate',
3233
- 'subtitle' => 'This text field only allows validated email address.',
3234
- 'default' => 'info@domain.com',
3235
- 'validate' => 'csf_customize_validate_email',
3236
- ),
3237
-
3238
- array(
3239
- 'id' => 'opt-validate-2',
3240
- 'type' => 'text',
3241
- 'title' => 'Numeric validate',
3242
- 'subtitle' => 'This text field only allows numbers',
3243
- 'default' => '123456',
3244
- 'validate' => 'csf_customize_validate_numeric',
3245
- ),
3246
-
3247
- array(
3248
- 'id' => 'opt-validate-3',
3249
- 'type' => 'text',
3250
- 'title' => 'Required validate',
3251
- 'subtitle' => 'This text field is required, cannot be pass empty.',
3252
- 'after' => ' <small class="csf-text-warning">( * required )</small>',
3253
- 'default' => 'Lorem ipsum value',
3254
- 'validate' => 'csf_customize_validate_required',
3255
- ),
3256
-
3257
- array(
3258
- 'id' => 'opt-validate-4',
3259
- 'type' => 'text',
3260
- 'title' => 'URL validate',
3261
- 'subtitle' => 'This text field only allows validated url address.',
3262
- 'default' => 'http://codestarframework.com',
3263
- 'validate' => 'csf_customize_validate_url',
3264
- ),
3265
-
3266
- )
3267
- ) );
3268
-
3269
- //
3270
- // Sanitize
3271
- //
3272
- CSF::createSection( $prefix, array(
3273
- 'parent' => 'fields',
3274
- 'title' => 'Sanitize',
3275
- 'icon' => 'fa fa-repeat',
3276
- 'description' => 'Visit documentation for more details: <a href="http://codestarframework.com/documentation/#/faq?id=how-to-use-sanitize" target="_blank">How to use sanitize</a>',
3277
- 'fields' => array(
3278
-
3279
- array(
3280
- 'id' => 'opt-sanitize-1',
3281
- 'type' => 'text',
3282
- 'title' => 'Sanitize (a) to (b)',
3283
- 'subtitle' => 'Replacing letter (a) to letter (b). for eg. apple to bpple',
3284
- 'sanitize' => 'csf_sanitize_replace_a_to_b'
3285
- ),
3286
-
3287
- array(
3288
- 'id' => 'opt-sanitize-2',
3289
- 'type' => 'text',
3290
- 'title' => 'Sanitize Title',
3291
- 'subtitle' => 'Converting (space) to (-) and (uppercase) letters to (lowercase) letters. for eg. Hello World to hello-world',
3292
- 'sanitize' => 'csf_sanitize_title'
3293
- ),
3294
-
3295
- )
3296
- ) );
3297
-
3298
- //
3299
- // Field: backup
3300
- //
3301
- CSF::createSection( $prefix, array(
3302
- 'title' => 'Backup',
3303
- 'icon' => 'fa fa-shield',
3304
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=backup" target="_blank">Field: backup</a>',
3305
- 'fields' => array(
3306
-
3307
- array(
3308
- 'type' => 'backup',
3309
- ),
3310
-
3311
- )
3312
- ) );
3313
-
3314
- //
3315
- // Others
3316
- //
3317
- CSF::createSection( $prefix, array(
3318
- 'parent' => 'fields',
3319
- 'title' => 'Others',
3320
- 'icon' => 'fa fa-bolt',
3321
- 'description' => 'Visit documentation for more details: <a href="http://codestarframework.com/documentation/#/fields?id=others" target="_blank">Others</a>',
3322
- 'fields' => array(
3323
-
3324
- array(
3325
- 'type' => 'heading',
3326
- 'content' => 'This is a heading field',
3327
- ),
3328
-
3329
- array(
3330
- 'type' => 'subheading',
3331
- 'content' => 'This is a subheading field',
3332
- ),
3333
-
3334
- array(
3335
- 'type' => 'content',
3336
- 'content' => 'This is a content field',
3337
- ),
3338
-
3339
- array(
3340
- 'type' => 'submessage',
3341
- 'style' => 'success',
3342
- 'content' => 'This is a <strong>submessage</strong> field. And using style <strong>success</strong>',
3343
- ),
3344
-
3345
- array(
3346
- 'type' => 'content',
3347
- 'content' => 'This is a content field',
3348
- ),
3349
- array(
3350
- 'type' => 'submessage',
3351
- 'style' => 'info',
3352
- 'content' => 'This is a <strong>submessage</strong> field. And using style <strong>info</strong>',
3353
- ),
3354
-
3355
- array(
3356
- 'type' => 'submessage',
3357
- 'style' => 'warning',
3358
- 'content' => 'This is a <strong>submessage</strong> field. And using style <strong>warning</strong>',
3359
- ),
3360
-
3361
- array(
3362
- 'type' => 'submessage',
3363
- 'style' => 'danger',
3364
- 'content' => 'This is a <strong>submessage</strong> field. And using style <strong>danger</strong>',
3365
- ),
3366
-
3367
- array(
3368
- 'type' => 'notice',
3369
- 'style' => 'success',
3370
- 'content' => 'This is a <strong>notice</strong> field. And using style <strong>success</strong>',
3371
- ),
3372
-
3373
- array(
3374
- 'type' => 'notice',
3375
- 'style' => 'info',
3376
- 'content' => 'This is a <strong>notice</strong> field. And using style <strong>info</strong>',
3377
- ),
3378
-
3379
- array(
3380
- 'type' => 'notice',
3381
- 'style' => 'warning',
3382
- 'content' => 'This is a <strong>notice</strong> field. And using style <strong>warning</strong>',
3383
- ),
3384
-
3385
- array(
3386
- 'type' => 'notice',
3387
- 'style' => 'danger',
3388
- 'content' => 'This is a <strong>notice</strong> field. And using style <strong>danger</strong>',
3389
- ),
3390
-
3391
- array(
3392
- 'type' => 'content',
3393
- 'content' => 'This is a <strong>content</strong> field. You can write some contents here.',
3394
- ),
3395
-
3396
- )
3397
- ) );
3398
-
3399
-
3400
- //
3401
- // Create a section
3402
- //
3403
- CSF::createSection( $prefix, array(
3404
- 'title' => 'CSF - Reset & Backup',
3405
- 'priority' => 6,
3406
- 'fields' => array(
3407
-
3408
- array(
3409
- 'type' => 'backup',
3410
- ),
3411
-
3412
- ),
3413
- ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/settings/samples/metabox.samples.php DELETED
@@ -1,296 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
2
-
3
- //
4
- // Metabox of the PAGE
5
- // Set a unique slug-like ID
6
- //
7
- $prefix_page_opts = '_prefix_page_options';
8
-
9
- //
10
- // Create a metabox
11
- //
12
- CSF::createMetabox( $prefix_page_opts, array(
13
- 'title' => 'Custom Page Options',
14
- 'post_type' => 'page',
15
- 'show_restore' => true,
16
- ) );
17
-
18
- //
19
- // Create a section
20
- //
21
- CSF::createSection( $prefix_page_opts, array(
22
- 'title' => 'Overview',
23
- 'icon' => 'fa fa-rocket',
24
- 'fields' => array(
25
-
26
- //
27
- // A text field
28
- //
29
- array(
30
- 'id' => 'opt-text',
31
- 'type' => 'text',
32
- 'title' => 'Text',
33
- ),
34
-
35
- array(
36
- 'id' => 'opt-textarea',
37
- 'type' => 'textarea',
38
- 'title' => 'Textarea',
39
- 'help' => 'The help text of the field.',
40
- ),
41
-
42
- array(
43
- 'id' => 'opt-upload',
44
- 'type' => 'upload',
45
- 'title' => 'Upload',
46
- ),
47
-
48
- array(
49
- 'id' => 'opt-switcher',
50
- 'type' => 'switcher',
51
- 'title' => 'Switcher',
52
- 'label' => 'The label text of the switcher.',
53
- ),
54
-
55
- array(
56
- 'id' => 'opt-color',
57
- 'type' => 'color',
58
- 'title' => 'Color',
59
- ),
60
-
61
- array(
62
- 'id' => 'opt-checkbox',
63
- 'type' => 'checkbox',
64
- 'title' => 'Checkbox',
65
- 'label' => 'The label text of the checkbox.',
66
- ),
67
-
68
- array(
69
- 'id' => 'opt-radio',
70
- 'type' => 'radio',
71
- 'title' => 'Radio',
72
- 'options' => array(
73
- 'yes' => 'Yes, Please.',
74
- 'no' => 'No, Thank you.',
75
- ),
76
- 'default' => 'yes',
77
- ),
78
-
79
- array(
80
- 'id' => 'opt-select',
81
- 'type' => 'select',
82
- 'title' => 'Select',
83
- 'placeholder' => 'Select an option',
84
- 'options' => array(
85
- 'opt-1' => 'Option 1',
86
- 'opt-2' => 'Option 2',
87
- 'opt-3' => 'Option 3',
88
- ),
89
- ),
90
-
91
- )
92
- ) );
93
-
94
- //
95
- // Create a section
96
- //
97
- CSF::createSection( $prefix_page_opts, array(
98
- 'title' => 'More Fields',
99
- 'icon' => 'fa fa-tint',
100
- 'fields' => array(
101
-
102
- array(
103
- 'id' => 'opt-image-select',
104
- 'type' => 'image_select',
105
- 'title' => 'Image Select',
106
- 'options' => array(
107
- 'opt-1' => 'http://codestarframework.com/assets/images/placeholder/100x80-2ecc71.gif',
108
- 'opt-2' => 'http://codestarframework.com/assets/images/placeholder/100x80-e74c3c.gif',
109
- 'opt-3' => 'http://codestarframework.com/assets/images/placeholder/100x80-ffbc00.gif',
110
- 'opt-4' => 'http://codestarframework.com/assets/images/placeholder/100x80-3498db.gif',
111
- 'opt-5' => 'http://codestarframework.com/assets/images/placeholder/100x80-555555.gif',
112
- ),
113
- 'default' => 'opt-1',
114
- ),
115
-
116
- array(
117
- 'id' => 'opt-background',
118
- 'type' => 'background',
119
- 'title' => 'Background',
120
- ),
121
-
122
- array(
123
- 'type' => 'notice',
124
- 'style' => 'success',
125
- 'content' => 'A <strong>notice</strong> field with <strong>success</strong> style.',
126
- ),
127
-
128
- array(
129
- 'id' => 'opt-icon',
130
- 'type' => 'icon',
131
- 'title' => 'Icon',
132
- ),
133
-
134
- array(
135
- 'id' => 'opt-alt-text',
136
- 'type' => 'text',
137
- 'title' => 'Text',
138
- ),
139
-
140
- array(
141
- 'id' => 'opt-alt-textarea',
142
- 'type' => 'textarea',
143
- 'title' => 'Textarea',
144
- 'subtitle' => 'A textarea with shortcoder.',
145
- 'shortcoder' => 'csf_demo_shortcodes',
146
- ),
147
-
148
- )
149
- ) );
150
-
151
- //
152
- // Metabox of the POST
153
- // Set a unique slug-like ID
154
- //
155
- $prefix_post_opts = '_prefix_post_options';
156
-
157
- //
158
- // Create a metabox
159
- //
160
- CSF::createMetabox( $prefix_post_opts, array(
161
- 'title' => 'Custom Post Options',
162
- 'post_type' => 'post',
163
- 'show_restore' => true,
164
- ) );
165
-
166
- //
167
- // Create a section
168
- //
169
- CSF::createSection( $prefix_post_opts, array(
170
- 'fields' => array(
171
-
172
- //
173
- // A text field
174
- //
175
- array(
176
- 'id' => 'opt-text',
177
- 'type' => 'text',
178
- 'title' => 'Text',
179
- ),
180
-
181
- array(
182
- 'id' => 'opt-textarea',
183
- 'type' => 'textarea',
184
- 'title' => 'Textarea',
185
- 'help' => 'The help text of the field.',
186
- ),
187
-
188
- array(
189
- 'id' => 'opt-upload',
190
- 'type' => 'upload',
191
- 'title' => 'Upload',
192
- ),
193
-
194
- array(
195
- 'id' => 'opt-switcher',
196
- 'type' => 'switcher',
197
- 'title' => 'Switcher',
198
- 'label' => 'The label text of the switcher.',
199
- ),
200
-
201
- array(
202
- 'id' => 'opt-color',
203
- 'type' => 'color',
204
- 'title' => 'Color',
205
- ),
206
-
207
- array(
208
- 'id' => 'opt-checkbox',
209
- 'type' => 'checkbox',
210
- 'title' => 'Checkbox',
211
- 'label' => 'The label text of the checkbox.',
212
- ),
213
-
214
- array(
215
- 'id' => 'opt-radio',
216
- 'type' => 'radio',
217
- 'title' => 'Radio',
218
- 'options' => array(
219
- 'yes' => 'Yes, Please.',
220
- 'no' => 'No, Thank you.',
221
- ),
222
- 'default' => 'yes',
223
- ),
224
-
225
- array(
226
- 'id' => 'opt-select',
227
- 'type' => 'select',
228
- 'title' => 'Select',
229
- 'placeholder' => 'Select an option',
230
- 'options' => array(
231
- 'opt-1' => 'Option 1',
232
- 'opt-2' => 'Option 2',
233
- 'opt-3' => 'Option 3',
234
- ),
235
- ),
236
-
237
- )
238
- ) );
239
-
240
- //
241
- // Metabox of the PAGE and POST both.
242
- // Set a unique slug-like ID
243
- //
244
- $prefix_meta_opts = '_prefix_meta_options';
245
-
246
- //
247
- // Create a metabox
248
- //
249
- CSF::createMetabox( $prefix_meta_opts, array(
250
- 'title' => 'Custom Options',
251
- 'post_type' => array( 'post', 'page' ),
252
- 'context' => 'side',
253
- ) );
254
-
255
- //
256
- // Create a section
257
- //
258
- CSF::createSection( $prefix_meta_opts, array(
259
- 'fields' => array(
260
-
261
- //
262
- // A text field
263
- //
264
- array(
265
- 'id' => 'opt-text',
266
- 'type' => 'text',
267
- 'title' => 'Text',
268
- ),
269
-
270
- array(
271
- 'id' => 'opt-switcher',
272
- 'type' => 'switcher',
273
- 'title' => 'Switcher',
274
- 'label' => 'The label text of the switcher.',
275
- ),
276
-
277
- array(
278
- 'id' => 'opt-color',
279
- 'type' => 'color',
280
- 'title' => 'Color',
281
- ),
282
-
283
- array(
284
- 'id' => 'opt-select',
285
- 'type' => 'select',
286
- 'title' => 'Select',
287
- 'placeholder' => 'Select an option',
288
- 'options' => array(
289
- 'opt-1' => 'Option 1',
290
- 'opt-2' => 'Option 2',
291
- 'opt-3' => 'Option 3',
292
- ),
293
- ),
294
-
295
- )
296
- ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/settings/samples/options.samples.php DELETED
@@ -1,3442 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
2
-
3
- //
4
- // Set a unique slug-like ID
5
- //
6
- $prefix = '_prefix_my_options';
7
-
8
- //
9
- // Create options
10
- //
11
- CSF::createOptions( $prefix, array(
12
- 'menu_title' => 'CSF Demo',
13
- 'menu_slug' => 'csf-demo',
14
- ) );
15
-
16
- //
17
- // Create a section
18
- //
19
- CSF::createSection( $prefix, array(
20
- 'title' => 'Overview',
21
- 'icon' => 'fa fa-rocket',
22
- 'fields' => array(
23
-
24
- //
25
- // A text field
26
- //
27
- array(
28
- 'id' => 'opt-text',
29
- 'type' => 'text',
30
- 'title' => 'Text',
31
- ),
32
-
33
- array(
34
- 'id' => 'opt-textarea',
35
- 'type' => 'textarea',
36
- 'title' => 'Textarea',
37
- 'help' => 'The help text of the field.',
38
- ),
39
-
40
- array(
41
- 'id' => 'opt-upload',
42
- 'type' => 'upload',
43
- 'title' => 'Upload',
44
- ),
45
-
46
- array(
47
- 'id' => 'opt-switcher',
48
- 'type' => 'switcher',
49
- 'title' => 'Switcher',
50
- 'label' => 'The label text of the switcher.',
51
- ),
52
-
53
- array(
54
- 'id' => 'opt-color',
55
- 'type' => 'color',
56
- 'title' => 'Color',
57
- 'default' => '#3498db',
58
- ),
59
-
60
- array(
61
- 'id' => 'opt-checkbox',
62
- 'type' => 'checkbox',
63
- 'title' => 'Checkbox',
64
- 'label' => 'The label text of the checkbox.',
65
- ),
66
-
67
- array(
68
- 'id' => 'opt-radio',
69
- 'type' => 'radio',
70
- 'title' => 'Radio',
71
- 'options' => array(
72
- 'yes' => 'Yes, Please.',
73
- 'no' => 'No, Thank you.',
74
- ),
75
- 'default' => 'yes',
76
- ),
77
-
78
- array(
79
- 'id' => 'opt-select',
80
- 'type' => 'select',
81
- 'title' => 'Select',
82
- 'placeholder' => 'Select an option',
83
- 'options' => array(
84
- 'opt-1' => 'Option 1',
85
- 'opt-2' => 'Option 2',
86
- 'opt-3' => 'Option 3',
87
- ),
88
- ),
89
-
90
- array(
91
- 'id' => 'opt-image-select',
92
- 'type' => 'image_select',
93
- 'title' => 'Image Select',
94
- 'options' => array(
95
- 'opt-1' => 'http://codestarframework.com/assets/images/placeholder/100x80-2ecc71.gif',
96
- 'opt-2' => 'http://codestarframework.com/assets/images/placeholder/100x80-e74c3c.gif',
97
- 'opt-3' => 'http://codestarframework.com/assets/images/placeholder/100x80-ffbc00.gif',
98
- 'opt-4' => 'http://codestarframework.com/assets/images/placeholder/100x80-3498db.gif',
99
- 'opt-5' => 'http://codestarframework.com/assets/images/placeholder/100x80-555555.gif',
100
- ),
101
- 'default' => 'opt-1',
102
- ),
103
-
104
- array(
105
- 'id' => 'opt-background',
106
- 'type' => 'background',
107
- 'title' => 'Background',
108
- ),
109
-
110
- array(
111
- 'type' => 'notice',
112
- 'style' => 'success',
113
- 'content' => 'A <strong>notice</strong> field with <strong>success</strong> style.',
114
- ),
115
-
116
- array(
117
- 'id' => 'opt-icon',
118
- 'type' => 'icon',
119
- 'title' => 'Icon',
120
- ),
121
-
122
- array(
123
- 'id' => 'opt-alt-text',
124
- 'type' => 'text',
125
- 'title' => 'Text',
126
- ),
127
-
128
- array(
129
- 'id' => 'opt-alt-textarea',
130
- 'type' => 'textarea',
131
- 'title' => 'Textarea',
132
- 'subtitle' => 'A textarea with shortcoder.',
133
- 'shortcoder' => 'csf_demo_shortcodes',
134
- ),
135
-
136
- )
137
- ) );
138
-
139
- //
140
- // Basic Fields
141
- //
142
- CSF::createSection( $prefix, array(
143
- 'id' => 'basic_fields',
144
- 'title' => 'Basic Fields',
145
- 'icon' => 'fa fa-plus-circle',
146
- ) );
147
-
148
- //
149
- // Field: text
150
- //
151
- CSF::createSection( $prefix, array(
152
- 'parent' => 'basic_fields',
153
- 'title' => 'Text',
154
- 'icon' => 'fa fa-square-o',
155
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=text" target="_blank">Field: text</a>',
156
- 'fields' => array(
157
-
158
- array(
159
- 'id' => 'opt-text-1',
160
- 'type' => 'text',
161
- 'title' => 'Text',
162
- ),
163
-
164
- array(
165
- 'id' => 'opt-text-2',
166
- 'type' => 'text',
167
- 'title' => 'Text with default',
168
- 'default' => 'This is default value bla bla bla',
169
- ),
170
-
171
- array(
172
- 'id' => 'opt-text-3',
173
- 'type' => 'text',
174
- 'title' => 'Text field ingenuity',
175
- 'subtitle' => 'The field of subtitle text.',
176
- 'help' => 'The field of help text.',
177
- 'before' => '<p>The field of before text.</p>',
178
- 'after' => '<p>The field of after text.</p>',
179
- ),
180
-
181
- array(
182
- 'id' => 'opt-text-4',
183
- 'type' => 'text',
184
- 'title' => 'Text with placeholder',
185
- 'placeholder' => 'Typed something...'
186
- ),
187
-
188
- array(
189
- 'id' => 'opt-text-5',
190
- 'type' => 'text',
191
- 'title' => 'Text readonly',
192
- 'attributes' => array(
193
- 'readonly' => 'readonly'
194
- ),
195
- 'default' => 'readonly text field, can not be changed'
196
- ),
197
-
198
- array(
199
- 'id' => 'opt-text-6',
200
- 'type' => 'text',
201
- 'title' => 'Text with maxlength (5)',
202
- 'attributes' => array(
203
- 'maxlength' => '5'
204
- ),
205
- 'default' => 'abc',
206
- ),
207
-
208
- array(
209
- 'id' => 'opt-text-7',
210
- 'type' => 'text',
211
- 'title' => 'Text usign custom styles',
212
- 'attributes' => array(
213
- 'style' => 'width: 100%; height: 40px; border-color: #93C054;'
214
- ),
215
- ),
216
-
217
- array(
218
- 'id' => 'opt-text-8',
219
- 'type' => 'text',
220
- 'after' => '<p>It shows full width if there is no field of title.</p>',
221
- ),
222
-
223
- )
224
- ) );
225
-
226
- //
227
- // Field: textarea
228
- //
229
- CSF::createSection( $prefix, array(
230
- 'parent' => 'basic_fields',
231
- 'title' => 'Textarea',
232
- 'icon' => 'fa fa-square-o',
233
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=textarea" target="_blank">Field: textrea</a>',
234
- 'fields' => array(
235
-
236
- array(
237
- 'id' => 'opt-textarea-1',
238
- 'type' => 'textarea',
239
- 'title' => 'Textarea',
240
- ),
241
-
242
- array(
243
- 'id' => 'opt-textarea-2',
244
- 'type' => 'textarea',
245
- 'title' => 'Textarea wtih default',
246
- 'default' => 'This is default value bla bla bla',
247
- ),
248
-
249
- array(
250
- 'id' => 'opt-textarea-3',
251
- 'type' => 'textarea',
252
- 'title' => 'Text with placeholder',
253
- 'placeholder' => 'Typed something...'
254
- ),
255
-
256
- array(
257
- 'id' => 'opt-textarea-4',
258
- 'type' => 'textarea',
259
- 'title' => 'Textarea with shortcoder',
260
- 'shortcoder' => 'csf_demo_shortcodes',
261
- ),
262
-
263
- array(
264
- 'id' => 'opt-textarea-5',
265
- 'type' => 'textarea',
266
- 'title' => 'Textarea field ingenuity',
267
- 'subtitle' => 'The field of subtitle text.',
268
- 'help' => 'The field of help text.',
269
- 'before' => '<p>The field of before text.</p>',
270
- 'after' => '<p>The field of after text.</p>',
271
- ),
272
-
273
- array(
274
- 'id' => 'opt-textarea-6',
275
- 'type' => 'textarea',
276
- 'after' => '<p>It shows full width if there is no field of title.</p>',
277
- ),
278
-
279
- )
280
- ) );
281
-
282
- //
283
- // Field: select
284
- //
285
- CSF::createSection( $prefix, array(
286
- 'parent' => 'basic_fields',
287
- 'title' => 'Select',
288
- 'icon' => 'fa fa-list',
289
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=select" target="_blank">Field: select</a>',
290
- 'fields' => array(
291
-
292
- array(
293
- 'id' => 'opt-select-1',
294
- 'type' => 'select',
295
- 'title' => 'Select',
296
- 'placeholder' => 'Select an option',
297
- 'options' => array(
298
- 'opt-1' => 'Option 1',
299
- 'opt-2' => 'Option 2',
300
- 'opt-3' => 'Option 3',
301
- ),
302
- ),
303
-
304
- array(
305
- 'id' => 'opt-select-2',
306
- 'type' => 'select',
307
- 'title' => 'Select with default',
308
- 'placeholder' => 'Select an option',
309
- 'options' => array(
310
- 'opt-1' => 'Option 1',
311
- 'opt-2' => 'Option 2',
312
- 'opt-3' => 'Option 3',
313
- ),
314
- 'default' => 'opt-2'
315
- ),
316
-
317
- array(
318
- 'id' => 'opt-select-3',
319
- 'type' => 'select',
320
- 'title' => 'Select with group related options',
321
- 'placeholder' => 'Select an option',
322
- 'options' => array(
323
- 'Group 1' => array(
324
- 'opt-1' => 'Option 1',
325
- 'opt-2' => 'Option 2',
326
- 'opt-3' => 'Option 3',
327
- ),
328
- 'Group 2' => array(
329
- 'opt-4' => 'Option 4',
330
- 'opt-5' => 'Option 5',
331
- 'opt-6' => 'Option 6',
332
- ),
333
- 'Group 3' => array(
334
- 'opt-7' => 'Option 7',
335
- 'opt-8' => 'Option 8',
336
- 'opt-9' => 'Option 9',
337
- ),
338
- ),
339
- ),
340
-
341
- array(
342
- 'id' => 'opt-select-4',
343
- 'type' => 'select',
344
- 'title' => 'Select with multiple choice',
345
- 'multiple' => true,
346
- 'attributes' => array(
347
- 'style' => 'min-width: 200px;'
348
- ),
349
- 'options' => array(
350
- 'opt-1' => 'Option 1',
351
- 'opt-2' => 'Option 2',
352
- 'opt-3' => 'Option 3',
353
- 'opt-4' => 'Option 4',
354
- 'opt-5' => 'Option 5',
355
- 'opt-6' => 'Option 6',
356
- ),
357
- 'default' => array( 'opt-2', 'opt-3' ),
358
- ),
359
-
360
- array(
361
- 'type' => 'notice',
362
- 'style' => 'info',
363
- 'content' => 'Select with <strong>chosen</strong> style.',
364
- ),
365
-
366
- array(
367
- 'id' => 'opt-select-5',
368
- 'type' => 'select',
369
- 'title' => 'Select with Chosen',
370
- 'chosen' => true,
371
- 'placeholder' => 'Select an option',
372
- 'options' => array(
373
- 'opt-1' => 'Option 1',
374
- 'opt-2' => 'Option 2',
375
- 'opt-3' => 'Option 3',
376
- 'opt-4' => 'Option 4',
377
- 'opt-5' => 'Option 5',
378
- 'opt-6' => 'Option 6',
379
- ),
380
- ),
381
-
382
- array(
383
- 'id' => 'opt-select-6',
384
- 'type' => 'select',
385
- 'title' => 'Select with multiple Chosen',
386
- 'chosen' => true,
387
- 'multiple' => true,
388
- 'placeholder' => 'Select an option',
389
- 'options' => array(
390
- 'opt-1' => 'Option 1',
391
- 'opt-2' => 'Option 2',
392
- 'opt-3' => 'Option 3',
393
- 'opt-4' => 'Option 4',
394
- 'opt-5' => 'Option 5',
395
- 'opt-6' => 'Option 6',
396
- ),
397
- ),
398
-
399
- array(
400
- 'id' => 'opt-select-7',
401
- 'type' => 'select',
402
- 'title' => 'Select with multiple Chosen and Sortable',
403
- 'chosen' => true,
404
- 'multiple' => true,
405
- 'sortable' => true,
406
- 'placeholder' => 'Select an option',
407
- 'options' => array(
408
- 'opt-1' => 'Option 1',
409
- 'opt-2' => 'Option 2',
410
- 'opt-3' => 'Option 3',
411
- 'opt-4' => 'Option 4',
412
- 'opt-5' => 'Option 5',
413
- 'opt-6' => 'Option 6',
414
- ),
415
- 'default' => array( 'opt-1', 'opt-2', 'opt-3' )
416
- ),
417
-
418
- array(
419
- 'id' => 'opt-select-8',
420
- 'type' => 'select',
421
- 'title' => 'Select with multiple AJAX search Pages',
422
- 'chosen' => true,
423
- 'multiple' => true,
424
- 'sortable' => true,
425
- 'ajax' => true,
426
- 'options' => 'pages',
427
- 'placeholder' => 'Select pages',
428
- ),
429
-
430
- array(
431
- 'id' => 'opt-select-9',
432
- 'type' => 'select',
433
- 'title' => 'Select with multiple AJAX search Posts',
434
- 'chosen' => true,
435
- 'multiple' => true,
436
- 'sortable' => true,
437
- 'ajax' => true,
438
- 'options' => 'posts',
439
- 'placeholder' => 'Select posts',
440
- ),
441
-
442
- array(
443
- 'id' => 'opt-select-10',
444
- 'type' => 'select',
445
- 'title' => 'Select with AJAX search Category',
446
- 'chosen' => true,
447
- 'ajax' => true,
448
- 'options' => 'category',
449
- 'placeholder' => 'Select a category',
450
- ),
451
-
452
- array(
453
- 'type' => 'notice',
454
- 'style' => 'info',
455
- 'content' => 'Select with <strong>predefined wp query</strong> options.',
456
- ),
457
-
458
- array(
459
- 'id' => 'opt-select-11',
460
- 'type' => 'select',
461
- 'title' => 'Select with pages',
462
- 'placeholder' => 'Select a page',
463
- 'options' => 'pages',
464
- ),
465
-
466
- array(
467
- 'id' => 'opt-select-12',
468
- 'type' => 'select',
469
- 'title' => 'Select with posts',
470
- 'placeholder' => 'Select a post',
471
- 'options' => 'posts',
472
- ),
473
-
474
- array(
475
- 'id' => 'opt-select-13',
476
- 'type' => 'select',
477
- 'title' => 'Select with categories',
478
- 'placeholder' => 'Select a category',
479
- 'options' => 'categories',
480
- ),
481
-
482
- array(
483
- 'id' => 'opt-select-14',
484
- 'type' => 'select',
485
- 'title' => 'Select with menus',
486
- 'placeholder' => 'Select a menu',
487
- 'options' => 'menus',
488
- ),
489
-
490
- array(
491
- 'id' => 'opt-select-15',
492
- 'type' => 'select',
493
- 'title' => 'Select with sidebars',
494
- 'placeholder' => 'Select a sidebar',
495
- 'options' => 'sidebars',
496
- ),
497
-
498
- array(
499
- 'id' => 'opt-select-16',
500
- 'type' => 'select',
501
- 'title' => 'Select with wp roles',
502
- 'placeholder' => 'Select a role',
503
- 'options' => 'roles',
504
- ),
505
-
506
- array(
507
- 'id' => 'opt-select-17',
508
- 'type' => 'select',
509
- 'title' => 'Select with users',
510
- 'placeholder' => 'Select a user',
511
- 'options' => 'users',
512
- ),
513
-
514
- array(
515
- 'id' => 'opt-select-18',
516
- 'type' => 'select',
517
- 'title' => 'Select with post type',
518
- 'placeholder' => 'Select a post type',
519
- 'options' => 'post_types',
520
- ),
521
-
522
- array(
523
- 'id' => 'opt-select-19',
524
- 'type' => 'select',
525
- 'title' => 'Select with CPT (custom post type) posts',
526
- 'placeholder' => 'Select a post',
527
- 'options' => 'posts',
528
- 'query_args' => array(
529
- 'post_type' => 'your_post_type_name',
530
- ),
531
- ),
532
-
533
- array(
534
- 'id' => 'opt-select-20',
535
- 'type' => 'select',
536
- 'title' => 'Select with CPT (custom post type) categories',
537
- 'placeholder' => 'Select a category',
538
- 'options' => 'categories',
539
- 'query_args' => array(
540
- 'taxonomy' => 'your_taxonomy_name',
541
- ),
542
- ),
543
-
544
- )
545
- ) );
546
-
547
- //
548
- // Field: checkbox
549
- //
550
- CSF::createSection( $prefix, array(
551
- 'parent' => 'basic_fields',
552
- 'title' => 'Checkbox',
553
- 'icon' => 'fa fa-check-square',
554
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=checkbox" target="_blank">Field: checkbox</a>',
555
- 'fields' => array(
556
-
557
- array(
558
- 'id' => 'opt-checkbox-1',
559
- 'type' => 'checkbox',
560
- 'title' => 'Checkbox',
561
- 'label' => 'The label text of the checkbox.',
562
- ),
563
-
564
- array(
565
- 'id' => 'opt-checkbox-2',
566
- 'type' => 'checkbox',
567
- 'title' => 'Checkbox with default',
568
- 'label' => 'The label text of the checkbox.',
569
- 'default' => true,
570
- ),
571
-
572
- array(
573
- 'id' => 'opt-checkbox-3',
574
- 'type' => 'checkbox',
575
- 'title' => 'Checkbox with multiple choice',
576
- 'options' => array(
577
- 'opt-1' => 'Option 1',
578
- 'opt-2' => 'Option 2',
579
- 'opt-3' => 'Option 3',
580
- ),
581
- ),
582
-
583
- array(
584
- 'id' => 'opt-checkbox-4',
585
- 'type' => 'checkbox',
586
- 'title' => 'Checkbox inline with multiple choice',
587
- 'inline' => true,
588
- 'options' => array(
589
- 'opt-1' => 'Option 1',
590
- 'opt-2' => 'Option 2',
591
- 'opt-3' => 'Option 3',
592
- ),
593
- ),
594
-
595
- array(
596
- 'id' => 'opt-checkbox-5',
597
- 'type' => 'checkbox',
598
- 'title' => 'Checkbox multiple choice with default',
599
- 'options' => array(
600
- 'opt-1' => 'Option 1',
601
- 'opt-2' => 'Option 2',
602
- 'opt-3' => 'Option 3',
603
- ),
604
- 'default' => array( 'opt-1', 'opt-2' )
605
- ),
606
-
607
- array(
608
- 'id' => 'opt-checkbox-6',
609
- 'type' => 'checkbox',
610
- 'title' => 'Checkbox with group related options',
611
- 'options' => array(
612
- 'Group 1' => array(
613
- 'opt-1' => 'Option 1',
614
- 'opt-2' => 'Option 2',
615
- 'opt-3' => 'Option 3',
616
- ),
617
- 'Group 2' => array(
618
- 'opt-4' => 'Option 4',
619
- 'opt-5' => 'Option 5',
620
- 'opt-6' => 'Option 6',
621
- ),
622
- ),
623
- ),
624
-
625
- array(
626
- 'id' => 'opt-checkbox-7',
627
- 'type' => 'checkbox',
628
- 'title' => 'Checkbox testing on many items',
629
- 'options' => array(
630
- 'opt-1' => 'Option 1',
631
- 'opt-2' => 'Option 2',
632
- 'opt-3' => 'Option 3',
633
- 'opt-4' => 'Option 4',
634
- 'opt-5' => 'Option 5',
635
- 'opt-6' => 'Option 6',
636
- 'opt-7' => 'Option 7',
637
- 'opt-8' => 'Option 8',
638
- 'opt-9' => 'Option 9',
639
- 'opt-10' => 'Option 10',
640
- 'opt-11' => 'Option 11',
641
- 'opt-12' => 'Option 12',
642
- 'opt-13' => 'Option 13',
643
- 'opt-14' => 'Option 14',
644
- 'opt-15' => 'Option 15',
645
- ),
646
- 'after' => '<p class="csf-text-muted">Vertical scroll showing automatically after add many items</p>'
647
- ),
648
-
649
- array(
650
- 'type' => 'notice',
651
- 'style' => 'info',
652
- 'content' => 'Checkbox with <strong>predefined wp query</strong> options similar like <strong>select</strong> field. (see select field for all options models.)',
653
- ),
654
-
655
- array(
656
- 'id' => 'opt-checkbox-8',
657
- 'type' => 'checkbox',
658
- 'title' => 'Checkbox with categories',
659
- 'options' => 'categories',
660
- ),
661
-
662
- )
663
- ) );
664
-
665
- //
666
- // Field: radio
667
- //
668
- CSF::createSection( $prefix, array(
669
- 'parent' => 'basic_fields',
670
- 'title' => 'Radio',
671
- 'icon' => 'fa fa-dot-circle-o',
672
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=radio" target="_blank">Field: radio</a>',
673
- 'fields' => array(
674
-
675
- array(
676
- 'id' => 'opt-radio-1',
677
- 'type' => 'radio',
678
- 'title' => 'Radio',
679
- 'options' => array(
680
- 'opt-1' => 'Option 1',
681
- 'opt-2' => 'Option 2',
682
- 'opt-3' => 'Option 3',
683
- ),
684
- ),
685
-
686
- array(
687
- 'id' => 'opt-radio-2',
688
- 'type' => 'radio',
689
- 'title' => 'Radio with default',
690
- 'options' => array(
691
- 'opt-1' => 'Option 1',
692
- 'opt-2' => 'Option 2',
693
- 'opt-3' => 'Option 3',
694
- ),
695
- 'default' => 'opt-2',
696
- ),
697
-
698
- array(
699
- 'id' => 'opt-radio-3',
700
- 'type' => 'radio',
701
- 'title' => 'Radio with inline style',
702
- 'inline' => true,
703
- 'options' => array(
704
- 'opt-1' => 'Option 1',
705
- 'opt-2' => 'Option 2',
706
- 'opt-3' => 'Option 3',
707
- ),
708
- ),
709
-
710
- array(
711
- 'id' => 'opt-radio-4',
712
- 'type' => 'radio',
713
- 'title' => 'Radio with group related options',
714
- 'options' => array(
715
- 'Group 1' => array(
716
- 'opt-1' => 'Option 1',
717
- 'opt-2' => 'Option 2',
718
- 'opt-3' => 'Option 3',
719
- ),
720
- 'Group 2' => array(
721
- 'opt-4' => 'Option 4',
722
- 'opt-5' => 'Option 5',
723
- 'opt-6' => 'Option 6',
724
- ),
725
- ),
726
- ),
727
-
728
- array(
729
- 'id' => 'opt-radio-5',
730
- 'type' => 'radio',
731
- 'title' => 'Radio testing on many items',
732
- 'options' => array(
733
- 'opt-1' => 'Option 1',
734
- 'opt-2' => 'Option 2',
735
- 'opt-3' => 'Option 3',
736
- 'opt-4' => 'Option 4',
737
- 'opt-5' => 'Option 5',
738
- 'opt-6' => 'Option 6',
739
- 'opt-7' => 'Option 7',
740
- 'opt-8' => 'Option 8',
741
- 'opt-9' => 'Option 9',
742
- 'opt-10' => 'Option 10',
743
- 'opt-11' => 'Option 11',
744
- 'opt-12' => 'Option 12',
745
- 'opt-13' => 'Option 13',
746
- 'opt-14' => 'Option 14',
747
- 'opt-15' => 'Option 15',
748
- ),
749
- 'after' => '<p class="csf-text-muted">Vertical scroll showing automatically after add many items</p>'
750
- ),
751
-
752
- array(
753
- 'type' => 'notice',
754
- 'style' => 'info',
755
- 'content' => 'Radio with <strong>predefined wp query</strong> options similar like <strong>select</strong> field. (see select field for all options models.)',
756
- ),
757
-
758
- array(
759
- 'id' => 'opt-radio-6',
760
- 'type' => 'radio',
761
- 'title' => 'Radio with categories',
762
- 'options' => 'categories',
763
- ),
764
-
765
- )
766
- ) );
767
-
768
- //
769
- // Repeater Fields
770
- //
771
- CSF::createSection( $prefix, array(
772
- 'id' => 'repeater_fields',
773
- 'title' => 'Repeater Fields',
774
- 'icon' => 'fa fa-clone',
775
- ) );
776
-
777
- //
778
- // Field: repeater
779
- //
780
- CSF::createSection( $prefix, array(
781
- 'parent' => 'repeater_fields',
782
- 'title' => 'Repeater',
783
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=repeater" target="_blank">Field: repeater</a>',
784
- 'fields' => array(
785
-
786
- array(
787
- 'id' => 'opt-repeater-1',
788
- 'type' => 'repeater',
789
- 'title' => 'Repeater',
790
- 'fields' => array(
791
- array(
792
- 'id' => 'opt-text',
793
- 'type' => 'text',
794
- 'title' => 'Text'
795
- ),
796
- ),
797
- ),
798
-
799
- array(
800
- 'id' => 'opt-repeater-2',
801
- 'type' => 'repeater',
802
- 'title' => 'Repeater with default',
803
- 'fields' => array(
804
- array(
805
- 'id' => 'opt-text',
806
- 'type' => 'text',
807
- 'title' => 'Text',
808
- ),
809
- ),
810
- 'default' => array(
811
- array(
812
- 'opt-text' => 'Text default 1',
813
- ),
814
- array(
815
- 'opt-text' => 'Text default 2',
816
- ),
817
- ),
818
- ),
819
-
820
- array(
821
- 'id' => 'opt-repeater-3',
822
- 'type' => 'repeater',
823
- 'title' => 'Repeater with multiple fields',
824
- 'fields' => array(
825
- array(
826
- 'id' => 'opt-switcher',
827
- 'type' => 'switcher',
828
- 'title' => 'Switcher',
829
- ),
830
- array(
831
- 'id' => 'opt-color',
832
- 'type' => 'color',
833
- 'title' => 'Color',
834
- ),
835
- array(
836
- 'id' => 'opt-text',
837
- 'type' => 'text',
838
- 'title' => 'Text',
839
- ),
840
- ),
841
- 'default' => array(
842
- array(
843
- 'opt-switcher' => false,
844
- 'opt-color' => '#3498db',
845
- 'opt-text' => 'Text default 1',
846
- ),
847
- ),
848
- ),
849
-
850
- array(
851
- 'id' => 'opt-repeater-4',
852
- 'type' => 'repeater',
853
- 'title' => 'Repeater with limited (min - max items)',
854
- 'subtitle' => 'The maximum/minimum number of items the user can add. (In this example min:1, max:3)',
855
- 'button_title' => 'Add Text',
856
- 'min' => 1,
857
- 'max' => 3,
858
- 'fields' => array(
859
- array(
860
- 'id' => 'opt-text',
861
- 'type' => 'text',
862
- 'title' => 'Text',
863
- ),
864
- ),
865
- 'default' => array(
866
- array(
867
- 'opt-text' => 'Text default 1',
868
- ),
869
- array(
870
- 'opt-text' => 'Text default 2',
871
- ),
872
- ),
873
- ),
874
-
875
- array(
876
- 'id' => 'opt-repeater-6',
877
- 'type' => 'repeater',
878
- 'title' => 'Repeater nested repeater',
879
- 'subtitle' => 'Can be added unlimited nested repeater',
880
- 'fields' => array(
881
- array(
882
- 'id' => 'opt-text',
883
- 'type' => 'text',
884
- 'title' => 'Text',
885
- ),
886
- array(
887
- 'id' => 'opt-repeater-6-nested-1',
888
- 'type' => 'repeater',
889
- 'title' => 'Repeater',
890
- 'fields' => array(
891
- array(
892
- 'id' => 'opt-text',
893
- 'type' => 'text',
894
- 'title' => 'Text'
895
- ),
896
- ),
897
- ),
898
- ),
899
- 'default' => array(
900
- array(
901
- 'opt-text' => 'Text default 1',
902
- 'opt-repeater-6-nested-1' => array(
903
- array(
904
- 'opt-text' => 'Text default 1',
905
- ),
906
- array(
907
- 'opt-text' => 'Text default 2',
908
- ),
909
- ),
910
- ),
911
- ),
912
- ),
913
-
914
- )
915
- ) );
916
-
917
- //
918
- // Field: group
919
- //
920
- CSF::createSection( $prefix, array(
921
- 'parent' => 'repeater_fields',
922
- 'title' => 'Group',
923
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=group" target="_blank">Field: group</a>',
924
- 'fields' => array(
925
-
926
- array(
927
- 'id' => 'opt-group-1',
928
- 'type' => 'group',
929
- 'title' => 'Group',
930
- 'fields' => array(
931
- array(
932
- 'id' => 'opt-text',
933
- 'type' => 'text',
934
- 'title' => 'Text',
935
- ),
936
- array(
937
- 'id' => 'opt-switcher',
938
- 'type' => 'switcher',
939
- 'title' => 'Switcher',
940
- ),
941
- array(
942
- 'id' => 'opt-textarea',
943
- 'type' => 'textarea',
944
- 'title' => 'Textarea',
945
- ),
946
- )
947
- ),
948
-
949
- array(
950
- 'id' => 'opt-group-2',
951
- 'type' => 'group',
952
- 'title' => 'Group with default',
953
- 'fields' => array(
954
- array(
955
- 'id' => 'opt-text',
956
- 'type' => 'text',
957
- 'title' => 'Text',
958
- ),
959
- array(
960
- 'id' => 'opt-switcher',
961
- 'type' => 'switcher',
962
- 'title' => 'Switcher',
963
- ),
964
- array(
965
- 'id' => 'opt-textarea',
966
- 'type' => 'textarea',
967
- 'title' => 'Textarea',
968
- ),
969
- ),
970
- 'default' => array(
971
- array(
972
- 'opt-text' => 'Some text 1',
973
- 'opt-switcher' => true,
974
- 'opt-textarea' => 'Some textarea content 1',
975
- ),
976
- array(
977
- 'opt-text' => 'Some text 2',
978
- 'opt-switcher' => false,
979
- 'opt-textarea' => 'Some textarea content 2',
980
- ),
981
- )
982
- ),
983
-
984
- array(
985
- 'id' => 'opt-group-3',
986
- 'type' => 'group',
987
- 'title' => 'Group with limited (min - max items)',
988
- 'subtitle' => 'The maximum/minimum number of items the user can add. (In this example min:1, max:3)',
989
- 'min' => 1,
990
- 'max' => 3,
991
- 'fields' => array(
992
- array(
993
- 'id' => 'opt-text',
994
- 'type' => 'text',
995
- 'title' => 'Text',
996
- ),
997
- array(
998
- 'id' => 'opt-textarea',
999
- 'type' => 'textarea',
1000
- 'title' => 'Textarea',
1001
- ),
1002
- ),
1003
- 'default' => array(
1004
- array(
1005
- 'opt-text' => 'Limited text 1',
1006
- 'opt-textarea' => 'Limited textarea content 1',
1007
- ),
1008
- array(
1009
- 'opt-text' => 'Limited text 2',
1010
- 'opt-textarea' => 'Limited textarea content 2',
1011
- ),
1012
- )
1013
- ),
1014
-
1015
- array(
1016
- 'id' => 'opt-group-4',
1017
- 'type' => 'group',
1018
- 'title' => 'Group with WP Editor',
1019
- 'subtitle' => 'WP Editor integrated for Ajax Call.',
1020
- 'fields' => array(
1021
- array(
1022
- 'id' => 'opt-text',
1023
- 'type' => 'text',
1024
- 'title' => 'Text',
1025
- ),
1026
- array(
1027
- 'id' => 'opt-editor',
1028
- 'type' => 'wp_editor',
1029
- 'title' => 'WP Editor',
1030
- ),
1031
- ),
1032
- 'default' => array(
1033
- array(
1034
- 'opt-text' => 'WP Editor 1',
1035
- 'opt-editor' => 'Editor content 1',
1036
- ),
1037
- array(
1038
- 'opt-text' => 'WP Editor 2',
1039
- 'opt-editor' => 'Editor content 2',
1040
- ),
1041
- )
1042
- ),
1043
-
1044
- array(
1045
- 'id' => 'opt-group-5',
1046
- 'type' => 'group',
1047
- 'title' => 'Group nested',
1048
- 'subtitle' => 'Can be added unlimited nested groups',
1049
- 'fields' => array(
1050
- array(
1051
- 'id' => 'opt-text',
1052
- 'type' => 'text',
1053
- 'title' => 'Text',
1054
- ),
1055
- array(
1056
- 'id' => 'opt-group-5-sublevel-1',
1057
- 'type' => 'group',
1058
- 'title' => 'Group Nested',
1059
- 'fields' => array(
1060
- array(
1061
- 'id' => 'opt-text',
1062
- 'type' => 'text',
1063
- 'title' => 'Text',
1064
- ),
1065
- array(
1066
- 'id' => 'opt-group-5-sublevel-2',
1067
- 'type' => 'group',
1068
- 'title' => 'Group Nested',
1069
- 'fields' => array(
1070
- array(
1071
- 'id' => 'opt-text',
1072
- 'type' => 'text',
1073
- 'title' => 'Text',
1074
- ),
1075
- array(
1076
- 'id' => 'opt-switcher',
1077
- 'type' => 'switcher',
1078
- 'title' => 'Switcher',
1079
- ),
1080
- array(
1081
- 'id' => 'opt-textarea',
1082
- 'type' => 'textarea',
1083
- 'title' => 'Textarea',
1084
- ),
1085
- )
1086
- ),
1087
- array(
1088
- 'id' => 'opt-switcher',
1089
- 'type' => 'switcher',
1090
- 'title' => 'Switcher',
1091
- ),
1092
- array(
1093
- 'id' => 'opt-textarea',
1094
- 'type' => 'textarea',
1095
- 'title' => 'Textarea',
1096
- ),
1097
- )
1098
- ),
1099
- array(
1100
- 'id' => 'opt-switcher',
1101
- 'type' => 'switcher',
1102
- 'title' => 'Switcher',
1103
- ),
1104
- array(
1105
- 'id' => 'opt-textarea',
1106
- 'type' => 'textarea',
1107
- 'title' => 'Textarea',
1108
- ),
1109
- ),
1110
- 'default' => array(
1111
-
1112
- // top level defaults
1113
- array(
1114
- 'opt-text' => 'Top Level 1',
1115
-
1116
- // sub level 1 defaults
1117
- 'opt-group-5-sublevel-1' => array(
1118
- array(
1119
- 'opt-text' => 'Sub Level 1',
1120
-
1121
- // sub level 2 defaults
1122
- 'opt-group-5-sublevel-2' => array(
1123
- array(
1124
- 'opt-text' => 'Sub Sub Level 1',
1125
- ),
1126
- array(
1127
- 'opt-text' => 'Sub Sub Level 2',
1128
- )
1129
- ),
1130
- ),
1131
- array(
1132
- 'opt-text' => 'Sub Level 2',
1133
- )
1134
- ),
1135
- ),
1136
-
1137
- // top level defaults
1138
- array(
1139
- 'opt-text' => 'Top Level 2',
1140
- ),
1141
- )
1142
- ),
1143
-
1144
- array(
1145
- 'id' => 'opt-group-6',
1146
- 'type' => 'group',
1147
- 'title' => 'Group with Repeater Field',
1148
- 'fields' => array(
1149
- array(
1150
- 'id' => 'opt-text',
1151
- 'type' => 'text',
1152
- 'title' => 'Text',
1153
- ),
1154
- array(
1155
- 'id' => 'opt-group-6-repeater',
1156
- 'type' => 'repeater',
1157
- 'title' => 'Repeater',
1158
- 'fields' => array(
1159
- array(
1160
- 'id' => 'opt-text',
1161
- 'type' => 'text',
1162
- 'title' => 'Text'
1163
- ),
1164
- ),
1165
- ),
1166
- array(
1167
- 'id' => 'opt-switcher',
1168
- 'type' => 'switcher',
1169
- 'title' => 'Switcher',
1170
- ),
1171
- array(
1172
- 'id' => 'opt-textarea',
1173
- 'type' => 'textarea',
1174
- 'title' => 'Textarea',
1175
- ),
1176
- ),
1177
- 'default' => array(
1178
- array(
1179
- 'opt-text' => 'Some text 1',
1180
- 'opt-group-6-repeater' => array(
1181
- array(
1182
- 'opt-text' => 'Some text 1',
1183
- ),
1184
- array(
1185
- 'opt-text' => 'Some text 2',
1186
- ),
1187
- )
1188
- ),
1189
- )
1190
- ),
1191
-
1192
- array(
1193
- 'id' => 'opt-group-7',
1194
- 'type' => 'group',
1195
- 'title' => 'Group with static prefix of title',
1196
- 'subtitle' => 'accordion_title_prefix => "Static Prefix:"',
1197
- 'accordion_title_prefix' => 'Static Prefix:',
1198
- 'fields' => array(
1199
- array(
1200
- 'id' => 'opt-text',
1201
- 'type' => 'text',
1202
- 'title' => 'Text',
1203
- ),
1204
- array(
1205
- 'id' => 'opt-switcher',
1206
- 'type' => 'switcher',
1207
- 'title' => 'Switcher',
1208
- ),
1209
- array(
1210
- 'id' => 'opt-textarea',
1211
- 'type' => 'textarea',
1212
- 'title' => 'Textarea',
1213
- ),
1214
- ),
1215
- 'default' => array(
1216
- array(
1217
- 'opt-text' => 'Some text 1',
1218
- 'opt-switcher' => true,
1219
- 'opt-textarea' => 'Some textarea content 1',
1220
- ),
1221
- array(
1222
- 'opt-text' => 'Some text 2',
1223
- 'opt-switcher' => false,
1224
- 'opt-textarea' => 'Some textarea content 2',
1225
- ),
1226
- )
1227
- ),
1228
-
1229
- array(
1230
- 'id' => 'opt-group-8',
1231
- 'type' => 'group',
1232
- 'title' => 'Group with title numbers',
1233
- 'subtitle' => 'accordion_title_number => true',
1234
- 'accordion_title_number' => true,
1235
- 'fields' => array(
1236
- array(
1237
- 'id' => 'opt-text',
1238
- 'type' => 'text',
1239
- 'title' => 'Text',
1240
- ),
1241
- array(
1242
- 'id' => 'opt-switcher',
1243
- 'type' => 'switcher',
1244
- 'title' => 'Switcher',
1245
- ),
1246
- array(
1247
- 'id' => 'opt-textarea',
1248
- 'type' => 'textarea',
1249
- 'title' => 'Textarea',
1250
- ),
1251
- ),
1252
- 'default' => array(
1253
- array(
1254
- 'opt-text' => 'Some text 1',
1255
- 'opt-switcher' => true,
1256
- 'opt-textarea' => 'Some textarea content 1',
1257
- ),
1258
- array(
1259
- 'opt-text' => 'Some text 2',
1260
- 'opt-switcher' => false,
1261
- 'opt-textarea' => 'Some textarea content 2',
1262
- ),
1263
- )
1264
- ),
1265
-
1266
- )
1267
- ) );
1268
-
1269
- //
1270
- // Combine Fields
1271
- //
1272
- CSF::createSection( $prefix, array(
1273
- 'id' => 'combine_fields',
1274
- 'title' => 'Combine Fields',
1275
- 'icon' => 'fa fa-bars',
1276
- ) );
1277
-
1278
- //
1279
- // Field: accordion
1280
- //
1281
- CSF::createSection( $prefix, array(
1282
- 'parent' => 'combine_fields',
1283
- 'title' => 'Accordion',
1284
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=accordion" target="_blank">Field: accordion</a>',
1285
- 'fields' => array(
1286
-
1287
- array(
1288
- 'id' => 'opt-accordion-1',
1289
- 'type' => 'accordion',
1290
- 'title' => 'Accordion',
1291
- 'accordions' => array(
1292
-
1293
- array(
1294
- 'title' => 'Accordion 1',
1295
- 'fields' => array(
1296
- array(
1297
- 'id' => 'opt-text-1',
1298
- 'type' => 'text',
1299
- 'title' => 'Text',
1300
- ),
1301
- array(
1302
- 'id' => 'opt-switcher-1',
1303
- 'type' => 'switcher',
1304
- 'title' => 'Switcher',
1305
- ),
1306
- array(
1307
- 'id' => 'opt-textarea-1',
1308
- 'type' => 'textarea',
1309
- 'title' => 'Textarea',
1310
- ),
1311
- )
1312
- ),
1313
-
1314
- array(
1315
- 'title' => 'Accordion 2',
1316
- 'fields' => array(
1317
- array(
1318
- 'id' => 'opt-text-2',
1319
- 'type' => 'text',
1320
- 'title' => 'Text',
1321
- ),
1322
- array(
1323
- 'id' => 'opt-color-1',
1324
- 'type' => 'color',
1325
- 'title' => 'Color',
1326
- ),
1327
- )
1328
- ),
1329
-
1330
- )
1331
- ),
1332
-
1333
- array(
1334
- 'id' => 'opt-accordion-2',
1335
- 'type' => 'accordion',
1336
- 'title' => 'Accordion with default',
1337
- 'accordions' => array(
1338
-
1339
- array(
1340
- 'title' => 'Fields 1',
1341
- 'fields' => array(
1342
- array(
1343
- 'id' => 'opt-text-1',
1344
- 'type' => 'text',
1345
- 'title' => 'Text 1',
1346
- ),
1347
- array(
1348
- 'id' => 'opt-text-2',
1349
- 'type' => 'text',
1350
- 'title' => 'Text 2',
1351
- ),
1352
- )
1353
- ),
1354
-
1355
- array(
1356
- 'title' => 'Fields 2',
1357
- 'fields' => array(
1358
- array(
1359
- 'id' => 'opt-color-1',
1360
- 'type' => 'color',
1361
- 'title' => 'Color 1',
1362
- ),
1363
- array(
1364
- 'id' => 'opt-color-2',
1365
- 'type' => 'color',
1366
- 'title' => 'Color 2',
1367
- ),
1368
- )
1369
- ),
1370
-
1371
- array(
1372
- 'title' => 'Fields 3',
1373
- 'fields' => array(
1374
- array(
1375
- 'id' => 'opt-textarea-1',
1376
- 'type' => 'textarea',
1377
- 'title' => 'Textarea 3',
1378
- ),
1379
- array(
1380
- 'id' => 'opt-textarea-2',
1381
- 'type' => 'textarea',
1382
- 'title' => 'Textarea 4',
1383
- ),
1384
- )
1385
- ),
1386
-
1387
- ),
1388
- 'default' => array(
1389
- 'opt-text-1' => 'This is text 1 default value',
1390
- 'opt-text-2' => 'This is text 2 default value',
1391
- 'opt-color-1' => '#1e73be',
1392
- 'opt-color-2' => '#ffbc00',
1393
- 'opt-textarea-1' => 'This is textarea 1 default value',
1394
- 'opt-textarea-2' => 'This is textarea 2 default value',
1395
- )
1396
- ),
1397
-
1398
- array(
1399
- 'id' => 'accordion_3',
1400
- 'type' => 'accordion',
1401
- 'title' => 'Accordion with custom icons',
1402
- 'accordions' => array(
1403
-
1404
- array(
1405
- 'title' => 'Other 1',
1406
- 'icon' => 'fa fa-check',
1407
- 'fields' => array(
1408
- array(
1409
- 'id' => 'opt-text-1',
1410
- 'type' => 'text',
1411
- 'title' => 'Text 1',
1412
- ),
1413
- )
1414
- ),
1415
-
1416
- array(
1417
- 'title' => 'Other 2',
1418
- 'icon' => 'fa fa-star',
1419
- 'fields' => array(
1420
- array(
1421
- 'id' => 'opt-text-2',
1422
- 'type' => 'text',
1423
- 'title' => 'Text 2',
1424
- ),
1425
- )
1426
- ),
1427
-
1428
- )
1429
- ),
1430
-
1431
- )
1432
- ) );
1433
-
1434
- //
1435
- // Field: tabbed
1436
- //
1437
- CSF::createSection( $prefix, array(
1438
- 'parent' => 'combine_fields',
1439
- 'title' => 'Tabbed',
1440
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=tabbed" target="_blank">Field: tabbed</a>',
1441
- 'fields' => array(
1442
-
1443
- array(
1444
- 'id' => 'opt-tabbed-1',
1445
- 'type' => 'tabbed',
1446
- 'title' => 'Tabbed',
1447
- 'tabs' => array(
1448
-
1449
- array(
1450
- 'title' => 'Tab 1',
1451
- 'fields' => array(
1452
- array(
1453
- 'id' => 'opt-text-1',
1454
- 'type' => 'text',
1455
- 'title' => 'Text 1',
1456
- ),
1457
- array(
1458
- 'id' => 'opt-textarea-1',
1459
- 'type' => 'textarea',
1460
- 'title' => 'Textarea 1',
1461
- ),
1462
- ),
1463
- ),
1464
-
1465
- array(
1466
- 'title' => 'Tab 2',
1467
- 'fields' => array(
1468
- array(
1469
- 'id' => 'opt-text-2',
1470
- 'type' => 'text',
1471
- 'title' => 'Text 2',
1472
- ),
1473
- array(
1474
- 'id' => 'opt-textarea-2',
1475
- 'type' => 'textarea',
1476
- 'title' => 'Textarea 2',
1477
- ),
1478
- ),
1479
- ),
1480
-
1481
- ),
1482
- ),
1483
-
1484
- array(
1485
- 'id' => 'opt-tabbed-2',
1486
- 'type' => 'tabbed',
1487
- 'title' => 'Tabbed with default and icons',
1488
- 'tabs' => array(
1489
- array(
1490
- 'title' => 'Fields 1',
1491
- 'icon' => 'fa fa-check',
1492
- 'fields' => array(
1493
- array(
1494
- 'id' => 'opt-text-1',
1495
- 'type' => 'text',
1496
- 'title' => 'Text 1',
1497
- ),
1498
- array(
1499
- 'id' => 'opt-text-2',
1500
- 'type' => 'text',
1501
- 'title' => 'Text 2',
1502
- ),
1503
- ),
1504
- ),
1505
- array(
1506
- 'title' => 'Fields 2',
1507
- 'icon' => 'fa fa-star',
1508
- 'fields' => array(
1509
- array(
1510
- 'id' => 'opt-color-1',
1511
- 'type' => 'color',
1512
- 'title' => 'Color 1',
1513
- ),
1514
- array(
1515
- 'id' => 'opt-color-2',
1516
- 'type' => 'color',
1517
- 'title' => 'Color 2',
1518
- ),
1519
- ),
1520
- ),
1521
- array(
1522
- 'title' => 'Fields 3',
1523
- 'icon' => 'fa fa-gear',
1524
- 'fields' => array(
1525
- array(
1526
- 'id' => 'opt-textarea-1',
1527
- 'type' => 'textarea',
1528
- 'title' => 'Textarea 1',
1529
- ),
1530
- array(
1531
- 'id' => 'opt-textarea-2',
1532
- 'type' => 'textarea',
1533
- 'title' => 'Textarea 2',
1534
- ),
1535
- ),
1536
- ),
1537
- ),
1538
- 'default' => array(
1539
- 'opt-text-1' => 'This is text 1 default value',
1540
- 'opt-text-2' => 'This is text 2 default value',
1541
- 'opt-color-1' => '#1e73be',
1542
- 'opt-color-2' => '#ffbc00',
1543
- 'opt-textarea-1' => 'This is textarea 1 default value',
1544
- 'opt-textarea-2' => 'This is textarea 2 default value',
1545
- )
1546
- ),
1547
-
1548
- )
1549
- ) );
1550
-
1551
- //
1552
- // Field: fieldset
1553
- //
1554
- CSF::createSection( $prefix, array(
1555
- 'parent' => 'combine_fields',
1556
- 'title' => 'Fieldset',
1557
- 'fields' => array(
1558
-
1559
- array(
1560
- 'id' => 'opt-fieldset-1',
1561
- 'type' => 'fieldset',
1562
- 'title' => 'Fieldset',
1563
- 'fields' => array(
1564
- array(
1565
- 'id' => 'opt-color',
1566
- 'type' => 'color',
1567
- 'title' => 'Color',
1568
- ),
1569
- array(
1570
- 'id' => 'opt-text',
1571
- 'type' => 'text',
1572
- 'title' => 'Text',
1573
- ),
1574
- array(
1575
- 'id' => 'opt-textarea',
1576
- 'type' => 'textarea',
1577
- 'title' => 'Textarea',
1578
- ),
1579
- ),
1580
- ),
1581
-
1582
- array(
1583
- 'id' => 'opt-fieldset-2',
1584
- 'type' => 'fieldset',
1585
- 'title' => 'Fieldset with default',
1586
- 'fields' => array(
1587
- array(
1588
- 'type' => 'subheading',
1589
- 'content' => 'Title of the fieldset',
1590
- ),
1591
- array(
1592
- 'id' => 'opt-color',
1593
- 'type' => 'color',
1594
- 'title' => 'Color',
1595
- ),
1596
- array(
1597
- 'id' => 'opt-text',
1598
- 'type' => 'text',
1599
- 'title' => 'Text',
1600
- ),
1601
- array(
1602
- 'id' => 'opt-textarea',
1603
- 'type' => 'textarea',
1604
- 'title' => 'Textarea',
1605
- ),
1606
- ),
1607
- 'default' => array(
1608
- 'opt-color' => '#1e73be',
1609
- 'opt-text' => 'This is text default value',
1610
- 'opt-textarea' => 'This is textarea default value',
1611
- )
1612
- ),
1613
-
1614
- )
1615
- ) );
1616
-
1617
- //
1618
- // Media and Upload Fields
1619
- //
1620
- CSF::createSection( $prefix, array(
1621
- 'id' => 'media_fields',
1622
- 'title' => 'Media and Upload Fields',
1623
- 'icon' => 'fa fa-upload',
1624
- ) );
1625
-
1626
- //
1627
- // Field: media
1628
- //
1629
- CSF::createSection( $prefix, array(
1630
- 'parent' => 'media_fields',
1631
- 'title' => 'Media',
1632
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=media" target="_blank">Field: media</a>',
1633
- 'fields' => array(
1634
-
1635
- array(
1636
- 'id' => 'opt-media-1',
1637
- 'type' => 'media',
1638
- 'title' => 'Media',
1639
- ),
1640
-
1641
- array(
1642
- 'id' => 'opt-media-2',
1643
- 'type' => 'media',
1644
- 'title' => 'Media without preview',
1645
- 'preview' => false,
1646
- ),
1647
-
1648
- array(
1649
- 'id' => 'opt-media-3',
1650
- 'type' => 'media',
1651
- 'title' => 'Media without url',
1652
- 'url' => false,
1653
- ),
1654
-
1655
- array(
1656
- 'id' => 'opt-media-4',
1657
- 'type' => 'media',
1658
- 'title' => 'Media with only image type',
1659
- 'library' => 'image',
1660
- ),
1661
-
1662
- array(
1663
- 'id' => 'opt-media-5',
1664
- 'type' => 'media',
1665
- 'title' => 'Media with only video type',
1666
- 'library' => 'video',
1667
- ),
1668
-
1669
- array(
1670
- 'id' => 'opt-media-6',
1671
- 'type' => 'media',
1672
- 'title' => 'Media with only audio type',
1673
- 'library' => 'audio',
1674
- ),
1675
-
1676
- )
1677
- ) );
1678
-
1679
- //
1680
- // Field: upload
1681
- //
1682
- CSF::createSection( $prefix, array(
1683
- 'parent' => 'media_fields',
1684
- 'title' => 'Upload',
1685
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=upload" target="_blank">Field: upload</a>',
1686
- 'fields' => array(
1687
-
1688
- array(
1689
- 'id' => 'opt-upload-1',
1690
- 'type' => 'upload',
1691
- 'title' => 'Upload',
1692
- ),
1693
-
1694
- array(
1695
- 'id' => 'opt-upload-2',
1696
- 'type' => 'upload',
1697
- 'title' => 'Upload with placeholder',
1698
- 'placeholder' => 'http://'
1699
- ),
1700
-
1701
- array(
1702
- 'id' => 'opt-upload-3',
1703
- 'type' => 'upload',
1704
- 'title' => 'Upload with only image type',
1705
- 'library' => 'image',
1706
- 'button_title' => 'Upload Image',
1707
- ),
1708
-
1709
- array(
1710
- 'id' => 'opt-upload-4',
1711
- 'type' => 'upload',
1712
- 'title' => 'Upload with only video type',
1713
- 'library' => 'video',
1714
- 'button_title' => 'Upload Video',
1715
- ),
1716
-
1717
- array(
1718
- 'id' => 'opt-upload-5',
1719
- 'type' => 'upload',
1720
- 'title' => 'Upload with only audio type',
1721
- 'library' => 'audio',
1722
- 'button_title' => 'Upload Audio',
1723
- ),
1724
-
1725
- )
1726
- ) );
1727
-
1728
- //
1729
- // Field: gallery
1730
- //
1731
- CSF::createSection( $prefix, array(
1732
- 'parent' => 'media_fields',
1733
- 'title' => 'Gallery',
1734
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=gallery" target="_blank">Field: gallery</a>',
1735
- 'fields' => array(
1736
-
1737
- array(
1738
- 'id' => 'opt-gallery-1',
1739
- 'type' => 'gallery',
1740
- 'title' => 'Gallery',
1741
- ),
1742
-
1743
- array(
1744
- 'id' => 'opt-gallery-2',
1745
- 'type' => 'gallery',
1746
- 'title' => 'Gallery with custom button names',
1747
- 'add_title' => 'Add Image(s)',
1748
- 'edit_title' => 'Edit Images',
1749
- 'clear_title' => 'Remove Images',
1750
- ),
1751
-
1752
- )
1753
- ) );
1754
-
1755
- //
1756
- // Editor Fields
1757
- //
1758
- CSF::createSection( $prefix, array(
1759
- 'id' => 'editor_fields',
1760
- 'title' => 'Editor Fields',
1761
- 'icon' => 'fa fa-code',
1762
- ) );
1763
-
1764
- //
1765
- // Field: code_editor
1766
- //
1767
- CSF::createSection( $prefix, array(
1768
- 'parent' => 'editor_fields',
1769
- 'title' => 'Code Editor',
1770
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=code-editor" target="_blank">Field: code_editor</a>',
1771
- 'fields' => array(
1772
-
1773
- array(
1774
- 'id' => 'opt-code-editor-1',
1775
- 'type' => 'code_editor',
1776
- 'title' => 'Code Editor',
1777
- 'subtitle' => '<strong>Default Editor</strong> Using: theme: default and mode: htmlmixed',
1778
- ),
1779
-
1780
- array(
1781
- 'id' => 'code_editor_2',
1782
- 'type' => 'code_editor',
1783
- 'title' => 'Code Editor',
1784
- 'subtitle' => '<strong>HTML Editor</strong> Using: theme: shadowfox and mode: htmlmixed',
1785
- 'settings' => array(
1786
- 'theme' => 'shadowfox',
1787
- 'mode' => 'htmlmixed',
1788
- ),
1789
- 'default' =>'<div class="wrapper">
1790
- <h1>Hello world</h1>
1791
- <p>Lorem <strong>ipsum</strong> dollar.</p>
1792
- </div>',
1793
- ),
1794
-
1795
- array(
1796
- 'id' => 'opt-code-editor-2',
1797
- 'type' => 'code_editor',
1798
- 'title' => 'Code Editor',
1799
- 'subtitle' => '<strong>JS Editor</strong> Using: theme: dracula and mode: javascript',
1800
- 'settings' => array(
1801
- 'theme' => 'dracula',
1802
- 'mode' => 'javascript',
1803
- ),
1804
- 'default' =>';(function( $, window, document, undefined ) {
1805
- "use strict";
1806
-
1807
- $(document).ready( function() {
1808
-
1809
- // do stuff
1810
-
1811
- });
1812
-
1813
- })( jQuery, window, document );',
1814
- ),
1815
-
1816
- array(
1817
- 'id' => 'opt-code-editor-3',
1818
- 'type' => 'code_editor',
1819
- 'before' => '<p class="csf-text-muted"><strong>CSS Editor</strong> It shows full width if there is no field of title and using: theme: mbo and mode: css</p>',
1820
- 'settings' => array(
1821
- 'theme' => 'mbo',
1822
- 'mode' => 'css',
1823
- ),
1824
- 'default' =>'.wrapper {
1825
- font-family: "Open Sans";
1826
- font-size: 13px;
1827
- width: 250px;
1828
- height: 100px;
1829
- color: #fff;
1830
- background-color: #555;
1831
- }',
1832
- ),
1833
-
1834
- )
1835
- ) );
1836
-
1837
- //
1838
- // Field: wp_editor
1839
- //
1840
- CSF::createSection( $prefix, array(
1841
- 'parent' => 'editor_fields',
1842
- 'title' => 'WP Editor',
1843
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=wp-editor" target="_blank">Field: wp_editor</a>',
1844
- 'fields' => array(
1845
-
1846
- array(
1847
- 'id' => 'opt-wp-editor-1',
1848
- 'type' => 'wp_editor',
1849
- 'title' => 'WP Editor',
1850
- ),
1851
-
1852
- array(
1853
- 'id' => 'opt-wp-editor-2',
1854
- 'type' => 'wp_editor',
1855
- 'title' => 'WP Editor with Custom Height and No Media Buttons',
1856
- 'subtitle' => 'Settings: height => 100px, media_buttons => false',
1857
- 'height' => '100px',
1858
- 'media_buttons' => false,
1859
- ),
1860
-
1861
- array(
1862
- 'id' => 'opt-wp-editor-3',
1863
- 'type' => 'wp_editor',
1864
- 'title' => 'WP Editor without QuickTags and Media Buttons',
1865
- 'subtitle' => 'Settings: height => 100px, media_buttons => false, quicktags => false',
1866
- 'height' => '100px',
1867
- 'media_buttons' => false,
1868
- 'quicktags' => false,
1869
- ),
1870
-
1871
- array(
1872
- 'id' => 'opt-wp-editor-4',
1873
- 'type' => 'wp_editor',
1874
- 'title' => 'WP Editor without Tinymce and Media Buttons',
1875
- 'subtitle' => 'Settings: height => 100px, media_buttons => false, tinymce => false',
1876
- 'height' => '100px',
1877
- 'media_buttons' => false,
1878
- 'tinymce' => false,
1879
- ),
1880
-
1881
- )
1882
- ) );
1883
-
1884
- //
1885
- // Color Fields
1886
- //
1887
- CSF::createSection( $prefix, array(
1888
- 'id' => 'color_fields',
1889
- 'title' => 'Color Fields',
1890
- 'icon' => 'fa fa-tint',
1891
- ) );
1892
-
1893
- //
1894
- // Field: color
1895
- //
1896
- CSF::createSection( $prefix, array(
1897
- 'parent' => 'color_fields',
1898
- 'title' => 'Color',
1899
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=color" target="_blank">Field: color</a>',
1900
- 'fields' => array(
1901
-
1902
- array(
1903
- 'id' => 'opt-color-1',
1904
- 'type' => 'color',
1905
- 'title' => 'Color',
1906
- ),
1907
-
1908
- array(
1909
- 'id' => 'opt-color-2',
1910
- 'type' => 'color',
1911
- 'title' => 'Color with default (hex)',
1912
- 'default' => '#3498db',
1913
- ),
1914
-
1915
- array(
1916
- 'id' => 'opt-color-3',
1917
- 'type' => 'color',
1918
- 'title' => 'Color with default (rgba)',
1919
- 'default' => 'rgba(255,255,0,0.25)',
1920
- ),
1921
-
1922
- array(
1923
- 'id' => 'opt-color-4',
1924
- 'type' => 'color',
1925
- 'title' => 'Color with default (transparent)',
1926
- 'default' => 'transparent',
1927
- ),
1928
-
1929
- )
1930
- ) );
1931
-
1932
- //
1933
- // Field: link_color
1934
- //
1935
- CSF::createSection( $prefix, array(
1936
- 'parent' => 'color_fields',
1937
- 'title' => 'Link Color',
1938
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=link-color" target="_blank">Field: link_color</a>',
1939
- 'fields' => array(
1940
-
1941
- array(
1942
- 'id' => 'opt-link-color-1',
1943
- 'type' => 'link_color',
1944
- 'title' => 'Link Color',
1945
- ),
1946
-
1947
- array(
1948
- 'id' => 'opt-link-color-2',
1949
- 'type' => 'link_color',
1950
- 'title' => 'Link Color with default',
1951
- 'default' => array(
1952
- 'color' => '#1e73be',
1953
- 'hover' => '#259ded',
1954
- ),
1955
- ),
1956
-
1957
- array(
1958
- 'id' => 'opt-link-color-3',
1959
- 'type' => 'link_color',
1960
- 'title' => 'Link Color with more color options',
1961
- 'color' => true,
1962
- 'hover' => true,
1963
- 'visited' => true,
1964
- 'active' => true,
1965
- 'focus' => true,
1966
- ),
1967
-
1968
- )
1969
- ) );
1970
-
1971
- //
1972
- // Field: color_group
1973
- //
1974
- CSF::createSection( $prefix, array(
1975
- 'parent' => 'color_fields',
1976
- 'title' => 'Color Group',
1977
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=color-group" target="_blank">Field: color_group</a>',
1978
- 'fields' => array(
1979
-
1980
- array(
1981
- 'id' => 'opt-color-group-1',
1982
- 'type' => 'color_group',
1983
- 'title' => 'Color Group',
1984
- 'options' => array(
1985
- 'color-1' => 'Color 1',
1986
- 'color-2' => 'Color 2',
1987
- )
1988
- ),
1989
-
1990
- array(
1991
- 'id' => 'opt-color-group-2',
1992
- 'type' => 'color_group',
1993
- 'title' => 'Color Group',
1994
- 'options' => array(
1995
- 'color-1' => 'Color 1',
1996
- 'color-2' => 'Color 2',
1997
- 'color-3' => 'Color 3',
1998
- )
1999
- ),
2000
-
2001
- array(
2002
- 'id' => 'opt-color-group-3',
2003
- 'type' => 'color_group',
2004
- 'title' => 'Color Group with default',
2005
- 'subtitle' => 'Can be add unlimited color options.',
2006
- 'options' => array(
2007
- 'color-1' => 'Color 1',
2008
- 'color-2' => 'Color 2',
2009
- 'color-3' => 'Color 3',
2010
- 'color-4' => 'Color 4',
2011
- 'color-5' => 'Color 5',
2012
- ),
2013
- 'default' => array(
2014
- 'color-1' => '#000100',
2015
- 'color-2' => '#002642',
2016
- 'color-3' => '#ffce4b',
2017
- 'color-4' => '#ff595e',
2018
- 'color-5' => '#0052cc',
2019
- )
2020
- ),
2021
-
2022
- )
2023
- ) );
2024
-
2025
- //
2026
- // Field: palette
2027
- //
2028
- CSF::createSection( $prefix, array(
2029
- 'parent' => 'color_fields',
2030
- 'title' => 'Color Palette',
2031
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=palette" target="_blank">Field: palette</a>',
2032
- 'fields' => array(
2033
-
2034
- array(
2035
- 'id' => 'opt-palette-1',
2036
- 'type' => 'palette',
2037
- 'title' => 'Palette',
2038
- 'subtitle' => 'Three set colors',
2039
- 'options' => array(
2040
- 'set-1' => array( '#f36e27', '#f3d430', '#ed1683' ),
2041
- 'set-2' => array( '#4153ab', '#6e86c7', '#211f27' ),
2042
- 'set-3' => array( '#162526', '#508486', '#C8C6CE' ),
2043
- 'set-4' => array( '#ccab5e', '#fff55f', '#197c5d' ),
2044
- ),
2045
- 'default' => 'set-1',
2046
- ),
2047
-
2048
- array(
2049
- 'id' => 'opt-palette-1',
2050
- 'type' => 'palette',
2051
- 'title' => 'Palette',
2052
- 'subtitle' => 'Four set colors',
2053
- 'options' => array(
2054
- 'set-1' => array( '#f04e36', '#f36e27', '#f3d430', '#ed1683' ),
2055
- 'set-2' => array( '#f9ca06', '#b5b546', '#2f4d48', '#212b2f' ),
2056
- 'set-3' => array( '#4153ab', '#6e86c7', '#211f27', '#d69762' ),
2057
- 'set-4' => array( '#162526', '#508486', '#C8C6CE', '#B45F1A' ),
2058
- 'set-5' => array( '#bbd5ff', '#ccab5e', '#fff55f', '#197c5d' ),
2059
- ),
2060
- 'default' => 'set-3',
2061
- ),
2062
-
2063
- array(
2064
- 'id' => 'opt-palette-2',
2065
- 'type' => 'palette',
2066
- 'title' => 'Palette',
2067
- 'subtitle' => 'Five set colors',
2068
- 'options' => array(
2069
- 'set-1' => array( '#bbd5ff', '#ccab5e', '#fff55f', '#197c5d', '#bce2c4' ),
2070
- 'set-2' => array( '#6d3264', '#edf7f6', '#fde8e9', '#006675', '#e49ab0' ),
2071
- 'set-3' => array( '#000100', '#002642', '#ffce4b', '#ff595e', '#0052cc' ),
2072
- ),
2073
- 'default' => 'set-1',
2074
- ),
2075
-
2076
- )
2077
- ) );
2078
-
2079
- //
2080
- // Design Fields
2081
- //
2082
- CSF::createSection( $prefix, array(
2083
- 'id' => 'design_fields',
2084
- 'title' => 'Design Fields',
2085
- 'icon' => 'fa fa-adjust',
2086
- ) );
2087
-
2088
- //
2089
- // Field: background
2090
- //
2091
- CSF::createSection( $prefix, array(
2092
- 'parent' => 'design_fields',
2093
- 'title' => 'Background',
2094
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=background" target="_blank">Field: background</a>',
2095
- 'fields' => array(
2096
-
2097
- array(
2098
- 'id' => 'opt-background-1',
2099
- 'type' => 'background',
2100
- 'title' => 'Background',
2101
- ),
2102
-
2103
- array(
2104
- 'id' => 'opt-background-2',
2105
- 'type' => 'background',
2106
- 'title' => 'Background with default',
2107
- 'default' => array(
2108
- 'background-color' => '#e80000',
2109
- 'background-position' => 'center center',
2110
- 'background-repeat' => 'repeat-x',
2111
- 'background-attachment' => 'fixed',
2112
- 'background-size' => 'cover',
2113
- )
2114
- ),
2115
-
2116
- array(
2117
- 'id' => 'opt-background-3',
2118
- 'type' => 'background',
2119
- 'title' => 'Background with all features',
2120
- 'background_color' => true,
2121
- 'background_image' => true,
2122
- 'background-position' => true,
2123
- 'background_repeat' => true,
2124
- 'background_attachment' => true,
2125
- 'background_size' => true,
2126
- 'background_origin' => true,
2127
- 'background_clip' => true,
2128
- 'background_blend_mode' => true,
2129
- 'background_gradient' => true,
2130
- 'default' => array(
2131
- 'background-color' => '#009e44',
2132
- 'background-gradient-color' => '#81d742',
2133
- 'background-gradient-direction' => '135deg',
2134
- 'background-position' => 'center center',
2135
- 'background-repeat' => 'repeat-x',
2136
- 'background-attachment' => 'fixed',
2137
- 'background-size' => 'cover',
2138
- 'background-origin' => 'border-box',
2139
- 'background-clip' => 'padding-box',
2140
- 'background-blend-mode' => 'normal',
2141
- )
2142
- ),
2143
-
2144
- )
2145
- ) );
2146
-
2147
- //
2148
- // Field: typography
2149
- //
2150
- CSF::createSection( $prefix, array(
2151
- 'parent' => 'design_fields',
2152
- 'title' => 'Typography',
2153
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=typography" target="_blank">Field: typography</a>',
2154
- 'fields' => array(
2155
-
2156
- array(
2157
- 'id' => 'opt-typography-1',
2158
- 'type' => 'typography',
2159
- 'title' => 'Typography',
2160
- ),
2161
-
2162
- array(
2163
- 'id' => 'opt-typography-2',
2164
- 'type' => 'typography',
2165
- 'title' => 'Typography with default',
2166
- 'default' => array(
2167
- 'font-family' => 'Barlow',
2168
- 'font-weight' => '600',
2169
- 'subset' => 'latin-ext',
2170
- 'type' => 'google',
2171
- 'text-align' => 'center',
2172
- 'text-transform' => 'capitalize',
2173
- 'text-transform' => 'capitalize',
2174
- 'font-size' => '18',
2175
- 'line-height' => '20',
2176
- 'letter-spacing' => '-1',
2177
- 'color' => '#009e44',
2178
- ),
2179
- ),
2180
-
2181
- array(
2182
- 'id' => 'opt-typography-3',
2183
- 'type' => 'typography',
2184
- 'title' => 'Typography with few features',
2185
- 'text_align' => false,
2186
- 'text_transform' => false,
2187
- 'font_size' => false,
2188
- 'line_height' => false,
2189
- 'letter_spacing' => false,
2190
- 'color' => false,
2191
- 'default' => array(
2192
- 'font-family' => 'Lato',
2193
- 'font-weight' => '900',
2194
- 'subset' => 'latin',
2195
- 'type' => 'google',
2196
- ),
2197
- ),
2198
-
2199
-
2200
- array(
2201
- 'id' => 'opt-typography-4',
2202
- 'type' => 'typography',
2203
- 'title' => 'Typography with all features',
2204
- 'font_family' => true,
2205
- 'font_weight' => true,
2206
- 'font_style' => true,
2207
- 'font_size' => true,
2208
- 'line_height' => true,
2209
- 'letter_spacing' => true,
2210
- 'text_align' => true,
2211
- 'text-transform' => true,
2212
- 'color' => true,
2213
- 'subset' => true,
2214
- 'backup_font_family' => true,
2215
- 'font_variant' => true,
2216
- 'word_spacing' => true,
2217
- 'text_decoration' => true,
2218
- 'default' => array(
2219
- 'font-family' => 'Old Standard TT',
2220
- 'type' => 'google',
2221
- ),
2222
- ),
2223
-
2224
- )
2225
- ) );
2226
-
2227
- //
2228
- // Field: dimensions
2229
- //
2230
- CSF::createSection( $prefix, array(
2231
- 'parent' => 'design_fields',
2232
- 'title' => 'Dimensions',
2233
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=dimensions" target="_blank">Field: dimensions</a>',
2234
- 'fields' => array(
2235
-
2236
- array(
2237
- 'id' => 'opt-dimensions-1',
2238
- 'type' => 'dimensions',
2239
- 'title' => 'Dimensions',
2240
- ),
2241
-
2242
- array(
2243
- 'id' => 'opt-dimensions-2',
2244
- 'type' => 'dimensions',
2245
- 'title' => 'Dimensions with default',
2246
- 'default' => array(
2247
- 'width' => '100',
2248
- 'height' => '250',
2249
- 'unit' => 'px',
2250
- ),
2251
- ),
2252
-
2253
- array(
2254
- 'id' => 'opt-dimensions-3',
2255
- 'type' => 'dimensions',
2256
- 'title' => 'Dimensions with custom text and units',
2257
- 'width_icon' => 'width',
2258
- 'height_icon' => 'height',
2259
- 'units' => array( 'px', '%', 'em', 'rem', 'pt' ),
2260
- 'default' => array(
2261
- 'width' => '100',
2262
- 'height' => '50',
2263
- 'unit' => '%',
2264
- ),
2265
- ),
2266
-
2267
- array(
2268
- 'id' => 'opt-dimensions-4',
2269
- 'type' => 'dimensions',
2270
- 'title' => 'Dimensions with single unit',
2271
- 'units' => array( 'px' ),
2272
- ),
2273
-
2274
- array(
2275
- 'id' => 'opt-dimensions-5',
2276
- 'type' => 'dimensions',
2277
- 'title' => 'Dimensions without unit selector',
2278
- 'unit' => false,
2279
- ),
2280
-
2281
- array(
2282
- 'id' => 'opt-dimensions-6',
2283
- 'type' => 'dimensions',
2284
- 'title' => 'Dimensions with only width',
2285
- 'height' => false,
2286
- ),
2287
-
2288
- array(
2289
- 'id' => 'opt-dimensions-7',
2290
- 'type' => 'dimensions',
2291
- 'title' => 'Dimensions with only width and single unit',
2292
- 'height' => false,
2293
- 'units' => array( 'px' ),
2294
- ),
2295
-
2296
- )
2297
- ) );
2298
-
2299
- //
2300
- // Field: spacing
2301
- //
2302
- CSF::createSection( $prefix, array(
2303
- 'parent' => 'design_fields',
2304
- 'title' => 'Spacing',
2305
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=spacing" target="_blank">Field: spacing</a>',
2306
- 'fields' => array(
2307
-
2308
- array(
2309
- 'id' => 'opt-spacing-1',
2310
- 'type' => 'spacing',
2311
- 'title' => 'Spacing',
2312
- ),
2313
-
2314
- array(
2315
- 'id' => 'opt-spacing-2',
2316
- 'type' => 'spacing',
2317
- 'title' => 'Spacing with default',
2318
- 'default' => array(
2319
- 'top' => '50',
2320
- 'right' => '100',
2321
- 'bottom' => '50',
2322
- 'left' => '100',
2323
- 'unit' => 'px',
2324
- ),
2325
- ),
2326
-
2327
- array(
2328
- 'id' => 'opt-spacing-2',
2329
- 'type' => 'spacing',
2330
- 'title' => 'Spacing without unit selector',
2331
- 'units' => array( 'px' ),
2332
- 'default' => array(
2333
- 'top' => '50',
2334
- 'right' => '100',
2335
- 'bottom' => '50',
2336
- 'left' => '100',
2337
- 'unit' => 'px',
2338
- ),
2339
- ),
2340
-
2341
- array(
2342
- 'id' => 'opt-spacing-3',
2343
- 'type' => 'spacing',
2344
- 'title' => 'Spacing with only left and right',
2345
- 'top' => false,
2346
- 'bottom' => false,
2347
- ),
2348
-
2349
- array(
2350
- 'id' => 'opt-spacing-4',
2351
- 'type' => 'spacing',
2352
- 'title' => 'Spacing with only top and bottom',
2353
- 'left' => false,
2354
- 'right' => false,
2355
- ),
2356
-
2357
- array(
2358
- 'id' => 'opt-spacing-5',
2359
- 'type' => 'spacing',
2360
- 'title' => 'Spacing with all directions',
2361
- 'all' => true,
2362
- ),
2363
-
2364
- )
2365
- ) );
2366
-
2367
- //
2368
- // Field: border
2369
- //
2370
- CSF::createSection( $prefix, array(
2371
- 'parent' => 'design_fields',
2372
- 'title' => 'Border',
2373
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=border" target="_blank">Field: border</a>',
2374
- 'fields' => array(
2375
-
2376
- array(
2377
- 'id' => 'opt-border-1',
2378
- 'type' => 'border',
2379
- 'title' => 'Border',
2380
- ),
2381
-
2382
- array(
2383
- 'id' => 'opt-border-2',
2384
- 'type' => 'border',
2385
- 'title' => 'Border with default',
2386
- 'default' => array(
2387
- 'top' => '4',
2388
- 'right' => '8',
2389
- 'bottom' => '4',
2390
- 'left' => '8',
2391
- 'style' => 'dashed',
2392
- 'color' => '#1e73be',
2393
- )
2394
- ),
2395
-
2396
- array(
2397
- 'id' => 'opt-border-3',
2398
- 'type' => 'border',
2399
- 'title' => 'Border with only left and right',
2400
- 'top' => false,
2401
- 'bottom' => false,
2402
- ),
2403
-
2404
- array(
2405
- 'id' => 'opt-border-4',
2406
- 'type' => 'border',
2407
- 'title' => 'Border with only top and bottom',
2408
- 'left' => false,
2409
- 'right' => false,
2410
- ),
2411
-
2412
- array(
2413
- 'id' => 'opt-border-5',
2414
- 'type' => 'border',
2415
- 'title' => 'Border with all directions',
2416
- 'all' => true,
2417
- ),
2418
-
2419
- )
2420
- ) );
2421
-
2422
- //
2423
- // Field: spinner
2424
- //
2425
- CSF::createSection( $prefix, array(
2426
- 'parent' => 'design_fields',
2427
- 'title' => 'Spinner',
2428
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=spinner" target="_blank">Field: spinner</a>',
2429
- 'fields' => array(
2430
-
2431
- array(
2432
- 'id' => 'opt-spinner-1',
2433
- 'type' => 'spinner',
2434
- 'title' => 'Spinner',
2435
- 'subtitle' => 'max:100 | min:0 | step:1',
2436
- 'max' => 100,
2437
- 'min' => 0,
2438
- 'step' => 1,
2439
- 'default' => 25,
2440
- ),
2441
-
2442
- array(
2443
- 'id' => 'opt-spinner-2',
2444
- 'type' => 'spinner',
2445
- 'title' => 'Spinner',
2446
- 'subtitle' => 'max:200 | min:100 | step:10',
2447
- 'max' => 200,
2448
- 'min' => 100,
2449
- 'step' => 10,
2450
- 'default' => 100,
2451
- ),
2452
-
2453
- array(
2454
- 'id' => 'opt-spinner-3',
2455
- 'type' => 'spinner',
2456
- 'title' => 'Spinner',
2457
- 'subtitle' => 'max:1 | min:0 | step:0.1 | unit:px',
2458
- 'max' => 1,
2459
- 'min' => 0,
2460
- 'step' => 0.1,
2461
- 'unit' => 'px',
2462
- 'default' => 0.5,
2463
- ),
2464
-
2465
- )
2466
- ) );
2467
-
2468
- //
2469
- // Field: number
2470
- //
2471
- CSF::createSection( $prefix, array(
2472
- 'parent' => 'design_fields',
2473
- 'title' => 'Number',
2474
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=number" target="_blank">Field: number</a>',
2475
- 'fields' => array(
2476
-
2477
- array(
2478
- 'id' => 'opt-number-1',
2479
- 'type' => 'number',
2480
- 'title' => 'Number',
2481
- ),
2482
- array(
2483
- 'id' => 'opt-number-2',
2484
- 'type' => 'number',
2485
- 'title' => 'Number with unit',
2486
- 'unit' => 'px',
2487
- ),
2488
- array(
2489
- 'id' => 'opt-number-3',
2490
- 'type' => 'number',
2491
- 'title' => 'Number with default',
2492
- 'unit' => 'width',
2493
- 'default' => 100,
2494
- ),
2495
-
2496
- )
2497
- ) );
2498
-
2499
- //
2500
- // Additional Fields
2501
- //
2502
- CSF::createSection( $prefix, array(
2503
- 'id' => 'additional_fields',
2504
- 'title' => 'Additional Fields',
2505
- 'icon' => 'fa fa-asterisk',
2506
- ) );
2507
-
2508
- //
2509
- // Field: slider
2510
- //
2511
- CSF::createSection( $prefix, array(
2512
- 'parent' => 'additional_fields',
2513
- 'title' => 'Slider',
2514
- 'icon' => 'fa fa-sliders',
2515
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=slider" target="_blank">Field: slider</a>',
2516
- 'fields' => array(
2517
-
2518
- array(
2519
- 'id' => 'opt-slider-1',
2520
- 'type' => 'slider',
2521
- 'title' => 'Slider',
2522
- ),
2523
-
2524
- array(
2525
- 'id' => 'opt-slider-2',
2526
- 'type' => 'slider',
2527
- 'title' => 'Slider with default',
2528
- 'default' => 50,
2529
- ),
2530
-
2531
- array(
2532
- 'id' => 'opt-slider-3',
2533
- 'type' => 'slider',
2534
- 'title' => 'Slider with unit text',
2535
- 'unit' => '%',
2536
- 'default' => 75,
2537
- ),
2538
-
2539
- array(
2540
- 'id' => 'opt-slider-4',
2541
- 'type' => 'slider',
2542
- 'title' => 'Slider with min/max allowed value',
2543
- 'subtitle' => 'Min: 1 | Max: 10 | Step: 0.1 | Default: 5.5',
2544
- 'unit' => 'px',
2545
- 'min' => 1,
2546
- 'max' => 10,
2547
- 'step' => 0.1,
2548
- 'default' => 5.5,
2549
- ),
2550
-
2551
- )
2552
- ) );
2553
-
2554
- //
2555
- // Field: sorter
2556
- //
2557
- CSF::createSection( $prefix, array(
2558
- 'parent' => 'additional_fields',
2559
- 'title' => 'Sorter',
2560
- 'icon' => 'fa fa-sort-numeric-asc',
2561
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=sorter" target="_blank">Field: sorter</a>',
2562
- 'fields' => array(
2563
-
2564
- array(
2565
- 'id' => 'opt-sorter-1',
2566
- 'type' => 'sorter',
2567
- 'title' => 'Sorter',
2568
- 'default' => array(
2569
- 'enabled' => array(
2570
- 'opt-1' => 'Option 1',
2571
- 'opt-2' => 'Option 2',
2572
- 'opt-3' => 'Option 3',
2573
- ),
2574
- 'disabled' => array(
2575
- 'opt-4' => 'Option 4',
2576
- 'opt-5' => 'Option 5',
2577
- ),
2578
- ),
2579
- ),
2580
-
2581
- array(
2582
- 'id' => 'opt-sorter-2',
2583
- 'type' => 'sorter',
2584
- 'title' => 'Sorter with custom title',
2585
- 'enabled_title' => 'Activated',
2586
- 'disabled_title' => 'Deactivated',
2587
- 'default' => array(
2588
- 'enabled' => array(
2589
- 'opt-1' => 'Option 1',
2590
- 'opt-2' => 'Option 2',
2591
- 'opt-3' => 'Option 3',
2592
- ),
2593
- 'disabled' => array(
2594
- 'opt-4' => 'Option 4',
2595
- 'opt-5' => 'Option 5',
2596
- ),
2597
- ),
2598
- ),
2599
-
2600
- array(
2601
- 'id' => 'opt-sorter-3',
2602
- 'type' => 'sorter',
2603
- 'title' => 'Sorter with use only enabled section and without title',
2604
- 'enabled_title' => false,
2605
- 'disabled' => false,
2606
- 'default' => array(
2607
- 'enabled' => array(
2608
- 'opt-1' => 'Option 1',
2609
- 'opt-2' => 'Option 2',
2610
- 'opt-3' => 'Option 3',
2611
- ),
2612
- ),
2613
- ),
2614
-
2615
- )
2616
- ) );
2617
-
2618
- //
2619
- // Field: sortable
2620
- //
2621
- CSF::createSection( $prefix, array(
2622
- 'parent' => 'additional_fields',
2623
- 'title' => 'Sortable',
2624
- 'icon' => 'fa fa-arrows',
2625
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=sortable" target="_blank">Field: sortable</a>',
2626
- 'fields' => array(
2627
-
2628
- array(
2629
- 'id' => 'opt-sortable-1',
2630
- 'type' => 'sortable',
2631
- 'title' => 'Sortable',
2632
- 'fields' => array(
2633
- array(
2634
- 'id' => 'opt-text-1',
2635
- 'type' => 'text',
2636
- 'title' => 'Text 1'
2637
- ),
2638
- array(
2639
- 'id' => 'opt-text-2',
2640
- 'type' => 'text',
2641
- 'title' => 'Text 2'
2642
- ),
2643
- array(
2644
- 'id' => 'opt-text-3',
2645
- 'type' => 'text',
2646
- 'title' => 'Text 3'
2647
- ),
2648
- ),
2649
- ),
2650
-
2651
- array(
2652
- 'id' => 'opt-sortable-2',
2653
- 'type' => 'sortable',
2654
- 'title' => 'Sortable with default',
2655
- 'fields' => array(
2656
- array(
2657
- 'id' => 'opt-text-1',
2658
- 'type' => 'text',
2659
- 'title' => 'Text 1'
2660
- ),
2661
- array(
2662
- 'id' => 'opt-text-2',
2663
- 'type' => 'text',
2664
- 'title' => 'Text 2'
2665
- ),
2666
- array(
2667
- 'id' => 'opt-text-3',
2668
- 'type' => 'text',
2669
- 'title' => 'Text 3'
2670
- ),
2671
- ),
2672
- 'default' => array(
2673
- 'opt-text-1' => 'This is text 1 default',
2674
- 'opt-text-2' => 'This is text 2 default',
2675
- 'opt-text-3' => 'This is text 3 default',
2676
- )
2677
- ),
2678
-
2679
- )
2680
- ) );
2681
-
2682
- //
2683
- // Field: switcher
2684
- //
2685
- CSF::createSection( $prefix, array(
2686
- 'parent' => 'additional_fields',
2687
- 'title' => 'Switcher',
2688
- 'icon' => 'fa fa-toggle-on',
2689
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=switcher" target="_blank">Field: switcher</a>',
2690
- 'fields' => array(
2691
-
2692
- array(
2693
- 'id' => 'opt-switcher-1',
2694
- 'type' => 'switcher',
2695
- 'title' => 'Switcher',
2696
- ),
2697
-
2698
- array(
2699
- 'id' => 'opt-switcher-2',
2700
- 'type' => 'switcher',
2701
- 'title' => 'Switcher with default',
2702
- 'default' => true,
2703
- ),
2704
-
2705
- array(
2706
- 'id' => 'opt-switcher-3',
2707
- 'type' => 'switcher',
2708
- 'title' => 'Switcher with label',
2709
- 'label' => 'The label text of the switcher.',
2710
- ),
2711
-
2712
- array(
2713
- 'id' => 'opt-switcher-4',
2714
- 'type' => 'switcher',
2715
- 'title' => 'Switcher with Yes/No',
2716
- 'text_on' => 'Yes',
2717
- 'text_off' => 'No',
2718
- ),
2719
-
2720
- array(
2721
- 'id' => 'opt-switcher-4',
2722
- 'type' => 'switcher',
2723
- 'title' => 'Switcher with custom text Enabled/Disabled',
2724
- 'text_on' => 'Enabled',
2725
- 'text_off' => 'Disabled',
2726
- 'text_width' => '100',
2727
- ),
2728
-
2729
- )
2730
- ) );
2731
-
2732
- //
2733
- // Field: icons
2734
- //
2735
- CSF::createSection( $prefix, array(
2736
- 'parent' => 'additional_fields',
2737
- 'title' => 'Icons',
2738
- 'icon' => 'fa fa-star',
2739
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=icon" target="_blank">Field: icon</a>',
2740
- 'fields' => array(
2741
-
2742
- array(
2743
- 'id' => 'opt-icon-1',
2744
- 'type' => 'icon',
2745
- 'title' => 'Icon',
2746
- ),
2747
-
2748
- array(
2749
- 'id' => 'opt-icon-2',
2750
- 'type' => 'icon',
2751
- 'title' => 'Icon with default',
2752
- 'default' => 'fa fa-check',
2753
- ),
2754
-
2755
- )
2756
- ) );
2757
-
2758
- //
2759
- // Field: map
2760
- //
2761
- CSF::createSection( $prefix, array(
2762
- 'parent' => 'additional_fields',
2763
- 'title' => 'Map',
2764
- 'icon' => 'fa fa-map-marker',
2765
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=map" target="_blank">Field: map</a>',
2766
- 'fields' => array(
2767
-
2768
- array(
2769
- 'id' => 'opt-map-1',
2770
- 'type' => 'map',
2771
- 'title' => 'Map',
2772
- ),
2773
-
2774
- array(
2775
- 'id' => 'opt-map-2',
2776
- 'type' => 'map',
2777
- 'title' => 'Map with Default',
2778
- 'default' => array(
2779
- 'address' => 'New York, United States of America',
2780
- 'latitude' => '40.7127281',
2781
- 'longitude' => '-74.0060152',
2782
- 'zoom' => '12',
2783
- )
2784
- ),
2785
-
2786
- array(
2787
- 'type' => 'submessage',
2788
- 'style' => 'info',
2789
- 'content' => 'Using custom <strong>address_field</strong> field in below example.',
2790
- ),
2791
-
2792
- array(
2793
- 'id' => 'my-address-text',
2794
- 'type' => 'text',
2795
- 'title' => 'Address',
2796
- ),
2797
-
2798
- array(
2799
- 'id' => 'opt-map-3',
2800
- 'type' => 'map',
2801
- 'title' => 'Map',
2802
- 'desc' => 'Using custom <strong>address_field</strong> field',
2803
- 'address_field' => 'my-address-text',
2804
- ),
2805
-
2806
- )
2807
- ) );
2808
-
2809
- //
2810
- // Field: date
2811
- //
2812
- CSF::createSection( $prefix, array(
2813
- 'parent' => 'additional_fields',
2814
- 'title' => 'Date',
2815
- 'icon' => 'fa fa-calendar',
2816
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=date" target="_blank">Field: date</a>',
2817
- 'fields' => array(
2818
-
2819
- array(
2820
- 'id' => 'opt-date-1',
2821
- 'type' => 'date',
2822
- 'title' => 'Date',
2823
- ),
2824
-
2825
- array(
2826
- 'id' => 'opt-date-2',
2827
- 'type' => 'date',
2828
- 'title' => 'Date with custom settings',
2829
- 'settings' => array(
2830
- 'dateFormat' => 'mm/dd/yy',
2831
- 'changeMonth' => true,
2832
- 'changeYear' => true,
2833
- 'showWeek' => true,
2834
- 'showButtonPanel' => true,
2835
- 'weekHeader' => 'Week',
2836
- 'monthNamesShort' => array( 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ),
2837
- 'dayNamesMin' => array( 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ),
2838
- )
2839
- ),
2840
-
2841
- array(
2842
- 'id' => 'opt-date-3',
2843
- 'type' => 'date',
2844
- 'title' => 'Date with From &amp; To',
2845
- 'from_to' => true,
2846
- ),
2847
-
2848
- array(
2849
- 'id' => 'opt-date-4',
2850
- 'type' => 'date',
2851
- 'title' => 'Date with custom texts Begin &amp; End',
2852
- 'from_to' => true,
2853
- 'text_from' => 'Begin',
2854
- 'text_to' => 'End',
2855
- ),
2856
-
2857
- )
2858
- ) );
2859
-
2860
- //
2861
- // Field: image_select
2862
- //
2863
- CSF::createSection( $prefix, array(
2864
- 'parent' => 'additional_fields',
2865
- 'title' => 'Image Select',
2866
- 'icon' => 'fa fa-th',
2867
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=image-select" target="_blank">Field: image_select</a>',
2868
- 'fields' => array(
2869
-
2870
- array(
2871
- 'id' => 'opt-image-select-1',
2872
- 'type' => 'image_select',
2873
- 'title' => 'Image Select',
2874
- 'options' => array(
2875
- 'opt-1' => 'http://codestarframework.com/assets/images/placeholder/150x125-2ecc71.gif',
2876
- 'opt-2' => 'http://codestarframework.com/assets/images/placeholder/150x125-e74c3c.gif',
2877
- 'opt-3' => 'http://codestarframework.com/assets/images/placeholder/150x125-ffbc00.gif',
2878
- 'opt-4' => 'http://codestarframework.com/assets/images/placeholder/150x125-3498db.gif',
2879
- ),
2880
- ),
2881
-
2882
- array(
2883
- 'id' => 'opt-image-select-2',
2884
- 'type' => 'image_select',
2885
- 'title' => 'Image Select with default',
2886
- 'options' => array(
2887
- 'opt-1' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2888
- 'opt-2' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2889
- 'opt-3' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2890
- 'opt-4' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2891
- 'opt-5' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2892
- 'opt-6' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2893
- 'opt-7' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2894
- ),
2895
- 'default' => 'opt-4'
2896
- ),
2897
-
2898
- array(
2899
- 'id' => 'opt-image-select-3',
2900
- 'type' => 'image_select',
2901
- 'title' => 'Image Select with multiple choice',
2902
- 'multiple' => true,
2903
- 'options' => array(
2904
- 'opt-1' => 'http://codestarframework.com/assets/images/placeholder/80x80-e74c3c.gif',
2905
- 'opt-2' => 'http://codestarframework.com/assets/images/placeholder/80x80-ffbc00.gif',
2906
- 'opt-3' => 'http://codestarframework.com/assets/images/placeholder/80x80-3498db.gif',
2907
- 'opt-4' => 'http://codestarframework.com/assets/images/placeholder/80x80-2ecc71.gif',
2908
- ),
2909
- ),
2910
-
2911
- array(
2912
- 'id' => 'opt-image-select-4',
2913
- 'type' => 'image_select',
2914
- 'title' => 'Image Select with multiple choice and default',
2915
- 'multiple' => true,
2916
- 'options' => array(
2917
- 'opt-1' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2918
- 'opt-2' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2919
- 'opt-3' => 'http://codestarframework.com/assets/images/placeholder/80x80-e74c3c.gif',
2920
- 'opt-4' => 'http://codestarframework.com/assets/images/placeholder/80x80-ffbc00.gif',
2921
- 'opt-5' => 'http://codestarframework.com/assets/images/placeholder/80x80-3498db.gif',
2922
- 'opt-6' => 'http://codestarframework.com/assets/images/placeholder/80x80-2ecc71.gif',
2923
- 'opt-7' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2924
- 'opt-8' => 'http://codestarframework.com/assets/images/placeholder/80x80-2c3e50.gif',
2925
- ),
2926
- 'default' => array( 'opt-3', 'opt-4', 'opt-5', 'opt-6' )
2927
- ),
2928
-
2929
- )
2930
- ) );
2931
-
2932
- //
2933
- // Field: button_set
2934
- //
2935
- CSF::createSection( $prefix, array(
2936
- 'parent' => 'additional_fields',
2937
- 'title' => 'Button Set',
2938
- 'icon' => 'fa fa-ellipsis-h',
2939
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=button-set" target="_blank">Field: button_set</a>',
2940
- 'fields' => array(
2941
-
2942
- array(
2943
- 'id' => 'opt-button-set-1',
2944
- 'type' => 'button_set',
2945
- 'title' => 'Button Set',
2946
- 'options' => array(
2947
- 'enabled' => 'Enabled',
2948
- 'disabled' => 'Disabled',
2949
- ),
2950
- ),
2951
-
2952
- array(
2953
- 'id' => 'opt-button-set-2',
2954
- 'type' => 'button_set',
2955
- 'title' => 'Button Set with default',
2956
- 'options' => array(
2957
- 'enabled' => 'Enabled',
2958
- '' => 'Default',
2959
- 'disabled' => 'Disabled',
2960
- ),
2961
- ),
2962
-
2963
- array(
2964
- 'id' => 'opt-button-set-3',
2965
- 'type' => 'button_set',
2966
- 'title' => 'Button Set',
2967
- 'options' => array(
2968
- 'activate' => 'Activate',
2969
- 'deactivate' => 'Deactivate',
2970
- ),
2971
- 'default' => 'activate',
2972
- ),
2973
-
2974
- array(
2975
- 'id' => 'opt-button-set-4',
2976
- 'type' => 'button_set',
2977
- 'title' => 'Button Set',
2978
- 'options' => array(
2979
- 'on' => 'ON',
2980
- 'off' => 'OFF',
2981
- ),
2982
- 'default' => 'on',
2983
- ),
2984
-
2985
- array(
2986
- 'id' => 'opt-button-set-5',
2987
- 'type' => 'button_set',
2988
- 'title' => 'Button Set with multiple choice',
2989
- 'multiple' => true,
2990
- 'options' => array(
2991
- 'opt-1' => 'Option 1',
2992
- 'opt-2' => 'Option 2',
2993
- 'opt-3' => 'Option 3',
2994
- 'opt-4' => 'Option 4',
2995
- 'opt-5' => 'Option 5',
2996
- ),
2997
- ),
2998
-
2999
- array(
3000
- 'id' => 'opt-button-set-6',
3001
- 'type' => 'button_set',
3002
- 'title' => 'Button Set with multiple choice and default',
3003
- 'multiple' => true,
3004
- 'options' => array(
3005
- 'opt-1' => 'Option 1',
3006
- 'opt-2' => 'Option 2',
3007
- 'opt-3' => 'Option 3',
3008
- 'opt-4' => 'Option 4',
3009
- 'opt-5' => 'Option 5',
3010
- ),
3011
- 'default' => array( 'opt-2', 'opt-4' )
3012
- ),
3013
-
3014
- )
3015
- ) );
3016
-
3017
- //
3018
- // Dependencies
3019
- //
3020
- CSF::createSection( $prefix, array(
3021
- 'title' => 'Dependencies',
3022
- 'icon' => 'fa fa-code-fork',
3023
- 'description' => 'Visit documentation for more details: <a href="http://codestarframework.com/documentation/#/faq?id=how-to-use-dependency" target="_blank">How to use dependencies</a>',
3024
- 'fields' => array(
3025
-
3026
- array(
3027
- 'type' => 'subheading',
3028
- 'content' => 'Basic Dependencies',
3029
- ),
3030
-
3031
- //
3032
- // Dependency example 1
3033
- array(
3034
- 'id' => 'opt-depend-switcher',
3035
- 'type' => 'switcher',
3036
- 'title' => 'If switched to (ON)',
3037
- ),
3038
-
3039
- array(
3040
- 'type' => 'notice',
3041
- 'style' => 'success',
3042
- 'content' => 'Success: Switched to (ON).',
3043
- 'dependency' => array( 'opt-depend-switcher', '==', 'true' ),
3044
- ),
3045
-
3046
- //
3047
- // Dependency example 2
3048
- array(
3049
- 'id' => 'opt-depend-text',
3050
- 'type' => 'text',
3051
- 'title' => 'If typed something to field',
3052
- ),
3053
-
3054
- array(
3055
- 'type' => 'notice',
3056
- 'style' => 'success',
3057
- 'content' => 'Success: You typed something.',
3058
- 'dependency' => array( 'opt-depend-text', '!=', '' ),
3059
- ),
3060
-
3061
- //
3062
- // Dependency example 3
3063
- array(
3064
- 'id' => 'opt-depend-select',
3065
- 'type' => 'select',
3066
- 'title' => 'If selected to (Blue) or (Black)',
3067
- 'placeholder' => 'Select a color',
3068
- 'options' => array(
3069
- 'blue' => 'Blue',
3070
- 'yellow' => 'Yellow',
3071
- 'green' => 'Green',
3072
- 'black' => 'Black',
3073
- 'white' => 'White',
3074
- ),
3075
- ),
3076
-
3077
- array(
3078
- 'type' => 'notice',
3079
- 'style' => 'success',
3080
- 'content' => 'Success: Selected to (Blue) or (Black).',
3081
- 'dependency' => array( 'opt-depend-select', 'any', 'blue,black' ),
3082
- ),
3083
-
3084
- //
3085
- // Dependency example 4
3086
- array(
3087
- 'id' => 'opt-depend-radio',
3088
- 'type' => 'radio',
3089
- 'title' => 'If selected to (Yes, Please)',
3090
- 'inline' => true,
3091
- 'options' => array(
3092
- 'no' => 'No, Thanks',
3093
- 'yes' => 'Yes, Please',
3094
- 'any' => 'I am not sure!',
3095
- ),
3096
- 'default' => 'no'
3097
- ),
3098
-
3099
- array(
3100
- 'type' => 'notice',
3101
- 'style' => 'success',
3102
- 'content' => 'Success: Selected to (Yes, Please).',
3103
- 'dependency' => array( 'opt-depend-radio', '==', 'yes' ),
3104
- ),
3105
-
3106
- //
3107
- // Dependency example 5
3108
- array(
3109
- 'id' => 'opt-depend-checkbox',
3110
- 'type' => 'checkbox',
3111
- 'title' => 'If selected to (Green) or (Black)',
3112
- 'inline' => true,
3113
- 'options' => array(
3114
- 'blue' => 'Blue',
3115
- 'yellow' => 'Yellow',
3116
- 'green' => 'Green',
3117
- 'black' => 'Black',
3118
- 'white' => 'White',
3119
- ),
3120
- ),
3121
-
3122
- array(
3123
- 'type' => 'notice',
3124
- 'style' => 'success',
3125
- 'content' => 'Success: Selected to (Green).',
3126
- 'dependency' => array( 'opt-depend-checkbox', 'any', 'green,black' ),
3127
- ),
3128
-
3129
- //
3130
- // Dependency example 6
3131
- array(
3132
- 'id' => 'opt-depend-image-select',
3133
- 'type' => 'image_select',
3134
- 'title' => 'If selected to (Blue) box',
3135
- 'options' => array(
3136
- 'green' => 'http://codestarframework.com/assets/images/placeholder/100x80-2ecc71.gif',
3137
- 'red' => 'http://codestarframework.com/assets/images/placeholder/100x80-e74c3c.gif',
3138
- 'yellow' => 'http://codestarframework.com/assets/images/placeholder/100x80-ffbc00.gif',
3139
- 'blue' => 'http://codestarframework.com/assets/images/placeholder/100x80-3498db.gif',
3140
- 'gray' => 'http://codestarframework.com/assets/images/placeholder/100x80-555555.gif',
3141
- ),
3142
- 'default' => 'green',
3143
- ),
3144
-
3145
- array(
3146
- 'type' => 'notice',
3147
- 'style' => 'success',
3148
- 'content' => 'Success: Selected to (Blue) box.',
3149
- 'dependency' => array( 'opt-depend-image-select', '==', 'blue' ),
3150
- ),
3151
-
3152
- //
3153
- // Dependency example 6
3154
- array(
3155
- 'id' => 'opt-depend-image-select-any',
3156
- 'type' => 'image_select',
3157
- 'title' => 'If selected to (Red) or (Blue) box',
3158
- 'options' => array(
3159
- 'green' => 'http://codestarframework.com/assets/images/placeholder/100x80-2ecc71.gif',
3160
- 'red' => 'http://codestarframework.com/assets/images/placeholder/100x80-e74c3c.gif',
3161
- 'yellow' => 'http://codestarframework.com/assets/images/placeholder/100x80-ffbc00.gif',
3162
- 'blue' => 'http://codestarframework.com/assets/images/placeholder/100x80-3498db.gif',
3163
- 'gray' => 'http://codestarframework.com/assets/images/placeholder/100x80-555555.gif',
3164
- ),
3165
- 'default' => 'green',
3166
- ),
3167
-
3168
- array(
3169
- 'type' => 'notice',
3170
- 'style' => 'success',
3171
- 'content' => 'Success: Selected to (Red) or (Blue) box.',
3172
- 'dependency' => array( 'opt-depend-image-select-any', 'any', 'red,blue' ),
3173
- ),
3174
-
3175
- //
3176
- // Dependency example 7
3177
- array(
3178
- 'type' => 'subheading',
3179
- 'content' => 'Nested Dependencies',
3180
- ),
3181
-
3182
- array(
3183
- 'id' => 'opt-depend-switcher-1',
3184
- 'type' => 'switcher',
3185
- 'title' => 'If switched to (ON) --->',
3186
- ),
3187
-
3188
- array(
3189
- 'id' => 'opt-depend-select-1',
3190
- 'type' => 'select',
3191
- 'title' => '---> and selected to (Blue)',
3192
- 'placeholder' => 'Select a color',
3193
- 'options' => array(
3194
- 'blue' => 'Blue',
3195
- 'yellow' => 'Yellow',
3196
- 'green' => 'Green',
3197
- 'black' => 'Black',
3198
- 'white' => 'White',
3199
- ),
3200
- ),
3201
-
3202
- array(
3203
- 'type' => 'notice',
3204
- 'style' => 'success',
3205
- 'content' => 'Success: Switched to (ON) and selected to (Blue).',
3206
- 'dependency' => array( 'opt-depend-switcher-1|opt-depend-select-1', '==|==', 'true|blue' ),
3207
- ),
3208
-
3209
- //
3210
- // Dependency example 8
3211
- array(
3212
- 'type' => 'subheading',
3213
- 'content' => 'Another Nested Dependencies',
3214
- ),
3215
-
3216
- array(
3217
- 'id' => 'opt-nested-select-1',
3218
- 'type' => 'select',
3219
- 'title' => 'If selected to (Black) or (White) --->',
3220
- 'placeholder' => 'Select a color',
3221
- 'options' => array(
3222
- 'blue' => 'Blue',
3223
- 'yellow' => 'Yellow',
3224
- 'green' => 'Green',
3225
- 'black' => 'Black',
3226
- 'white' => 'White',
3227
- ),
3228
- ),
3229
-
3230
- array(
3231
- 'id' => 'opt-nested-select-2',
3232
- 'type' => 'select',
3233
- 'title' => '---> and selected to (Large) --->',
3234
- 'placeholder' => 'Select a size',
3235
- 'options' => array(
3236
- 'small' => 'Small',
3237
- 'middle' => 'Middle',
3238
- 'large' => 'Large',
3239
- 'xlage' => 'XLarge',
3240
- 'xxlage' => 'XXLarge',
3241
- ),
3242
- 'dependency' => array( 'opt-nested-select-1', 'any', 'black,white' ),
3243
- ),
3244
-
3245
- array(
3246
- 'id' => 'opt-nested-select-3',
3247
- 'type' => 'select',
3248
- 'title' => '---> and selected to (Hello)',
3249
- 'placeholder' => 'Select a word',
3250
- 'options' => array(
3251
- 'hello' => 'Hello',
3252
- 'world' => 'World',
3253
- ),
3254
- 'dependency' => array( 'opt-nested-select-1|opt-nested-select-2', 'any|==', 'black,white|large' ),
3255
- ),
3256
-
3257
- array(
3258
- 'type' => 'notice',
3259
- 'style' => 'success',
3260
- 'content' => 'Congratulations, You are here now!',
3261
- 'dependency' => array( 'opt-nested-select-1|opt-nested-select-2|opt-nested-select-3', 'any|==|==', 'black,white|large|hello' ),
3262
- ),
3263
-
3264
- )
3265
- ) );
3266
-
3267
- //
3268
- // Validate
3269
- //
3270
- CSF::createSection( $prefix, array(
3271
- 'title' => 'Validate',
3272
- 'icon' => 'fa fa-check-circle',
3273
- 'description' => 'Visit documentation for more details: <a href="http://codestarframework.com/documentation/#/faq?id=how-to-use-validate" target="_blank">How to use validate</a>',
3274
- 'fields' => array(
3275
-
3276
- array(
3277
- 'id' => 'opt-validate-1',
3278
- 'type' => 'text',
3279
- 'title' => 'Email validate',
3280
- 'subtitle' => 'This text field only allows validated email address.',
3281
- 'default' => 'info@domain.com',
3282
- 'validate' => 'csf_validate_email',
3283
- ),
3284
-
3285
- array(
3286
- 'id' => 'opt-validate-2',
3287
- 'type' => 'text',
3288
- 'title' => 'Numeric validate',
3289
- 'subtitle' => 'This text field only allows numbers',
3290
- 'default' => '123456',
3291
- 'validate' => 'csf_validate_numeric',
3292
- ),
3293
-
3294
- array(
3295
- 'id' => 'opt-validate-3',
3296
- 'type' => 'text',
3297
- 'title' => 'Required validate',
3298
- 'subtitle' => 'This text field is required, cannot be pass empty.',
3299
- 'after' => ' <small class="csf-text-warning">( * required )</small>',
3300
- 'default' => 'Lorem ipsum value',
3301
- 'validate' => 'csf_validate_required',
3302
- ),
3303
-
3304
- array(
3305
- 'id' => 'opt-validate-4',
3306
- 'type' => 'text',
3307
- 'title' => 'URL validate',
3308
- 'subtitle' => 'This text field only allows validated url address.',
3309
- 'default' => 'http://codestarframework.com',
3310
- 'validate' => 'csf_validate_url',
3311
- ),
3312
-
3313
- )
3314
- ) );
3315
-
3316
- //
3317
- // Sanitize
3318
- //
3319
- CSF::createSection( $prefix, array(
3320
- 'title' => 'Sanitize',
3321
- 'icon' => 'fa fa-repeat',
3322
- 'description' => 'Visit documentation for more details: <a href="http://codestarframework.com/documentation/#/faq?id=how-to-use-sanitize" target="_blank">How to use sanitize</a>',
3323
- 'fields' => array(
3324
-
3325
- array(
3326
- 'id' => 'opt-sanitize-1',
3327
- 'type' => 'text',
3328
- 'title' => 'Sanitize (a) to (b)',
3329
- 'subtitle' => 'Replacing letter (a) to letter (b). for eg. apple to bpple',
3330
- 'sanitize' => 'csf_sanitize_replace_a_to_b'
3331
- ),
3332
-
3333
- array(
3334
- 'id' => 'opt-sanitize-2',
3335
- 'type' => 'text',
3336
- 'title' => 'Sanitize Title',
3337
- 'subtitle' => 'Converting (space) to (-) and (uppercase) letters to (lowercase) letters. for eg. Hello World to hello-world',
3338
- 'sanitize' => 'csf_sanitize_title'
3339
- ),
3340
-
3341
- )
3342
- ) );
3343
-
3344
- //
3345
- // Field: backup
3346
- //
3347
- CSF::createSection( $prefix, array(
3348
- 'title' => 'Backup',
3349
- 'icon' => 'fa fa-shield',
3350
- 'description' => 'Visit documentation for more details on this field: <a href="http://codestarframework.com/documentation/#/fields?id=backup" target="_blank">Field: backup</a>',
3351
- 'fields' => array(
3352
-
3353
- array(
3354
- 'type' => 'backup',
3355
- ),
3356
-
3357
- )
3358
- ) );
3359
-
3360
- //
3361
- // Others
3362
- //
3363
- CSF::createSection( $prefix, array(
3364
- 'title' => 'Others',
3365
- 'icon' => 'fa fa-bolt',
3366
- 'description' => 'Visit documentation for more details: <a href="http://codestarframework.com/documentation/#/fields?id=others" target="_blank">Others</a>',
3367
- 'fields' => array(
3368
-
3369
- array(
3370
- 'type' => 'heading',
3371
- 'content' => 'This is a heading field',
3372
- ),
3373
-
3374
- array(
3375
- 'type' => 'subheading',
3376
- 'content' => 'This is a subheading field',
3377
- ),
3378
-
3379
- array(
3380
- 'type' => 'content',
3381
- 'content' => 'This is a content field',
3382
- ),
3383
-
3384
- array(
3385
- 'type' => 'submessage',
3386
- 'style' => 'success',
3387
- 'content' => 'This is a <strong>submessage</strong> field. And using style <strong>success</strong>',
3388
- ),
3389
-
3390
- array(
3391
- 'type' => 'content',
3392
- 'content' => 'This is a content field',
3393
- ),
3394
- array(
3395
- 'type' => 'submessage',
3396
- 'style' => 'info',
3397
- 'content' => 'This is a <strong>submessage</strong> field. And using style <strong>info</strong>',
3398
- ),
3399
-
3400
- array(
3401
- 'type' => 'submessage',
3402
- 'style' => 'warning',
3403
- 'content' => 'This is a <strong>submessage</strong> field. And using style <strong>warning</strong>',
3404
- ),
3405
-
3406
- array(
3407
- 'type' => 'submessage',
3408
- 'style' => 'danger',
3409
- 'content' => 'This is a <strong>submessage</strong> field. And using style <strong>danger</strong>',
3410
- ),
3411
-
3412
- array(
3413
- 'type' => 'notice',
3414
- 'style' => 'success',
3415
- 'content' => 'This is a <strong>notice</strong> field. And using style <strong>success</strong>',
3416
- ),
3417
-
3418
- array(
3419
- 'type' => 'notice',
3420
- 'style' => 'info',
3421
- 'content' => 'This is a <strong>notice</strong> field. And using style <strong>info</strong>',
3422
- ),
3423
-
3424
- array(
3425
- 'type' => 'notice',
3426
- 'style' => 'warning',
3427
- 'content' => 'This is a <strong>notice</strong> field. And using style <strong>warning</strong>',
3428
- ),
3429
-
3430
- array(
3431
- 'type' => 'notice',
3432
- 'style' => 'danger',
3433
- 'content' => 'This is a <strong>notice</strong> field. And using style <strong>danger</strong>',
3434
- ),
3435
-
3436
- array(
3437
- 'type' => 'content',
3438
- 'content' => 'This is a <strong>content</strong> field. You can write some contents here.',
3439
- ),
3440
-
3441
- )
3442
- ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/settings/samples/profile-options.samples.php DELETED
@@ -1,89 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
2
-
3
- //
4
- // Set a unique slug-like ID
5
- //
6
- $prefix = '_prefix_profile_options';
7
-
8
- //
9
- // Create profile options
10
- //
11
- CSF::createProfileOptions( $prefix, array(
12
- 'data_type' => 'serialize'
13
- ) );
14
-
15
- //
16
- // Create a section
17
- //
18
- CSF::createSection( $prefix, array(
19
- 'title' => 'Custom Profile Options',
20
- 'fields' => array(
21
-
22
- //
23
- // A text field
24
- //
25
- array(
26
- 'id' => 'opt-text',
27
- 'type' => 'text',
28
- 'title' => 'Text',
29
- ),
30
-
31
- array(
32
- 'id' => 'opt-textarea',
33
- 'type' => 'textarea',
34
- 'title' => 'Textarea',
35
- 'help' => 'The help text of the field.',
36
- ),
37
-
38
- array(
39
- 'id' => 'opt-upload',
40
- 'type' => 'upload',
41
- 'title' => 'Upload',
42
- ),
43
-
44
- array(
45
- 'id' => 'opt-switcher',
46
- 'type' => 'switcher',
47
- 'title' => 'Switcher',
48
- 'label' => 'The label text of the switcher.',
49
- ),
50
-
51
- array(
52
- 'id' => 'opt-color',
53
- 'type' => 'color',
54
- 'title' => 'Color',
55
- 'default' => '#3498db',
56
- ),
57
-
58
- array(
59
- 'id' => 'opt-checkbox',
60
- 'type' => 'checkbox',
61
- 'title' => 'Checkbox',
62
- 'label' => 'The label text of the checkbox.',
63
- ),
64
-
65
- array(
66
- 'id' => 'opt-radio',
67
- 'type' => 'radio',
68
- 'title' => 'Radio',
69
- 'options' => array(
70
- 'yes' => 'Yes, Please.',
71
- 'no' => 'No, Thank you.',
72
- ),
73
- 'default' => 'yes',
74
- ),
75
-
76
- array(
77
- 'id' => 'opt-select',
78
- 'type' => 'select',
79
- 'title' => 'Select',
80
- 'placeholder' => 'Select an option',
81
- 'options' => array(
82
- 'opt-1' => 'Option 1',
83
- 'opt-2' => 'Option 2',
84
- 'opt-3' => 'Option 3',
85
- ),
86
- ),
87
-
88
- )
89
- ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/settings/samples/shortcoder.samples.php DELETED
@@ -1,279 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
2
-
3
- //
4
- // Set a unique slug-like ID
5
- //
6
- $prefix = 'csf_demo_shortcodes';
7
-
8
- //
9
- // Create a shortcoder
10
- //
11
- CSF::createShortcoder( $prefix, array(
12
- 'button_title' => 'Add Shortcode',
13
- 'select_title' => 'Select a shortcode',
14
- 'insert_title' => 'Insert Shortcode',
15
- 'show_in_editor' => true,
16
- 'gutenberg' => array(
17
- 'title' => 'CSF Shortcodes',
18
- 'description' => 'CSF Shortcode Block',
19
- 'icon' => 'screenoptions',
20
- 'category' => 'widgets',
21
- 'keywords' => array( 'shortcode', 'csf', 'insert' ),
22
- 'placeholder' => 'Write shortcode here...',
23
- )
24
- ) );
25
-
26
- //
27
- // A shortcode [foo title=""]
28
- //
29
- CSF::createSection( $prefix, array(
30
- 'title' => '[foo] view: normal',
31
- 'view' => 'normal',
32
- 'shortcode' => 'foo',
33
- 'fields' => array(
34
-
35
- array(
36
- 'id' => 'opt_title',
37
- 'type' => 'text',
38
- 'title' => 'Title',
39
- ),
40
-
41
- array(
42
- 'id' => 'opt_switcher',
43
- 'type' => 'switcher',
44
- 'title' => 'Switcher',
45
- 'label' => 'The label text of the switcher.',
46
- ),
47
-
48
- )
49
- ) );
50
-
51
- //
52
- // A shortcode [foo title=""]content[/foo]
53
- //
54
- CSF::createSection( $prefix, array(
55
- 'title' => '[foo] view: normal alternative',
56
- 'view' => 'normal',
57
- 'shortcode' => 'foo',
58
- 'fields' => array(
59
-
60
- array(
61
- 'id' => 'opt_title',
62
- 'type' => 'text',
63
- 'title' => 'Title',
64
- ),
65
-
66
- array(
67
- 'id' => 'opt_checkbox',
68
- 'type' => 'checkbox',
69
- 'title' => 'Options',
70
- 'options' => array(
71
- 'opt-1' => 'Option 1',
72
- 'opt-2' => 'Option 2',
73
- 'opt-3' => 'Option 3',
74
- )
75
- ),
76
-
77
- array(
78
- 'id' => 'opt_select',
79
- 'type' => 'select',
80
- 'title' => 'Select',
81
- 'options' => array(
82
- 'opt-1' => 'Option 1',
83
- 'opt-2' => 'Option 2',
84
- 'opt-3' => 'Option 3',
85
- ),
86
- ),
87
-
88
- array(
89
- 'id' => 'content',
90
- 'type' => 'textarea',
91
- 'title' => 'Content',
92
- ),
93
-
94
- )
95
- ) );
96
-
97
- //
98
- // A shortcode [content]content[/content][content]content[/content]
99
- //
100
- CSF::createSection( $prefix, array(
101
- 'title' => '[foo] view: contents',
102
- 'view' => 'contents',
103
- 'shortcode' => 'content',
104
- 'fields' => array(
105
-
106
- array(
107
- 'id' => 'opt_content_1',
108
- 'type' => 'textarea',
109
- 'title' => 'Content 1',
110
- ),
111
-
112
- array(
113
- 'id' => 'opt_content_2',
114
- 'type' => 'textarea',
115
- 'title' => 'Content 2',
116
- ),
117
-
118
- )
119
- ) );
120
-
121
- //
122
- // A shortcode [opt_content_1]content[/opt_content_1][opt_content_2]content[/opt_content_2]
123
- //
124
- CSF::createSection( $prefix, array(
125
- 'title' => '[foo] view: contents alternative',
126
- 'view' => 'contents',
127
- 'fields' => array(
128
-
129
- array(
130
- 'id' => 'opt_content_1',
131
- 'type' => 'textarea',
132
- 'title' => 'Content 1',
133
- ),
134
-
135
- array(
136
- 'id' => 'opt_content_2',
137
- 'type' => 'textarea',
138
- 'title' => 'Content 2',
139
- ),
140
-
141
- )
142
- ) );
143
-
144
- CSF::createSection( $prefix, array(
145
- 'title' => '[foo] view: group',
146
- 'view' => 'group',
147
- 'shortcode' => 'foo',
148
- 'group_shortcode' => 'nested_foo',
149
- 'group_fields' => array(
150
-
151
- array(
152
- 'id' => 'opt_title',
153
- 'type' => 'text',
154
- 'title' => 'Title',
155
- ),
156
-
157
- array(
158
- 'id' => 'content',
159
- 'type' => 'textarea',
160
- 'title' => 'Content',
161
- ),
162
-
163
- )
164
- ) );
165
-
166
- CSF::createSection( $prefix, array(
167
- 'title' => '[foo] view: group alternative',
168
- 'view' => 'group',
169
- 'shortcode' => 'foo',
170
- 'fields' => array(
171
-
172
- array(
173
- 'id' => 'opt_switcher',
174
- 'type' => 'switcher',
175
- 'title' => 'Switcher',
176
- 'label' => 'The label text of the switcher.',
177
- ),
178
-
179
- array(
180
- 'id' => 'opt_select',
181
- 'type' => 'select',
182
- 'title' => 'Select',
183
- 'options' => array(
184
- 'opt-1' => 'Option 1',
185
- 'opt-2' => 'Option 2',
186
- 'opt-3' => 'Option 3',
187
- ),
188
- ),
189
-
190
- ),
191
- 'group_shortcode' => 'nested_foo',
192
- 'group_fields' => array(
193
-
194
- array(
195
- 'id' => 'title',
196
- 'type' => 'text',
197
- 'title' => 'Title',
198
- ),
199
-
200
- array(
201
- 'id' => 'content',
202
- 'type' => 'textarea',
203
- 'title' => 'Content',
204
- ),
205
-
206
- )
207
- ) );
208
-
209
- CSF::createSection( $prefix, array(
210
- 'title' => '[foo] view: repeater',
211
- 'view' => 'repeater',
212
- 'shortcode' => 'foo',
213
- 'fields' => array(
214
-
215
- array(
216
- 'id' => 'opt_title',
217
- 'type' => 'text',
218
- 'title' => 'Title',
219
- ),
220
-
221
- array(
222
- 'id' => 'opt_switcher',
223
- 'type' => 'switcher',
224
- 'title' => 'Switcher',
225
- 'label' => 'The label text of the switcher.',
226
- ),
227
-
228
- array(
229
- 'id' => 'opt_select',
230
- 'type' => 'select',
231
- 'title' => 'Select',
232
- 'options' => array(
233
- 'opt-1' => 'Option 1',
234
- 'opt-2' => 'Option 2',
235
- 'opt-3' => 'Option 3',
236
- ),
237
- ),
238
-
239
- )
240
- ) );
241
-
242
- CSF::createSection( $prefix, array(
243
- 'title' => '[foo] view: repeater alternative',
244
- 'view' => 'repeater',
245
- 'shortcode' => 'foo',
246
- 'fields' => array(
247
-
248
- array(
249
- 'id' => 'opt_title',
250
- 'type' => 'text',
251
- 'title' => 'Title',
252
- ),
253
-
254
- array(
255
- 'id' => 'opt_switcher',
256
- 'type' => 'switcher',
257
- 'title' => 'Switcher',
258
- 'label' => 'The label text of the switcher.',
259
- ),
260
-
261
- array(
262
- 'id' => 'opt_select',
263
- 'type' => 'select',
264
- 'title' => 'Select',
265
- 'options' => array(
266
- 'opt-1' => 'Option 1',
267
- 'opt-2' => 'Option 2',
268
- 'opt-3' => 'Option 3',
269
- ),
270
- ),
271
-
272
- array(
273
- 'id' => 'content',
274
- 'type' => 'textarea',
275
- 'title' => 'Content',
276
- ),
277
-
278
- )
279
- ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/settings/samples/taxonomy-options.samples.php DELETED
@@ -1,88 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
2
-
3
- //
4
- // Set a unique slug-like ID
5
- //
6
- $prefix = '_prefix_taxonomy_options';
7
-
8
- //
9
- // Create taxonomy options
10
- //
11
- CSF::createTaxonomyOptions( $prefix, array(
12
- 'taxonomy' => 'category',
13
- ) );
14
-
15
- //
16
- // Create a section
17
- //
18
- CSF::createSection( $prefix, array(
19
- 'fields' => array(
20
-
21
- //
22
- // A text field
23
- //
24
- array(
25
- 'id' => 'opt-text',
26
- 'type' => 'text',
27
- 'title' => 'Text',
28
- ),
29
-
30
- array(
31
- 'id' => 'opt-textarea',
32
- 'type' => 'textarea',
33
- 'title' => 'Textarea',
34
- 'help' => 'The help text of the field.',
35
- ),
36
-
37
- array(
38
- 'id' => 'opt-upload',
39
- 'type' => 'upload',
40
- 'title' => 'Upload',
41
- ),
42
-
43
- array(
44
- 'id' => 'opt-switcher',
45
- 'type' => 'switcher',
46
- 'title' => 'Switcher',
47
- 'label' => 'The label text of the switcher.',
48
- ),
49
-
50
- array(
51
- 'id' => 'opt-color',
52
- 'type' => 'color',
53
- 'title' => 'Color',
54
- 'default' => '#3498db',
55
- ),
56
-
57
- array(
58
- 'id' => 'opt-checkbox',
59
- 'type' => 'checkbox',
60
- 'title' => 'Checkbox',
61
- 'label' => 'The label text of the checkbox.',
62
- ),
63
-
64
- array(
65
- 'id' => 'opt-radio',
66
- 'type' => 'radio',
67
- 'title' => 'Radio',
68
- 'options' => array(
69
- 'yes' => 'Yes, Please.',
70
- 'no' => 'No, Thank you.',
71
- ),
72
- 'default' => 'yes',
73
- ),
74
-
75
- array(
76
- 'id' => 'opt-select',
77
- 'type' => 'select',
78
- 'title' => 'Select',
79
- 'placeholder' => 'Select an option',
80
- 'options' => array(
81
- 'opt-1' => 'Option 1',
82
- 'opt-2' => 'Option 2',
83
- 'opt-3' => 'Option 3',
84
- ),
85
- ),
86
-
87
- )
88
- ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/settings/samples/widgets.samples.php DELETED
@@ -1,174 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
2
-
3
- //
4
- // Create a widget 1
5
- //
6
- CSF::createWidget( 'csf_widget_example_1', array(
7
- 'title' => 'Codestar Widget Example 1',
8
- 'classname' => 'csf-widget-classname',
9
- 'description' => 'A description for widget example 1',
10
- 'fields' => array(
11
-
12
- array(
13
- 'id' => 'title',
14
- 'type' => 'text',
15
- 'title' => 'Title',
16
- ),
17
-
18
- array(
19
- 'id' => 'opt-text',
20
- 'type' => 'text',
21
- 'title' => 'Text',
22
- 'default' => 'Default text value'
23
- ),
24
-
25
- array(
26
- 'id' => 'opt-color',
27
- 'type' => 'color',
28
- 'title' => 'Color',
29
- ),
30
-
31
- array(
32
- 'id' => 'opt-upload',
33
- 'type' => 'upload',
34
- 'title' => 'Upload',
35
- ),
36
-
37
- array(
38
- 'id' => 'opt-textarea',
39
- 'type' => 'textarea',
40
- 'title' => 'Textarea',
41
- 'help' => 'The help text of the field.',
42
- ),
43
-
44
- )
45
- ) );
46
-
47
- //
48
- // Front-end display of widget example 1
49
- // Attention: This function named considering above widget base id.
50
- //
51
- if( ! function_exists( 'csf_widget_example_1' ) ) {
52
- function csf_widget_example_1( $args, $instance ) {
53
-
54
- echo $args['before_widget'];
55
-
56
- if ( ! empty( $instance['title'] ) ) {
57
- echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title'];
58
- }
59
-
60
- // var_dump( $args ); // Widget arguments
61
- // var_dump( $instance ); // Saved values from database
62
- echo $instance['title'];
63
- echo $instance['opt-text'];
64
- echo $instance['opt-color'];
65
- echo $instance['opt-upload'];
66
- echo $instance['opt-textarea'];
67
-
68
- echo $args['after_widget'];
69
-
70
- }
71
- }
72
-
73
- //
74
- // Create a widget 2
75
- //
76
- CSF::createWidget( 'csf_widget_example_2', array(
77
- 'title' => 'Codestar Widget Example 2',
78
- 'classname' => 'csf-widget-classname',
79
- 'description' => 'A description for widget example 2',
80
- 'fields' => array(
81
-
82
- array(
83
- 'id' => 'title',
84
- 'type' => 'text',
85
- 'title' => 'Title',
86
- ),
87
-
88
- array(
89
- 'id' => 'opt-text',
90
- 'type' => 'text',
91
- 'title' => 'Text',
92
- 'default' => 'Default text value'
93
- ),
94
-
95
- array(
96
- 'id' => 'opt-color',
97
- 'type' => 'color',
98
- 'title' => 'Color',
99
- ),
100
-
101
- array(
102
- 'id' => 'opt-switcher',
103
- 'type' => 'switcher',
104
- 'title' => 'Switcher',
105
- 'label' => 'The label text of the switcher.',
106
- ),
107
-
108
- array(
109
- 'id' => 'opt-checkbox',
110
- 'type' => 'checkbox',
111
- 'title' => 'Checkbox',
112
- 'label' => 'The label text of the checkbox.',
113
- ),
114
-
115
- array(
116
- 'id' => 'opt-select',
117
- 'type' => 'select',
118
- 'title' => 'Select',
119
- 'placeholder' => 'Select an option',
120
- 'options' => array(
121
- 'opt-1' => 'Option 1',
122
- 'opt-2' => 'Option 2',
123
- 'opt-3' => 'Option 3',
124
- ),
125
- ),
126
-
127
- array(
128
- 'id' => 'opt-radio',
129
- 'type' => 'radio',
130
- 'title' => 'Radio',
131
- 'options' => array(
132
- 'yes' => 'Yes, Please.',
133
- 'no' => 'No, Thank you.',
134
- ),
135
- 'default' => 'yes',
136
- ),
137
- array(
138
- 'type' => 'notice',
139
- 'style' => 'success',
140
- 'content' => 'A <strong>notice</strong> field with <strong>success</strong> style.',
141
- ),
142
-
143
- array(
144
- 'id' => 'opt-textarea',
145
- 'type' => 'textarea',
146
- 'title' => 'Textarea',
147
- 'help' => 'The help text of the field.',
148
- ),
149
-
150
- )
151
- ) );
152
-
153
- //
154
- // Front-end display of widget example 2
155
- // Attention: This function named considering above widget base id.
156
- //
157
- if( ! function_exists( 'csf_widget_example_2' ) ) {
158
- function csf_widget_example_2( $args, $instance ) {
159
-
160
- echo $args['before_widget'];
161
-
162
- if ( ! empty( $instance['title'] ) ) {
163
- echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title'];
164
- }
165
-
166
- // var_dump( $args ); // Widget arguments
167
- // var_dump( $instance ); // Saved values from database
168
- echo $instance['title'];
169
- echo $instance['opt-text'];
170
-
171
- echo $args['after_widget'];
172
-
173
- }
174
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/settings/views/about.php DELETED
@@ -1,173 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. ?>
2
-
3
- <p>Welcome to the exciting world of Codestar Framework. Built in Object Oriented Programming paradigm with high number of custom fields and tons of options. Allows you to bring custom admin, metabox, taxonomy and customize settings to all of your pages, posts and categories. It's highly modern and advanced framework.</p>
4
-
5
- <div class="csf-welcome-cols">
6
-
7
- <div class="csf--col csf--col-first">
8
- <span class="csf--icon csf--active"><i class="fa fa-check"></i></span>
9
- <div class="csf--title">Admin Option Framework</div>
10
- <p class="csf--text">Built in Object Oriented Programming paradigm with high number of custom fields and tons of options. It's highly modern and advanced framework.</p>
11
- </div>
12
-
13
- <div class="csf--col csf--col-first">
14
- <span class="csf--icon csf--<?php echo ( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fa fa-<?php echo ( CSF::$premium ? 'check' : 'times' ); ?>"></i></span>
15
- <div class="csf--title">Customize Option Framework</div>
16
- <p class="csf--text">Inherits the default WordPress Customizer with integration of own custom fields. It's more powerful to customize your site on live.</p>
17
- </div>
18
-
19
- <div class="csf--col csf--col-first">
20
- <span class="csf--icon csf--<?php echo ( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fa fa-<?php echo ( CSF::$premium ? 'check' : 'times' ); ?>"></i></span>
21
- <div class="csf--title">Metabox Option Framework</div>
22
- <p class="csf--text">Allows you to bring custom metabox settings to all of your pages and posts. We provide advanced settings with numerious number of fields.</p>
23
- </div>
24
-
25
- <div class="csf--col csf--col-first csf--last">
26
- <span class="csf--icon csf--<?php echo ( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fa fa-<?php echo ( CSF::$premium ? 'check' : 'times' ); ?>"></i></span>
27
- <div class="csf--title">Taxonomy Option Framework</div>
28
- <p class="csf--text">Allows you to bring custom taxonomy settings to all of your categories, tags or CPT. We provide advanced settings with numerious number of fields.</p>
29
- </div>
30
-
31
- <div class="clear"></div>
32
-
33
- <div class="csf--col">
34
- <span class="csf--icon csf--<?php echo ( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fa fa-<?php echo ( CSF::$premium ? 'check' : 'times' ); ?>"></i></span>
35
- <div class="csf--title">Profile Options Framework</div>
36
- <p class="csf--text">Allows you to bring custom user profile settings to all of users. We provide advanced settings with numerious number of fields.</p>
37
- </div>
38
-
39
- <div class="csf--col">
40
- <span class="csf--icon csf--<?php echo ( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fa fa-<?php echo ( CSF::$premium ? 'check' : 'times' ); ?>"></i></span>
41
- <div class="csf--title">Widget Option Framework</div>
42
- <p class="csf--text">Allows you to creating custom widgets. We provide advanced settings wtih numerious number of fields.</p>
43
- </div>
44
-
45
- <div class="csf--col">
46
- <span class="csf--icon csf--<?php echo ( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fa fa-<?php echo ( CSF::$premium ? 'check' : 'times' ); ?>"></i></span>
47
- <div class="csf--title">Comment Metabox Framework</div>
48
- <p class="csf--text">Allows you to bring custom comment metabox settings to all of comments. We provide advanced settings wtih numerious number of fields.</p>
49
- </div>
50
-
51
- <div class="csf--col csf--last">
52
- <span class="csf--icon csf--<?php echo ( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fa fa-<?php echo ( CSF::$premium ? 'check' : 'times' ); ?>"></i></span>
53
- <div class="csf--title">Shortcode Generate Framework</div>
54
- <p class="csf--text">Comes with pre-built shortcode editor to manage your content. It's easy and flexible to build unlimited layouts with endless possibilites.</p>
55
- </div>
56
-
57
- <?php if( ! CSF::$premium ) { ?>
58
- <div class="clear"></div>
59
- <div class="csf--col-upgrade">
60
- <a href="http://codestarframework.com/" class="button button-primary" target="_blank" rel="nofollow"><i class="fa fa-share"></i> Upgrade Premium Version</a>
61
- </div>
62
- <?php } ?>
63
-
64
- <div class="clear"></div>
65
- </div>
66
-
67
- <hr />
68
-
69
- <div class="csf-features-cols csf--col-wrap">
70
- <div class="csf--col csf--key-features">
71
-
72
- <h4>Key Features</h4>
73
-
74
- <ul>
75
- <li>WordPress 5.3.x Ready</li>
76
- <li>Gutenberg Ready</li>
77
- <li>Multiple instances</li>
78
- <li>Unlimited frameworks</li>
79
- <li>Output css styles</li>
80
- <li>Output typography</li>
81
- <li>Advanced option fields</li>
82
- <li>Fields dependencies based on rules</li>
83
- <li>Sanitize and validate fields</li>
84
- <li>Ajax saving</li>
85
- <li>Localization</li>
86
- <li>Useful hooks for configurations</li>
87
- <li>Export and import options</li>
88
- <li>and much more...</li>
89
- </ul>
90
-
91
- </div>
92
-
93
- <div class="csf--col csf--available-fields">
94
-
95
- <h4>Available Fields</h4>
96
-
97
- <table class="csf--table-fields fixed widefat">
98
- <tbody>
99
- <tr>
100
- <td>text</td>
101
- <td>accordion</td>
102
- <td>background</td>
103
- <td>backup</td>
104
- <td>icon</td>
105
- </tr>
106
- <tr>
107
- <td>textarea</td>
108
- <td>repeater</td>
109
- <td>heading</td>
110
- <td>date</td>
111
- <td>code_editor</td>
112
- </tr>
113
- <tr>
114
- <td>checkbox</td>
115
- <td>group</td>
116
- <td>image_select</td>
117
- <td>slider</td>
118
- <td>content</td>
119
- </tr>
120
- <tr>
121
- <td>select</td>
122
- <td>gallery</td>
123
- <td>notice</td>
124
- <td>fieldset</td>
125
- <td>typography</td>
126
- </tr>
127
- <tr>
128
- <td>switcher</td>
129
- <td>sorter</td>
130
- <td>link_color</td>
131
- <td>subheading</td>
132
- <td>upload</td>
133
- </tr>
134
- <tr>
135
- <td>color</td>
136
- <td>media</td>
137
- <td>radio</td>
138
- <td>tabbed</td>
139
- <td>wp_editor</td>
140
- </tr>
141
- <tr>
142
- <td>spacing</td>
143
- <td>border</td>
144
- <td>palette</td>
145
- <td>spinner</td>
146
- <td>dimensions</td>
147
- </tr>
148
- <tr>
149
- <td>link_color</td>
150
- <td>sortable</td>
151
- <td>button_set</td>
152
- <td>accordion</td>
153
- <td>others</td>
154
- </tr>
155
- </tbody>
156
- </table>
157
-
158
- <p>and more on the way...</p>
159
-
160
- </div>
161
-
162
- <div class="clear"></div>
163
- </div>
164
-
165
- <?php if( CSF::$premium ) { ?>
166
- <hr />
167
- <h5>You can force to disable this page with (it would works for only premium users):</h5>
168
- <div class="csf-code-block">
169
- <pre>
170
- add_filter( 'csf_welcome_page', '__return_false' );
171
- </pre>
172
- </div>
173
- <?php } ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/settings/views/documentation.php DELETED
@@ -1,5 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. ?>
2
-
3
- <p>If you are new to Codestar Framework, here is a step-by-step plan for getting started.</p>
4
-
5
- <p><a href="http://codestarframework.com/documentation/" class="button" target="_blank" rel="nofollow"><i class="fa fa-book"></i> Online Documentation</a></p>
 
 
 
 
 
admin/settings/views/footer.php DELETED
@@ -1,3 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. ?>
2
-
3
- </div>
 
 
 
admin/settings/views/free-vs-premium.php DELETED
@@ -1,95 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. ?>
2
-
3
- <table class="csf--table-compare widefat fixed striped">
4
- <thead>
5
- <tr>
6
- <td><strong>Features</strong></td>
7
- <td><strong>Free Version</strong></td>
8
- <td><strong>Premium Version</strong></td>
9
- </tr>
10
- </thead>
11
- <tbody>
12
- <tr>
13
- <td>Admin Option Framework</td>
14
- <td><i class="fa fa-check-circle"></i></td>
15
- <td><i class="fa fa-check-circle"></i></td>
16
- </tr>
17
- <tr>
18
- <td>Customize Option Framework</td>
19
- <td><i class="fa fa-times-circle"></i></td>
20
- <td><i class="fa fa-check-circle"></i></td>
21
- </tr>
22
- <tr>
23
- <td>Metabox Option Framework</td>
24
- <td><i class="fa fa-times-circle"></i></td>
25
- <td><i class="fa fa-check-circle"></i></td>
26
- </tr>
27
- <tr>
28
- <td>Taxonomy Option Framework</td>
29
- <td><i class="fa fa-times-circle"></i></td>
30
- <td><i class="fa fa-check-circle"></i></td>
31
- </tr>
32
- <tr>
33
- <th>Profile Option Framework</th>
34
- <td><i class="fa fa-times-circle"></i></td>
35
- <td><i class="fa fa-check-circle"></i></td>
36
- </tr>
37
- <tr>
38
- <td>Widget Option Framework</td>
39
- <td><i class="fa fa-times-circle"></i></td>
40
- <td><i class="fa fa-check-circle"></i></td>
41
- </tr>
42
- <tr>
43
- <td>Comment Metabox Framework</td>
44
- <td><i class="fa fa-times-circle"></i></td>
45
- <td><i class="fa fa-check-circle"></i></td>
46
- </tr>
47
- <tr>
48
- <td>Shortcode Generate Framework</td>
49
- <td><i class="fa fa-times-circle"></i></td>
50
- <td><i class="fa fa-check-circle"></i></td>
51
- </tr>
52
- <tr>
53
- <td>All Option Fields</td>
54
- <td><i class="fa fa-times-circle"></i></td>
55
- <td><i class="fa fa-check-circle"></i></td>
56
- </tr>
57
- <tr>
58
- <td>Developer Packages</td>
59
- <td><i class="fa fa-times-circle"></i></td>
60
- <td><i class="fa fa-check-circle"></i></td>
61
- </tr>
62
- <tr>
63
- <td>Unminfy Library</td>
64
- <td><i class="fa fa-times-circle"></i></td>
65
- <td><i class="fa fa-check-circle"></i></td>
66
- </tr>
67
- <tr>
68
- <td>New Requests</td>
69
- <td><i class="fa fa-times-circle"></i></td>
70
- <td><i class="fa fa-check-circle"></i></td>
71
- </tr>
72
- <tr>
73
- <td>Autoremove Advertisements</td>
74
- <td><i class="fa fa-times-circle"></i></td>
75
- <td><i class="fa fa-check-circle"></i></td>
76
- </tr>
77
- <tr>
78
- <td>Life-time access/updates</td>
79
- <td><i class="fa fa-times-circle"></i></td>
80
- <td><i class="fa fa-check-circle"></i></td>
81
- </tr>
82
- <tr>
83
- <td>Support Forum</td>
84
- <td><i class="fa fa-times-circle"></i></td>
85
- <td><i class="fa fa-check-circle"></i></td>
86
- </tr>
87
- </tbody>
88
- <tfoot>
89
- <tr>
90
- <td></td>
91
- <td><a href="https://github.com/Codestar/codestar-framework/" class="button" target="_blank" rel="nofollow">Download Free Version</a></td>
92
- <td><a href="http://codestarframework.com/" class="button button-primary" target="_blank" rel="nofollow">Upgrade Premium Version</a></td>
93
- </tr>
94
- </tfoot>
95
- </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/settings/views/header.php DELETED
@@ -1,48 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
2
-
3
- $demo = get_option( 'csf_demo_mode', false );
4
- $text = ( ! empty( $demo ) ) ? 'Deactivate' : 'Activate';
5
- $status = ( ! empty( $demo ) ) ? 'deactivate' : 'activate';
6
- $class = ( ! empty( $demo ) ) ? ' csf-warning-primary' : '';
7
- $section = ( ! empty( $_GET['section'] ) ) ? $_GET['section'] : 'about';
8
- $links = array(
9
- 'about' => 'About',
10
- 'quickstart' => 'Quick Start',
11
- 'documentation' => 'Documentation',
12
- 'free-vs-premium' => 'Free vs Premium',
13
- 'support' => 'Support',
14
- 'relnotes' => 'Release Notes',
15
- );
16
-
17
- ?>
18
- <div class="csf-welcome csf-welcome-wrap">
19
-
20
- <h1>Welcome to Codestar Framework v<?php echo CSF::$version; ?></h1>
21
-
22
- <p class="csf-about-text">A Simple and Lightweight WordPress Option Framework for Themes and Plugins</p>
23
-
24
- <p class="csf-demo-button"><a href="<?php echo add_query_arg( array( 'csf-demo' => $status ) ); ?>" class="button button-primary<?php echo $class; ?>"><?php echo $text; ?> Demo</a></p>
25
-
26
- <div class="csf-logo">
27
- <div class="csf--effects"><i></i><i></i><i></i><i></i></div>
28
- <div class="csf--wp-logos">
29
- <div class="csf--wp-logo"></div>
30
- <div class="csf--wp-plugin-logo"></div>
31
- </div>
32
- <div class="csf--text">Codestar Framework</div>
33
- <div class="csf--text csf--version">v<?php echo CSF::$version; ?></div>
34
- </div>
35
-
36
- <h2 class="nav-tab-wrapper wp-clearfix">
37
- <?php
38
- foreach( $links as $key => $link ) {
39
-
40
- if( CSF::$premium && $key === 'free-vs-premium' ) { continue; }
41
-
42
- $activate = ( $section === $key ) ? ' nav-tab-active' : '';
43
-
44
- echo '<a href="'. add_query_arg( array( 'page' => 'csf-welcome', 'section' => $key ), admin_url( 'tools.php' ) ) .'" class="nav-tab'. $activate .'">'. $link .'</a>';
45
-
46
- }
47
- ?>
48
- </h2>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/settings/views/quickstart.php DELETED
@@ -1,67 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. ?>
2
-
3
- <p><strong>Let's quick start it.</strong></p>
4
- <p>Open your current theme <code>functions.php</code> file and paste this code.</p>
5
-
6
- <div class="csf-code-block">
7
- <pre>
8
- <span>// Control core classes for avoid errors</span>
9
- if( class_exists( 'CSF' ) ) {
10
-
11
- <span>//</span>
12
- <span>// Set a unique slug-like ID</span>
13
- $prefix = 'my_framework';
14
-
15
- <span>//</span>
16
- <span>// Create options</span>
17
- CSF::createOptions( $prefix, array(
18
- 'menu_title' => 'My Framework',
19
- 'menu_slug' => 'my-framework',
20
- ) );
21
-
22
- <span>//</span>
23
- <span>// Create a section</span>
24
- CSF::createSection( $prefix, array(
25
- 'title' => 'Tab Title 1',
26
- 'fields' => array(
27
-
28
- <span>//</span>
29
- <span>// A text field</span>
30
- array(
31
- 'id' => 'opt-text',
32
- 'type' => 'text',
33
- 'title' => 'Simple Text',
34
- ),
35
-
36
- )
37
- ) );
38
-
39
- CSF::createSection( $prefix, array(
40
- 'title' => 'Tab Title 2',
41
- 'fields' => array(
42
-
43
- array(
44
- 'id' => 'opt-textarea',
45
- 'type' => 'textarea',
46
- 'title' => 'Simple Textarea',
47
- ),
48
-
49
- )
50
- ) );
51
-
52
- }
53
- </pre>
54
- </div>
55
-
56
- <p><strong>How to get option value ?</strong></p>
57
-
58
- <div class="csf-code-block">
59
- <pre>
60
- $options = get_option( 'my_framework' ); <span>// // unique id of the framework</span>
61
-
62
- echo $options['opt-text']; <span>// id of field</span>
63
- echo $options['opt-textarea']; <span>// id of field</span>
64
- </pre>
65
- </div>
66
-
67
- <p><a href="http://codestarframework.com/documentation/" class="button" target="_blank" rel="nofollow"><i class="fa fa-book"></i> Online Documentation</a></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/settings/views/relnotes.php DELETED
@@ -1,179 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. ?>
2
-
3
- <h3>v2.1.3</h3>
4
- <ul>
5
- <li>Added: New field "map".</li>
6
- <li>Added: Quick save (ctrl+s,command+s) for Option Framework.</li>
7
- <li>Added: Form warning when changed any option for Option Framework.</li>
8
- <li>Fixed: Output CSS twice times issue.</li>
9
- <li>Updated: Google Web Fonts array.</li>
10
- <li>Updated: Customizer Framework samples.</li>
11
- <li>Improved: Background field for auto hide/show background attributes.</li>
12
- </ul>
13
-
14
- <h3>v2.1.2</h3>
15
- <ul>
16
- <li>Added: WP 5.3 "Kirk" UI compatibility.</li>
17
- <li>Added: Comment Metabox Framework (bonus).</li>
18
- <li>Added: New field "number".</li>
19
- <li>Fixed: Media field dependency issue.</li>
20
- <li>Fixed: Button set field default selected issue.</li>
21
- <li>Fixed: Select field empty message issue.</li>
22
- <li>Fixed: Multiple chosen select issue in Shortcode Framework.</li>
23
- <li>Fixed: Checkbox field confict with Repeater and Group field issue.</li>
24
- <li>Fixed: Image Select and Multiple Checkbox fields refresh issue in Customize Framework.</li>
25
- </ul>
26
-
27
- <h3>v2.1.1</h3>
28
- <ul>
29
- <li>Added: Chosen select AJAX search option.</li>
30
- <li>Added: Chosen select sortable option.</li>
31
- <li>Added: Chosen select keep options order.</li>
32
- <li>Added: Users select field options.</li>
33
- <li>Fixed: Single shortcode insert issue.</li>
34
- <li>Fixed: Taxonomy Framework multiple save issue.</li>
35
- <li>Fixed: Widgets Framework chosen select save issue.</li>
36
- <li>Fixed: Chosen multiple select refresh issue in Customizer.</li>
37
- <li>Fixed: Minor bug fixes and improvements.</li>
38
- </ul>
39
-
40
- <h3>v2.1.0</h3>
41
- <ul>
42
- <li>Added: SSL protocol control for library files.</li>
43
- <li>Added: SCSS style files to main files again.</li>
44
- <li>Fixed: Default value issue in Taxonomy Framework.</li>
45
- <li>Fixed: Customize option refresh/save issue in existing customizer section.</li>
46
- </ul>
47
-
48
- <h3>v2.0.9</h3>
49
- <ul>
50
- <li>Added: Framework fields support for predefined customizer sections.</li>
51
- <li>Fixed: Metabox save php notices when using "serialize" and "unserialize" in same time.</li>
52
- <li>Fixed: Multiple instances save data issue.</li>
53
- <li>Fixed: Spacing field all_icon parameter.</li>
54
- <li>Fixed: Admin options show in customizer parameter "show_in_customizer".</li>
55
- <li>Improved: Media field specific type of uploads.</li>
56
- <li>Improved: Spacing and dimensions fields unit parameter.</li>
57
- <li>Improved: "empty_message" parameter for checkbox, radio and select fields.</li>
58
- </ul>
59
-
60
- <h3>v2.0.8</h3>
61
- <ul>
62
- <li>Added: Framework wrapper classname param as "class" for override css styles.</li>
63
- <li>Added: Checkbox and Radio field group option like Select field group.</li>
64
- <li>Added: Attachment post type metabox support.</li>
65
- <li>Fixed: Auto-filled issue for framework search input.</li>
66
- <li>Fixed: Spacing field refresh issue in Customizer.</li>
67
- <li>Fixed: Radio field checked issue in category id select.</li>
68
- <li>Fixed: Metabox single option save issue.</li>
69
- <li>Fixed: Metabox wp editor loaded issue.</li>
70
- <li>Improved: Dependency hide/show for a text field after the value is written.</li>
71
- <li>Improved: Dependency parameter for multiple conditions.</li>
72
- </ul>
73
-
74
- <h3>v2.0.7</h3>
75
- <ul>
76
- <li>Added: Profile Options Framework (bonus).</li>
77
- <li>Added: Media field fallback function for easy migration from v1.x to v2.x.</li>
78
- <li>Fixed: A minor PHP notice in the Shortcode Generate Framework.</li>
79
- <li>Improved: Link Color field output for given array elements.</li>
80
- <li>Improved: Elementor integration for Shortcode Generate Framework.</li>
81
- <li>Improved: Backup field UI fallback in the Customize Framework.</li>
82
- <li>Improved: Global dependency controls.</li>
83
- </ul>
84
-
85
- <h3>v2.0.6</h3>
86
- <ul>
87
- <li>Added: Default values from a external array as optional for all frameworks.</li>
88
- <li>Added: Widget Title sync support in Widgets Framework.</li>
89
- <li>Added: WP Roles select field options.</li>
90
- <li>Fixed: Initialization issue inside after_theme_setup action.</li>
91
- <li>Fixed: Backup export button issue.</li>
92
- <li>Fixed: WP Media uploaded item selected issue.</li>
93
- <li>Improved: Reset and Import UI messages in the Customize Framework.</li>
94
- <li>Improved: Translation .POT file.</li>
95
- <li>Improved: Global dependency controls.</li>
96
- </ul>
97
-
98
- <h3>v2.0.5</h3>
99
- <ul>
100
- <li>Added: Dependency controls for among separate sections fields.</li>
101
- <li>Added: Border field new border style properties.</li>
102
- <li>Added: Taxonomy Framework section title param.</li>
103
- <li>Fixed: Metabox section title issue.</li>
104
- <li>Fixed: Typography refresh issue in Customizer.</li>
105
- <li>Fixed: Group and Repeater fields without title parameter.</li>
106
- <li>Fixed: Color field default issue in Background, Typography, Border fields.</li>
107
- <li>Fixed: RevSlider CodeMirror conflict.</li>
108
- <li>Fixed: Shortcode Generate Framework Group/Repeater nested issue.</li>
109
- </ul>
110
-
111
- <h3>v2.0.4</h3>
112
- <ul>
113
- <li>Added: Dark and Light themes.</li>
114
- <li>Added: New params to change on/off texts for Switcher field.</li>
115
- <li>Added: Shortcode generate framework support for Elementor text editor.</li>
116
- <li>Fixed: Sortable and Sorter fields ordering save issue in Customizer.</li>
117
- <li>Fixed: Radio, Button Set and Image Select fields issue in Group field.</li>
118
- <li>Fixed: Color picker default/clear button issue in Customizer.</li>
119
- <li>Improved: RTL style of framework.</li>
120
- <li>Improved: Media and Upload fields remove buttons.</li>
121
- <li>Improved: Framework style css.</li>
122
- <li>Changed: Backup field data type "json" instead of "serialize".</li>
123
- </ul>
124
-
125
- <h3>v2.0.3</h3>
126
- <ul>
127
- <li>Added: Widget Options Framework (bonus).</li>
128
- <li>Added: Nested Group support.</li>
129
- <li>Added: Nested Repeater support.</li>
130
- <li>Added: Spanish Translation po/mo.</li>
131
- <li>Added: Date range "from" and "to" for Date field.</li>
132
- <li>Added: New param "empty_message" if options not provided for Select, Checkbox, Radio.</li>
133
- <li>Fixed: Metabox framework php notices in 404 page etc.</li>
134
- <li>Fixed: WP Editor field save issue.</li>
135
- <li>Improved: Validate email function.</li>
136
- <li>Improved: Group field arguments.</li>
137
- <li>Improved: Font-Awesome library.</li>
138
- <li>Improved: Hide to "welcome" page automatically if not used as plugin.</li>
139
- <li>Improved: Confirm alert box messages translations.</li>
140
- </ul>
141
-
142
- <h3>v2.0.2</h3>
143
- <ul>
144
- <li>Added: Page Templates "default" option for spesific metabox hide/show.</li>
145
- <li>Added: Post Formats "default" option for spesific metabox hide/show.</li>
146
- <li>Added: Only allow numeric inputs for Spacing, Dimensions, Border, Slider, Spinner, Typography etc.</li>
147
- <li>Added: ChosenJS custom options support and improved width and css style.</li>
148
- <li>Fixed: Taxonomy framework jquery triggers. It was not working again after saving. It fixed now.</li>
149
- <li>Fixed: Code Editor style issue for used inside Group/Repeater.</li>
150
- <li>Fixed: Sortable field sortby issue.</li>
151
- <li>Fixed: Options panel show in customizer option.</li>
152
- <li>Fixed: Media field URL show/hide option issue.</li>
153
- <li>Improved: Typography, Color, Spinner, Date, Chosen, Slider fields for used inside Group/Repeater.</li>
154
- <li>Improved: All fields javascript triggers for more performance.</li>
155
- <li>Improved: Customizer Framework field dependency feature.</li>
156
- <li>Improved: Customizer Framework field styles.</li>
157
- </ul>
158
-
159
- <h3>v2.0.1</h3>
160
- <ul>
161
- <li>Added: WP Editor AJAX support for Group Field, Repeater Field and Everywhere.</li>
162
- <li>Added: Custom palette colors option for Color Picker.</li>
163
- <li>Added: Override files feature again.</li>
164
- <li>Added: Validate URL function callback.</li>
165
- <li>Fixed: Group field save issue.</li>
166
- <li>Fixed: Multiple given post formats metabox hide/show issue.</li>
167
- <li>Fixed: Minor bugs.</li>
168
- </ul>
169
-
170
- <h3>v2.0.0</h3>
171
- <ul>
172
- <li>Premium version release.</li>
173
- </ul>
174
-
175
- <h3>v1.0.0</h3>
176
- <ul>
177
- <li>Initial release.</li>
178
- </ul>
179
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/settings/views/support.php DELETED
@@ -1,5 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. ?>
2
-
3
- <p>We are provide support forum for premium version users. You can join to support forum for submit any question after purchasing. Free version users support is limited on github.</p>
4
-
5
- <p><a href="http://support.codestarthemes.com/" class="button" target="_blank" rel="nofollow"><i class="fa fa-life-ring"></i> Support Forum</a> -(or)- <a href="https://github.com/Codestar/codestar-framework/issues" class="button" target="_blank" rel="nofollow"><i class="fa fa-github"></i> Github</a></p>
 
 
 
 
 
admin/settings/views/welcome.php DELETED
@@ -1,133 +0,0 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
2
- /**
3
- *
4
- * Setup Framework Class
5
- *
6
- * @since 1.0.0
7
- * @version 1.0.0
8
- *
9
- */
10
- if( ! class_exists( 'CSF_Welcome' ) ) {
11
- class CSF_Welcome{
12
-
13
- private static $instance = null;
14
-
15
- public function __construct() {
16
-
17
- if( CSF::$premium && ( ! CSF::is_active_plugin( 'codestar-framework/codestar-framework.php' ) || apply_filters( 'csf_welcome_page', true ) === false ) ) { return; }
18
-
19
- add_action( 'admin_menu', array( &$this, 'add_about_menu' ), 0 );
20
- add_filter( 'plugin_action_links', array( &$this, 'add_plugin_action_links' ), 10, 5 );
21
- add_filter( 'plugin_row_meta', array( &$this, 'add_plugin_row_meta' ), 10, 2 );
22
-
23
- $this->set_demo_mode();
24
-
25
- }
26
-
27
- // instance
28
- public static function instance() {
29
- if ( is_null( self::$instance ) ) {
30
- self::$instance = new self();
31
- }
32
- return self::$instance;
33
- }
34
-
35
- public function add_about_menu() {
36
- add_management_page( 'Codestar Framework', 'Codestar Framework', 'manage_options', 'csf-welcome', array( &$this, 'add_page_welcome' ) );
37
- }
38
-
39
- public function add_page_welcome() {
40
-
41
- $section = ( ! empty( $_GET['section'] ) ) ? $_GET['section'] : '';
42
-
43
- CSF::include_plugin_file( 'views/header.php' );
44
-
45
- // safely include pages
46
- switch ( $section ) {
47
-
48
- case 'quickstart':
49
- CSF::include_plugin_file( 'views/quickstart.php' );
50
- break;
51
-
52
- case 'documentation':
53
- CSF::include_plugin_file( 'views/documentation.php' );
54
- break;
55
-
56
- case 'relnotes':
57
- CSF::include_plugin_file( 'views/relnotes.php' );
58
- break;
59
-
60
- case 'support':
61
- CSF::include_plugin_file( 'views/support.php' );
62
- break;
63
-
64
- case 'free-vs-premium':
65
- CSF::include_plugin_file( 'views/free-vs-premium.php' );
66
- break;
67
-
68
- default:
69
- CSF::include_plugin_file( 'views/about.php' );
70
- break;
71
-
72
- }
73
-
74
- CSF::include_plugin_file( 'views/footer.php' );
75
-
76
- }
77
-
78
- public static function add_plugin_action_links( $links, $plugin_file ) {
79
-
80
- if( $plugin_file === 'codestar-framework/codestar-framework.php' && ! empty( $links ) ) {
81
- $links['csf--welcome'] = '<a href="'. admin_url( 'tools.php?page=csf-welcome' ) .'">Settings</a>';
82
- if( ! CSF::$premium ) {
83
- $links['csf--upgrade'] = '<a href="http://codestarframework.com/">Upgrade</a>';
84
- }
85
- }
86
-
87
- return $links;
88
-
89
- }
90
-
91
- public static function add_plugin_row_meta( $links, $plugin_file ) {
92
-
93
- if( $plugin_file === 'codestar-framework/codestar-framework.php' && ! empty( $links ) ) {
94
- $links['csf--docs'] = '<a href="http://codestarframework.com/documentation/" target="_blank">Documentation</a>';
95
- }
96
-
97
- return $links;
98
-
99
- }
100
-
101
- public function set_demo_mode() {
102
-
103
- $demo_mode = get_option( 'csf_demo_mode', false );
104
-
105
- if( ! empty( $_GET['csf-demo'] ) ) {
106
- $demo_mode = ( $_GET['csf-demo'] === 'activate' ) ? true : false;
107
- update_option( 'csf_demo_mode', $demo_mode );
108
- }
109
-
110
- if( ! empty( $demo_mode ) ) {
111
-
112
- CSF::include_plugin_file( 'samples/options.samples.php' );
113
-
114
- if( CSF::$premium ) {
115
-
116
- CSF::include_plugin_file( 'samples/customize-options.samples.php' );
117
- CSF::include_plugin_file( 'samples/metabox.samples.php' );
118
- CSF::include_plugin_file( 'samples/profile-options.samples.php' );
119
- CSF::include_plugin_file( 'samples/shortcoder.samples.php' );
120
- CSF::include_plugin_file( 'samples/taxonomy-options.samples.php' );
121
- CSF::include_plugin_file( 'samples/widgets.samples.php' );
122
- CSF::include_plugin_file( 'samples/comment-metabox.samples.php' );
123
-
124
- }
125
-
126
- }
127
-
128
- }
129
-
130
- }
131
-
132
- CSF_Welcome::instance();
133
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/wp-ulike.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! WP ULike - v4.1.7
2
  * https://wpulike.com
3
  * TechnoWich 2020;
4
  */
1
+ /*! WP ULike - v4.1.8
2
  * https://wpulike.com
3
  * TechnoWich 2020;
4
  */
inc/general-functions.php CHANGED
@@ -405,6 +405,7 @@ if( ! function_exists( 'wp_ulike' ) ){
405
  "method" => 'likeThis',
406
  "type" => 'post',
407
  "wrapper_class" => '',
 
408
  "attributes" => $attributes,
409
  "logging_method" => isset( $options['logging_method'] ) ? $options['logging_method'] : 'by_username',
410
  "display_likers" => isset( $options['enable_likers_box'] ) ? $options['enable_likers_box'] : 0,
@@ -635,6 +636,7 @@ if( ! function_exists( 'wp_ulike_comments' ) ){
635
  "method" => 'likeThisComment',
636
  "type" => 'post',
637
  "wrapper_class" => '',
 
638
  "attributes" => $attributes,
639
  "logging_method" => isset( $options['logging_method'] ) ? $options['logging_method'] : 'by_username',
640
  "display_likers" => isset( $options['enable_likers_box'] ) ? $options['enable_likers_box'] : 0,
@@ -736,6 +738,7 @@ if( ! function_exists( 'wp_ulike_buddypress' ) ){
736
  "method" => 'likeThisActivity',
737
  "type" => 'post',
738
  "wrapper_class" => '',
 
739
  "attributes" => $attributes,
740
  "logging_method" => isset( $options['logging_method'] ) ? $options['logging_method'] : 'by_username',
741
  "display_likers" => isset( $options['enable_likers_box'] ) ? $options['enable_likers_box'] : 0,
@@ -917,6 +920,7 @@ if( ! function_exists( 'wp_ulike_bbpress' ) ){
917
  "method" => 'likeThisTopic',
918
  "type" => 'post',
919
  "wrapper_class" => '',
 
920
  "attributes" => $attributes,
921
  "logging_method" => isset( $options['logging_method'] ) ? $options['logging_method'] : 'by_username',
922
  "display_likers" => isset( $options['enable_likers_box'] ) ? $options['enable_likers_box'] : 0,
@@ -1302,13 +1306,11 @@ if( ! function_exists( 'wp_ulike_display_button' ) ){
1302
  if( $args['logged_out_action'] === 'button' ){
1303
  return $wp_ulike_class->get_template( $args, 0 );
1304
  } else {
1305
- return apply_filters( 'wp_ulike_login_alert_template',
1306
- sprintf( '<p class="alert alert-info fade in" role="alert">%s<a href="%s">%s</a></p>',
1307
- __('You need to login in order to like this post: ',WP_ULIKE_SLUG),
1308
- wp_login_url( get_permalink() ),
1309
- __('click here',WP_ULIKE_SLUG)
1310
- )
1311
- );
1312
  }
1313
  }
1314
  }
405
  "method" => 'likeThis',
406
  "type" => 'post',
407
  "wrapper_class" => '',
408
+ "options_group" => 'posts_group',
409
  "attributes" => $attributes,
410
  "logging_method" => isset( $options['logging_method'] ) ? $options['logging_method'] : 'by_username',
411
  "display_likers" => isset( $options['enable_likers_box'] ) ? $options['enable_likers_box'] : 0,
636
  "method" => 'likeThisComment',
637
  "type" => 'post',
638
  "wrapper_class" => '',
639
+ "options_group" => 'comments_group',
640
  "attributes" => $attributes,
641
  "logging_method" => isset( $options['logging_method'] ) ? $options['logging_method'] : 'by_username',
642
  "display_likers" => isset( $options['enable_likers_box'] ) ? $options['enable_likers_box'] : 0,
738
  "method" => 'likeThisActivity',
739
  "type" => 'post',
740
  "wrapper_class" => '',
741
+ "options_group" => 'buddypress_group',
742
  "attributes" => $attributes,
743
  "logging_method" => isset( $options['logging_method'] ) ? $options['logging_method'] : 'by_username',
744
  "display_likers" => isset( $options['enable_likers_box'] ) ? $options['enable_likers_box'] : 0,
920
  "method" => 'likeThisTopic',
921
  "type" => 'post',
922
  "wrapper_class" => '',
923
+ "options_group" => 'bbpress_group',
924
  "attributes" => $attributes,
925
  "logging_method" => isset( $options['logging_method'] ) ? $options['logging_method'] : 'by_username',
926
  "display_likers" => isset( $options['enable_likers_box'] ) ? $options['enable_likers_box'] : 0,
1306
  if( $args['logged_out_action'] === 'button' ){
1307
  return $wp_ulike_class->get_template( $args, 0 );
1308
  } else {
1309
+ $template = wp_ulike_get_option( $args['options_group'] . '|login_template', sprintf( '<p class="alert alert-info fade in" role="alert">%s<a href="%s">%s</a></p>', __('You need to login in order to like this post: ',WP_ULIKE_SLUG),
1310
+ wp_login_url( get_permalink() ),
1311
+ __('click here',WP_ULIKE_SLUG)
1312
+ ) );
1313
+ return apply_filters( 'wp_ulike_login_alert_template', $template );
 
 
1314
  }
1315
  }
1316
  }
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: wp ulike, like button, elementor, like, dislike, wordpress youlike plugin,
6
  Requires PHP: 5.4
7
  Requires at least: 3.5.0
8
  Tested up to: 5.3.2
9
- Stable tag: 4.1.7
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -186,6 +186,12 @@ define( 'WP_MEMORY_LIMIT', '256M' );
186
 
187
  == Changelog ==
188
 
 
 
 
 
 
 
189
  = 4.1.7 =
190
  * Added: New caching methods to increase the performance of admin pages.
191
  * Fixed: Limitation issue in getting the popular item IDs.
6
  Requires PHP: 5.4
7
  Requires at least: 3.5.0
8
  Tested up to: 5.3.2
9
+ Stable tag: 4.1.8
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
186
 
187
  == Changelog ==
188
 
189
+ = 4.1.8 =
190
+ * Added: New REST API Routes. [PRO]
191
+ * Added: New option to customize user login template.
192
+ * Fixed: Conflicts in setting panel framework.
193
+ * Fixed: Some small issues.
194
+
195
  = 4.1.7 =
196
  * Added: New caching methods to increase the performance of admin pages.
197
  * Fixed: Limitation issue in getting the popular item IDs.
wp-ulike.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: WP ULike
11
  * Plugin URI: https://wpulike.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
12
  * Description: WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordPress website to allow your visitors to like and unlike pages, posts, comments AND buddypress activities. Its very simple to use and supports many options.
13
- * Version: 4.1.7
14
  * Author: Ali Mirzaei
15
  * Author URI: https://wpulike.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
16
  * Text Domain: wp-ulike
@@ -46,7 +46,7 @@ if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) {
46
 
47
  // Do not change these values
48
  define( 'WP_ULIKE_PLUGIN_URI' , 'https://wpulike.com/' );
49
- define( 'WP_ULIKE_VERSION' , '4.1.7' );
50
  define( 'WP_ULIKE_SLUG' , 'wp-ulike' );
51
  define( 'WP_ULIKE_NAME' , __( 'WP ULike', WP_ULIKE_SLUG ));
52
 
10
  * Plugin Name: WP ULike
11
  * Plugin URI: https://wpulike.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
12
  * Description: WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordPress website to allow your visitors to like and unlike pages, posts, comments AND buddypress activities. Its very simple to use and supports many options.
13
+ * Version: 4.1.8
14
  * Author: Ali Mirzaei
15
  * Author URI: https://wpulike.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
16
  * Text Domain: wp-ulike
46
 
47
  // Do not change these values
48
  define( 'WP_ULIKE_PLUGIN_URI' , 'https://wpulike.com/' );
49
+ define( 'WP_ULIKE_VERSION' , '4.1.8' );
50
  define( 'WP_ULIKE_SLUG' , 'wp-ulike' );
51
  define( 'WP_ULIKE_NAME' , __( 'WP ULike', WP_ULIKE_SLUG ));
52