@@ -11,102 +11,102 @@ |
||
| 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' => 'c77c76d2bb821dfd39f6e97602e1fc972f810df8', |
| 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' => 'c77c76d2bb821dfd39f6e97602e1fc972f810df8', |
| 44 | 44 | ), |
| 45 | 45 | 'ayecode/wp-ayecode-ui' => |
| 46 | - array ( |
|
| 46 | + array( |
|
| 47 | 47 | 'pretty_version' => '0.1.62', |
| 48 | 48 | 'version' => '0.1.62.0', |
| 49 | 49 | 'aliases' => |
| 50 | - array ( |
|
| 50 | + array( |
|
| 51 | 51 | ), |
| 52 | 52 | 'reference' => 'f0625aa6f695cef39fe75bc1707026824e9841d9', |
| 53 | 53 | ), |
| 54 | 54 | 'ayecode/wp-deactivation-survey' => |
| 55 | - array ( |
|
| 55 | + array( |
|
| 56 | 56 | 'pretty_version' => '1.0.4', |
| 57 | 57 | 'version' => '1.0.4.0', |
| 58 | 58 | 'aliases' => |
| 59 | - array ( |
|
| 59 | + array( |
|
| 60 | 60 | ), |
| 61 | 61 | 'reference' => 'd2777fed30acfc4da53b45bf3b4fec2fb27d8398', |
| 62 | 62 | ), |
| 63 | 63 | 'ayecode/wp-font-awesome-settings' => |
| 64 | - array ( |
|
| 64 | + array( |
|
| 65 | 65 | 'pretty_version' => '1.0.13', |
| 66 | 66 | 'version' => '1.0.13.0', |
| 67 | 67 | 'aliases' => |
| 68 | - array ( |
|
| 68 | + array( |
|
| 69 | 69 | ), |
| 70 | 70 | 'reference' => 'a7a11ee4290674ec214d1fe694139af275350402', |
| 71 | 71 | ), |
| 72 | 72 | 'ayecode/wp-super-duper' => |
| 73 | - array ( |
|
| 73 | + array( |
|
| 74 | 74 | 'pretty_version' => '1.0.27', |
| 75 | 75 | 'version' => '1.0.27.0', |
| 76 | 76 | 'aliases' => |
| 77 | - array ( |
|
| 77 | + array( |
|
| 78 | 78 | ), |
| 79 | 79 | 'reference' => 'ce187bc9afc5cd7f5d790d84eb6fd9b98e56992d', |
| 80 | 80 | ), |
| 81 | 81 | 'composer/installers' => |
| 82 | - array ( |
|
| 82 | + array( |
|
| 83 | 83 | 'pretty_version' => 'v1.12.0', |
| 84 | 84 | 'version' => '1.12.0.0', |
| 85 | 85 | 'aliases' => |
| 86 | - array ( |
|
| 86 | + array( |
|
| 87 | 87 | ), |
| 88 | 88 | 'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19', |
| 89 | 89 | ), |
| 90 | 90 | 'maxmind-db/reader' => |
| 91 | - array ( |
|
| 91 | + array( |
|
| 92 | 92 | 'pretty_version' => 'v1.6.0', |
| 93 | 93 | 'version' => '1.6.0.0', |
| 94 | 94 | 'aliases' => |
| 95 | - array ( |
|
| 95 | + array( |
|
| 96 | 96 | ), |
| 97 | 97 | 'reference' => 'febd4920bf17c1da84cef58e56a8227dfb37fbe4', |
| 98 | 98 | ), |
| 99 | 99 | 'roundcube/plugin-installer' => |
| 100 | - array ( |
|
| 100 | + array( |
|
| 101 | 101 | 'replaced' => |
| 102 | - array ( |
|
| 102 | + array( |
|
| 103 | 103 | 0 => '*', |
| 104 | 104 | ), |
| 105 | 105 | ), |
| 106 | 106 | 'shama/baton' => |
| 107 | - array ( |
|
| 107 | + array( |
|
| 108 | 108 | 'replaced' => |
| 109 | - array ( |
|
| 109 | + array( |
|
| 110 | 110 | 0 => '*', |
| 111 | 111 | ), |
| 112 | 112 | ), |
@@ -1,99 +1,99 @@ |
||
| 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' => 'c77c76d2bb821dfd39f6e97602e1fc972f810df8', |
| 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' => 'c77c76d2bb821dfd39f6e97602e1fc972f810df8', |
| 31 | 31 | ), |
| 32 | 32 | 'ayecode/wp-ayecode-ui' => |
| 33 | - array ( |
|
| 33 | + array( |
|
| 34 | 34 | 'pretty_version' => '0.1.62', |
| 35 | 35 | 'version' => '0.1.62.0', |
| 36 | 36 | 'aliases' => |
| 37 | - array ( |
|
| 37 | + array( |
|
| 38 | 38 | ), |
| 39 | 39 | 'reference' => 'f0625aa6f695cef39fe75bc1707026824e9841d9', |
| 40 | 40 | ), |
| 41 | 41 | 'ayecode/wp-deactivation-survey' => |
| 42 | - array ( |
|
| 42 | + array( |
|
| 43 | 43 | 'pretty_version' => '1.0.4', |
| 44 | 44 | 'version' => '1.0.4.0', |
| 45 | 45 | 'aliases' => |
| 46 | - array ( |
|
| 46 | + array( |
|
| 47 | 47 | ), |
| 48 | 48 | 'reference' => 'd2777fed30acfc4da53b45bf3b4fec2fb27d8398', |
| 49 | 49 | ), |
| 50 | 50 | 'ayecode/wp-font-awesome-settings' => |
| 51 | - array ( |
|
| 51 | + array( |
|
| 52 | 52 | 'pretty_version' => '1.0.13', |
| 53 | 53 | 'version' => '1.0.13.0', |
| 54 | 54 | 'aliases' => |
| 55 | - array ( |
|
| 55 | + array( |
|
| 56 | 56 | ), |
| 57 | 57 | 'reference' => 'a7a11ee4290674ec214d1fe694139af275350402', |
| 58 | 58 | ), |
| 59 | 59 | 'ayecode/wp-super-duper' => |
| 60 | - array ( |
|
| 60 | + array( |
|
| 61 | 61 | 'pretty_version' => '1.0.27', |
| 62 | 62 | 'version' => '1.0.27.0', |
| 63 | 63 | 'aliases' => |
| 64 | - array ( |
|
| 64 | + array( |
|
| 65 | 65 | ), |
| 66 | 66 | 'reference' => 'ce187bc9afc5cd7f5d790d84eb6fd9b98e56992d', |
| 67 | 67 | ), |
| 68 | 68 | 'composer/installers' => |
| 69 | - array ( |
|
| 69 | + array( |
|
| 70 | 70 | 'pretty_version' => 'v1.12.0', |
| 71 | 71 | 'version' => '1.12.0.0', |
| 72 | 72 | 'aliases' => |
| 73 | - array ( |
|
| 73 | + array( |
|
| 74 | 74 | ), |
| 75 | 75 | 'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19', |
| 76 | 76 | ), |
| 77 | 77 | 'maxmind-db/reader' => |
| 78 | - array ( |
|
| 78 | + array( |
|
| 79 | 79 | 'pretty_version' => 'v1.6.0', |
| 80 | 80 | 'version' => '1.6.0.0', |
| 81 | 81 | 'aliases' => |
| 82 | - array ( |
|
| 82 | + array( |
|
| 83 | 83 | ), |
| 84 | 84 | 'reference' => 'febd4920bf17c1da84cef58e56a8227dfb37fbe4', |
| 85 | 85 | ), |
| 86 | 86 | 'roundcube/plugin-installer' => |
| 87 | - array ( |
|
| 87 | + array( |
|
| 88 | 88 | 'replaced' => |
| 89 | - array ( |
|
| 89 | + array( |
|
| 90 | 90 | 0 => '*', |
| 91 | 91 | ), |
| 92 | 92 | ), |
| 93 | 93 | 'shama/baton' => |
| 94 | - array ( |
|
| 94 | + array( |
|
| 95 | 95 | 'replaced' => |
| 96 | - array ( |
|
| 96 | + array( |
|
| 97 | 97 | 0 => '*', |
| 98 | 98 | ), |
| 99 | 99 | ), |
@@ -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.62"; |
| 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(); |