Accordion FAQ - Version 2.0.7

Version Description

  • Compatible with WordPress 5.1.1 version.
Download this release

Release Info

Developer wpshopmart
Plugin Icon 128x128 Accordion FAQ
Version 2.0.7
Comparing to
See all releases

Code changes from version 2.0.6 to 2.0.7

lib/admin/menu.php CHANGED
@@ -58,6 +58,7 @@ class wpsm_accordion {
58
  wp_enqueue_script('font-icon-picker-js',wpshopmart_accordion_directory_url.'js/fontawesome-iconpicker.js',array('jquery'));
59
  wp_enqueue_script('call-icon-picker-js',wpshopmart_accordion_directory_url.'js/call-icon-picker.js',array('jquery'), false, true);
60
  wp_enqueue_script('remodal-min-js',wpshopmart_accordion_directory_url.'modal/remodal.min.js',array('jquery'), false, true);
 
61
 
62
  }
63
  }
@@ -96,7 +97,9 @@ class wpsm_accordion {
96
 
97
  add_meta_box('accordion_rateus', __('Rate Us If You Like This Plugin', wpshopmart_accordion_text_domain), array(&$this, 'wpsm_accordion_rateus_meta_box_function'), 'responsive_accordion', 'side', 'low');
98
  add_meta_box('accordion_setting', __('Accordion Settings', wpshopmart_accordion_text_domain), array(&$this, 'wpsm_add_ac_setting_meta_box_function'), 'responsive_accordion', 'side', 'low');
99
- add_meta_box('accordion_more_pro', __('MOre Pro PLugin From Wpshopmart', wpshopmart_accordion_text_domain), array(&$this, 'wpsm_add_ac_more_pro'), 'responsive_accordion', 'normal', 'low');
 
 
100
  }
101
 
102
  public function wpsm_add_ac_meta_box_function($post){
@@ -146,6 +149,14 @@ class wpsm_accordion {
146
  }
147
 
148
 
 
 
 
 
 
 
 
 
149
  public function wpsm_add_ac_more_pro(){
150
  require_once('more-pro.php');
151
 
58
  wp_enqueue_script('font-icon-picker-js',wpshopmart_accordion_directory_url.'js/fontawesome-iconpicker.js',array('jquery'));
59
  wp_enqueue_script('call-icon-picker-js',wpshopmart_accordion_directory_url.'js/call-icon-picker.js',array('jquery'), false, true);
60
  wp_enqueue_script('remodal-min-js',wpshopmart_accordion_directory_url.'modal/remodal.min.js',array('jquery'), false, true);
61
+ wp_enqueue_style('wpsm_ac_help_css', wpshopmart_accordion_directory_url.'css/help.css');
62
 
63
  }
64
  }
97
 
98
  add_meta_box('accordion_rateus', __('Rate Us If You Like This Plugin', wpshopmart_accordion_text_domain), array(&$this, 'wpsm_accordion_rateus_meta_box_function'), 'responsive_accordion', 'side', 'low');
99
  add_meta_box('accordion_setting', __('Accordion Settings', wpshopmart_accordion_text_domain), array(&$this, 'wpsm_add_ac_setting_meta_box_function'), 'responsive_accordion', 'side', 'low');
100
+ add_meta_box ('accordion_more_free_themes', __('More Free Themes From Wpshopmart', wpshopmart_accordion_text_domain), array(&$this, 'wpsm_add_ac_more_free_themes'), 'responsive_accordion', 'normal', 'low');
101
+ add_meta_box ('accordion_more_free_plugins', __('More Free Plugins From Wpshopmart', wpshopmart_accordion_text_domain), array(&$this, 'wpsm_add_ac_more_free_plugins'), 'responsive_accordion', 'normal', 'low');
102
+ add_meta_box('accordion_more_pro', __('MOre Pro Plugins From Wpshopmart', wpshopmart_accordion_text_domain), array(&$this, 'wpsm_add_ac_more_pro'), 'responsive_accordion', 'normal', 'low');
103
  }
104
 
105
  public function wpsm_add_ac_meta_box_function($post){
149
  }
150
 
151
 
