1 | <?php |
||
23 | final class Pre_39 { |
||
24 | |||
25 | /** |
||
26 | * The single instance of the class |
||
27 | * |
||
28 | * @var object |
||
29 | * @since 3.0.0 |
||
30 | */ |
||
31 | protected static $_instance = null; |
||
32 | |||
33 | /** |
||
34 | * Return the single class instance |
||
35 | * |
||
36 | * @return object |
||
37 | * @since 3.0.0 |
||
38 | */ |
||
39 | public static function instance() { |
||
45 | |||
46 | /** |
||
47 | * Class constructor |
||
48 | * |
||
49 | * @uses is_admin() |
||
50 | * @uses add_action() |
||
51 | * |
||
52 | * @since 3.0.0 |
||
53 | */ |
||
54 | protected function __construct() { |
||
59 | |||
60 | /** |
||
61 | * Prevent the class from being cloned |
||
62 | * |
||
63 | * @return void |
||
64 | * @since 3.0.0 |
||
65 | */ |
||
66 | protected function __clone() { |
||
69 | |||
70 | /** |
||
71 | * Admin init |
||
72 | * |
||
73 | * @uses add_action() |
||
74 | * @uses remove_action() |
||
75 | * @uses add_filter() |
||
76 | * @uses get_bloginfo() |
||
77 | * |
||
78 | * @return void |
||
79 | * @since 3.0.0 |
||
80 | */ |
||
81 | public function admin_init() { |
||
96 | |||
97 | /** |
||
98 | * Filter to enqueue style / script |
||
99 | * |
||
100 | * @return string |
||
101 | * @since 3.0.0 |
||
102 | */ |
||
103 | public function handle() { |
||
106 | |||
107 | /** |
||
108 | * Filter for styles / scripts path |
||
109 | * |
||
110 | * @param string $path Path for styles / scripts. |
||
111 | * |
||
112 | * @return string |
||
113 | * @since 3.0.0 |
||
114 | */ |
||
115 | public function path( $path ) { |
||
118 | |||
119 | /** |
||
120 | * TinyMCE initialization |
||
121 | * |
||
122 | * @param mixed[] $settings Array of settings. |
||
123 | * @return mixed[] |
||
124 | * @since 3.0.0 |
||
125 | */ |
||
126 | public function tiny_mce_before_init( $settings ) { |
||
139 | |||
140 | /** |
||
141 | * Enqueue footer scripts |
||
142 | * |
||
143 | * @uses wp_editor() |
||
144 | * |
||
145 | * @return void |
||
146 | * @since 3.0.0 |
||
147 | */ |
||
148 | public function admin_print_footer_scripts() { |
||
153 | |||
154 | /** |
||
155 | * Output the visual editor code |
||
156 | * |
||
157 | * @uses esc_attr() |
||
158 | * @uses esc_textarea() |
||
159 | * @uses esc_html_e() |
||
160 | * @uses do_action() |
||
161 | * |
||
162 | * @param string $text Widget text. |
||
163 | * @param string $id Widget ID. |
||
164 | * @param string $name Widget name. |
||
165 | * @param string $type Widget type. |
||
166 | * @return void |
||
167 | * @since 3.0.0 |
||
168 | */ |
||
169 | public function editor( $text, $id, $name = '', $type = 'visual' ) { |
||
188 | |||
189 | } // END class |
||
190 | |||
192 |