@@ -6,39 +6,39 @@ |
||
6 | 6 | /** |
7 | 7 | * Bail if we are not in WP. |
8 | 8 | */ |
9 | -if ( ! defined( 'ABSPATH' ) ) { |
|
9 | +if (!defined('ABSPATH')) { |
|
10 | 10 | exit; |
11 | 11 | } |
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Set the version only if its the current newest while loading. |
15 | 15 | */ |
16 | -add_action('after_setup_theme', function () { |
|
17 | - global $ayecode_ui_version,$ayecode_ui_file_key; |
|
16 | +add_action('after_setup_theme', function() { |
|
17 | + global $ayecode_ui_version, $ayecode_ui_file_key; |
|
18 | 18 | $this_version = "0.1.43"; |
19 | - if(version_compare($this_version , $ayecode_ui_version, '>')){ |
|
20 | - $ayecode_ui_version = $this_version ; |
|
21 | - $ayecode_ui_file_key = wp_hash( __FILE__ ); |
|
19 | + if (version_compare($this_version, $ayecode_ui_version, '>')) { |
|
20 | + $ayecode_ui_version = $this_version; |
|
21 | + $ayecode_ui_file_key = wp_hash(__FILE__); |
|
22 | 22 | } |
23 | 23 | },0); |
24 | 24 | |
25 | 25 | /** |
26 | 26 | * Load this version of WP Bootstrap Settings only if the file hash is the current one. |
27 | 27 | */ |
28 | -add_action('after_setup_theme', function () { |
|
28 | +add_action('after_setup_theme', function() { |
|
29 | 29 | global $ayecode_ui_file_key; |
30 | - if($ayecode_ui_file_key && $ayecode_ui_file_key == wp_hash( __FILE__ )){ |
|
31 | - include_once( dirname( __FILE__ ) . '/includes/class-aui.php' ); |
|
32 | - include_once( dirname( __FILE__ ) . '/includes/ayecode-ui-settings.php' ); |
|
30 | + if ($ayecode_ui_file_key && $ayecode_ui_file_key == wp_hash(__FILE__)) { |
|
31 | + include_once(dirname(__FILE__) . '/includes/class-aui.php'); |
|
32 | + include_once(dirname(__FILE__) . '/includes/ayecode-ui-settings.php'); |
|
33 | 33 | } |
34 | 34 | },1); |
35 | 35 | |
36 | 36 | /** |
37 | 37 | * Add the function that calls the class. |
38 | 38 | */ |
39 | -if(!function_exists('aui')){ |
|
40 | - function aui(){ |
|
41 | - if(!class_exists("AUI",false)){ |
|
39 | +if (!function_exists('aui')) { |
|
40 | + function aui() { |
|
41 | + if (!class_exists("AUI", false)) { |
|
42 | 42 | return false; |
43 | 43 | } |
44 | 44 | return AUI::instance(); |
@@ -12,14 +12,14 @@ discard block |
||
12 | 12 | /** |
13 | 13 | * Bail if we are not in WP. |
14 | 14 | */ |
15 | -if ( ! defined( 'ABSPATH' ) ) { |
|
15 | +if (!defined('ABSPATH')) { |
|
16 | 16 | exit; |
17 | 17 | } |
18 | 18 | |
19 | 19 | /** |
20 | 20 | * Only add if the class does not already exist. |
21 | 21 | */ |
22 | -if ( ! class_exists( 'AyeCode_UI_Settings' ) ) { |
|
22 | +if (!class_exists('AyeCode_UI_Settings')) { |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * A Class to be able to change settings for Font Awesome. |
@@ -98,23 +98,23 @@ discard block |
||
98 | 98 | * @return AyeCode_UI_Settings - Main instance. |
99 | 99 | */ |
100 | 100 | public static function instance() { |
101 | - if ( ! isset( self::$instance ) && ! ( self::$instance instanceof AyeCode_UI_Settings ) ) { |
|
101 | + if (!isset(self::$instance) && !(self::$instance instanceof AyeCode_UI_Settings)) { |
|
102 | 102 | |
103 | 103 | self::$instance = new AyeCode_UI_Settings; |
104 | 104 | |
105 | - add_action( 'init', array( self::$instance, 'init' ) ); // set settings |
|
105 | + add_action('init', array(self::$instance, 'init')); // set settings |
|
106 | 106 | |
107 | - if ( is_admin() ) { |
|
108 | - add_action( 'admin_menu', array( self::$instance, 'menu_item' ) ); |
|
109 | - add_action( 'admin_init', array( self::$instance, 'register_settings' ) ); |
|
107 | + if (is_admin()) { |
|
108 | + add_action('admin_menu', array(self::$instance, 'menu_item')); |
|
109 | + add_action('admin_init', array(self::$instance, 'register_settings')); |
|
110 | 110 | |
111 | 111 | // Maybe show example page |
112 | - add_action( 'template_redirect', array( self::$instance,'maybe_show_examples' ) ); |
|
112 | + add_action('template_redirect', array(self::$instance, 'maybe_show_examples')); |
|
113 | 113 | } |
114 | 114 | |
115 | - add_action( 'customize_register', array( self::$instance, 'customizer_settings' )); |
|
115 | + add_action('customize_register', array(self::$instance, 'customizer_settings')); |
|
116 | 116 | |
117 | - do_action( 'ayecode_ui_settings_loaded' ); |
|
117 | + do_action('ayecode_ui_settings_loaded'); |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | return self::$instance; |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | /** |
124 | 124 | * Setup some constants. |
125 | 125 | */ |
126 | - public function constants(){ |
|
126 | + public function constants() { |
|
127 | 127 | define('AUI_PRIMARY_COLOR_ORIGINAL', "#1e73be"); |
128 | 128 | define('AUI_SECONDARY_COLOR_ORIGINAL', '#6c757d'); |
129 | 129 | if (!defined('AUI_PRIMARY_COLOR')) define('AUI_PRIMARY_COLOR', AUI_PRIMARY_COLOR_ORIGINAL); |
@@ -143,25 +143,25 @@ discard block |
||
143 | 143 | * |
144 | 144 | * We load super early in case there is a theme version that might change the colors |
145 | 145 | */ |
146 | - if ( $this->settings['css'] ) { |
|
147 | - add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_style' ), 1 ); |
|
146 | + if ($this->settings['css']) { |
|
147 | + add_action('wp_enqueue_scripts', array($this, 'enqueue_style'), 1); |
|
148 | 148 | } |
149 | - if ( $this->settings['css_backend'] && $this->load_admin_scripts() ) { |
|
150 | - add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_style' ), 1 ); |
|
149 | + if ($this->settings['css_backend'] && $this->load_admin_scripts()) { |
|
150 | + add_action('admin_enqueue_scripts', array($this, 'enqueue_style'), 1); |
|
151 | 151 | } |
152 | 152 | |
153 | 153 | // maybe load JS |
154 | - if ( $this->settings['js'] ) { |
|
154 | + if ($this->settings['js']) { |
|
155 | 155 | $priority = $this->is_bs3_compat() ? 100 : 1; |
156 | - add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ), $priority ); |
|
156 | + add_action('wp_enqueue_scripts', array($this, 'enqueue_scripts'), $priority); |
|
157 | 157 | } |
158 | - if ( $this->settings['js_backend'] && $this->load_admin_scripts() ) { |
|
159 | - add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ), 1 ); |
|
158 | + if ($this->settings['js_backend'] && $this->load_admin_scripts()) { |
|
159 | + add_action('admin_enqueue_scripts', array($this, 'enqueue_scripts'), 1); |
|
160 | 160 | } |
161 | 161 | |
162 | 162 | // Maybe set the HTML font size |
163 | - if ( $this->settings['html_font_size'] ) { |
|
164 | - add_action( 'wp_footer', array( $this, 'html_font_size' ), 10 ); |
|
163 | + if ($this->settings['html_font_size']) { |
|
164 | + add_action('wp_footer', array($this, 'html_font_size'), 10); |
|
165 | 165 | } |
166 | 166 | |
167 | 167 | |
@@ -172,14 +172,14 @@ discard block |
||
172 | 172 | * |
173 | 173 | * @return bool |
174 | 174 | */ |
175 | - public function load_admin_scripts(){ |
|
175 | + public function load_admin_scripts() { |
|
176 | 176 | $result = true; |
177 | 177 | |
178 | 178 | // check if specifically disabled |
179 | - if(!empty($this->settings['disable_admin'])){ |
|
180 | - $url_parts = explode("\n",$this->settings['disable_admin']); |
|
181 | - foreach($url_parts as $part){ |
|
182 | - if( strpos($_SERVER['REQUEST_URI'], trim($part)) !== false ){ |
|
179 | + if (!empty($this->settings['disable_admin'])) { |
|
180 | + $url_parts = explode("\n", $this->settings['disable_admin']); |
|
181 | + foreach ($url_parts as $part) { |
|
182 | + if (strpos($_SERVER['REQUEST_URI'], trim($part)) !== false) { |
|
183 | 183 | return false; // return early, no point checking further |
184 | 184 | } |
185 | 185 | } |
@@ -191,9 +191,9 @@ discard block |
||
191 | 191 | /** |
192 | 192 | * Add a html font size to the footer. |
193 | 193 | */ |
194 | - public function html_font_size(){ |
|
194 | + public function html_font_size() { |
|
195 | 195 | $this->settings = $this->get_settings(); |
196 | - echo "<style>html{font-size:".absint($this->settings['html_font_size'])."px;}</style>"; |
|
196 | + echo "<style>html{font-size:" . absint($this->settings['html_font_size']) . "px;}</style>"; |
|
197 | 197 | } |
198 | 198 | |
199 | 199 | /** |
@@ -201,23 +201,23 @@ discard block |
||
201 | 201 | * |
202 | 202 | * @return bool |
203 | 203 | */ |
204 | - public function is_aui_screen(){ |
|
204 | + public function is_aui_screen() { |
|
205 | 205 | $load = false; |
206 | 206 | // check if we should load or not |
207 | - if ( is_admin() ) { |
|
207 | + if (is_admin()) { |
|
208 | 208 | // Only enable on set pages |
209 | 209 | $aui_screens = array( |
210 | 210 | 'page', |
211 | 211 | 'post', |
212 | 212 | 'settings_page_ayecode-ui-settings' |
213 | 213 | ); |
214 | - $screen_ids = apply_filters( 'aui_screen_ids', $aui_screens ); |
|
214 | + $screen_ids = apply_filters('aui_screen_ids', $aui_screens); |
|
215 | 215 | |
216 | 216 | $screen = get_current_screen(); |
217 | 217 | |
218 | 218 | // echo '###'.$screen->id; |
219 | 219 | |
220 | - if ( $screen && in_array( $screen->id, $screen_ids ) ) { |
|
220 | + if ($screen && in_array($screen->id, $screen_ids)) { |
|
221 | 221 | $load = true; |
222 | 222 | } |
223 | 223 | } |
@@ -230,25 +230,25 @@ discard block |
||
230 | 230 | */ |
231 | 231 | public function enqueue_style() { |
232 | 232 | |
233 | - if( is_admin() && !$this->is_aui_screen()){ |
|
233 | + if (is_admin() && !$this->is_aui_screen()) { |
|
234 | 234 | // don't add wp-admin scripts if not requested to |
235 | - }else{ |
|
235 | + } else { |
|
236 | 236 | $css_setting = current_action() == 'wp_enqueue_scripts' ? 'css' : 'css_backend'; |
237 | 237 | |
238 | 238 | $rtl = is_rtl() ? '-rtl' : ''; |
239 | 239 | |
240 | - if($this->settings[$css_setting]){ |
|
241 | - $compatibility = $this->settings[$css_setting]=='core' ? false : true; |
|
242 | - $url = $this->settings[$css_setting]=='core' ? $this->url.'assets/css/ayecode-ui'.$rtl.'.css' : $this->url.'assets/css/ayecode-ui-compatibility'.$rtl.'.css'; |
|
243 | - wp_register_style( 'ayecode-ui', $url, array(), $this->latest ); |
|
244 | - wp_enqueue_style( 'ayecode-ui' ); |
|
240 | + if ($this->settings[$css_setting]) { |
|
241 | + $compatibility = $this->settings[$css_setting] == 'core' ? false : true; |
|
242 | + $url = $this->settings[$css_setting] == 'core' ? $this->url . 'assets/css/ayecode-ui' . $rtl . '.css' : $this->url . 'assets/css/ayecode-ui-compatibility' . $rtl . '.css'; |
|
243 | + wp_register_style('ayecode-ui', $url, array(), $this->latest); |
|
244 | + wp_enqueue_style('ayecode-ui'); |
|
245 | 245 | |
246 | 246 | // flatpickr |
247 | - wp_register_style( 'flatpickr', $this->url.'assets/css/flatpickr.min.css', array(), $this->latest ); |
|
247 | + wp_register_style('flatpickr', $this->url . 'assets/css/flatpickr.min.css', array(), $this->latest); |
|
248 | 248 | |
249 | 249 | |
250 | 250 | // fix some wp-admin issues |
251 | - if(is_admin()){ |
|
251 | + if (is_admin()) { |
|
252 | 252 | $custom_css = " |
253 | 253 | body{ |
254 | 254 | background-color: #f1f1f1; |
@@ -291,11 +291,11 @@ discard block |
||
291 | 291 | padding: 0; |
292 | 292 | } |
293 | 293 | "; |
294 | - wp_add_inline_style( 'ayecode-ui', $custom_css ); |
|
294 | + wp_add_inline_style('ayecode-ui', $custom_css); |
|
295 | 295 | } |
296 | 296 | |
297 | 297 | // custom changes |
298 | - wp_add_inline_style( 'ayecode-ui', self::custom_css($compatibility) ); |
|
298 | + wp_add_inline_style('ayecode-ui', self::custom_css($compatibility)); |
|
299 | 299 | |
300 | 300 | } |
301 | 301 | } |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | * |
309 | 309 | * If this remains small then its best to use this than to add another JS file. |
310 | 310 | */ |
311 | - public function inline_script(){ |
|
311 | + public function inline_script() { |
|
312 | 312 | ob_start(); |
313 | 313 | ?> |
314 | 314 | <script> |
@@ -807,10 +807,10 @@ discard block |
||
807 | 807 | /* |
808 | 808 | * We only add the <script> tags for code highlighting, so we strip them from the output. |
809 | 809 | */ |
810 | - return str_replace( array( |
|
810 | + return str_replace(array( |
|
811 | 811 | '<script>', |
812 | 812 | '</script>' |
813 | - ), '', $output ); |
|
813 | + ), '', $output); |
|
814 | 814 | } |
815 | 815 | |
816 | 816 | |
@@ -824,13 +824,13 @@ discard block |
||
824 | 824 | ob_start(); |
825 | 825 | ?> |
826 | 826 | <script> |
827 | - <?php if( defined( 'FUSION_BUILDER_VERSION' ) ){ ?> |
|
827 | + <?php if (defined('FUSION_BUILDER_VERSION')) { ?> |
|
828 | 828 | /* With Avada builder */ |
829 | 829 | |
830 | 830 | <?php } ?> |
831 | 831 | </script> |
832 | 832 | <?php |
833 | - return str_replace( array( |
|
833 | + return str_replace(array( |
|
834 | 834 | '<script>', |
835 | 835 | '</script>' |
836 | 836 | ), '', ob_get_clean()); |
@@ -841,7 +841,7 @@ discard block |
||
841 | 841 | * |
842 | 842 | * If this remains small then its best to use this than to add another JS file. |
843 | 843 | */ |
844 | - public function inline_script_file_browser(){ |
|
844 | + public function inline_script_file_browser() { |
|
845 | 845 | ob_start(); |
846 | 846 | ?> |
847 | 847 | <script> |
@@ -856,10 +856,10 @@ discard block |
||
856 | 856 | /* |
857 | 857 | * We only add the <script> tags for code highlighting, so we strip them from the output. |
858 | 858 | */ |
859 | - return str_replace( array( |
|
859 | + return str_replace(array( |
|
860 | 860 | '<script>', |
861 | 861 | '</script>' |
862 | - ), '', $output ); |
|
862 | + ), '', $output); |
|
863 | 863 | } |
864 | 864 | |
865 | 865 | /** |
@@ -867,50 +867,50 @@ discard block |
||
867 | 867 | */ |
868 | 868 | public function enqueue_scripts() { |
869 | 869 | |
870 | - if( is_admin() && !$this->is_aui_screen()){ |
|
870 | + if (is_admin() && !$this->is_aui_screen()) { |
|
871 | 871 | // don't add wp-admin scripts if not requested to |
872 | - }else { |
|
872 | + } else { |
|
873 | 873 | |
874 | 874 | $js_setting = current_action() == 'wp_enqueue_scripts' ? 'js' : 'js_backend'; |
875 | 875 | |
876 | 876 | // select2 |
877 | - wp_register_script( 'select2', $this->url . 'assets/js/select2.min.js', array( 'jquery' ), $this->select2_version ); |
|
877 | + wp_register_script('select2', $this->url . 'assets/js/select2.min.js', array('jquery'), $this->select2_version); |
|
878 | 878 | |
879 | 879 | // flatpickr |
880 | - wp_register_script( 'flatpickr', $this->url . 'assets/js/flatpickr.min.js', array(), $this->latest ); |
|
880 | + wp_register_script('flatpickr', $this->url . 'assets/js/flatpickr.min.js', array(), $this->latest); |
|
881 | 881 | |
882 | 882 | // Bootstrap file browser |
883 | - wp_register_script( 'aui-custom-file-input', $url = $this->url . 'assets/js/bs-custom-file-input.min.js', array( 'jquery' ), $this->select2_version ); |
|
884 | - wp_add_inline_script( 'aui-custom-file-input', $this->inline_script_file_browser() ); |
|
883 | + wp_register_script('aui-custom-file-input', $url = $this->url . 'assets/js/bs-custom-file-input.min.js', array('jquery'), $this->select2_version); |
|
884 | + wp_add_inline_script('aui-custom-file-input', $this->inline_script_file_browser()); |
|
885 | 885 | |
886 | 886 | $load_inline = false; |
887 | 887 | |
888 | - if ( $this->settings[ $js_setting ] == 'core-popper' ) { |
|
888 | + if ($this->settings[$js_setting] == 'core-popper') { |
|
889 | 889 | // Bootstrap bundle |
890 | 890 | $url = $this->url . 'assets/js/bootstrap.bundle.min.js'; |
891 | - wp_register_script( 'bootstrap-js-bundle', $url, array( |
|
891 | + wp_register_script('bootstrap-js-bundle', $url, array( |
|
892 | 892 | 'select2', |
893 | 893 | 'jquery' |
894 | - ), $this->latest, $this->is_bs3_compat() ); |
|
894 | + ), $this->latest, $this->is_bs3_compat()); |
|
895 | 895 | // if in admin then add to footer for compatibility. |
896 | - is_admin() ? wp_enqueue_script( 'bootstrap-js-bundle', '', null, null, true ) : wp_enqueue_script( 'bootstrap-js-bundle' ); |
|
896 | + is_admin() ? wp_enqueue_script('bootstrap-js-bundle', '', null, null, true) : wp_enqueue_script('bootstrap-js-bundle'); |
|
897 | 897 | $script = $this->inline_script(); |
898 | - wp_add_inline_script( 'bootstrap-js-bundle', $script ); |
|
899 | - } elseif ( $this->settings[ $js_setting ] == 'popper' ) { |
|
898 | + wp_add_inline_script('bootstrap-js-bundle', $script); |
|
899 | + } elseif ($this->settings[$js_setting] == 'popper') { |
|
900 | 900 | $url = $this->url . 'assets/js/popper.min.js'; |
901 | - wp_register_script( 'bootstrap-js-popper', $url, array( 'select2', 'jquery' ), $this->latest ); |
|
902 | - wp_enqueue_script( 'bootstrap-js-popper' ); |
|
901 | + wp_register_script('bootstrap-js-popper', $url, array('select2', 'jquery'), $this->latest); |
|
902 | + wp_enqueue_script('bootstrap-js-popper'); |
|
903 | 903 | $load_inline = true; |
904 | 904 | } else { |
905 | 905 | $load_inline = true; |
906 | 906 | } |
907 | 907 | |
908 | 908 | // Load needed inline scripts by faking the loading of a script if the main script is not being loaded |
909 | - if ( $load_inline ) { |
|
910 | - wp_register_script( 'bootstrap-dummy', '', array( 'select2', 'jquery' ) ); |
|
911 | - wp_enqueue_script( 'bootstrap-dummy' ); |
|
909 | + if ($load_inline) { |
|
910 | + wp_register_script('bootstrap-dummy', '', array('select2', 'jquery')); |
|
911 | + wp_enqueue_script('bootstrap-dummy'); |
|
912 | 912 | $script = $this->inline_script(); |
913 | - wp_add_inline_script( 'bootstrap-dummy', $script ); |
|
913 | + wp_add_inline_script('bootstrap-dummy', $script); |
|
914 | 914 | } |
915 | 915 | } |
916 | 916 | |
@@ -919,9 +919,9 @@ discard block |
||
919 | 919 | /** |
920 | 920 | * Enqueue flatpickr if called. |
921 | 921 | */ |
922 | - public function enqueue_flatpickr(){ |
|
923 | - wp_enqueue_style( 'flatpickr' ); |
|
924 | - wp_enqueue_script( 'flatpickr' ); |
|
922 | + public function enqueue_flatpickr() { |
|
923 | + wp_enqueue_style('flatpickr'); |
|
924 | + wp_enqueue_script('flatpickr'); |
|
925 | 925 | } |
926 | 926 | |
927 | 927 | /** |
@@ -933,15 +933,15 @@ discard block |
||
933 | 933 | |
934 | 934 | $url = ''; |
935 | 935 | // check if we are inside a plugin |
936 | - $file_dir = str_replace( "/includes","", wp_normalize_path( dirname( __FILE__ ) ) ); |
|
936 | + $file_dir = str_replace("/includes", "", wp_normalize_path(dirname(__FILE__))); |
|
937 | 937 | |
938 | 938 | // add check in-case user has changed wp-content dir name. |
939 | 939 | $wp_content_folder_name = basename(WP_CONTENT_DIR); |
940 | - $dir_parts = explode("/$wp_content_folder_name/",$file_dir); |
|
941 | - $url_parts = explode("/$wp_content_folder_name/",plugins_url()); |
|
940 | + $dir_parts = explode("/$wp_content_folder_name/", $file_dir); |
|
941 | + $url_parts = explode("/$wp_content_folder_name/", plugins_url()); |
|
942 | 942 | |
943 | - if(!empty($url_parts[0]) && !empty($dir_parts[1])){ |
|
944 | - $url = trailingslashit( $url_parts[0]."/$wp_content_folder_name/".$dir_parts[1] ); |
|
943 | + if (!empty($url_parts[0]) && !empty($dir_parts[1])) { |
|
944 | + $url = trailingslashit($url_parts[0] . "/$wp_content_folder_name/" . $dir_parts[1]); |
|
945 | 945 | } |
946 | 946 | |
947 | 947 | return $url; |
@@ -951,7 +951,7 @@ discard block |
||
951 | 951 | * Register the database settings with WordPress. |
952 | 952 | */ |
953 | 953 | public function register_settings() { |
954 | - register_setting( 'ayecode-ui-settings', 'ayecode-ui-settings' ); |
|
954 | + register_setting('ayecode-ui-settings', 'ayecode-ui-settings'); |
|
955 | 955 | } |
956 | 956 | |
957 | 957 | /** |
@@ -960,10 +960,10 @@ discard block |
||
960 | 960 | */ |
961 | 961 | public function menu_item() { |
962 | 962 | $menu_function = 'add' . '_' . 'options' . '_' . 'page'; // won't pass theme check if function name present in theme |
963 | - call_user_func( $menu_function, $this->name, $this->name, 'manage_options', 'ayecode-ui-settings', array( |
|
963 | + call_user_func($menu_function, $this->name, $this->name, 'manage_options', 'ayecode-ui-settings', array( |
|
964 | 964 | $this, |
965 | 965 | 'settings_page' |
966 | - ) ); |
|
966 | + )); |
|
967 | 967 | } |
968 | 968 | |
969 | 969 | /** |
@@ -971,7 +971,7 @@ discard block |
||
971 | 971 | * |
972 | 972 | * @return array |
973 | 973 | */ |
974 | - public function theme_js_settings(){ |
|
974 | + public function theme_js_settings() { |
|
975 | 975 | return array( |
976 | 976 | 'ayetheme' => 'popper', |
977 | 977 | 'listimia' => 'required', |
@@ -987,17 +987,17 @@ discard block |
||
987 | 987 | */ |
988 | 988 | public function get_settings() { |
989 | 989 | |
990 | - $db_settings = get_option( 'ayecode-ui-settings' ); |
|
990 | + $db_settings = get_option('ayecode-ui-settings'); |
|
991 | 991 | $js_default = 'core-popper'; |
992 | 992 | $js_default_backend = $js_default; |
993 | 993 | |
994 | 994 | // maybe set defaults (if no settings set) |
995 | - if(empty($db_settings)){ |
|
996 | - $active_theme = strtolower( get_template() ); // active parent theme. |
|
995 | + if (empty($db_settings)) { |
|
996 | + $active_theme = strtolower(get_template()); // active parent theme. |
|
997 | 997 | $theme_js_settings = self::theme_js_settings(); |
998 | - if(isset($theme_js_settings[$active_theme])){ |
|
998 | + if (isset($theme_js_settings[$active_theme])) { |
|
999 | 999 | $js_default = $theme_js_settings[$active_theme]; |
1000 | - $js_default_backend = isset($theme_js_settings[$active_theme."_backend"]) ? $theme_js_settings[$active_theme."_backend"] : $js_default; |
|
1000 | + $js_default_backend = isset($theme_js_settings[$active_theme . "_backend"]) ? $theme_js_settings[$active_theme . "_backend"] : $js_default; |
|
1001 | 1001 | } |
1002 | 1002 | } |
1003 | 1003 | |
@@ -1010,14 +1010,14 @@ discard block |
||
1010 | 1010 | 'disable_admin' => '', // URL snippets to disable loading on admin |
1011 | 1011 | ); |
1012 | 1012 | |
1013 | - $settings = wp_parse_args( $db_settings, $defaults ); |
|
1013 | + $settings = wp_parse_args($db_settings, $defaults); |
|
1014 | 1014 | |
1015 | 1015 | /** |
1016 | 1016 | * Filter the Bootstrap settings. |
1017 | 1017 | * |
1018 | 1018 | * @todo if we add this filer people might use it and then it defeates the purpose of this class :/ |
1019 | 1019 | */ |
1020 | - return $this->settings = apply_filters( 'ayecode-ui-settings', $settings, $db_settings, $defaults ); |
|
1020 | + return $this->settings = apply_filters('ayecode-ui-settings', $settings, $db_settings, $defaults); |
|
1021 | 1021 | } |
1022 | 1022 | |
1023 | 1023 | |
@@ -1025,90 +1025,90 @@ discard block |
||
1025 | 1025 | * The settings page html output. |
1026 | 1026 | */ |
1027 | 1027 | public function settings_page() { |
1028 | - if ( ! current_user_can( 'manage_options' ) ) { |
|
1029 | - wp_die( __( 'You do not have sufficient permissions to access this page.', 'aui' ) ); |
|
1028 | + if (!current_user_can('manage_options')) { |
|
1029 | + wp_die(__('You do not have sufficient permissions to access this page.', 'aui')); |
|
1030 | 1030 | } |
1031 | 1031 | ?> |
1032 | 1032 | <div class="wrap"> |
1033 | 1033 | <h1><?php echo $this->name; ?></h1> |
1034 | - <p><?php _e("Here you can adjust settings if you are having compatibility issues.","aui");?></p> |
|
1034 | + <p><?php _e("Here you can adjust settings if you are having compatibility issues.", "aui"); ?></p> |
|
1035 | 1035 | <form method="post" action="options.php"> |
1036 | 1036 | <?php |
1037 | - settings_fields( 'ayecode-ui-settings' ); |
|
1038 | - do_settings_sections( 'ayecode-ui-settings' ); |
|
1037 | + settings_fields('ayecode-ui-settings'); |
|
1038 | + do_settings_sections('ayecode-ui-settings'); |
|
1039 | 1039 | ?> |
1040 | 1040 | |
1041 | - <h2><?php _e( 'Frontend', 'aui' ); ?></h2> |
|
1041 | + <h2><?php _e('Frontend', 'aui'); ?></h2> |
|
1042 | 1042 | <table class="form-table wpbs-table-settings"> |
1043 | 1043 | <tr valign="top"> |
1044 | 1044 | <th scope="row"><label |
1045 | - for="wpbs-css"><?php _e( 'Load CSS', 'aui' ); ?></label></th> |
|
1045 | + for="wpbs-css"><?php _e('Load CSS', 'aui'); ?></label></th> |
|
1046 | 1046 | <td> |
1047 | 1047 | <select name="ayecode-ui-settings[css]" id="wpbs-css"> |
1048 | - <option value="compatibility" <?php selected( $this->settings['css'], 'compatibility' ); ?>><?php _e( 'Compatibility Mode (default)', 'aui' ); ?></option> |
|
1049 | - <option value="core" <?php selected( $this->settings['css'], 'core' ); ?>><?php _e( 'Full Mode', 'aui' ); ?></option> |
|
1050 | - <option value="" <?php selected( $this->settings['css'], '' ); ?>><?php _e( 'Disabled', 'aui' ); ?></option> |
|
1048 | + <option value="compatibility" <?php selected($this->settings['css'], 'compatibility'); ?>><?php _e('Compatibility Mode (default)', 'aui'); ?></option> |
|
1049 | + <option value="core" <?php selected($this->settings['css'], 'core'); ?>><?php _e('Full Mode', 'aui'); ?></option> |
|
1050 | + <option value="" <?php selected($this->settings['css'], ''); ?>><?php _e('Disabled', 'aui'); ?></option> |
|
1051 | 1051 | </select> |
1052 | 1052 | </td> |
1053 | 1053 | </tr> |
1054 | 1054 | |
1055 | 1055 | <tr valign="top"> |
1056 | 1056 | <th scope="row"><label |
1057 | - for="wpbs-js"><?php _e( 'Load JS', 'aui' ); ?></label></th> |
|
1057 | + for="wpbs-js"><?php _e('Load JS', 'aui'); ?></label></th> |
|
1058 | 1058 | <td> |
1059 | 1059 | <select name="ayecode-ui-settings[js]" id="wpbs-js"> |
1060 | - <option value="core-popper" <?php selected( $this->settings['js'], 'core-popper' ); ?>><?php _e( 'Core + Popper (default)', 'aui' ); ?></option> |
|
1061 | - <option value="popper" <?php selected( $this->settings['js'], 'popper' ); ?>><?php _e( 'Popper', 'aui' ); ?></option> |
|
1062 | - <option value="required" <?php selected( $this->settings['js'], 'required' ); ?>><?php _e( 'Required functions only', 'aui' ); ?></option> |
|
1063 | - <option value="" <?php selected( $this->settings['js'], '' ); ?>><?php _e( 'Disabled (not recommended)', 'aui' ); ?></option> |
|
1060 | + <option value="core-popper" <?php selected($this->settings['js'], 'core-popper'); ?>><?php _e('Core + Popper (default)', 'aui'); ?></option> |
|
1061 | + <option value="popper" <?php selected($this->settings['js'], 'popper'); ?>><?php _e('Popper', 'aui'); ?></option> |
|
1062 | + <option value="required" <?php selected($this->settings['js'], 'required'); ?>><?php _e('Required functions only', 'aui'); ?></option> |
|
1063 | + <option value="" <?php selected($this->settings['js'], ''); ?>><?php _e('Disabled (not recommended)', 'aui'); ?></option> |
|
1064 | 1064 | </select> |
1065 | 1065 | </td> |
1066 | 1066 | </tr> |
1067 | 1067 | |
1068 | 1068 | <tr valign="top"> |
1069 | 1069 | <th scope="row"><label |
1070 | - for="wpbs-font_size"><?php _e( 'HTML Font Size (px)', 'aui' ); ?></label></th> |
|
1070 | + for="wpbs-font_size"><?php _e('HTML Font Size (px)', 'aui'); ?></label></th> |
|
1071 | 1071 | <td> |
1072 | - <input type="number" name="ayecode-ui-settings[html_font_size]" id="wpbs-font_size" value="<?php echo absint( $this->settings['html_font_size']); ?>" placeholder="16" /> |
|
1073 | - <p class="description" ><?php _e("Our font sizing is rem (responsive based) here you can set the html font size in-case your theme is setting it too low.","aui");?></p> |
|
1072 | + <input type="number" name="ayecode-ui-settings[html_font_size]" id="wpbs-font_size" value="<?php echo absint($this->settings['html_font_size']); ?>" placeholder="16" /> |
|
1073 | + <p class="description" ><?php _e("Our font sizing is rem (responsive based) here you can set the html font size in-case your theme is setting it too low.", "aui"); ?></p> |
|
1074 | 1074 | </td> |
1075 | 1075 | </tr> |
1076 | 1076 | |
1077 | 1077 | </table> |
1078 | 1078 | |
1079 | - <h2><?php _e( 'Backend', 'aui' ); ?> (wp-admin)</h2> |
|
1079 | + <h2><?php _e('Backend', 'aui'); ?> (wp-admin)</h2> |
|
1080 | 1080 | <table class="form-table wpbs-table-settings"> |
1081 | 1081 | <tr valign="top"> |
1082 | 1082 | <th scope="row"><label |
1083 | - for="wpbs-css-admin"><?php _e( 'Load CSS', 'aui' ); ?></label></th> |
|
1083 | + for="wpbs-css-admin"><?php _e('Load CSS', 'aui'); ?></label></th> |
|
1084 | 1084 | <td> |
1085 | 1085 | <select name="ayecode-ui-settings[css_backend]" id="wpbs-css-admin"> |
1086 | - <option value="compatibility" <?php selected( $this->settings['css_backend'], 'compatibility' ); ?>><?php _e( 'Compatibility Mode (default)', 'aui' ); ?></option> |
|
1087 | - <option value="core" <?php selected( $this->settings['css_backend'], 'core' ); ?>><?php _e( 'Full Mode (will cause style issues)', 'aui' ); ?></option> |
|
1088 | - <option value="" <?php selected( $this->settings['css_backend'], '' ); ?>><?php _e( 'Disabled', 'aui' ); ?></option> |
|
1086 | + <option value="compatibility" <?php selected($this->settings['css_backend'], 'compatibility'); ?>><?php _e('Compatibility Mode (default)', 'aui'); ?></option> |
|
1087 | + <option value="core" <?php selected($this->settings['css_backend'], 'core'); ?>><?php _e('Full Mode (will cause style issues)', 'aui'); ?></option> |
|
1088 | + <option value="" <?php selected($this->settings['css_backend'], ''); ?>><?php _e('Disabled', 'aui'); ?></option> |
|
1089 | 1089 | </select> |
1090 | 1090 | </td> |
1091 | 1091 | </tr> |
1092 | 1092 | |
1093 | 1093 | <tr valign="top"> |
1094 | 1094 | <th scope="row"><label |
1095 | - for="wpbs-js-admin"><?php _e( 'Load JS', 'aui' ); ?></label></th> |
|
1095 | + for="wpbs-js-admin"><?php _e('Load JS', 'aui'); ?></label></th> |
|
1096 | 1096 | <td> |
1097 | 1097 | <select name="ayecode-ui-settings[js_backend]" id="wpbs-js-admin"> |
1098 | - <option value="core-popper" <?php selected( $this->settings['js_backend'], 'core-popper' ); ?>><?php _e( 'Core + Popper (default)', 'aui' ); ?></option> |
|
1099 | - <option value="popper" <?php selected( $this->settings['js_backend'], 'popper' ); ?>><?php _e( 'Popper', 'aui' ); ?></option> |
|
1100 | - <option value="required" <?php selected( $this->settings['js_backend'], 'required' ); ?>><?php _e( 'Required functions only', 'aui' ); ?></option> |
|
1101 | - <option value="" <?php selected( $this->settings['js_backend'], '' ); ?>><?php _e( 'Disabled (not recommended)', 'aui' ); ?></option> |
|
1098 | + <option value="core-popper" <?php selected($this->settings['js_backend'], 'core-popper'); ?>><?php _e('Core + Popper (default)', 'aui'); ?></option> |
|
1099 | + <option value="popper" <?php selected($this->settings['js_backend'], 'popper'); ?>><?php _e('Popper', 'aui'); ?></option> |
|
1100 | + <option value="required" <?php selected($this->settings['js_backend'], 'required'); ?>><?php _e('Required functions only', 'aui'); ?></option> |
|
1101 | + <option value="" <?php selected($this->settings['js_backend'], ''); ?>><?php _e('Disabled (not recommended)', 'aui'); ?></option> |
|
1102 | 1102 | </select> |
1103 | 1103 | </td> |
1104 | 1104 | </tr> |
1105 | 1105 | |
1106 | 1106 | <tr valign="top"> |
1107 | 1107 | <th scope="row"><label |
1108 | - for="wpbs-disable-admin"><?php _e( 'Disable load on URL', 'aui' ); ?></label></th> |
|
1108 | + for="wpbs-disable-admin"><?php _e('Disable load on URL', 'aui'); ?></label></th> |
|
1109 | 1109 | <td> |
1110 | - <p><?php _e( 'If you have backend conflict you can enter a partial URL argument that will disable the loading of AUI on those pages. Add each argument on a new line.', 'aui' ); ?></p> |
|
1111 | - <textarea name="ayecode-ui-settings[disable_admin]" rows="10" cols="50" id="wpbs-disable-admin" class="large-text code" spellcheck="false" placeholder="myplugin.php action=go"><?php echo $this->settings['disable_admin'];?></textarea> |
|
1110 | + <p><?php _e('If you have backend conflict you can enter a partial URL argument that will disable the loading of AUI on those pages. Add each argument on a new line.', 'aui'); ?></p> |
|
1111 | + <textarea name="ayecode-ui-settings[disable_admin]" rows="10" cols="50" id="wpbs-disable-admin" class="large-text code" spellcheck="false" placeholder="myplugin.php action=go"><?php echo $this->settings['disable_admin']; ?></textarea> |
|
1112 | 1112 | |
1113 | 1113 | </td> |
1114 | 1114 | </tr> |
@@ -1126,9 +1126,9 @@ discard block |
||
1126 | 1126 | <?php |
1127 | 1127 | } |
1128 | 1128 | |
1129 | - public function customizer_settings($wp_customize){ |
|
1129 | + public function customizer_settings($wp_customize) { |
|
1130 | 1130 | $wp_customize->add_section('aui_settings', array( |
1131 | - 'title' => __('AyeCode UI','aui'), |
|
1131 | + 'title' => __('AyeCode UI', 'aui'), |
|
1132 | 1132 | 'priority' => 120, |
1133 | 1133 | )); |
1134 | 1134 | |
@@ -1142,8 +1142,8 @@ discard block |
||
1142 | 1142 | 'type' => 'option', |
1143 | 1143 | 'transport' => 'refresh', |
1144 | 1144 | )); |
1145 | - $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'color_primary', array( |
|
1146 | - 'label' => __('Primary Color','aui'), |
|
1145 | + $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'color_primary', array( |
|
1146 | + 'label' => __('Primary Color', 'aui'), |
|
1147 | 1147 | 'section' => 'aui_settings', |
1148 | 1148 | 'settings' => 'aui_options[color_primary]', |
1149 | 1149 | ))); |
@@ -1155,8 +1155,8 @@ discard block |
||
1155 | 1155 | 'type' => 'option', |
1156 | 1156 | 'transport' => 'refresh', |
1157 | 1157 | )); |
1158 | - $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'color_secondary', array( |
|
1159 | - 'label' => __('Secondary Color','aui'), |
|
1158 | + $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'color_secondary', array( |
|
1159 | + 'label' => __('Secondary Color', 'aui'), |
|
1160 | 1160 | 'section' => 'aui_settings', |
1161 | 1161 | 'settings' => 'aui_options[color_secondary]', |
1162 | 1162 | ))); |
@@ -1182,12 +1182,12 @@ discard block |
||
1182 | 1182 | .collapse.show:not(.in){display: inherit;} |
1183 | 1183 | .fade.show{opacity: 1;} |
1184 | 1184 | |
1185 | - <?php if( defined( 'SVQ_THEME_VERSION' ) ){ ?> |
|
1185 | + <?php if (defined('SVQ_THEME_VERSION')) { ?> |
|
1186 | 1186 | /* KLEO theme specific */ |
1187 | 1187 | .kleo-main-header .navbar-collapse.collapse.show:not(.in){display: inherit !important;} |
1188 | 1188 | <?php } ?> |
1189 | 1189 | |
1190 | - <?php if( defined( 'FUSION_BUILDER_VERSION' ) ){ ?> |
|
1190 | + <?php if (defined('FUSION_BUILDER_VERSION')) { ?> |
|
1191 | 1191 | /* With Avada builder */ |
1192 | 1192 | body.modal-open .modal.in {opacity:1;z-index: 99999} |
1193 | 1193 | body.modal-open .modal.bsui.in .modal-content {box-shadow: none;} |
@@ -1195,7 +1195,7 @@ discard block |
||
1195 | 1195 | <?php } ?> |
1196 | 1196 | </style> |
1197 | 1197 | <?php |
1198 | - return str_replace( array( |
|
1198 | + return str_replace(array( |
|
1199 | 1199 | '<style>', |
1200 | 1200 | '</style>' |
1201 | 1201 | ), '', ob_get_clean()); |
@@ -1215,16 +1215,16 @@ discard block |
||
1215 | 1215 | <?php |
1216 | 1216 | |
1217 | 1217 | // BS v3 compat |
1218 | - if( self::is_bs3_compat() ){ |
|
1218 | + if (self::is_bs3_compat()) { |
|
1219 | 1219 | echo self::bs3_compat_css(); |
1220 | 1220 | } |
1221 | 1221 | |
1222 | - if(!is_admin() && $primary_color != AUI_PRIMARY_COLOR_ORIGINAL){ |
|
1223 | - echo self::css_primary($primary_color,$compatibility); |
|
1222 | + if (!is_admin() && $primary_color != AUI_PRIMARY_COLOR_ORIGINAL) { |
|
1223 | + echo self::css_primary($primary_color, $compatibility); |
|
1224 | 1224 | } |
1225 | 1225 | |
1226 | - if(!is_admin() && $secondary_color != AUI_SECONDARY_COLOR_ORIGINAL){ |
|
1227 | - echo self::css_secondary($settings['color_secondary'],$compatibility); |
|
1226 | + if (!is_admin() && $secondary_color != AUI_SECONDARY_COLOR_ORIGINAL) { |
|
1227 | + echo self::css_secondary($settings['color_secondary'], $compatibility); |
|
1228 | 1228 | } |
1229 | 1229 | |
1230 | 1230 | // Set admin bar z-index lower when modal is open. |
@@ -1237,7 +1237,7 @@ discard block |
||
1237 | 1237 | /* |
1238 | 1238 | * We only add the <script> tags for code highlighting, so we strip them from the output. |
1239 | 1239 | */ |
1240 | - return str_replace( array( |
|
1240 | + return str_replace(array( |
|
1241 | 1241 | '<style>', |
1242 | 1242 | '</style>' |
1243 | 1243 | ), '', ob_get_clean()); |
@@ -1248,48 +1248,48 @@ discard block |
||
1248 | 1248 | * |
1249 | 1249 | * @return bool |
1250 | 1250 | */ |
1251 | - public static function is_bs3_compat(){ |
|
1251 | + public static function is_bs3_compat() { |
|
1252 | 1252 | return defined('AYECODE_UI_BS3_COMPAT') || defined('SVQ_THEME_VERSION') || defined('FUSION_BUILDER_VERSION'); |
1253 | 1253 | } |
1254 | 1254 | |
1255 | - public static function css_primary($color_code,$compatibility){; |
|
1255 | + public static function css_primary($color_code, $compatibility) {; |
|
1256 | 1256 | $color_code = sanitize_hex_color($color_code); |
1257 | - if(!$color_code){return '';} |
|
1257 | + if (!$color_code) {return ''; } |
|
1258 | 1258 | /** |
1259 | 1259 | * c = color, b = background color, o = border-color, f = fill |
1260 | 1260 | */ |
1261 | 1261 | $selectors = array( |
1262 | 1262 | 'a' => array('c'), |
1263 | - '.btn-primary' => array('b','o'), |
|
1264 | - '.btn-primary.disabled' => array('b','o'), |
|
1265 | - '.btn-primary:disabled' => array('b','o'), |
|
1266 | - '.btn-outline-primary' => array('c','o'), |
|
1267 | - '.btn-outline-primary:hover' => array('b','o'), |
|
1268 | - '.btn-outline-primary:not(:disabled):not(.disabled).active' => array('b','o'), |
|
1269 | - '.btn-outline-primary:not(:disabled):not(.disabled):active' => array('b','o'), |
|
1270 | - '.show>.btn-outline-primary.dropdown-toggle' => array('b','o'), |
|
1263 | + '.btn-primary' => array('b', 'o'), |
|
1264 | + '.btn-primary.disabled' => array('b', 'o'), |
|
1265 | + '.btn-primary:disabled' => array('b', 'o'), |
|
1266 | + '.btn-outline-primary' => array('c', 'o'), |
|
1267 | + '.btn-outline-primary:hover' => array('b', 'o'), |
|
1268 | + '.btn-outline-primary:not(:disabled):not(.disabled).active' => array('b', 'o'), |
|
1269 | + '.btn-outline-primary:not(:disabled):not(.disabled):active' => array('b', 'o'), |
|
1270 | + '.show>.btn-outline-primary.dropdown-toggle' => array('b', 'o'), |
|
1271 | 1271 | '.btn-link' => array('c'), |
1272 | 1272 | '.dropdown-item.active' => array('b'), |
1273 | - '.custom-control-input:checked~.custom-control-label::before' => array('b','o'), |
|
1274 | - '.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::before' => array('b','o'), |
|
1273 | + '.custom-control-input:checked~.custom-control-label::before' => array('b', 'o'), |
|
1274 | + '.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::before' => array('b', 'o'), |
|
1275 | 1275 | // '.custom-range::-webkit-slider-thumb' => array('b'), // these break the inline rules... |
1276 | 1276 | // '.custom-range::-moz-range-thumb' => array('b'), |
1277 | 1277 | // '.custom-range::-ms-thumb' => array('b'), |
1278 | 1278 | '.nav-pills .nav-link.active' => array('b'), |
1279 | 1279 | '.nav-pills .show>.nav-link' => array('b'), |
1280 | 1280 | '.page-link' => array('c'), |
1281 | - '.page-item.active .page-link' => array('b','o'), |
|
1281 | + '.page-item.active .page-link' => array('b', 'o'), |
|
1282 | 1282 | '.badge-primary' => array('b'), |
1283 | - '.alert-primary' => array('b','o'), |
|
1283 | + '.alert-primary' => array('b', 'o'), |
|
1284 | 1284 | '.progress-bar' => array('b'), |
1285 | - '.list-group-item.active' => array('b','o'), |
|
1286 | - '.bg-primary' => array('b','f'), |
|
1285 | + '.list-group-item.active' => array('b', 'o'), |
|
1286 | + '.bg-primary' => array('b', 'f'), |
|
1287 | 1287 | '.btn-link.btn-primary' => array('c'), |
1288 | 1288 | '.select2-container .select2-results__option--highlighted.select2-results__option[aria-selected=true]' => array('b'), |
1289 | 1289 | ); |
1290 | 1290 | |
1291 | 1291 | $important_selectors = array( |
1292 | - '.bg-primary' => array('b','f'), |
|
1292 | + '.bg-primary' => array('b', 'f'), |
|
1293 | 1293 | '.border-primary' => array('o'), |
1294 | 1294 | '.text-primary' => array('c'), |
1295 | 1295 | ); |
@@ -1306,116 +1306,116 @@ discard block |
||
1306 | 1306 | $output = ''; |
1307 | 1307 | |
1308 | 1308 | // build rules into each type |
1309 | - foreach($selectors as $selector => $types){ |
|
1310 | - $selector = $compatibility ? ".bsui ".$selector : $selector; |
|
1311 | - $types = array_combine($types,$types); |
|
1312 | - if(isset($types['c'])){$color[] = $selector;} |
|
1313 | - if(isset($types['b'])){$background[] = $selector;} |
|
1314 | - if(isset($types['o'])){$border[] = $selector;} |
|
1315 | - if(isset($types['f'])){$fill[] = $selector;} |
|
1309 | + foreach ($selectors as $selector => $types) { |
|
1310 | + $selector = $compatibility ? ".bsui " . $selector : $selector; |
|
1311 | + $types = array_combine($types, $types); |
|
1312 | + if (isset($types['c'])) {$color[] = $selector; } |
|
1313 | + if (isset($types['b'])) {$background[] = $selector; } |
|
1314 | + if (isset($types['o'])) {$border[] = $selector; } |
|
1315 | + if (isset($types['f'])) {$fill[] = $selector; } |
|
1316 | 1316 | } |
1317 | 1317 | |
1318 | 1318 | // build rules into each type |
1319 | - foreach($important_selectors as $selector => $types){ |
|
1320 | - $selector = $compatibility ? ".bsui ".$selector : $selector; |
|
1321 | - $types = array_combine($types,$types); |
|
1322 | - if(isset($types['c'])){$color_i[] = $selector;} |
|
1323 | - if(isset($types['b'])){$background_i[] = $selector;} |
|
1324 | - if(isset($types['o'])){$border_i[] = $selector;} |
|
1325 | - if(isset($types['f'])){$fill_i[] = $selector;} |
|
1319 | + foreach ($important_selectors as $selector => $types) { |
|
1320 | + $selector = $compatibility ? ".bsui " . $selector : $selector; |
|
1321 | + $types = array_combine($types, $types); |
|
1322 | + if (isset($types['c'])) {$color_i[] = $selector; } |
|
1323 | + if (isset($types['b'])) {$background_i[] = $selector; } |
|
1324 | + if (isset($types['o'])) {$border_i[] = $selector; } |
|
1325 | + if (isset($types['f'])) {$fill_i[] = $selector; } |
|
1326 | 1326 | } |
1327 | 1327 | |
1328 | 1328 | // add any color rules |
1329 | - if(!empty($color)){ |
|
1330 | - $output .= implode(",",$color) . "{color: $color_code;} "; |
|
1329 | + if (!empty($color)) { |
|
1330 | + $output .= implode(",", $color) . "{color: $color_code;} "; |
|
1331 | 1331 | } |
1332 | - if(!empty($color_i)){ |
|
1333 | - $output .= implode(",",$color_i) . "{color: $color_code !important;} "; |
|
1332 | + if (!empty($color_i)) { |
|
1333 | + $output .= implode(",", $color_i) . "{color: $color_code !important;} "; |
|
1334 | 1334 | } |
1335 | 1335 | |
1336 | 1336 | // add any background color rules |
1337 | - if(!empty($background)){ |
|
1338 | - $output .= implode(",",$background) . "{background-color: $color_code;} "; |
|
1337 | + if (!empty($background)) { |
|
1338 | + $output .= implode(",", $background) . "{background-color: $color_code;} "; |
|
1339 | 1339 | } |
1340 | - if(!empty($background_i)){ |
|
1341 | - $output .= implode(",",$background_i) . "{background-color: $color_code !important;} "; |
|
1340 | + if (!empty($background_i)) { |
|
1341 | + $output .= implode(",", $background_i) . "{background-color: $color_code !important;} "; |
|
1342 | 1342 | } |
1343 | 1343 | |
1344 | 1344 | // add any border color rules |
1345 | - if(!empty($border)){ |
|
1346 | - $output .= implode(",",$border) . "{border-color: $color_code;} "; |
|
1345 | + if (!empty($border)) { |
|
1346 | + $output .= implode(",", $border) . "{border-color: $color_code;} "; |
|
1347 | 1347 | } |
1348 | - if(!empty($border_i)){ |
|
1349 | - $output .= implode(",",$border_i) . "{border-color: $color_code !important;} "; |
|
1348 | + if (!empty($border_i)) { |
|
1349 | + $output .= implode(",", $border_i) . "{border-color: $color_code !important;} "; |
|
1350 | 1350 | } |
1351 | 1351 | |
1352 | 1352 | // add any fill color rules |
1353 | - if(!empty($fill)){ |
|
1354 | - $output .= implode(",",$fill) . "{fill: $color_code;} "; |
|
1353 | + if (!empty($fill)) { |
|
1354 | + $output .= implode(",", $fill) . "{fill: $color_code;} "; |
|
1355 | 1355 | } |
1356 | - if(!empty($fill_i)){ |
|
1357 | - $output .= implode(",",$fill_i) . "{fill: $color_code !important;} "; |
|
1356 | + if (!empty($fill_i)) { |
|
1357 | + $output .= implode(",", $fill_i) . "{fill: $color_code !important;} "; |
|
1358 | 1358 | } |
1359 | 1359 | |
1360 | 1360 | |
1361 | 1361 | $prefix = $compatibility ? ".bsui " : ""; |
1362 | 1362 | |
1363 | 1363 | // darken |
1364 | - $darker_075 = self::css_hex_lighten_darken($color_code,"-0.075"); |
|
1365 | - $darker_10 = self::css_hex_lighten_darken($color_code,"-0.10"); |
|
1366 | - $darker_125 = self::css_hex_lighten_darken($color_code,"-0.125"); |
|
1364 | + $darker_075 = self::css_hex_lighten_darken($color_code, "-0.075"); |
|
1365 | + $darker_10 = self::css_hex_lighten_darken($color_code, "-0.10"); |
|
1366 | + $darker_125 = self::css_hex_lighten_darken($color_code, "-0.125"); |
|
1367 | 1367 | |
1368 | 1368 | // lighten |
1369 | - $lighten_25 = self::css_hex_lighten_darken($color_code,"0.25"); |
|
1369 | + $lighten_25 = self::css_hex_lighten_darken($color_code, "0.25"); |
|
1370 | 1370 | |
1371 | 1371 | // opacity see https://css-tricks.com/8-digit-hex-codes/ |
1372 | - $op_25 = $color_code."40"; // 25% opacity |
|
1372 | + $op_25 = $color_code . "40"; // 25% opacity |
|
1373 | 1373 | |
1374 | 1374 | |
1375 | 1375 | // button states |
1376 | - $output .= $prefix ." .btn-primary:hover{background-color: ".$darker_075."; border-color: ".$darker_10.";} "; |
|
1377 | - $output .= $prefix ." .btn-outline-primary:not(:disabled):not(.disabled):active:focus, $prefix .btn-outline-primary:not(:disabled):not(.disabled).active:focus, .show>$prefix .btn-outline-primary.dropdown-toggle:focus{box-shadow: 0 0 0 0.2rem $op_25;} "; |
|
1378 | - $output .= $prefix ." .btn-primary:not(:disabled):not(.disabled):active, $prefix .btn-primary:not(:disabled):not(.disabled).active, .show>$prefix .btn-primary.dropdown-toggle{background-color: ".$darker_10."; border-color: ".$darker_125.";} "; |
|
1379 | - $output .= $prefix ." .btn-primary:not(:disabled):not(.disabled):active:focus, $prefix .btn-primary:not(:disabled):not(.disabled).active:focus, .show>$prefix .btn-primary.dropdown-toggle:focus {box-shadow: 0 0 0 0.2rem $op_25;} "; |
|
1376 | + $output .= $prefix . " .btn-primary:hover{background-color: " . $darker_075 . "; border-color: " . $darker_10 . ";} "; |
|
1377 | + $output .= $prefix . " .btn-outline-primary:not(:disabled):not(.disabled):active:focus, $prefix .btn-outline-primary:not(:disabled):not(.disabled).active:focus, .show>$prefix .btn-outline-primary.dropdown-toggle:focus{box-shadow: 0 0 0 0.2rem $op_25;} "; |
|
1378 | + $output .= $prefix . " .btn-primary:not(:disabled):not(.disabled):active, $prefix .btn-primary:not(:disabled):not(.disabled).active, .show>$prefix .btn-primary.dropdown-toggle{background-color: " . $darker_10 . "; border-color: " . $darker_125 . ";} "; |
|
1379 | + $output .= $prefix . " .btn-primary:not(:disabled):not(.disabled):active:focus, $prefix .btn-primary:not(:disabled):not(.disabled).active:focus, .show>$prefix .btn-primary.dropdown-toggle:focus {box-shadow: 0 0 0 0.2rem $op_25;} "; |
|
1380 | 1380 | |
1381 | 1381 | |
1382 | 1382 | // dropdown's |
1383 | - $output .= $prefix ." .dropdown-item.active, $prefix .dropdown-item:active{background-color: $color_code;} "; |
|
1383 | + $output .= $prefix . " .dropdown-item.active, $prefix .dropdown-item:active{background-color: $color_code;} "; |
|
1384 | 1384 | |
1385 | 1385 | |
1386 | 1386 | // input states |
1387 | - $output .= $prefix ." .form-control:focus{border-color: ".$lighten_25.";box-shadow: 0 0 0 0.2rem $op_25;} "; |
|
1387 | + $output .= $prefix . " .form-control:focus{border-color: " . $lighten_25 . ";box-shadow: 0 0 0 0.2rem $op_25;} "; |
|
1388 | 1388 | |
1389 | 1389 | // page link |
1390 | - $output .= $prefix ." .page-link:focus{box-shadow: 0 0 0 0.2rem $op_25;} "; |
|
1390 | + $output .= $prefix . " .page-link:focus{box-shadow: 0 0 0 0.2rem $op_25;} "; |
|
1391 | 1391 | |
1392 | 1392 | return $output; |
1393 | 1393 | } |
1394 | 1394 | |
1395 | - public static function css_secondary($color_code,$compatibility){; |
|
1395 | + public static function css_secondary($color_code, $compatibility) {; |
|
1396 | 1396 | $color_code = sanitize_hex_color($color_code); |
1397 | - if(!$color_code){return '';} |
|
1397 | + if (!$color_code) {return ''; } |
|
1398 | 1398 | /** |
1399 | 1399 | * c = color, b = background color, o = border-color, f = fill |
1400 | 1400 | */ |
1401 | 1401 | $selectors = array( |
1402 | - '.btn-secondary' => array('b','o'), |
|
1403 | - '.btn-secondary.disabled' => array('b','o'), |
|
1404 | - '.btn-secondary:disabled' => array('b','o'), |
|
1405 | - '.btn-outline-secondary' => array('c','o'), |
|
1406 | - '.btn-outline-secondary:hover' => array('b','o'), |
|
1402 | + '.btn-secondary' => array('b', 'o'), |
|
1403 | + '.btn-secondary.disabled' => array('b', 'o'), |
|
1404 | + '.btn-secondary:disabled' => array('b', 'o'), |
|
1405 | + '.btn-outline-secondary' => array('c', 'o'), |
|
1406 | + '.btn-outline-secondary:hover' => array('b', 'o'), |
|
1407 | 1407 | '.btn-outline-secondary.disabled' => array('c'), |
1408 | 1408 | '.btn-outline-secondary:disabled' => array('c'), |
1409 | - '.btn-outline-secondary:not(:disabled):not(.disabled):active' => array('b','o'), |
|
1410 | - '.btn-outline-secondary:not(:disabled):not(.disabled).active' => array('b','o'), |
|
1411 | - '.btn-outline-secondary.dropdown-toggle' => array('b','o'), |
|
1409 | + '.btn-outline-secondary:not(:disabled):not(.disabled):active' => array('b', 'o'), |
|
1410 | + '.btn-outline-secondary:not(:disabled):not(.disabled).active' => array('b', 'o'), |
|
1411 | + '.btn-outline-secondary.dropdown-toggle' => array('b', 'o'), |
|
1412 | 1412 | '.badge-secondary' => array('b'), |
1413 | - '.alert-secondary' => array('b','o'), |
|
1413 | + '.alert-secondary' => array('b', 'o'), |
|
1414 | 1414 | '.btn-link.btn-secondary' => array('c'), |
1415 | 1415 | ); |
1416 | 1416 | |
1417 | 1417 | $important_selectors = array( |
1418 | - '.bg-secondary' => array('b','f'), |
|
1418 | + '.bg-secondary' => array('b', 'f'), |
|
1419 | 1419 | '.border-secondary' => array('o'), |
1420 | 1420 | '.text-secondary' => array('c'), |
1421 | 1421 | ); |
@@ -1432,77 +1432,77 @@ discard block |
||
1432 | 1432 | $output = ''; |
1433 | 1433 | |
1434 | 1434 | // build rules into each type |
1435 | - foreach($selectors as $selector => $types){ |
|
1436 | - $selector = $compatibility ? ".bsui ".$selector : $selector; |
|
1437 | - $types = array_combine($types,$types); |
|
1438 | - if(isset($types['c'])){$color[] = $selector;} |
|
1439 | - if(isset($types['b'])){$background[] = $selector;} |
|
1440 | - if(isset($types['o'])){$border[] = $selector;} |
|
1441 | - if(isset($types['f'])){$fill[] = $selector;} |
|
1435 | + foreach ($selectors as $selector => $types) { |
|
1436 | + $selector = $compatibility ? ".bsui " . $selector : $selector; |
|
1437 | + $types = array_combine($types, $types); |
|
1438 | + if (isset($types['c'])) {$color[] = $selector; } |
|
1439 | + if (isset($types['b'])) {$background[] = $selector; } |
|
1440 | + if (isset($types['o'])) {$border[] = $selector; } |
|
1441 | + if (isset($types['f'])) {$fill[] = $selector; } |
|
1442 | 1442 | } |
1443 | 1443 | |
1444 | 1444 | // build rules into each type |
1445 | - foreach($important_selectors as $selector => $types){ |
|
1446 | - $selector = $compatibility ? ".bsui ".$selector : $selector; |
|
1447 | - $types = array_combine($types,$types); |
|
1448 | - if(isset($types['c'])){$color_i[] = $selector;} |
|
1449 | - if(isset($types['b'])){$background_i[] = $selector;} |
|
1450 | - if(isset($types['o'])){$border_i[] = $selector;} |
|
1451 | - if(isset($types['f'])){$fill_i[] = $selector;} |
|
1445 | + foreach ($important_selectors as $selector => $types) { |
|
1446 | + $selector = $compatibility ? ".bsui " . $selector : $selector; |
|
1447 | + $types = array_combine($types, $types); |
|
1448 | + if (isset($types['c'])) {$color_i[] = $selector; } |
|
1449 | + if (isset($types['b'])) {$background_i[] = $selector; } |
|
1450 | + if (isset($types['o'])) {$border_i[] = $selector; } |
|
1451 | + if (isset($types['f'])) {$fill_i[] = $selector; } |
|
1452 | 1452 | } |
1453 | 1453 | |
1454 | 1454 | // add any color rules |
1455 | - if(!empty($color)){ |
|
1456 | - $output .= implode(",",$color) . "{color: $color_code;} "; |
|
1455 | + if (!empty($color)) { |
|
1456 | + $output .= implode(",", $color) . "{color: $color_code;} "; |
|
1457 | 1457 | } |
1458 | - if(!empty($color_i)){ |
|
1459 | - $output .= implode(",",$color_i) . "{color: $color_code !important;} "; |
|
1458 | + if (!empty($color_i)) { |
|
1459 | + $output .= implode(",", $color_i) . "{color: $color_code !important;} "; |
|
1460 | 1460 | } |
1461 | 1461 | |
1462 | 1462 | // add any background color rules |
1463 | - if(!empty($background)){ |
|
1464 | - $output .= implode(",",$background) . "{background-color: $color_code;} "; |
|
1463 | + if (!empty($background)) { |
|
1464 | + $output .= implode(",", $background) . "{background-color: $color_code;} "; |
|
1465 | 1465 | } |
1466 | - if(!empty($background_i)){ |
|
1467 | - $output .= implode(",",$background_i) . "{background-color: $color_code !important;} "; |
|
1466 | + if (!empty($background_i)) { |
|
1467 | + $output .= implode(",", $background_i) . "{background-color: $color_code !important;} "; |
|
1468 | 1468 | } |
1469 | 1469 | |
1470 | 1470 | // add any border color rules |
1471 | - if(!empty($border)){ |
|
1472 | - $output .= implode(",",$border) . "{border-color: $color_code;} "; |
|
1471 | + if (!empty($border)) { |
|
1472 | + $output .= implode(",", $border) . "{border-color: $color_code;} "; |
|
1473 | 1473 | } |
1474 | - if(!empty($border_i)){ |
|
1475 | - $output .= implode(",",$border_i) . "{border-color: $color_code !important;} "; |
|
1474 | + if (!empty($border_i)) { |
|
1475 | + $output .= implode(",", $border_i) . "{border-color: $color_code !important;} "; |
|
1476 | 1476 | } |
1477 | 1477 | |
1478 | 1478 | // add any fill color rules |
1479 | - if(!empty($fill)){ |
|
1480 | - $output .= implode(",",$fill) . "{fill: $color_code;} "; |
|
1479 | + if (!empty($fill)) { |
|
1480 | + $output .= implode(",", $fill) . "{fill: $color_code;} "; |
|
1481 | 1481 | } |
1482 | - if(!empty($fill_i)){ |
|
1483 | - $output .= implode(",",$fill_i) . "{fill: $color_code !important;} "; |
|
1482 | + if (!empty($fill_i)) { |
|
1483 | + $output .= implode(",", $fill_i) . "{fill: $color_code !important;} "; |
|
1484 | 1484 | } |
1485 | 1485 | |
1486 | 1486 | |
1487 | 1487 | $prefix = $compatibility ? ".bsui " : ""; |
1488 | 1488 | |
1489 | 1489 | // darken |
1490 | - $darker_075 = self::css_hex_lighten_darken($color_code,"-0.075"); |
|
1491 | - $darker_10 = self::css_hex_lighten_darken($color_code,"-0.10"); |
|
1492 | - $darker_125 = self::css_hex_lighten_darken($color_code,"-0.125"); |
|
1490 | + $darker_075 = self::css_hex_lighten_darken($color_code, "-0.075"); |
|
1491 | + $darker_10 = self::css_hex_lighten_darken($color_code, "-0.10"); |
|
1492 | + $darker_125 = self::css_hex_lighten_darken($color_code, "-0.125"); |
|
1493 | 1493 | |
1494 | 1494 | // lighten |
1495 | - $lighten_25 = self::css_hex_lighten_darken($color_code,"0.25"); |
|
1495 | + $lighten_25 = self::css_hex_lighten_darken($color_code, "0.25"); |
|
1496 | 1496 | |
1497 | 1497 | // opacity see https://css-tricks.com/8-digit-hex-codes/ |
1498 | - $op_25 = $color_code."40"; // 25% opacity |
|
1498 | + $op_25 = $color_code . "40"; // 25% opacity |
|
1499 | 1499 | |
1500 | 1500 | |
1501 | 1501 | // button states |
1502 | - $output .= $prefix ." .btn-secondary:hover{background-color: ".$darker_075."; border-color: ".$darker_10.";} "; |
|
1503 | - $output .= $prefix ." .btn-outline-secondary:not(:disabled):not(.disabled):active:focus, $prefix .btn-outline-secondary:not(:disabled):not(.disabled).active:focus, .show>$prefix .btn-outline-secondary.dropdown-toggle:focus{box-shadow: 0 0 0 0.2rem $op_25;} "; |
|
1504 | - $output .= $prefix ." .btn-secondary:not(:disabled):not(.disabled):active, $prefix .btn-secondary:not(:disabled):not(.disabled).active, .show>$prefix .btn-secondary.dropdown-toggle{background-color: ".$darker_10."; border-color: ".$darker_125.";} "; |
|
1505 | - $output .= $prefix ." .btn-secondary:not(:disabled):not(.disabled):active:focus, $prefix .btn-secondary:not(:disabled):not(.disabled).active:focus, .show>$prefix .btn-secondary.dropdown-toggle:focus {box-shadow: 0 0 0 0.2rem $op_25;} "; |
|
1502 | + $output .= $prefix . " .btn-secondary:hover{background-color: " . $darker_075 . "; border-color: " . $darker_10 . ";} "; |
|
1503 | + $output .= $prefix . " .btn-outline-secondary:not(:disabled):not(.disabled):active:focus, $prefix .btn-outline-secondary:not(:disabled):not(.disabled).active:focus, .show>$prefix .btn-outline-secondary.dropdown-toggle:focus{box-shadow: 0 0 0 0.2rem $op_25;} "; |
|
1504 | + $output .= $prefix . " .btn-secondary:not(:disabled):not(.disabled):active, $prefix .btn-secondary:not(:disabled):not(.disabled).active, .show>$prefix .btn-secondary.dropdown-toggle{background-color: " . $darker_10 . "; border-color: " . $darker_125 . ";} "; |
|
1505 | + $output .= $prefix . " .btn-secondary:not(:disabled):not(.disabled):active:focus, $prefix .btn-secondary:not(:disabled):not(.disabled).active:focus, .show>$prefix .btn-secondary.dropdown-toggle:focus {box-shadow: 0 0 0 0.2rem $op_25;} "; |
|
1506 | 1506 | |
1507 | 1507 | |
1508 | 1508 | return $output; |
@@ -1538,8 +1538,8 @@ discard block |
||
1538 | 1538 | /** |
1539 | 1539 | * Check if we should display examples. |
1540 | 1540 | */ |
1541 | - public function maybe_show_examples(){ |
|
1542 | - if(current_user_can('manage_options') && isset($_REQUEST['preview-aui'])){ |
|
1541 | + public function maybe_show_examples() { |
|
1542 | + if (current_user_can('manage_options') && isset($_REQUEST['preview-aui'])) { |
|
1543 | 1543 | echo "<head>"; |
1544 | 1544 | wp_head(); |
1545 | 1545 | echo "</head>"; |
@@ -1555,7 +1555,7 @@ discard block |
||
1555 | 1555 | * |
1556 | 1556 | * @return string |
1557 | 1557 | */ |
1558 | - public function get_examples(){ |
|
1558 | + public function get_examples() { |
|
1559 | 1559 | $output = ''; |
1560 | 1560 | |
1561 | 1561 |
@@ -11,93 +11,93 @@ |
||
11 | 11 | |
12 | 12 | class InstalledVersions |
13 | 13 | { |
14 | -private static $installed = array ( |
|
14 | +private static $installed = array( |
|
15 | 15 | 'root' => |
16 | - array ( |
|
16 | + array( |
|
17 | 17 | 'pretty_version' => 'dev-master', |
18 | 18 | 'version' => 'dev-master', |
19 | 19 | 'aliases' => |
20 | - array ( |
|
20 | + array( |
|
21 | 21 | ), |
22 | 22 | 'reference' => '6301505387ced6d3558cf9d95362db3054e5bb61', |
23 | 23 | 'name' => 'ayecode/invoicing', |
24 | 24 | ), |
25 | 25 | 'versions' => |
26 | - array ( |
|
26 | + array( |
|
27 | 27 | 'ayecode/ayecode-connect-helper' => |
28 | - array ( |
|
28 | + array( |
|
29 | 29 | 'pretty_version' => '1.0.3', |
30 | 30 | 'version' => '1.0.3.0', |
31 | 31 | 'aliases' => |
32 | - array ( |
|
32 | + array( |
|
33 | 33 | ), |
34 | 34 | 'reference' => '1af7cdefdbd20d4443a3ab4834e4c1cd8fe57fb4', |
35 | 35 | ), |
36 | 36 | 'ayecode/invoicing' => |
37 | - array ( |
|
37 | + array( |
|
38 | 38 | 'pretty_version' => 'dev-master', |
39 | 39 | 'version' => 'dev-master', |
40 | 40 | 'aliases' => |
41 | - array ( |
|
41 | + array( |
|
42 | 42 | ), |
43 | 43 | 'reference' => '6301505387ced6d3558cf9d95362db3054e5bb61', |
44 | 44 | ), |
45 | 45 | 'ayecode/wp-ayecode-ui' => |
46 | - array ( |
|
46 | + array( |
|
47 | 47 | 'pretty_version' => '0.1.43', |
48 | 48 | 'version' => '0.1.43.0', |
49 | 49 | 'aliases' => |
50 | - array ( |
|
50 | + array( |
|
51 | 51 | ), |
52 | 52 | 'reference' => '3606edd468c8a502df34237d0ac9e3470f2ad08d', |
53 | 53 | ), |
54 | 54 | 'ayecode/wp-font-awesome-settings' => |
55 | - array ( |
|
55 | + array( |
|
56 | 56 | 'pretty_version' => '1.0.12', |
57 | 57 | 'version' => '1.0.12.0', |
58 | 58 | 'aliases' => |
59 | - array ( |
|
59 | + array( |
|
60 | 60 | ), |
61 | 61 | 'reference' => '754cca6fda775f3e0b56b90a810dfcaea62ea288', |
62 | 62 | ), |
63 | 63 | 'ayecode/wp-super-duper' => |
64 | - array ( |
|
64 | + array( |
|
65 | 65 | 'pretty_version' => '1.0.23', |
66 | 66 | 'version' => '1.0.23.0', |
67 | 67 | 'aliases' => |
68 | - array ( |
|
68 | + array( |
|
69 | 69 | ), |
70 | 70 | 'reference' => '9473c0b7cf3ef4c32374222994a3e4613cdaeb48', |
71 | 71 | ), |
72 | 72 | 'composer/installers' => |
73 | - array ( |
|
73 | + array( |
|
74 | 74 | 'pretty_version' => 'v1.10.0', |
75 | 75 | 'version' => '1.10.0.0', |
76 | 76 | 'aliases' => |
77 | - array ( |
|
77 | + array( |
|
78 | 78 | ), |
79 | 79 | 'reference' => '1a0357fccad9d1cc1ea0c9a05b8847fbccccb78d', |
80 | 80 | ), |
81 | 81 | 'maxmind-db/reader' => |
82 | - array ( |
|
82 | + array( |
|
83 | 83 | 'pretty_version' => 'v1.6.0', |
84 | 84 | 'version' => '1.6.0.0', |
85 | 85 | 'aliases' => |
86 | - array ( |
|
86 | + array( |
|
87 | 87 | ), |
88 | 88 | 'reference' => 'febd4920bf17c1da84cef58e56a8227dfb37fbe4', |
89 | 89 | ), |
90 | 90 | 'roundcube/plugin-installer' => |
91 | - array ( |
|
91 | + array( |
|
92 | 92 | 'replaced' => |
93 | - array ( |
|
93 | + array( |
|
94 | 94 | 0 => '*', |
95 | 95 | ), |
96 | 96 | ), |
97 | 97 | 'shama/baton' => |
98 | - array ( |
|
98 | + array( |
|
99 | 99 | 'replaced' => |
100 | - array ( |
|
100 | + array( |
|
101 | 101 | 0 => '*', |
102 | 102 | ), |
103 | 103 | ), |
@@ -1,90 +1,90 @@ |
||
1 | -<?php return array ( |
|
1 | +<?php return array( |
|
2 | 2 | 'root' => |
3 | - array ( |
|
3 | + array( |
|
4 | 4 | 'pretty_version' => 'dev-master', |
5 | 5 | 'version' => 'dev-master', |
6 | 6 | 'aliases' => |
7 | - array ( |
|
7 | + array( |
|
8 | 8 | ), |
9 | 9 | 'reference' => '6301505387ced6d3558cf9d95362db3054e5bb61', |
10 | 10 | 'name' => 'ayecode/invoicing', |
11 | 11 | ), |
12 | 12 | 'versions' => |
13 | - array ( |
|
13 | + array( |
|
14 | 14 | 'ayecode/ayecode-connect-helper' => |
15 | - array ( |
|
15 | + array( |
|
16 | 16 | 'pretty_version' => '1.0.3', |
17 | 17 | 'version' => '1.0.3.0', |
18 | 18 | 'aliases' => |
19 | - array ( |
|
19 | + array( |
|
20 | 20 | ), |
21 | 21 | 'reference' => '1af7cdefdbd20d4443a3ab4834e4c1cd8fe57fb4', |
22 | 22 | ), |
23 | 23 | 'ayecode/invoicing' => |
24 | - array ( |
|
24 | + array( |
|
25 | 25 | 'pretty_version' => 'dev-master', |
26 | 26 | 'version' => 'dev-master', |
27 | 27 | 'aliases' => |
28 | - array ( |
|
28 | + array( |
|
29 | 29 | ), |
30 | 30 | 'reference' => '6301505387ced6d3558cf9d95362db3054e5bb61', |
31 | 31 | ), |
32 | 32 | 'ayecode/wp-ayecode-ui' => |
33 | - array ( |
|
33 | + array( |
|
34 | 34 | 'pretty_version' => '0.1.43', |
35 | 35 | 'version' => '0.1.43.0', |
36 | 36 | 'aliases' => |
37 | - array ( |
|
37 | + array( |
|
38 | 38 | ), |
39 | 39 | 'reference' => '3606edd468c8a502df34237d0ac9e3470f2ad08d', |
40 | 40 | ), |
41 | 41 | 'ayecode/wp-font-awesome-settings' => |
42 | - array ( |
|
42 | + array( |
|
43 | 43 | 'pretty_version' => '1.0.12', |
44 | 44 | 'version' => '1.0.12.0', |
45 | 45 | 'aliases' => |
46 | - array ( |
|
46 | + array( |
|
47 | 47 | ), |
48 | 48 | 'reference' => '754cca6fda775f3e0b56b90a810dfcaea62ea288', |
49 | 49 | ), |
50 | 50 | 'ayecode/wp-super-duper' => |
51 | - array ( |
|
51 | + array( |
|
52 | 52 | 'pretty_version' => '1.0.23', |
53 | 53 | 'version' => '1.0.23.0', |
54 | 54 | 'aliases' => |
55 | - array ( |
|
55 | + array( |
|
56 | 56 | ), |
57 | 57 | 'reference' => '9473c0b7cf3ef4c32374222994a3e4613cdaeb48', |
58 | 58 | ), |
59 | 59 | 'composer/installers' => |
60 | - array ( |
|
60 | + array( |
|
61 | 61 | 'pretty_version' => 'v1.10.0', |
62 | 62 | 'version' => '1.10.0.0', |
63 | 63 | 'aliases' => |
64 | - array ( |
|
64 | + array( |
|
65 | 65 | ), |
66 | 66 | 'reference' => '1a0357fccad9d1cc1ea0c9a05b8847fbccccb78d', |
67 | 67 | ), |
68 | 68 | 'maxmind-db/reader' => |
69 | - array ( |
|
69 | + array( |
|
70 | 70 | 'pretty_version' => 'v1.6.0', |
71 | 71 | 'version' => '1.6.0.0', |
72 | 72 | 'aliases' => |
73 | - array ( |
|
73 | + array( |
|
74 | 74 | ), |
75 | 75 | 'reference' => 'febd4920bf17c1da84cef58e56a8227dfb37fbe4', |
76 | 76 | ), |
77 | 77 | 'roundcube/plugin-installer' => |
78 | - array ( |
|
78 | + array( |
|
79 | 79 | 'replaced' => |
80 | - array ( |
|
80 | + array( |
|
81 | 81 | 0 => '*', |
82 | 82 | ), |
83 | 83 | ), |
84 | 84 | 'shama/baton' => |
85 | - array ( |
|
85 | + array( |
|
86 | 86 | 'replaced' => |
87 | - array ( |
|
87 | + array( |
|
88 | 88 | 0 => '*', |
89 | 89 | ), |
90 | 90 | ), |