152
+ public function wpsm_add_ac_more_free_themes(){
153
+ require_once('more-free-themes.php');
154
+
155
+ }
156
+ public function wpsm_add_ac_more_free_plugins(){
157
+ require_once('more-free-plugins.php');
158
+
159
+ }
160
  public function wpsm_add_ac_more_pro(){
161
  require_once('more-pro.php');
162
 
lib/admin/more-free-plugins.php ADDED
@@ -0,0 +1,423 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <style>
2
+ #accordion_more_free_plugins{
3
+ background:transparent #fff;
4
+
5
+ margin-top:40px;
6
+ }
7
+ #accordion_more_free_plugins .hndle , #accordion_more_free_plugins .handlediv{
8
+ display:none;
9
+ }
10
+ #accordion_more_free_plugins p{
11
+ color:#000;
12
+ font-size:15px;
13
+ }
14
+ .wpsm-theme-container {
15
+ background: #fff;
16
+ padding-left: 0px;
17
+ padding-right: 0px;
18
+ box-shadow: 0 0 20px rgba(0,0,0,.2);
19
+ margin-bottom: 20px;
20
+ }
21
+ .wpsm_site-img-responsive {
22
+ display: block;
23
+ width: 100%;
24
+ height: auto;
25
+ }
26
+ .wpsm_product_wrapper {
27
+ padding: 20px;
28
+ overflow: hidden;
29
+ }
30
+ .wpsm_product_wrapper h3 {
31
+ float: left;
32
+ margin-bottom: 0px;
33
+ color: #000 !important;
34
+ letter-spacing: 0px;
35
+ text-transform: uppercase;
36
+ font-size: 18px;
37
+ font-weight: 700;
38
+ text-align: left;
39
+ margin:0px;
40
+ }
41
+ .wpsm_product_wrapper h3 span {
42
+ display: block;
43
+ float: left;
44
+ width: 100%;
45
+ overflow: hidden;
46
+ font-size: 14px;
47
+ color: #919499;
48
+ margin-top: 6px;
49
+ }
50
+ .wpsm_product_wrapper .price {
51
+ float: right;
52
+ font-size: 24px;
53
+ color: #000;
54
+ font-family: sans-serif;
55
+ font-weight: 500;
56
+ }
57
+ .wpsm-btn-block {
58
+ overflow: hidden;
59
+ float: left;
60
+ width: 100%;
61
+ margin-top: 20px;
62
+ display: block;
63
+ }
64
+ .portfolio_read_more_btn {
65
+ border: 1px solid #1e73be;
66
+ border-radius: 0px;
67
+ margin-bottom: 10px;
68
+ text-transform: uppercase;
69
+ font-weight: 700;
70
+ font-size: 15px;
71
+ padding: 12px 12px;
72
+ display: block;
73
+ text-align:center;
74
+ width:100%;
75
+ border-radius: 2px;
76
+ cursor: pointer;
77
+ letter-spacing: 1px;
78
+ outline: none;
79
+ position: relative;
80
+ text-decoration: none !important;
81
+ color: #fff !important;
82
+ -webkit-transition: all ease 0.5s;
83
+ -moz-transition: all ease 0.5s;
84
+ transition: all ease 0.5s;
85
+ background: #1e73be;
86
+ padding-left: 22px;
87
+ padding-right: 22px;
88
+ }
89
+ .portfolio_demo_btn {
90
+ border: 1px solid #919499;
91
+ border-radius: 0px;
92
+ margin-bottom: 10px;
93
+ text-transform: uppercase;
94
+ font-weight: 700;
95
+ font-size: 15px;
96
+ padding: 12px 12px;
97
+ display: block;
98
+ text-align:center;
99
+ width:100%;
100
+ border-radius: 2px;
101
+ cursor: pointer;
102
+ letter-spacing: 1px;
103
+ outline: none;
104
+ position: relative;
105
+ text-decoration: none !important;
106
+ background-color: #242629;
107
+ border-color: #242629;
108
+ color: #fff !important;
109
+ -webkit-transition: all ease 0.5s;
110
+ -moz-transition: all ease 0.5s;
111
+ transition: all ease 0.5s;
112
+ padding-left: 22px;
113
+ padding-right: 22px;
114
+ }
115
+ </style>
116
+ <h1>Recommended Free WordPress Plugins From Wpshopmart</h1>
117
+ <div style="overflow:hidden;display:block;width:100%;padding-top:20px;padding-bottom:20px;height: 450px; overflow: auto;">
118
+ <div class="col-md-12">
119
+
120
+ <div class="panel content-panel">
121
+ <div class="panel-body">
122
+ <table class="form-table2">
123
+
124
+ <tr class="radio-span" style="border-bottom:none;">
125
+ <td>
126
+ <?php
127
+ include( ABSPATH . "wp-admin/includes/plugin-install.php" );
128
+ global $tabs, $tab, $paged, $type, $term;
129
+ $tabs = array();
130
+ $tab = "search";
131
+ $per_page = 20;
132
+ $args = array
133
+ (
134
+ "author"=> "wpshopmart",
135
+ "page" => $paged,
136
+ "per_page" => $per_page,
137
+ "fields" => array( "last_updated" => true, "downloaded" => true, "icons" => true ),
138
+ "locale" => get_locale(),
139
+ );
140
+ $arges = apply_filters( "install_plugins_table_api_args_$tab", $args );
141
+ $api = plugins_api( "query_plugins", $arges );
142
+ $item = $api->plugins;
143
+ if(!function_exists("wp_star_rating"))
144
+ {
145
+ function wp_star_rating( $args = array() )
146
+ {
147
+ $defaults = array(
148
+ 'rating' => 0,
149
+ 'type' => 'rating',
150
+ 'number' => 0,
151
+ );
152
+ $r = wp_parse_args( $args, $defaults );
153
+
154
+ // Non-english decimal places when the $rating is coming from a string
155
+ $rating = str_replace( ',', '.', $r['rating'] );
156
+
157
+ // Convert Percentage to star rating, 0..5 in .5 increments
158
+ if ( 'percent' == $r['type'] ) {
159
+ $rating = round( $rating / 10, 0 ) / 2;
160
+ }
161
+
162
+ // Calculate the number of each type of star needed
163
+ $full_stars = floor( $rating );
164
+ $half_stars = ceil( $rating - $full_stars );
165
+ $empty_stars = 5 - $full_stars - $half_stars;
166
+
167
+ if ( $r['number'] ) {
168
+ /* translators: 1: The rating, 2: The number of ratings */
169
+ $format = _n( '%1$s rating based on %2$s rating', '%1$s rating based on %2$s ratings', $r['number'] );
170
+ $title = sprintf( $format, number_format_i18n( $rating, 1 ), number_format_i18n( $r['number'] ) );
171
+ } else {
172
+ /* translators: 1: The rating */
173
+ $title = sprintf( __( '%s rating' ), number_format_i18n( $rating, 1 ) );
174
+ }
175
+
176
+ echo '<div class="star-rating" title="' . esc_attr( $title ) . '">';
177
+ echo '<span class="screen-reader-text">' . $title . '</span>';
178
+ echo str_repeat( '<div class="star star-full"></div>', $full_stars );
179
+ echo str_repeat( '<div class="star star-half"></div>', $half_stars );
180
+ echo str_repeat( '<div class="star star-empty"></div>', $empty_stars);
181
+ echo '</div>';
182
+ }
183
+ }
184
+ ?>
185
+ <form id="frmrecommendation" class="layout-form">
186
+ <div id="poststuff" style="width: 99% !important;">
187
+ <div id="post-body" class="metabox-holder">
188
+ <div id="postbox-container-2" class="postbox-container">
189
+ <div id="advanced" class="meta-box-sortables">
190
+ <div id="gallery_bank_get_started" >
191
+
192
+ <div class="inside">
193
+ <div id="ux_recommendation" class="gallery_bank_layout">
194
+
195
+ <div class="fluid-layout">
196
+ <div class="layout-span12">
197
+ <div class="wp-list-table plugin-install">
198
+ <div id="the-list">
199
+ <?php
200
+ foreach ((array) $item as $plugin)
201
+ {
202
+
203
+ if (is_object( $plugin))
204
+ {
205
+ $plugin = (array) $plugin;
206
+
207
+ }
208
+ if (!empty($plugin["icons"]["svg"]))
209
+ {
210
+ $plugin_icon_url = $plugin["icons"]["svg"];
211
+ }
212
+ elseif (!empty( $plugin["icons"]["2x"]))
213
+ {
214
+ $plugin_icon_url = $plugin["icons"]["2x"];
215
+ }
216
+ elseif (!empty( $plugin["icons"]["1x"]))
217
+ {
218
+ $plugin_icon_url = $plugin["icons"]["1x"];
219
+ }
220
+ else
221
+ {
222
+ $plugin_icon_url = $plugin["icons"]["default"];
223
+ }
224
+ $plugins_allowedtags = array
225
+ (
226
+ "a" => array( "href" => array(),"title" => array(), "target" => array() ),
227
+ "abbr" => array( "title" => array() ),"acronym" => array( "title" => array() ),
228
+ "code" => array(), "pre" => array(), "em" => array(),"strong" => array(),
229
+ "ul" => array(), "ol" => array(), "li" => array(), "p" => array(), "br" => array()
230
+ );
231
+ $title = wp_kses($plugin["name"], $plugins_allowedtags);
232
+ $description = strip_tags($plugin["short_description"]);
233
+ $author = wp_kses($plugin["author"], $plugins_allowedtags);
234
+ $version = wp_kses($plugin["version"], $plugins_allowedtags);
235
+ $name = strip_tags( $title . " " . $version );
236
+ $details_link = self_admin_url( "plugin-install.php?tab=plugin-information&amp;plugin=" . $plugin["slug"] .
237
+ "&amp;TB_iframe=true&amp;width=600&amp;height=550" );
238
+
239
+ /* translators: 1: Plugin name and version. */
240
+ $action_links[] = '<a href="' . esc_url( $details_link ) . '" class="thickbox" aria-label="' . esc_attr( sprintf("More information about %s", $name ) ) . '" data-title="' . esc_attr( $name ) . '">' . __( 'More Details' ) . '</a>';
241
+ $action_links = array();
242
+ if (current_user_can( "install_plugins") || current_user_can("update_plugins"))
243
+ {
244
+ $status = install_plugin_install_status( $plugin );
245
+ switch ($status["status"])
246
+ {
247
+ case "install":
248
+ if ( $status["url"] )
249
+ {
250
+ /* translators: 1: Plugin name and version. */
251
+ $action_links[] = '<a class="install-now button" href="' . $status['url'] . '" aria-label="' . esc_attr( sprintf("Install %s now", $name ) ) . '">' . __( 'Install Now' ) . '</a>';
252
+ }
253
+ break;
254
+ case "update_available":
255
+ if ($status["url"])
256
+ {
257
+ /* translators: 1: Plugin name and version */
258
+ $action_links[] = '<a class="button" href="' . $status['url'] . '" aria-label="' . esc_attr( sprintf( "Update %s now", $name ) ) . '">' . __( 'Update Now' ) . '</a>';
259
+ }
260
+ break;
261
+ case "latest_installed":
262
+ case "newer_installed":
263
+ $action_links[] = '<span class="button button-disabled" title="' . esc_attr__( "This plugin is already installed and is up to date" ) . ' ">' . _x( 'Installed', 'plugin' ) . '</span>';
264
+ break;
265
+ }
266
+ }
267
+ ?>
268
+ <div class="plugin-div plugin-div-settings">
269
+ <div class="plugin-div-top plugin-div-settings-top">
270
+ <div class="plugin-div-inner-content">
271
+ <a href="<?php echo esc_url( $details_link ); ?>" class="thickbox plugin-icon plugin-icon-custom">
272
+ <img class="custom_icon" src="<?php echo esc_attr( $plugin_icon_url ) ?>" />
273
+ </a>
274
+ <div class="name column-name">
275
+ <h4>
276
+ <a href="<?php echo esc_url( $details_link ); ?>" class="thickbox"><?php echo $title; ?></a>
277
+ </h4>
278
+ </div>
279
+ <div class="desc column-description">
280
+ <p>
281
+ <?php echo $description; ?>
282
+ </p>
283
+ <p class="authors">
284
+ <cite>
285
+ By <?php echo $author;?>
286
+ </cite>
287
+ </p>
288
+ </div>
289
+ </div>
290
+ <div class="action-links">
291
+ <ul class="plugin-action-buttons-custom">
292
+ <li>
293
+ <?php
294
+ if ($action_links)
295
+ {
296
+ echo implode("</li><li>", $action_links);
297
+ }
298
+
299
+ switch($plugin["slug"])
300
+ {
301
+ case "gallery-bank" :
302
+ ?>
303
+ <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-gallery-bank/pricing/" target="_blank" >
304
+ <?php _e("Premium Editions", wpshopmart_accordion_shortcode_text_domain); ?>
305
+ </a>
306
+ <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-gallery-bank/" target="_blank" >
307
+ <?php _e("Visit Website", wpshopmart_accordion_shortcode_text_domain); ?>
308
+ </a>
309
+ <?php
310
+ break;
311
+ case "contact-bank" :
312
+ ?>
313
+ <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-contact-bank/pricing/" target="_blank" >
314
+ <?php _e("Premium Editions", wpshopmart_accordion_shortcode_text_domain); ?>
315
+ </a>
316
+ <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-contact-bank/" target="_blank" >
317
+ <?php _e("Visit Website", wpshopmart_accordion_shortcode_text_domain); ?>
318
+ </a>
319
+ <?php
320
+ break;
321
+ case "captcha-bank" :
322
+ ?>
323
+ <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-captcha-bank/pricing/" target="_blank" >
324
+ <?php _e("Premium Editions", wpshopmart_accordion_shortcode_text_domain); ?>
325
+ </a>
326
+ <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-captcha-bank/" target="_blank" >
327
+ <?php _e("Visit Website", wpshopmart_accordion_shortcode_text_domain); ?>
328
+ </a>
329
+ <?php
330
+ break;
331
+ case "wp-clean-up-optimizer" :
332
+ ?>
333
+ <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-clean-up-optimizer/pricing/" target="_blank" >
334
+ <?php _e("Premium Editions", wpshopmart_accordion_shortcode_text_domain); ?>
335
+ </a>
336
+ <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-clean-up-optimizer/" target="_blank" >
337
+ <?php _e("Visit Website", wpshopmart_accordion_shortcode_text_domain); ?>
338
+ </a>
339
+ <?php
340
+ break;
341
+ case "google-maps-bank":
342
+ ?>
343
+ <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-google-maps-bank/pricing/" target="_blank" >
344
+ <?php _e("Premium Editions", wpshopmart_accordion_shortcode_text_domain); ?>
345
+ </a>
346
+ <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-google-maps-bank/" target="_blank" >
347
+ <?php _e("Visit Website", wpshopmart_accordion_shortcode_text_domain); ?>
348
+ </a>
349
+ <?php
350
+ break;
351
+ case "wp-backup-bank":
352
+ ?>
353
+ <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-backup-bank/pricing/" target="_blank" >
354
+ <?php _e("Premium Editions", wpshopmart_accordion_shortcode_text_domain); ?>
355
+ </a>
356
+ <a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-backup-bank/" target="_blank" >
357
+ <?php _e("Visit Website", wpshopmart_accordion_shortcode_text_domain); ?>
358
+ </a>
359
+ <?php
360
+ break;
361
+ }
362
+ ?>
363
+ </li>
364
+ </ul>
365
+ </div>
366
+ </div>
367
+ <div class="plugin-card-bottom plugin-card-bottom_settings">
368
+ <div class="vers column-rating">
369
+ <?php wp_star_rating( array( "rating" => $plugin["rating"], "type" => "percent", "number" => $plugin["num_ratings"] ) ); ?>
370
+ <span class="num-ratings">
371
+ (<?php echo number_format_i18n( $plugin["num_ratings"] ); ?>)
372
+ </span>
373
+ </div>
374
+ <div class="column-updated">
375
+ <strong><?php _e("Last Updated:"); ?></strong> <span title="<?php echo esc_attr($plugin["last_updated"]); ?>">
376
+ <?php printf("%s ago", human_time_diff(strtotime($plugin["last_updated"]))); ?>
377
+ </span>
378
+ </div>
379
+ <div class="column-downloaded">
380
+ <?php echo sprintf( _n("%s download", "%s downloads", $plugin["downloaded"]), number_format_i18n($plugin["downloaded"])); ?>
381
+ </div>
382
+ <div class="column-compatibility">
383
+ <?php
384
+ if ( !empty($plugin["tested"]) && version_compare(substr($GLOBALS["wp_version"], 0, strlen($plugin["tested"])), $plugin["tested"], ">"))
385
+ {
386
+ echo '<span class="compatibility-untested">' . __( "<strong>Untested</strong> with your version of WordPress" ) . '</span>';
387
+ }
388
+ elseif (!empty($plugin["requires"]) && version_compare(substr($GLOBALS["wp_version"], 0, strlen($plugin["requires"])), $plugin["requires"], "<"))
389
+ {
390
+ echo '<span class="compatibility-incompatible">' . __("Incompatible with your version of WordPress") . '</span>';
391
+ }
392
+ else
393
+ {
394
+ echo '<span class="compatibility-compatible">' . __("Compatible with your version of WordPress") . '</span>';
395
+ }
396
+ ?>
397
+ </div>
398
+ </div>
399
+ </div>
400
+ <?php
401
+ }
402
+ ?>
403
+ </div>
404
+ </div>
405
+ </div>
406
+ </div>
407
+ </div>
408
+ </div>
409
+ </div>
410
+ </div>
411
+ </div>
412
+ </div>
413
+ </div>
414
+ </form>
415
+ </td>
416
+ </tr>
417
+ </table>
418
+ </div>
419
+ </div>
420
+
421
+
422
+ </div>
423
+ </div>
lib/admin/more-free-themes.php ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <style>
2
+ #accordion_more_free_themes{
3
+ background:transparent #fff;
4
+
5
+ margin-top:40px;
6
+ }
7
+ #accordion_more_free_themes .hndle , #accordion_more_free_themes .handlediv{
8
+ display:none;
9
+ }
10
+ #accordion_more_free_themes p{
11
+ color:#000;
12
+ font-size:15px;
13
+ }
14
+ .wpsm-theme-container {
15
+ background: #fff;
16
+ padding-left: 0px;
17
+ padding-right: 0px;
18
+ box-shadow: 0 0 20px rgba(0,0,0,.2);
19
+ margin-bottom: 20px;
20
+ }
21
+ .wpsm_site-img-responsive {
22
+ display: block;
23
+ width: 100%;
24
+ height: auto;
25
+ }
26
+ .wpsm_product_wrapper {
27
+ padding: 20px;
28
+ overflow: hidden;
29
+ }
30
+ .wpsm_product_wrapper h3 {
31
+ float: left;
32
+ margin-bottom: 0px;
33
+ color: #000 !important;
34
+ letter-spacing: 0px;
35
+ text-transform: uppercase;
36
+ font-size: 18px;
37
+ font-weight: 700;
38
+ text-align: left;
39
+ margin:0px;
40
+ }
41
+ .wpsm_product_wrapper h3 span {
42
+ display: block;
43
+ float: left;
44
+ width: 100%;
45
+ overflow: hidden;
46
+ font-size: 14px;
47
+ color: #919499;
48
+ margin-top: 6px;
49
+ }
50
+ .wpsm_product_wrapper .price {
51
+ float: right;
52
+ font-size: 24px;
53
+ color: #000;
54
+ font-family: sans-serif;
55
+ font-weight: 500;
56
+ }
57
+ .wpsm-btn-block {
58
+ overflow: hidden;
59
+ float: left;
60
+ width: 100%;
61
+ margin-top: 20px;
62
+ display: block;
63
+ }
64
+ .portfolio_read_more_btn {
65
+ border: 1px solid #1e73be;
66
+ border-radius: 0px;
67
+ margin-bottom: 10px;
68
+ text-transform: uppercase;
69
+ font-weight: 700;
70
+ font-size: 15px;
71
+ padding: 12px 12px;
72
+ display: block;
73
+ text-align:center;
74
+ width:100%;
75
+ border-radius: 2px;
76
+ cursor: pointer;
77
+ letter-spacing: 1px;
78
+ outline: none;
79
+ position: relative;
80
+ text-decoration: none !important;
81
+ color: #fff !important;
82
+ -webkit-transition: all ease 0.5s;
83
+ -moz-transition: all ease 0.5s;
84
+ transition: all ease 0.5s;
85
+ background: #1e73be;
86
+ padding-left: 22px;
87
+ padding-right: 22px;
88
+ }
89
+ .portfolio_demo_btn {
90
+ border: 1px solid #919499;
91
+ border-radius: 0px;
92
+ margin-bottom: 10px;
93
+ text-transform: uppercase;
94
+ font-weight: 700;
95
+ font-size: 15px;
96
+ padding: 12px 12px;
97
+ display: block;
98
+ text-align:center;
99
+ width:100%;
100
+ border-radius: 2px;
101
+ cursor: pointer;
102
+ letter-spacing: 1px;
103
+ outline: none;
104
+ position: relative;
105
+ text-decoration: none !important;
106
+ background-color: #242629;
107
+ border-color: #242629;
108
+ color: #fff !important;
109
+ -webkit-transition: all ease 0.5s;
110
+ -moz-transition: all ease 0.5s;
111
+ transition: all ease 0.5s;
112
+ padding-left: 22px;
113
+ padding-right: 22px;
114
+ }
115
+ #accordion_more_free_themes .theme-id-container {
116
+ position: relative;
117
+ height: 49px;
118
+ }
119
+ #accordion_more_free_themes .theme-browser .theme .theme-name{
120
+ height: auto;
121
+ }#accordion_more_free_themes .theme-browser .theme .theme-actions{
122
+ opacity: 1;
123
+ }
124
+ </style>
125
+ <h1>Recommended Free Wordpress Themes From Wpshopmart</h1>
126
+ <div style="overflow:hidden;display:block;width:100%;padding-top:20px;padding-bottom:20px;height: 330px; overflow: auto;">
127
+ <div class="col-md-12">
128
+
129
+ <?php
130
+ /**
131
+ * @access protected
132
+ *
133
+ * @return bool
134
+ */
135
+ /**
136
+ * Ajax handler for getting themes from themes_api().
137
+ *
138
+ * @since 3.9.0
139
+ *
140
+ * @global array $themes_allowedtags
141
+ * @global array $theme_field_defaults
142
+ */
143
+ function wp_ajax_query_themes()
144
+ {
145
+ global $themes_allowedtags, $theme_field_defaults;
146
+ if (!current_user_can('install_themes')) {
147
+ wp_send_json_error();
148
+ }
149
+ $args = array('per_page' => 20, 'fields' => $theme_field_defaults,'author'=>'wpshopmart');
150
+ if (isset($args['browse']) && 'favorites' === $args['browse'] && !isset($args['user'])) {
151
+ $user = 'wpshopmart';
152
+ if ($user) {
153
+ $args['user'] = $user;
154
+ }
155
+ }
156
+ $old_filter = isset($args['browse']) ? $args['browse'] : 'search';
157
+ /** This filter is documented in wp-admin/includes/class-wp-theme-install-list-table.php */
158
+ $args = apply_filters('install_themes_table_api_args_' . $old_filter, $args);
159
+ $api = themes_api('query_themes', $args);
160
+ if (is_wp_error($api)) {
161
+ wp_send_json_error();
162
+ }
163
+ $update_php = network_admin_url('update.php?action=install-theme');
164
+
165
+ ?>
166
+ <div class="theme-browser rendered">
167
+ <div class="themes">
168
+ <?php
169
+ foreach ($api->themes as &$theme) {
170
+ //print_r($theme);
171
+ $theme->install_url = add_query_arg(array('theme' => $theme->slug, '_wpnonce' => wp_create_nonce('install-theme_' . $theme->slug)), $update_php);
172
+
173
+ ?>
174
+ <div class="theme">
175
+ <div class="theme-screenshot">
176
+ <img src="<?php echo $theme->screenshot_url ?>" alt="">
177
+ </div>
178
+ <div class="theme-id-container">
179
+
180
+ <h2 class="theme-name" id="<?php echo $theme->name ?>-name"><?php echo $theme->name ?></h2>
181
+
182
+
183
+ <div class="theme-actions">
184
+
185
+ <a class="button button-primary" href="<?php echo $theme->install_url ?>" aria-label="Activate bizlite">Install/Activate</a>
186
+
187
+ </div>
188
+ </div>
189
+
190
+ </div>
191
+ <?php
192
+
193
+ }
194
+ //wp_send_json_success($api);
195
+ ?>
196
+ </div>
197
+ </div>
198
+ <?php
199
+ }
200
+ wp_ajax_query_themes();
201
+
202
+ ?>
203
+
204
+
205
+ </div>
206
+ </div>
lib/admin/more-pro.php CHANGED
@@ -1,6 +1,6 @@
1
  <style>
