@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @subpackage Yikes_Inc_Easy_Mailchimp_Extender/includes |
26 | 26 | * @author YIKES Inc. <[email protected]> |
27 | 27 | */ |
28 | -class Yikes_Inc_Easy_Mailchimp_Extender { |
|
28 | +class Yikes_Inc_Easy_Mailchimp_Extender { |
|
29 | 29 | /** |
30 | 30 | * The loader that's responsible for maintaining and registering all hooks that power |
31 | 31 | * the plugin. |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * |
71 | 71 | * @param Yikes_Inc_Easy_Mailchimp_Extender_Form_Interface $form_interface |
72 | 72 | */ |
73 | - public function __construct( Yikes_Inc_Easy_Mailchimp_Extender_Form_Interface $form_interface ) { |
|
73 | + public function __construct( Yikes_Inc_Easy_Mailchimp_Extender_Form_Interface $form_interface ) { |
|
74 | 74 | $this->version = YIKES_MC_VERSION; |
75 | 75 | $this->form_interface = $form_interface; |
76 | 76 | $this->load_dependencies(); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | * @since 1.0.0 |
94 | 94 | * @access private |
95 | 95 | */ |
96 | - private function load_dependencies() { |
|
96 | + private function load_dependencies() { |
|
97 | 97 | /** |
98 | 98 | * The class responsible for orchestrating the actions and filters of the |
99 | 99 | * core plugin. |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * @since 1.0.0 |
122 | 122 | * @access private |
123 | 123 | */ |
124 | - private function define_admin_hooks() { |
|
124 | + private function define_admin_hooks() { |
|
125 | 125 | $plugin_admin = new Yikes_Inc_Easy_Mailchimp_Forms_Admin( $this->get_yikes_inc_easy_mailchimp_extender(), $this->get_version(), $this->form_interface ); |
126 | 126 | $plugin_admin->hooks(); |
127 | 127 | $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' ); |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | * @since 1.0.0 |
135 | 135 | * @access private |
136 | 136 | */ |
137 | - private function define_public_hooks() { |
|
137 | + private function define_public_hooks() { |
|
138 | 138 | $plugin_public = new Yikes_Inc_Easy_Mailchimp_Extender_Public( $this->get_yikes_inc_easy_mailchimp_extender(), $this->get_version() ); |
139 | 139 | } |
140 | 140 | /** |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | * |
143 | 143 | * @since 1.0.0 |
144 | 144 | */ |
145 | - public function run() { |
|
145 | + public function run() { |
|
146 | 146 | $this->loader->run(); |
147 | 147 | } |
148 | 148 | /** |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | * @since 1.0.0 |
153 | 153 | * @return string The name of the plugin. |
154 | 154 | */ |
155 | - public function get_yikes_inc_easy_mailchimp_extender() { |
|
155 | + public function get_yikes_inc_easy_mailchimp_extender() { |
|
156 | 156 | return $this->yikes_inc_easy_mailchimp_extender; |
157 | 157 | } |
158 | 158 | /** |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | * @since 1.0.0 |
162 | 162 | * @return Yikes_Inc_Easy_Mailchimp_Extender_Loader Orchestrates the hooks of the plugin. |
163 | 163 | */ |
164 | - public function get_loader() { |
|
164 | + public function get_loader() { |
|
165 | 165 | return $this->loader; |
166 | 166 | } |
167 | 167 | /** |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | * @since 1.0.0 |
171 | 171 | * @return string The version number of the plugin. |
172 | 172 | */ |
173 | - public function get_version() { |
|
173 | + public function get_version() { |
|
174 | 174 | return $this->version; |
175 | 175 | } |
176 | 176 | } |
@@ -5,18 +5,18 @@ discard block |
||
5 | 5 | * @since 6.0.3 |
6 | 6 | */ |
7 | 7 | |
8 | -class YIKES_Mailchimp_Visual_Composer_Extension { |
|
8 | +class YIKES_Mailchimp_Visual_Composer_Extension { |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Constructor |
12 | 12 | * |
13 | 13 | * @since 6.0.3 |
14 | 14 | */ |
15 | - function __construct() { |
|
15 | + function __construct() { |
|
16 | 16 | |
17 | 17 | add_action( 'admin_init', array( $this, 'extend_visual_composer' ) ); |
18 | 18 | |
19 | - if ( function_exists( 'vc_add_shortcode_param' ) ) { |
|
19 | + if ( function_exists( 'vc_add_shortcode_param' ) ) { |
|
20 | 20 | vc_add_shortcode_param( 'yikes_mailchimp_logo', array( $this, 'yikes_mailchimp_logo_vc_section' ) ); |
21 | 21 | } |
22 | 22 | } |
@@ -26,9 +26,9 @@ discard block |
||
26 | 26 | * |
27 | 27 | * @since 6.0.3 |
28 | 28 | */ |
29 | - public function extend_visual_composer() { |
|
29 | + public function extend_visual_composer() { |
|
30 | 30 | |
31 | - if ( ! function_exists( 'vc_map' ) ) { |
|
31 | + if ( ! function_exists( 'vc_map' ) ) { |
|
32 | 32 | return; |
33 | 33 | } |
34 | 34 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * |
99 | 99 | * @since 6.0.3 |
100 | 100 | */ |
101 | - public function yikes_mailchimp_logo_vc_section() { |
|
101 | + public function yikes_mailchimp_logo_vc_section() { |
|
102 | 102 | return '<img style="width:250px;display:block;margin:0 auto;" src="' . YIKES_MC_URL . 'includes/images/Mailchimp_Assets/mailchimp-logo.png" title="' . __( 'Easy Forms for Mailchimp', 'yikes-inc-easy-mailchimp-extender' ) . '" />'; |
103 | 103 | } |
104 | 104 | |
@@ -107,17 +107,17 @@ discard block |
||
107 | 107 | * |
108 | 108 | * @since 6.0.3 |
109 | 109 | */ |
110 | - public function yikes_mailchimp_retreive_user_created_forms() { |
|
110 | + public function yikes_mailchimp_retreive_user_created_forms() { |
|
111 | 111 | $interface = yikes_easy_mailchimp_extender_get_form_interface(); |
112 | 112 | $all_forms = $interface->get_all_forms(); |
113 | 113 | |
114 | 114 | $lists = array(); |
115 | - if ( ! empty( $all_forms ) ) { |
|
115 | + if ( ! empty( $all_forms ) ) { |
|
116 | 116 | // build an array to pass to our javascript |
117 | - foreach ( $all_forms as $id => $form ) { |
|
117 | + foreach ( $all_forms as $id => $form ) { |
|
118 | 118 | $lists[ $form['form_name'] ] = $id; |
119 | 119 | } |
120 | - } else { |
|
120 | + } else { |
|
121 | 121 | $lists[ __( 'Please Import Some Mailchimp Lists', 'yikes-inc-easy-mailchimp-extender' ) ] = '-'; |
122 | 122 | } |
123 | 123 |