@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('users', function (Blueprint $table) { |
|
16 | + Schema::create('users', function(Blueprint $table) { |
|
17 | 17 | $table->id(); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->string('email')->unique(); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public function up() |
16 | 16 | { |
17 | - Schema::create('custom_options', function (Blueprint $table) { |
|
17 | + Schema::create('custom_options', function(Blueprint $table) { |
|
18 | 18 | $table->id(); |
19 | 19 | $table->string('name'); |
20 | 20 | $table->string('email')->unique(); |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | return [ |
4 | - 'paths' => [ |
|
5 | - __DIR__ . '/../resources/views' |
|
6 | - ], |
|
7 | - 'compiled' => __DIR__ . '/../storage/cache', |
|
4 | + 'paths' => [ |
|
5 | + __DIR__ . '/../resources/views' |
|
6 | + ], |
|
7 | + 'compiled' => __DIR__ . '/../storage/cache', |
|
8 | 8 | ]; |
9 | 9 | \ No newline at end of file |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | 'paths' => [ |
5 | - __DIR__ . '/../resources/views' |
|
5 | + __DIR__.'/../resources/views' |
|
6 | 6 | ], |
7 | - 'compiled' => __DIR__ . '/../storage/cache', |
|
7 | + 'compiled' => __DIR__.'/../storage/cache', |
|
8 | 8 | ]; |
9 | 9 | \ No newline at end of file |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | return [ |
4 | - 'debug' => true, |
|
5 | - 'env' => 'production', |
|
6 | - 'providers' => [ |
|
7 | - '\Illuminate\Filesystem\FilesystemServiceProvider', |
|
8 | - '\Illuminate\Events\EventServiceProvider', |
|
9 | - '\CodexShaper\Routing\RoutingServiceProvider', |
|
10 | - 'Illuminate\View\ViewServiceProvider', |
|
11 | - ] |
|
4 | + 'debug' => true, |
|
5 | + 'env' => 'production', |
|
6 | + 'providers' => [ |
|
7 | + '\Illuminate\Filesystem\FilesystemServiceProvider', |
|
8 | + '\Illuminate\Events\EventServiceProvider', |
|
9 | + '\CodexShaper\Routing\RoutingServiceProvider', |
|
10 | + 'Illuminate\View\ViewServiceProvider', |
|
11 | + ] |
|
12 | 12 | ]; |
13 | 13 | \ No newline at end of file |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | return [ |
4 | - 'paths' => [ |
|
5 | - 'migrations' => __DIR__ . '/../database/migrations', |
|
6 | - 'seeds' => __DIR__ . '/../database/seeds', |
|
7 | - ], |
|
4 | + 'paths' => [ |
|
5 | + 'migrations' => __DIR__ . '/../database/migrations', |
|
6 | + 'seeds' => __DIR__ . '/../database/seeds', |
|
7 | + ], |
|
8 | 8 | ]; |
9 | 9 | \ No newline at end of file |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | 'paths' => [ |
5 | - 'migrations' => __DIR__ . '/../database/migrations', |
|
6 | - 'seeds' => __DIR__ . '/../database/seeds', |
|
5 | + 'migrations' => __DIR__.'/../database/migrations', |
|
6 | + 'seeds' => __DIR__.'/../database/seeds', |
|
7 | 7 | ], |
8 | 8 | ]; |
9 | 9 | \ No newline at end of file |
@@ -24,15 +24,15 @@ |
||
24 | 24 | */ |
25 | 25 | class WPB_Activator { |
26 | 26 | |
27 | - /** |
|
28 | - * Short Description. (use period) |
|
29 | - * |
|
30 | - * Long Description. |
|
31 | - * |
|
32 | - * @since 1.0.0 |
|
33 | - */ |
|
34 | - public static function activate() { |
|
27 | + /** |
|
28 | + * Short Description. (use period) |
|
29 | + * |
|
30 | + * Long Description. |
|
31 | + * |
|
32 | + * @since 1.0.0 |
|
33 | + */ |
|
34 | + public static function activate() { |
|
35 | 35 | |
36 | - } |
|
36 | + } |
|
37 | 37 | |
38 | 38 | } |
@@ -27,20 +27,20 @@ |
||
27 | 27 | class WPB_i18n { |
28 | 28 | |
29 | 29 | |
30 | - /** |
|
31 | - * Load the plugin text domain for translation. |
|
32 | - * |
|
33 | - * @since 1.0.0 |
|
34 | - */ |
|
35 | - public function load_plugin_textdomain() { |
|
36 | - |
|
37 | - load_plugin_textdomain( |
|
38 | - 'wpb', |
|
39 | - false, |
|
40 | - dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/' |
|
41 | - ); |
|
42 | - |
|
43 | - } |
|
30 | + /** |
|
31 | + * Load the plugin text domain for translation. |
|
32 | + * |
|
33 | + * @since 1.0.0 |
|
34 | + */ |
|
35 | + public function load_plugin_textdomain() { |
|
36 | + |
|
37 | + load_plugin_textdomain( |
|
38 | + 'wpb', |
|
39 | + false, |
|
40 | + dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/' |
|
41 | + ); |
|
42 | + |
|
43 | + } |
|
44 | 44 | |
45 | 45 | |
46 | 46 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | load_plugin_textdomain( |
38 | 38 | 'wpb', |
39 | 39 | false, |
40 | - dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/' |
|
40 | + dirname(dirname(plugin_basename(__FILE__))).'/languages/' |
|
41 | 41 | ); |
42 | 42 | |
43 | 43 | } |
@@ -23,107 +23,107 @@ |
||
23 | 23 | */ |
24 | 24 | class WPB_Loader { |
25 | 25 | |
26 | - /** |
|
27 | - * The array of actions registered with WordPress. |
|
28 | - * |
|
29 | - * @since 1.0.0 |
|
30 | - * @access protected |
|
31 | - * @var array $actions The actions registered with WordPress to fire when the plugin loads. |
|
32 | - */ |
|
33 | - protected $actions; |
|
34 | - |
|
35 | - /** |
|
36 | - * The array of filters registered with WordPress. |
|
37 | - * |
|
38 | - * @since 1.0.0 |
|
39 | - * @access protected |
|
40 | - * @var array $filters The filters registered with WordPress to fire when the plugin loads. |
|
41 | - */ |
|
42 | - protected $filters; |
|
43 | - |
|
44 | - /** |
|
45 | - * Initialize the collections used to maintain the actions and filters. |
|
46 | - * |
|
47 | - * @since 1.0.0 |
|
48 | - */ |
|
49 | - public function __construct() { |
|
50 | - |
|
51 | - $this->actions = array(); |
|
52 | - $this->filters = array(); |
|
53 | - |
|
54 | - } |
|
55 | - |
|
56 | - /** |
|
57 | - * Add a new action to the collection to be registered with WordPress. |
|
58 | - * |
|
59 | - * @since 1.0.0 |
|
60 | - * @param string $hook The name of the WordPress action that is being registered. |
|
61 | - * @param object $component A reference to the instance of the object on which the action is defined. |
|
62 | - * @param string $callback The name of the function definition on the $component. |
|
63 | - * @param int $priority Optional. The priority at which the function should be fired. Default is 10. |
|
64 | - * @param int $accepted_args Optional. The number of arguments that should be passed to the $callback. Default is 1. |
|
65 | - */ |
|
66 | - public function add_action( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) { |
|
67 | - $this->actions = $this->add( $this->actions, $hook, $component, $callback, $priority, $accepted_args ); |
|
68 | - } |
|
69 | - |
|
70 | - /** |
|
71 | - * Add a new filter to the collection to be registered with WordPress. |
|
72 | - * |
|
73 | - * @since 1.0.0 |
|
74 | - * @param string $hook The name of the WordPress filter that is being registered. |
|
75 | - * @param object $component A reference to the instance of the object on which the filter is defined. |
|
76 | - * @param string $callback The name of the function definition on the $component. |
|
77 | - * @param int $priority Optional. The priority at which the function should be fired. Default is 10. |
|
78 | - * @param int $accepted_args Optional. The number of arguments that should be passed to the $callback. Default is 1 |
|
79 | - */ |
|
80 | - public function add_filter( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) { |
|
81 | - $this->filters = $this->add( $this->filters, $hook, $component, $callback, $priority, $accepted_args ); |
|
82 | - } |
|
83 | - |
|
84 | - /** |
|
85 | - * A utility function that is used to register the actions and hooks into a single |
|
86 | - * collection. |
|
87 | - * |
|
88 | - * @since 1.0.0 |
|
89 | - * @access private |
|
90 | - * @param array $hooks The collection of hooks that is being registered (that is, actions or filters). |
|
91 | - * @param string $hook The name of the WordPress filter that is being registered. |
|
92 | - * @param object $component A reference to the instance of the object on which the filter is defined. |
|
93 | - * @param string $callback The name of the function definition on the $component. |
|
94 | - * @param int $priority The priority at which the function should be fired. |
|
95 | - * @param int $accepted_args The number of arguments that should be passed to the $callback. |
|
96 | - * @return array The collection of actions and filters registered with WordPress. |
|
97 | - */ |
|
98 | - private function add( $hooks, $hook, $component, $callback, $priority, $accepted_args ) { |
|
99 | - |
|
100 | - $hooks[] = array( |
|
101 | - 'hook' => $hook, |
|
102 | - 'component' => $component, |
|
103 | - 'callback' => $callback, |
|
104 | - 'priority' => $priority, |
|
105 | - 'accepted_args' => $accepted_args |
|
106 | - ); |
|
107 | - |
|
108 | - return $hooks; |
|
109 | - |
|
110 | - } |
|
111 | - |
|
112 | - /** |
|
113 | - * Register the filters and actions with WordPress. |
|
114 | - * |
|
115 | - * @since 1.0.0 |
|
116 | - */ |
|
117 | - public function run() { |
|
118 | - |
|
119 | - foreach ( $this->filters as $hook ) { |
|
120 | - add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); |
|
121 | - } |
|
122 | - |
|
123 | - foreach ( $this->actions as $hook ) { |
|
124 | - add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); |
|
125 | - } |
|
126 | - |
|
127 | - } |
|
26 | + /** |
|
27 | + * The array of actions registered with WordPress. |
|
28 | + * |
|
29 | + * @since 1.0.0 |
|
30 | + * @access protected |
|
31 | + * @var array $actions The actions registered with WordPress to fire when the plugin loads. |
|
32 | + */ |
|
33 | + protected $actions; |
|
34 | + |
|
35 | + /** |
|
36 | + * The array of filters registered with WordPress. |
|
37 | + * |
|
38 | + * @since 1.0.0 |
|
39 | + * @access protected |
|
40 | + * @var array $filters The filters registered with WordPress to fire when the plugin loads. |
|
41 | + */ |
|
42 | + protected $filters; |
|
43 | + |
|
44 | + /** |
|
45 | + * Initialize the collections used to maintain the actions and filters. |
|
46 | + * |
|
47 | + * @since 1.0.0 |
|
48 | + */ |
|
49 | + public function __construct() { |
|
50 | + |
|
51 | + $this->actions = array(); |
|
52 | + $this->filters = array(); |
|
53 | + |
|
54 | + } |
|
55 | + |
|
56 | + /** |
|
57 | + * Add a new action to the collection to be registered with WordPress. |
|
58 | + * |
|
59 | + * @since 1.0.0 |
|
60 | + * @param string $hook The name of the WordPress action that is being registered. |
|
61 | + * @param object $component A reference to the instance of the object on which the action is defined. |
|
62 | + * @param string $callback The name of the function definition on the $component. |
|
63 | + * @param int $priority Optional. The priority at which the function should be fired. Default is 10. |
|
64 | + * @param int $accepted_args Optional. The number of arguments that should be passed to the $callback. Default is 1. |
|
65 | + */ |
|
66 | + public function add_action( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) { |
|
67 | + $this->actions = $this->add( $this->actions, $hook, $component, $callback, $priority, $accepted_args ); |
|
68 | + } |
|
69 | + |
|
70 | + /** |
|
71 | + * Add a new filter to the collection to be registered with WordPress. |
|
72 | + * |
|
73 | + * @since 1.0.0 |
|
74 | + * @param string $hook The name of the WordPress filter that is being registered. |
|
75 | + * @param object $component A reference to the instance of the object on which the filter is defined. |
|
76 | + * @param string $callback The name of the function definition on the $component. |
|
77 | + * @param int $priority Optional. The priority at which the function should be fired. Default is 10. |
|
78 | + * @param int $accepted_args Optional. The number of arguments that should be passed to the $callback. Default is 1 |
|
79 | + */ |
|
80 | + public function add_filter( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) { |
|
81 | + $this->filters = $this->add( $this->filters, $hook, $component, $callback, $priority, $accepted_args ); |
|
82 | + } |
|
83 | + |
|
84 | + /** |
|
85 | + * A utility function that is used to register the actions and hooks into a single |
|
86 | + * collection. |
|
87 | + * |
|
88 | + * @since 1.0.0 |
|
89 | + * @access private |
|
90 | + * @param array $hooks The collection of hooks that is being registered (that is, actions or filters). |
|
91 | + * @param string $hook The name of the WordPress filter that is being registered. |
|
92 | + * @param object $component A reference to the instance of the object on which the filter is defined. |
|
93 | + * @param string $callback The name of the function definition on the $component. |
|
94 | + * @param int $priority The priority at which the function should be fired. |
|
95 | + * @param int $accepted_args The number of arguments that should be passed to the $callback. |
|
96 | + * @return array The collection of actions and filters registered with WordPress. |
|
97 | + */ |
|
98 | + private function add( $hooks, $hook, $component, $callback, $priority, $accepted_args ) { |
|
99 | + |
|
100 | + $hooks[] = array( |
|
101 | + 'hook' => $hook, |
|
102 | + 'component' => $component, |
|
103 | + 'callback' => $callback, |
|
104 | + 'priority' => $priority, |
|
105 | + 'accepted_args' => $accepted_args |
|
106 | + ); |
|
107 | + |
|
108 | + return $hooks; |
|
109 | + |
|
110 | + } |
|
111 | + |
|
112 | + /** |
|
113 | + * Register the filters and actions with WordPress. |
|
114 | + * |
|
115 | + * @since 1.0.0 |
|
116 | + */ |
|
117 | + public function run() { |
|
118 | + |
|
119 | + foreach ( $this->filters as $hook ) { |
|
120 | + add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); |
|
121 | + } |
|
122 | + |
|
123 | + foreach ( $this->actions as $hook ) { |
|
124 | + add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); |
|
125 | + } |
|
126 | + |
|
127 | + } |
|
128 | 128 | |
129 | 129 | } |
@@ -63,8 +63,8 @@ discard block |
||
63 | 63 | * @param int $priority Optional. The priority at which the function should be fired. Default is 10. |
64 | 64 | * @param int $accepted_args Optional. The number of arguments that should be passed to the $callback. Default is 1. |
65 | 65 | */ |
66 | - public function add_action( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) { |
|
67 | - $this->actions = $this->add( $this->actions, $hook, $component, $callback, $priority, $accepted_args ); |
|
66 | + public function add_action($hook, $component, $callback, $priority = 10, $accepted_args = 1) { |
|
67 | + $this->actions = $this->add($this->actions, $hook, $component, $callback, $priority, $accepted_args); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
@@ -77,8 +77,8 @@ discard block |
||
77 | 77 | * @param int $priority Optional. The priority at which the function should be fired. Default is 10. |
78 | 78 | * @param int $accepted_args Optional. The number of arguments that should be passed to the $callback. Default is 1 |
79 | 79 | */ |
80 | - public function add_filter( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) { |
|
81 | - $this->filters = $this->add( $this->filters, $hook, $component, $callback, $priority, $accepted_args ); |
|
80 | + public function add_filter($hook, $component, $callback, $priority = 10, $accepted_args = 1) { |
|
81 | + $this->filters = $this->add($this->filters, $hook, $component, $callback, $priority, $accepted_args); |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @param int $accepted_args The number of arguments that should be passed to the $callback. |
96 | 96 | * @return array The collection of actions and filters registered with WordPress. |
97 | 97 | */ |
98 | - private function add( $hooks, $hook, $component, $callback, $priority, $accepted_args ) { |
|
98 | + private function add($hooks, $hook, $component, $callback, $priority, $accepted_args) { |
|
99 | 99 | |
100 | 100 | $hooks[] = array( |
101 | 101 | 'hook' => $hook, |
@@ -116,12 +116,12 @@ discard block |
||
116 | 116 | */ |
117 | 117 | public function run() { |
118 | 118 | |
119 | - foreach ( $this->filters as $hook ) { |
|
120 | - add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); |
|
119 | + foreach ($this->filters as $hook) { |
|
120 | + add_filter($hook['hook'], array($hook['component'], $hook['callback']), $hook['priority'], $hook['accepted_args']); |
|
121 | 121 | } |
122 | 122 | |
123 | - foreach ( $this->actions as $hook ) { |
|
124 | - add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); |
|
123 | + foreach ($this->actions as $hook) { |
|
124 | + add_action($hook['hook'], array($hook['component'], $hook['callback']), $hook['priority'], $hook['accepted_args']); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | } |
@@ -33,58 +33,58 @@ discard block |
||
33 | 33 | */ |
34 | 34 | class WPB { |
35 | 35 | |
36 | - /** |
|
37 | - * The loader that's responsible for maintaining and registering all hooks that power |
|
38 | - * the plugin. |
|
39 | - * |
|
40 | - * @since 1.0.0 |
|
41 | - * @access protected |
|
42 | - * @var WPB_Loader $loader Maintains and registers all hooks for the plugin. |
|
43 | - */ |
|
44 | - protected $loader; |
|
45 | - |
|
46 | - /** |
|
47 | - * The unique identifier of this plugin. |
|
48 | - * |
|
49 | - * @since 1.0.0 |
|
50 | - * @access protected |
|
51 | - * @var string $plugin_name The string used to uniquely identify this plugin. |
|
52 | - */ |
|
53 | - protected $plugin_name; |
|
54 | - |
|
55 | - /** |
|
56 | - * The current version of the plugin. |
|
57 | - * |
|
58 | - * @since 1.0.0 |
|
59 | - * @access protected |
|
60 | - * @var string $version The current version of the plugin. |
|
61 | - */ |
|
62 | - protected $version; |
|
63 | - |
|
64 | - /** |
|
65 | - * Define the core functionality of the plugin. |
|
66 | - * |
|
67 | - * Set the plugin name and the plugin version that can be used throughout the plugin. |
|
68 | - * Load the dependencies, define the locale, and set the hooks for the admin area and |
|
69 | - * the public-facing side of the site. |
|
70 | - * |
|
71 | - * @since 1.0.0 |
|
72 | - */ |
|
73 | - public function __construct() { |
|
74 | - |
|
75 | - $this->define_constants(); |
|
76 | - |
|
77 | - if ( defined( 'WPB_VERSION' ) ) { |
|
78 | - $this->version = WPB_VERSION; |
|
79 | - } else { |
|
80 | - $this->version = '1.0.0'; |
|
81 | - } |
|
82 | - $this->plugin_name = 'wpb'; |
|
83 | - $this->load_dependencies(); |
|
84 | - $this->set_locale(); |
|
85 | - $this->define_admin_hooks(); |
|
86 | - $this->define_public_hooks(); |
|
87 | - $this->register_assets(); |
|
36 | + /** |
|
37 | + * The loader that's responsible for maintaining and registering all hooks that power |
|
38 | + * the plugin. |
|
39 | + * |
|
40 | + * @since 1.0.0 |
|
41 | + * @access protected |
|
42 | + * @var WPB_Loader $loader Maintains and registers all hooks for the plugin. |
|
43 | + */ |
|
44 | + protected $loader; |
|
45 | + |
|
46 | + /** |
|
47 | + * The unique identifier of this plugin. |
|
48 | + * |
|
49 | + * @since 1.0.0 |
|
50 | + * @access protected |
|
51 | + * @var string $plugin_name The string used to uniquely identify this plugin. |
|
52 | + */ |
|
53 | + protected $plugin_name; |
|
54 | + |
|
55 | + /** |
|
56 | + * The current version of the plugin. |
|
57 | + * |
|
58 | + * @since 1.0.0 |
|
59 | + * @access protected |
|
60 | + * @var string $version The current version of the plugin. |
|
61 | + */ |
|
62 | + protected $version; |
|
63 | + |
|
64 | + /** |
|
65 | + * Define the core functionality of the plugin. |
|
66 | + * |
|
67 | + * Set the plugin name and the plugin version that can be used throughout the plugin. |
|
68 | + * Load the dependencies, define the locale, and set the hooks for the admin area and |
|
69 | + * the public-facing side of the site. |
|
70 | + * |
|
71 | + * @since 1.0.0 |
|
72 | + */ |
|
73 | + public function __construct() { |
|
74 | + |
|
75 | + $this->define_constants(); |
|
76 | + |
|
77 | + if ( defined( 'WPB_VERSION' ) ) { |
|
78 | + $this->version = WPB_VERSION; |
|
79 | + } else { |
|
80 | + $this->version = '1.0.0'; |
|
81 | + } |
|
82 | + $this->plugin_name = 'wpb'; |
|
83 | + $this->load_dependencies(); |
|
84 | + $this->set_locale(); |
|
85 | + $this->define_admin_hooks(); |
|
86 | + $this->define_public_hooks(); |
|
87 | + $this->register_assets(); |
|
88 | 88 | |
89 | 89 | $menu = new WPB_Admin_Menu; |
90 | 90 | $menu->plugin_name = "wpb"; |
@@ -106,153 +106,153 @@ discard block |
||
106 | 106 | $submenu->capability = 'manage_options'; |
107 | 107 | $submenu->slug = 'admin.php?page=' . $menu->slug . '#/settings'; |
108 | 108 | $submenu->save(); |
109 | - } |
|
110 | - |
|
111 | - /** |
|
112 | - * Load the required dependencies for this plugin. |
|
113 | - * |
|
114 | - * Include the following files that make up the plugin: |
|
115 | - * |
|
116 | - * - WPB_Loader. Orchestrates the hooks of the plugin. |
|
117 | - * - WPB_i18n. Defines internationalization functionality. |
|
118 | - * - WPB_Admin. Defines all hooks for the admin area. |
|
119 | - * - WPB_Public. Defines all hooks for the public side of the site. |
|
120 | - * |
|
121 | - * Create an instance of the loader which will be used to register the hooks |
|
122 | - * with WordPress. |
|
123 | - * |
|
124 | - * @since 1.0.0 |
|
125 | - * @access private |
|
126 | - */ |
|
127 | - private function load_dependencies() { |
|
128 | - |
|
129 | - /** |
|
130 | - * The class responsible for orchestrating the actions and filters of the |
|
131 | - * core plugin. |
|
132 | - */ |
|
133 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wpb-loader.php'; |
|
134 | - |
|
135 | - /** |
|
136 | - * The class responsible for defining internationalization functionality |
|
137 | - * of the plugin. |
|
138 | - */ |
|
139 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wpb-i18n.php'; |
|
140 | - |
|
141 | - /** |
|
142 | - * The class responsible for defining all actions that occur in the admin area. |
|
143 | - */ |
|
144 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wpb-admin.php'; |
|
145 | - |
|
146 | - /** |
|
147 | - * The class responsible for defining all menu actions that occur in the admin area. |
|
148 | - */ |
|
149 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wpb-admin-menu.php'; |
|
150 | - |
|
151 | - /** |
|
152 | - * The class responsible for defining all submenu actions that occur in the admin area. |
|
153 | - */ |
|
154 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wpb-admin-submenu.php'; |
|
155 | - |
|
156 | - /** |
|
157 | - * The class responsible for defining all actions that occur in the public-facing |
|
158 | - * side of the site. |
|
159 | - */ |
|
160 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wpb-public.php'; |
|
161 | - |
|
162 | - $this->loader = new WPB_Loader(); |
|
163 | - |
|
164 | - } |
|
165 | - |
|
166 | - /** |
|
167 | - * Define the locale for this plugin for internationalization. |
|
168 | - * |
|
169 | - * Uses the WPB_i18n class in order to set the domain and to register the hook |
|
170 | - * with WordPress. |
|
171 | - * |
|
172 | - * @since 1.0.0 |
|
173 | - * @access private |
|
174 | - */ |
|
175 | - private function set_locale() { |
|
176 | - |
|
177 | - $plugin_i18n = new WPB_i18n(); |
|
178 | - |
|
179 | - $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' ); |
|
180 | - |
|
181 | - } |
|
182 | - |
|
183 | - /** |
|
184 | - * Register all of the hooks related to the admin area functionality |
|
185 | - * of the plugin. |
|
186 | - * |
|
187 | - * @since 1.0.0 |
|
188 | - * @access private |
|
189 | - */ |
|
190 | - private function define_admin_hooks() { |
|
191 | - |
|
192 | - $plugin_admin = new WPB_Admin( $this->get_plugin_name(), $this->get_version() ); |
|
193 | - |
|
194 | - $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' ); |
|
195 | - $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' ); |
|
196 | - |
|
197 | - } |
|
198 | - |
|
199 | - /** |
|
200 | - * Register all of the hooks related to the public-facing functionality |
|
201 | - * of the plugin. |
|
202 | - * |
|
203 | - * @since 1.0.0 |
|
204 | - * @access private |
|
205 | - */ |
|
206 | - private function define_public_hooks() { |
|
207 | - |
|
208 | - $plugin_public = new WPB_Public( $this->get_plugin_name(), $this->get_version() ); |
|
209 | - |
|
210 | - $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' ); |
|
211 | - $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); |
|
212 | - |
|
213 | - } |
|
214 | - |
|
215 | - /** |
|
216 | - * Run the loader to execute all of the hooks with WordPress. |
|
217 | - * |
|
218 | - * @since 1.0.0 |
|
219 | - */ |
|
220 | - public function run() { |
|
221 | - $this->loader->run(); |
|
222 | - } |
|
223 | - |
|
224 | - /** |
|
225 | - * The name of the plugin used to uniquely identify it within the context of |
|
226 | - * WordPress and to define internationalization functionality. |
|
227 | - * |
|
228 | - * @since 1.0.0 |
|
229 | - * @return string The name of the plugin. |
|
230 | - */ |
|
231 | - public function get_plugin_name() { |
|
232 | - return $this->plugin_name; |
|
233 | - } |
|
234 | - |
|
235 | - /** |
|
236 | - * The reference to the class that orchestrates the hooks with the plugin. |
|
237 | - * |
|
238 | - * @since 1.0.0 |
|
239 | - * @return WPB_Loader Orchestrates the hooks of the plugin. |
|
240 | - */ |
|
241 | - public function get_loader() { |
|
242 | - return $this->loader; |
|
243 | - } |
|
244 | - |
|
245 | - /** |
|
246 | - * Retrieve the version number of the plugin. |
|
247 | - * |
|
248 | - * @since 1.0.0 |
|
249 | - * @return string The version number of the plugin. |
|
250 | - */ |
|
251 | - public function get_version() { |
|
252 | - return $this->version; |
|
253 | - } |
|
254 | - |
|
255 | - /** |
|
109 | + } |
|
110 | + |
|
111 | + /** |
|
112 | + * Load the required dependencies for this plugin. |
|
113 | + * |
|
114 | + * Include the following files that make up the plugin: |
|
115 | + * |
|
116 | + * - WPB_Loader. Orchestrates the hooks of the plugin. |
|
117 | + * - WPB_i18n. Defines internationalization functionality. |
|
118 | + * - WPB_Admin. Defines all hooks for the admin area. |
|
119 | + * - WPB_Public. Defines all hooks for the public side of the site. |
|
120 | + * |
|
121 | + * Create an instance of the loader which will be used to register the hooks |
|
122 | + * with WordPress. |
|
123 | + * |
|
124 | + * @since 1.0.0 |
|
125 | + * @access private |
|
126 | + */ |
|
127 | + private function load_dependencies() { |
|
128 | + |
|
129 | + /** |
|
130 | + * The class responsible for orchestrating the actions and filters of the |
|
131 | + * core plugin. |
|
132 | + */ |
|
133 | + require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wpb-loader.php'; |
|
134 | + |
|
135 | + /** |
|
136 | + * The class responsible for defining internationalization functionality |
|
137 | + * of the plugin. |
|
138 | + */ |
|
139 | + require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wpb-i18n.php'; |
|
140 | + |
|
141 | + /** |
|
142 | + * The class responsible for defining all actions that occur in the admin area. |
|
143 | + */ |
|
144 | + require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wpb-admin.php'; |
|
145 | + |
|
146 | + /** |
|
147 | + * The class responsible for defining all menu actions that occur in the admin area. |
|
148 | + */ |
|
149 | + require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wpb-admin-menu.php'; |
|
150 | + |
|
151 | + /** |
|
152 | + * The class responsible for defining all submenu actions that occur in the admin area. |
|
153 | + */ |
|
154 | + require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wpb-admin-submenu.php'; |
|
155 | + |
|
156 | + /** |
|
157 | + * The class responsible for defining all actions that occur in the public-facing |
|
158 | + * side of the site. |
|
159 | + */ |
|
160 | + require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wpb-public.php'; |
|
161 | + |
|
162 | + $this->loader = new WPB_Loader(); |
|
163 | + |
|
164 | + } |
|
165 | + |
|
166 | + /** |
|
167 | + * Define the locale for this plugin for internationalization. |
|
168 | + * |
|
169 | + * Uses the WPB_i18n class in order to set the domain and to register the hook |
|
170 | + * with WordPress. |
|
171 | + * |
|
172 | + * @since 1.0.0 |
|
173 | + * @access private |
|
174 | + */ |
|
175 | + private function set_locale() { |
|
176 | + |
|
177 | + $plugin_i18n = new WPB_i18n(); |
|
178 | + |
|
179 | + $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' ); |
|
180 | + |
|
181 | + } |
|
182 | + |
|
183 | + /** |
|
184 | + * Register all of the hooks related to the admin area functionality |
|
185 | + * of the plugin. |
|
186 | + * |
|
187 | + * @since 1.0.0 |
|
188 | + * @access private |
|
189 | + */ |
|
190 | + private function define_admin_hooks() { |
|
191 | + |
|
192 | + $plugin_admin = new WPB_Admin( $this->get_plugin_name(), $this->get_version() ); |
|
193 | + |
|
194 | + $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' ); |
|
195 | + $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' ); |
|
196 | + |
|
197 | + } |
|
198 | + |
|
199 | + /** |
|
200 | + * Register all of the hooks related to the public-facing functionality |
|
201 | + * of the plugin. |
|
202 | + * |
|
203 | + * @since 1.0.0 |
|
204 | + * @access private |
|
205 | + */ |
|
206 | + private function define_public_hooks() { |
|
207 | + |
|
208 | + $plugin_public = new WPB_Public( $this->get_plugin_name(), $this->get_version() ); |
|
209 | + |
|
210 | + $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' ); |
|
211 | + $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); |
|
212 | + |
|
213 | + } |
|
214 | + |
|
215 | + /** |
|
216 | + * Run the loader to execute all of the hooks with WordPress. |
|
217 | + * |
|
218 | + * @since 1.0.0 |
|
219 | + */ |
|
220 | + public function run() { |
|
221 | + $this->loader->run(); |
|
222 | + } |
|
223 | + |
|
224 | + /** |
|
225 | + * The name of the plugin used to uniquely identify it within the context of |
|
226 | + * WordPress and to define internationalization functionality. |
|
227 | + * |
|
228 | + * @since 1.0.0 |
|
229 | + * @return string The name of the plugin. |
|
230 | + */ |
|
231 | + public function get_plugin_name() { |
|
232 | + return $this->plugin_name; |
|
233 | + } |
|
234 | + |
|
235 | + /** |
|
236 | + * The reference to the class that orchestrates the hooks with the plugin. |
|
237 | + * |
|
238 | + * @since 1.0.0 |
|
239 | + * @return WPB_Loader Orchestrates the hooks of the plugin. |
|
240 | + */ |
|
241 | + public function get_loader() { |
|
242 | + return $this->loader; |
|
243 | + } |
|
244 | + |
|
245 | + /** |
|
246 | + * Retrieve the version number of the plugin. |
|
247 | + * |
|
248 | + * @since 1.0.0 |
|
249 | + * @return string The version number of the plugin. |
|
250 | + */ |
|
251 | + public function get_version() { |
|
252 | + return $this->version; |
|
253 | + } |
|
254 | + |
|
255 | + /** |
|
256 | 256 | * Define the constants. |
257 | 257 | * |
258 | 258 | * @return void |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | } |
304 | 304 | } |
305 | 305 | |
306 | - /** |
|
306 | + /** |
|
307 | 307 | * Get all registered scripts. |
308 | 308 | * |
309 | 309 | * @return array |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | $this->define_constants(); |
76 | 76 | |
77 | - if ( defined( 'WPB_VERSION' ) ) { |
|
77 | + if (defined('WPB_VERSION')) { |
|
78 | 78 | $this->version = WPB_VERSION; |
79 | 79 | } else { |
80 | 80 | $this->version = '1.0.0'; |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | $submenu->page_title = 'Settings'; |
105 | 105 | $submenu->menu_title = 'Settings'; |
106 | 106 | $submenu->capability = 'manage_options'; |
107 | - $submenu->slug = 'admin.php?page=' . $menu->slug . '#/settings'; |
|
107 | + $submenu->slug = 'admin.php?page='.$menu->slug.'#/settings'; |
|
108 | 108 | $submenu->save(); |
109 | 109 | } |
110 | 110 | |
@@ -130,34 +130,34 @@ discard block |
||
130 | 130 | * The class responsible for orchestrating the actions and filters of the |
131 | 131 | * core plugin. |
132 | 132 | */ |
133 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wpb-loader.php'; |
|
133 | + require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wpb-loader.php'; |
|
134 | 134 | |
135 | 135 | /** |
136 | 136 | * The class responsible for defining internationalization functionality |
137 | 137 | * of the plugin. |
138 | 138 | */ |
139 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wpb-i18n.php'; |
|
139 | + require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wpb-i18n.php'; |
|
140 | 140 | |
141 | 141 | /** |
142 | 142 | * The class responsible for defining all actions that occur in the admin area. |
143 | 143 | */ |
144 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wpb-admin.php'; |
|
144 | + require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wpb-admin.php'; |
|
145 | 145 | |
146 | 146 | /** |
147 | 147 | * The class responsible for defining all menu actions that occur in the admin area. |
148 | 148 | */ |
149 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wpb-admin-menu.php'; |
|
149 | + require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wpb-admin-menu.php'; |
|
150 | 150 | |
151 | 151 | /** |
152 | 152 | * The class responsible for defining all submenu actions that occur in the admin area. |
153 | 153 | */ |
154 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wpb-admin-submenu.php'; |
|
154 | + require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wpb-admin-submenu.php'; |
|
155 | 155 | |
156 | 156 | /** |
157 | 157 | * The class responsible for defining all actions that occur in the public-facing |
158 | 158 | * side of the site. |
159 | 159 | */ |
160 | - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wpb-public.php'; |
|
160 | + require_once plugin_dir_path(dirname(__FILE__)).'public/class-wpb-public.php'; |
|
161 | 161 | |
162 | 162 | $this->loader = new WPB_Loader(); |
163 | 163 | |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | |
177 | 177 | $plugin_i18n = new WPB_i18n(); |
178 | 178 | |
179 | - $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' ); |
|
179 | + $this->loader->add_action('plugins_loaded', $plugin_i18n, 'load_plugin_textdomain'); |
|
180 | 180 | |
181 | 181 | } |
182 | 182 | |
@@ -189,10 +189,10 @@ discard block |
||
189 | 189 | */ |
190 | 190 | private function define_admin_hooks() { |
191 | 191 | |
192 | - $plugin_admin = new WPB_Admin( $this->get_plugin_name(), $this->get_version() ); |
|
192 | + $plugin_admin = new WPB_Admin($this->get_plugin_name(), $this->get_version()); |
|
193 | 193 | |
194 | - $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' ); |
|
195 | - $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' ); |
|
194 | + $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_styles'); |
|
195 | + $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts'); |
|
196 | 196 | |
197 | 197 | } |
198 | 198 | |
@@ -205,10 +205,10 @@ discard block |
||
205 | 205 | */ |
206 | 206 | private function define_public_hooks() { |
207 | 207 | |
208 | - $plugin_public = new WPB_Public( $this->get_plugin_name(), $this->get_version() ); |
|
208 | + $plugin_public = new WPB_Public($this->get_plugin_name(), $this->get_version()); |
|
209 | 209 | |
210 | - $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' ); |
|
211 | - $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); |
|
210 | + $this->loader->add_action('wp_enqueue_scripts', $plugin_public, 'enqueue_styles'); |
|
211 | + $this->loader->add_action('wp_enqueue_scripts', $plugin_public, 'enqueue_scripts'); |
|
212 | 212 | |
213 | 213 | } |
214 | 214 | |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | * @return void |
259 | 259 | */ |
260 | 260 | public function define_constants() { |
261 | - define( 'WPB_VERSION', $this->version ); |
|
261 | + define('WPB_VERSION', $this->version); |
|
262 | 262 | } |
263 | 263 | |
264 | 264 | /** |
@@ -267,8 +267,8 @@ discard block |
||
267 | 267 | * @return void |
268 | 268 | */ |
269 | 269 | public function register_assets() { |
270 | - $this->register_scripts( $this->get_scripts() ); |
|
271 | - $this->register_styles( $this->get_styles() ); |
|
270 | + $this->register_scripts($this->get_scripts()); |
|
271 | + $this->register_styles($this->get_styles()); |
|
272 | 272 | } |
273 | 273 | |
274 | 274 | /** |
@@ -278,13 +278,13 @@ discard block |
||
278 | 278 | * |
279 | 279 | * @return void |
280 | 280 | */ |
281 | - private function register_scripts( $scripts ) { |
|
282 | - foreach ( $scripts as $handle => $script ) { |
|
283 | - $deps = isset( $script['deps'] ) ? $script['deps'] : false; |
|
284 | - $in_footer = isset( $script['in_footer'] ) ? $script['in_footer'] : false; |
|
285 | - $version = isset( $script['version'] ) ? $script['version'] : WPB_VERSION; |
|
281 | + private function register_scripts($scripts) { |
|
282 | + foreach ($scripts as $handle => $script) { |
|
283 | + $deps = isset($script['deps']) ? $script['deps'] : false; |
|
284 | + $in_footer = isset($script['in_footer']) ? $script['in_footer'] : false; |
|
285 | + $version = isset($script['version']) ? $script['version'] : WPB_VERSION; |
|
286 | 286 | |
287 | - wp_register_script( $handle, $script['src'], $deps, $version, $in_footer ); |
|
287 | + wp_register_script($handle, $script['src'], $deps, $version, $in_footer); |
|
288 | 288 | } |
289 | 289 | } |
290 | 290 | |
@@ -295,11 +295,11 @@ discard block |
||
295 | 295 | * |
296 | 296 | * @return void |
297 | 297 | */ |
298 | - public function register_styles( $styles ) { |
|
299 | - foreach ( $styles as $handle => $style ) { |
|
300 | - $deps = isset( $style['deps'] ) ? $style['deps'] : false; |
|
298 | + public function register_styles($styles) { |
|
299 | + foreach ($styles as $handle => $style) { |
|
300 | + $deps = isset($style['deps']) ? $style['deps'] : false; |
|
301 | 301 | |
302 | - wp_register_style( $handle, $style['src'], $deps, WPB_VERSION ); |
|
302 | + wp_register_style($handle, $style['src'], $deps, WPB_VERSION); |
|
303 | 303 | } |
304 | 304 | } |
305 | 305 | |
@@ -310,35 +310,35 @@ discard block |
||
310 | 310 | */ |
311 | 311 | public function get_scripts() { |
312 | 312 | |
313 | - $prefix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '.min' : ''; |
|
313 | + $prefix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.min' : ''; |
|
314 | 314 | |
315 | 315 | $scripts = [ |
316 | 316 | 'wpb-runtime' => [ |
317 | - 'src' => WPB_ASSETS . '/js/runtime.js', |
|
318 | - 'version' => filemtime( WPB_PATH . '/public/js/runtime.js' ), |
|
317 | + 'src' => WPB_ASSETS.'/js/runtime.js', |
|
318 | + 'version' => filemtime(WPB_PATH.'/public/js/runtime.js'), |
|
319 | 319 | 'in_footer' => true |
320 | 320 | ], |
321 | 321 | 'wpb-vendor' => [ |
322 | - 'src' => WPB_ASSETS . '/js/vendors.js', |
|
323 | - 'version' => filemtime( WPB_PATH . '/public/js/vendors.js' ), |
|
322 | + 'src' => WPB_ASSETS.'/js/vendors.js', |
|
323 | + 'version' => filemtime(WPB_PATH.'/public/js/vendors.js'), |
|
324 | 324 | 'in_footer' => true |
325 | 325 | ], |
326 | 326 | 'wpb-frontend' => [ |
327 | - 'src' => WPB_ASSETS . '/js/frontend.js', |
|
328 | - 'deps' => [ 'jquery', 'wpb-vendor', 'wpb-runtime' ], |
|
329 | - 'version' => filemtime( WPB_PATH . '/public/js/frontend.js' ), |
|
327 | + 'src' => WPB_ASSETS.'/js/frontend.js', |
|
328 | + 'deps' => ['jquery', 'wpb-vendor', 'wpb-runtime'], |
|
329 | + 'version' => filemtime(WPB_PATH.'/public/js/frontend.js'), |
|
330 | 330 | 'in_footer' => true |
331 | 331 | ], |
332 | 332 | 'wpb-admin' => [ |
333 | - 'src' => WPB_ASSETS . '/js/admin.js', |
|
334 | - 'deps' => [ 'jquery', 'wpb-vendor', 'wpb-runtime' ], |
|
335 | - 'version' => filemtime( WPB_PATH . '/public/js/admin.js' ), |
|
333 | + 'src' => WPB_ASSETS.'/js/admin.js', |
|
334 | + 'deps' => ['jquery', 'wpb-vendor', 'wpb-runtime'], |
|
335 | + 'version' => filemtime(WPB_PATH.'/public/js/admin.js'), |
|
336 | 336 | 'in_footer' => true |
337 | 337 | ], |
338 | 338 | 'wpb-spa' => [ |
339 | - 'src' => WPB_ASSETS . '/js/spa.js', |
|
340 | - 'deps' => [ 'jquery', 'wpb-vendor', 'wpb-runtime' ], |
|
341 | - 'version' => filemtime( WPB_PATH . '/public/js/spa.js' ), |
|
339 | + 'src' => WPB_ASSETS.'/js/spa.js', |
|
340 | + 'deps' => ['jquery', 'wpb-vendor', 'wpb-runtime'], |
|
341 | + 'version' => filemtime(WPB_PATH.'/public/js/spa.js'), |
|
342 | 342 | 'in_footer' => true |
343 | 343 | ] |
344 | 344 | ]; |
@@ -355,19 +355,19 @@ discard block |
||
355 | 355 | |
356 | 356 | $styles = [ |
357 | 357 | 'wpb-style' => [ |
358 | - 'src' => WPB_ASSETS . '/css/style.css' |
|
358 | + 'src' => WPB_ASSETS.'/css/style.css' |
|
359 | 359 | ], |
360 | 360 | 'wpb-frontend' => [ |
361 | - 'src' => WPB_ASSETS . '/css/frontend.css' |
|
361 | + 'src' => WPB_ASSETS.'/css/frontend.css' |
|
362 | 362 | ], |
363 | 363 | 'wpb-admin' => [ |
364 | - 'src' => WPB_ASSETS . '/css/admin.css' |
|
364 | + 'src' => WPB_ASSETS.'/css/admin.css' |
|
365 | 365 | ], |
366 | 366 | 'wpb-spa' => [ |
367 | - 'src' => WPB_ASSETS . '/css/spa.css' |
|
367 | + 'src' => WPB_ASSETS.'/css/spa.css' |
|
368 | 368 | ], |
369 | 369 | 'wpb-vendors' => [ |
370 | - 'src' => WPB_ASSETS . '/css/vendors.css' |
|
370 | + 'src' => WPB_ASSETS.'/css/vendors.css' |
|
371 | 371 | ], |
372 | 372 | ]; |
373 | 373 |