2
  #accordion_more_pro{
3
- background:transparent !important;
4
 
5
  margin-top:40px;
6
  }
@@ -114,7 +114,7 @@
114
  }
115
  </style>
116
  <h1>Recommended Premium Plugins From Wpshopmart</h1>
117
- <div style="overflow:hidden;display:block;width:100%;padding-top:20px;padding-bottom:20px">
118
  <div class="col-md-12">
119
 
120
  <div class="col-md-4">
1
  <style>
2
  #accordion_more_pro{
3
+ background:#fff !important;
4
 
5
  margin-top:40px;
6
  }
114
  }
115
  </style>
116
  <h1>Recommended Premium Plugins From Wpshopmart</h1>
117
+ <div style="overflow:hidden;display:block;width:100%;padding-top:20px;padding-bottom:20px;height: 450px; overflow: auto;">
118
  <div class="col-md-12">
119
 
120
  <div class="col-md-4">
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: wpshopmart
3
  Donate link: https://www.wpshopmart.com
4
  Tags: Accordion, accordions, accordion plugin, FAQ, collapse, accordion plugin jquery, accordions plugin wordpress, accordions shortcode, accordion shortcode, accordions Widget, accordion Widget, jQuery accordions, Responsive accordion, Responsive accordions, collapsable content, collapsible, display, expand, expandable, expandable content, hidden, hide, javascript, jquery, toggle, css accordion, css3 , bootstrap, bootstrap accordion, bootstrap collapse, wordpress accordion, widget, shortcode, responsive, plugin, wordpress accordion plugin
