44 /**
55 * Class Shapely_Notify_System
66 */
7- class Shapely_Notify_System {
7+ class Shapely_Notify_System extends Epsilon_Notify_System {
88 /**
99 * @param $ver
1010 *
@@ -108,8 +108,8 @@ public static function shapely_check_plugin_is_active( $slug ) {
108108 public static function shapely_has_plugin ( $ slug = null ) {
109109
110110 $ check = array (
111- 'installed ' => self ::shapely_check_plugin_is_installed ( $ slug ),
112- 'active ' => self ::shapely_check_plugin_is_active ( $ slug ),
111+ 'installed ' => self ::check_plugin_is_installed ( $ slug ),
112+ 'active ' => self ::check_plugin_is_active ( $ slug ),
113113 );
114114
115115 if ( ! $ check ['installed ' ] || ! $ check ['active ' ] ) {
@@ -120,12 +120,12 @@ public static function shapely_has_plugin( $slug = null ) {
120120 }
121121
122122 public static function shapely_companion_title () {
123- $ installed = self ::shapely_check_plugin_is_installed ( 'shapely-companion ' );
123+ $ installed = self ::check_plugin_is_installed ( 'shapely-companion ' );
124124 if ( ! $ installed ) {
125125 return esc_html__ ( 'Install: Shapely Companion Plugin ' , 'shapely ' );
126126 }
127127
128- $ active = self ::shapely_check_plugin_is_active ( 'shapely-companion ' );
128+ $ active = self ::check_plugin_is_active ( 'shapely-companion ' );
129129 if ( $ installed && ! $ active ) {
130130 return esc_html__ ( 'Activate: Shapely Companion Plugin ' , 'shapely ' );
131131 }
@@ -134,12 +134,12 @@ public static function shapely_companion_title() {
134134 }
135135
136136 public static function shapely_yoast_title () {
137- $ installed = self ::shapely_check_plugin_is_installed ( 'wordpress-seo ' );
137+ $ installed = self ::check_plugin_is_installed ( 'wordpress-seo ' );
138138 if ( ! $ installed ) {
139139 return esc_html__ ( 'Install: Yoast SEO Plugin ' , 'shapely ' );
140140 }
141141
142- $ active = self ::shapely_check_plugin_is_active ( 'wordpress-seo ' );
142+ $ active = self ::check_plugin_is_active ( 'wordpress-seo ' );
143143 if ( $ installed && ! $ active ) {
144144 return esc_html__ ( 'Activate: Yoast SEO Plugin ' , 'shapely ' );
145145 }
@@ -148,30 +148,44 @@ public static function shapely_yoast_title() {
148148 }
149149
150150 public static function shapely_jetpack_title () {
151- $ installed = self ::shapely_check_plugin_is_installed ( 'jetpack ' );
151+ $ installed = self ::check_plugin_is_installed ( 'jetpack ' );
152152 if ( ! $ installed ) {
153153 return esc_html__ ( 'Install: Jetpack by WordPress ' , 'shapely ' );
154154 }
155155
156- $ active = self ::shapely_check_plugin_is_active ( 'jetpack ' );
156+ $ active = self ::check_plugin_is_active ( 'jetpack ' );
157157 if ( $ installed && ! $ active ) {
158158 return esc_html__ ( 'Activate: Jetpack by WordPress ' , 'shapely ' );
159159 }
160160
161161 return esc_html__ ( 'Install: Jetpack by WordPress ' , 'shapely ' );
162162 }
163163
164+ public static function shapely_cf7_title () {
165+ $ installed = self ::check_plugin_is_installed ( 'contac-form-7 ' );
166+ if ( ! $ installed ) {
167+ return esc_html__ ( 'Install: Contact Form 7 ' , 'shapely ' );
168+ }
169+
170+ $ active = self ::check_plugin_is_active ( 'contac-form-7 ' );
171+ if ( $ installed && ! $ active ) {
172+ return esc_html__ ( 'Activate: Contact Form 7 ' , 'shapely ' );
173+ }
174+
175+ return esc_html__ ( 'Install: Contact Form 7 ' , 'shapely ' );
176+ }
177+
164178 /**
165179 * @return string
166180 */
167181 public static function shapely_companion_description () {
168- $ installed = self ::shapely_check_plugin_is_installed ( 'shapely-companion ' );
182+ $ installed = self ::check_plugin_is_installed ( 'shapely-companion ' );
169183
170184 if ( ! $ installed ) {
171185 return esc_html__ ( 'Please install Shapely Companion plugin. ' , 'shapely ' );
172186 }
173187
174- $ active = self ::shapely_check_plugin_is_active ( 'shapely-companion ' );
188+ $ active = self ::check_plugin_is_active ( 'shapely-companion ' );
175189 if ( $ installed && ! $ active ) {
176190 return esc_html__ ( 'Please activate Shapely Companion plugin. ' , 'shapely ' );
177191 }
@@ -183,27 +197,42 @@ public static function shapely_companion_description() {
183197 * @return string
184198 */
185199 public static function shapely_jetpack_description () {
186- $ installed = self ::shapely_check_plugin_is_installed ( 'jetpack ' );
200+ $ installed = self ::check_plugin_is_installed ( 'jetpack ' );
187201
188202 if ( ! $ installed ) {
189203 return esc_html__ ( 'Please install Jetpack by WordPress. Note that you won \'t be able to use the Testimonials and Portfolio widgets without it. ' , 'shapely ' );
190204 }
191205
192- $ active = self ::shapely_check_plugin_is_active ( 'jetpack ' );
206+ $ active = self ::check_plugin_is_active ( 'jetpack ' );
193207 if ( $ installed && ! $ active ) {
194208 return esc_html__ ( 'Please activate Jetpack by WordPress. Note that you won \'t be able to use the Testimonials and Portfolio widgets without it. ' , 'shapely ' );
195209 }
196210
197211 return esc_html__ ( 'Please install Jetpack by WordPress. Note that you won \'t be able to use the Testimonials and Portfolio widgets without it. ' , 'shapely ' );
198212 }
199213
214+ public static function shapely_cf7_description () {
215+ $ installed = self ::check_plugin_is_installed ( 'contac-form-7 ' );
216+
217+ if ( ! $ installed ) {
218+ return esc_html__ ( 'Please install Contact Form 7. Note that you won \'t be able to use Contact widget without it. ' , 'shapely ' );
219+ }
220+
221+ $ active = self ::check_plugin_is_active ( 'contac-form-7 ' );
222+ if ( $ installed && ! $ active ) {
223+ return esc_html__ ( 'Please activate Contact Form 7. Note that you won \'t be able to use Contact widget without it. ' , 'shapely ' );
224+ }
225+
226+ return esc_html__ ( 'Please install Contact Form 7. Note that you won \'t be able to use Contact widget without it. ' , 'shapely ' );
227+ }
228+
200229 public static function shapely_yoast_description () {
201- $ installed = self ::shapely_check_plugin_is_installed ( 'wordpress-seo ' );
230+ $ installed = self ::check_plugin_is_installed ( 'wordpress-seo ' );
202231 if ( ! $ installed ) {
203232 return esc_html__ ( 'Please install Yoast SEO plugin. ' , 'shapely ' );
204233 }
205234
206- $ active = self ::shapely_check_plugin_is_active ( 'wordpress-seo ' );
235+ $ active = self ::check_plugin_is_active ( 'wordpress-seo ' );
207236 if ( $ installed && ! $ active ) {
208237 return esc_html__ ( 'Please activate Yoast SEO plugin. ' , 'shapely ' );
209238 }
0 commit comments