Skip to content

Commit 2945b6e

Browse files
1.14.5 release
1 parent da3dff8 commit 2945b6e

File tree

2 files changed

+2
-135
lines changed

2 files changed

+2
-135
lines changed

customizer/class-think-customizer.php

Lines changed: 1 addition & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -17,140 +17,7 @@ class Think_Customizer {
1717
protected static $instance = null;
1818

1919
/**
20-
* <code>
21-
*[
22-
* [
23-
* 'id' => 'banner',
24-
* 'title' => 'Banner',
25-
* 'priority' => 1,
26-
* 'active_callback' => 'is_front_page'
27-
* 'controls' => [
28-
* [
29-
* 'id' => 'custom_logo',
30-
* 'label' => 'Banner cropped IMG',
31-
* 'type' => 'cropped_image',
32-
* 'description' => 'LOGO uploader',
33-
* 'width' => 1920,
34-
* 'height' => 1080
35-
* ],
36-
* [
37-
* 'id' => 'banner_simple_image',
38-
* 'label' => 'Banner Simple IMG',
39-
* 'type' => 'image',
40-
* 'selector' => 'img.banner-simple-img'
41-
* ],
42-
* [
43-
* 'id' => 'banner_home_title',
44-
* 'label' => 'Banner Title',
45-
* 'type' => 'input',
46-
* 'default' => 'Bla bla bla bla',
47-
* 'selector' => '.banner-title'
48-
* ],
49-
* [
50-
* 'id' => 'custom_background',
51-
* 'label' => 'Background COLOR',
52-
* 'type' => 'color',
53-
* 'selector' => '.custom-background'
54-
* ],
55-
* [
56-
* 'id' => 'logo_position',
57-
* 'label' => 'Position for logo',
58-
* 'type' => 'radio',
59-
* 'choices' => [
60-
* 'inleft' => 'Left',
61-
* 'inright' => 'Right',
62-
* ],
63-
* 'selector' => '.logo',
64-
* ],
65-
* [
66-
* 'id' => 'banner_description',
67-
* 'label' => 'Description',
68-
* 'type' => 'textarea',
69-
* 'default' => 'Bla bla bla bla',
70-
* 'selector' => '.banner-description'
71-
* ],
72-
* [
73-
* 'id' => 'banner_additional_info',
74-
* 'label' => 'Display additional information',
75-
* 'type' => 'checkbox',
76-
* ],
77-
* [
78-
* 'id' => 'askjhdkjsah',
79-
* 'label' => 'Description',
80-
* 'type' => 'tinyMCE',
81-
* 'selector' => '.banner_description'
82-
* ],
83-
* [
84-
* 'id' => 'kjdhkjasd',
85-
* 'label' => 'WrapDescription',
86-
* 'type' => 'tinyMCE',
87-
* 'default' => 'Bla bla bla bla',
88-
* 'selector' => '.asdsadsds'
89-
* ],
90-
* [
91-
* 'id' => 'banner_description_hyap_editor',
92-
* 'label' => 'WrapDescription',
93-
* 'type' => 'tinyMCE',
94-
* 'default' => 'Bla bla bla bla',
95-
* 'selector' => '.asdasdasdsadasdas'
96-
* ],
97-
* [
98-
* 'id' => 'ksudhfksdhfkjdshfkj',
99-
* 'label' => 'WrapDescription',
100-
* 'type' => 'tinyMCE',
101-
* 'default' => 'Bla bla bla bla',
102-
* 'selector' => '.asdasdasdsadsadas'
103-
* ],
104-
* ]
105-
* ],
106-
* [
107-
* 'id' => 'test',
108-
* 'title' => 'TEST section',
109-
* 'priority' => 1,
110-
* 'controls' => [
111-
* [
112-
* 'id' => 'date',
113-
* 'label' => 'Date',
114-
* 'type' => 'date',
115-
* 'selector' => '.copyright.date'
116-
* ],
117-
* [
118-
* 'id' => 'think_image',
119-
* 'label' => 'Image',
120-
* 'type' => 'image',
121-
* 'selector' => 'img.think-image'
122-
* ],
123-
* [
124-
* 'id' => 'select',
125-
* 'label' => 'Select',
126-
* 'type' => 'select',
127-
* 'choices' => [
128-
* 'inleft' => 'Left',
129-
* 'inright' => 'Right',
130-
* ],
131-
* 'selector' => '.banner-title'
132-
* ],
133-
* [
134-
* 'id' => 'color',
135-
* 'label' => 'Color',
136-
* 'type' => 'color',
137-
* 'selector' => '.think-color'
138-
* ],
139-
* [
140-
* 'id' => 'layout',
141-
* 'label' => 'Choice Layout',
142-
* 'type' => 'radio',
143-
* 'choices' => [
144-
* 0 => 'Without Sidebar',
145-
* 1 => 'With sidebar',
146-
* ],
147-
* 'selector' => '.sidebar',
148-
* ]
149-
* ]
150-
* ],
151-
*];
152-
* </code>.
153-
*
20+
* Structure of customizeable options
15421
*
15522
* @var array
15623
*/

customizer/custom-controls/class-think-customize-tinymce-control.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function render_content() {
4747

4848
/** Enqueue special assets */
4949
protected function enqueue_assets() {
50-
wp_enqueue_script( 'wp-editor-customizer', get_stylesheet_directory_uri() . '/inc/customizer/assets/js/customizer.tiny-mce.js', array( 'jquery' ), VERSION, true );
50+
wp_enqueue_script( 'wp-editor-customizer', get_stylesheet_directory_uri() . '/inc/customizer/assets/js/customizer.tiny-mce.js', array( 'jquery' ), THINK_FRAMEWORK_VERSION, true );
5151
}
5252
}
5353
}

0 commit comments

Comments
 (0)