5
  Requires at least: 4.0
6
- Tested up to: 5.0.3
7
- Stable tag: 2.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -150,6 +150,10 @@ Please use WordPress support forum to ask any query regarding any issue.
150
 
151
  == Changelog ==
152
 
 
 
 
 
153
  = 2.0.6 =
154
 
155
  * Compatible with WordPress 5.0.3 version.
3
  Donate link: https://www.wpshopmart.com
4
  Tags: Accordion, accordions, accordion plugin, FAQ, collapse, accordion plugin jquery, accordions plugin wordpress, accordions shortcode, accordion shortcode, accordions Widget, accordion Widget, jQuery accordions, Responsive accordion, Responsive accordions, collapsable content, collapsible, display, expand, expandable, expandable content, hidden, hide, javascript, jquery, toggle, css accordion, css3 , bootstrap, bootstrap accordion, bootstrap collapse, wordpress accordion, widget, shortcode, responsive, plugin, wordpress accordion plugin
5
  Requires at least: 4.0
6
+ Tested up to: 5.1.1
7
+ Stable tag: 2.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
150
 
151
  == Changelog ==
152
 
153
+ = 2.0.7 =
154
+
155
+ * Compatible with WordPress 5.1.1 version.
156
+
157
  = 2.0.6 =
158
 
159
  * Compatible with WordPress 5.0.3 version.
responsive-accordion.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Responsive Accordion And Collapse
4
- * Version: 2.0.6
5
  * Description: Responsive Accordion is the most easiest drag & drop accordion builder for WordPress. You can generate multiple accordion and collapse with multiple colour.
6
  * Author: wpshopmart
7
  * Author URI: https://www.wpshopmart.com
@@ -20,20 +20,7 @@ define("wpshopmart_accordion_text_domain", "wpsm_accordion");
20
  */
21
  require_once("lib/installation/installation.php");
22
 
23
- add_action('admin_menu' , 'wpsm_ac_help_page_manu');
24
- function wpsm_ac_help_page_manu() {
25
- $submenu = add_submenu_page('edit.php?post_type=responsive_accordion', __('More_Free_Plugins', wpshopmart_accordion_text_domain), __('More Free Plugins', wpshopmart_accordion_text_domain), 'administrator', 'wpsm_ac_help_page', 'wpsm_ac_help_page_funct');
26
-
27
- //add hook to add styles and scripts for Responsive Accordion plugin admin page
28
- add_action( 'admin_print_styles-' . $submenu, 'wpsm_ac_help_js_css' );
29
- }
30
- function wpsm_ac_help_js_css(){
31
- wp_enqueue_style('wpsm_ac_bootstrap_css', wpshopmart_accordion_directory_url.'css/bootstrap.css');
32
- wp_enqueue_style('wpsm_ac_help_css', wpshopmart_accordion_directory_url.'css/help.css');
33
- }
34
- function wpsm_ac_help_page_funct(){
35
- require_once('lib/help.php');
36
- }
37
 
38
  /**
39
  * Responsive Accordion And Collapse Menu and admin call
1
  <?php
2
  /**
3
  * Plugin Name: Responsive Accordion And Collapse
4
+ * Version: 2.0.7
5
  * Description: Responsive Accordion is the most easiest drag & drop accordion builder for WordPress. You can generate multiple accordion and collapse with multiple colour.
6
  * Author: wpshopmart
7
  * Author URI: https://www.wpshopmart.com
20
  */
21
  require_once("lib/installation/installation.php");
22
 
23
+
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
  /**
26
  * Responsive Accordion And Collapse Menu and admin call