PluginProbe
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin / 1.7.1
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin v1.7.1
trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.8.0 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.1 All 71 releases
← All changes | bws_menu/bws_menu.php +798 -670 1.8.0 → 1.7.1 View file →
@@ -1,481 +1,479 @@
1 1 <?php
2 2 /*
3 -* Function for displaying BestWebSoft menu
4 -* Version: 1.6.0
3 + Function for displaying BestWebSoft menu
5 4 */
5 +if ( ! function_exists( 'bws_add_menu_render' ) ) {
6 + function bws_add_menu_render() {
7 + global $wpdb, $wpmu, $wp_version, $bws_plugin_info;
8 + $error = '';
9 + $message = '';
10 + $bwsmn_form_email = '';
11 + $bws_donate_link = 'https://www.2checkout.com/checkout/purchase?sid=1430388&quantity=10&product_id=13';
6 12
7 -if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) )
8 - require_once( dirname( __FILE__ ) . '/bws_functions.php' );
13 + // install the option defaults
14 + if ( 1 == $wpmu ) {
15 + if ( !get_site_option( 'bstwbsftwppdtplgns_options' ) )
16 + add_site_option( 'bstwbsftwppdtplgns_options', array(), '', 'yes' );
17 + $bstwbsftwppdtplgns_options = get_site_option( 'bstwbsftwppdtplgns_options' );
18 + } else {
19 + if ( !get_option( 'bstwbsftwppdtplgns_options' ) )
20 + add_option( 'bstwbsftwppdtplgns_options', array(), '', 'yes' );
21 + $bstwbsftwppdtplgns_options = get_option( 'bstwbsftwppdtplgns_options' );
22 + }
23 + if ( !isset( $bstwbsftwppdtplgns_options['bws_menu_version'] ) ) {
24 + $bstwbsftwppdtplgns_options['bws_menu_version'] = '1.1';
25 + update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options, '', 'yes' );
26 + }
9 27
10 -if ( ! function_exists( 'bws_add_menu_render' ) ) {
11 - function bws_add_menu_render() {
12 - global $wpdb, $wp_version, $bws_plugin_info;
13 - $error = $message = $bwsmn_form_email = '';
14 - $bws_donate_link = 'http://bestwebsoft.com/donate/';
28 + if ( isset( $_REQUEST['bwsmn_form_submit_switch'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit_switch' ) ) {
29 + if ( $bstwbsftwppdtplgns_options['bws_menu_version'] == '1.1' )
30 + $bstwbsftwppdtplgns_options['bws_menu_version'] = 'old';
31 + else
32 + $bstwbsftwppdtplgns_options['bws_menu_version'] = '1.1';
33 + $bstwbsftwppdtplgns_options['bws_menu_time'] = strtotime('now');
34 + update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options, '', 'yes' );
35 + }
15 36
16 37 if ( ! function_exists( 'is_plugin_active_for_network' ) )
17 - require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
38 + require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
18 39
19 - if ( function_exists( 'is_multisite' ) )
20 - $admin_url = ( ! is_multisite() ) ? admin_url( '/' ) : network_admin_url( '/' );
21 - else
22 - $admin_url = admin_url( '/' );
23 -
24 40 $bws_plugins = array(
25 41 'captcha/captcha.php' => array(
26 42 'name' => 'Captcha',
27 43 'description' => 'Plugin intended to prove that the visitor is a human being and not a spam robot.',
28 - 'link' => 'http://bestwebsoft.com/products/captcha/?k=d678516c0990e781edfb6a6c874f0b8a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
29 - 'download' => 'http://bestwebsoft.com/products/captcha/download/?k=d678516c0990e781edfb6a6c874f0b8a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
30 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Captcha+bestwebsoft&plugin-search-input=Search+Plugins',
44 + 'link' => 'http://bestwebsoft.com/plugin/captcha-plugin/?k=d678516c0990e781edfb6a6c874f0b8a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
45 + 'download' => 'http://bestwebsoft.com/plugin/captcha-plugin/?k=d678516c0990e781edfb6a6c874f0b8a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
46 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Captcha+bestwebsoft&plugin-search-input=Search+Plugins',
31 47 'settings' => 'admin.php?page=captcha.php',
32 - 'pro_version' => 'captcha-pro/captcha_pro.php',
33 - 'purchase' => 'http://bestwebsoft.com/products/captcha/buy/?k=ff7d65e55e5e7f98f219be9ed711094e&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
34 - 'pro_settings' => 'admin.php?page=captcha_pro.php'
48 + 'pro_version' => 'captcha-pro/captcha_pro.php'
35 49 ),
36 50 'contact-form-plugin/contact_form.php' => array(
37 - 'name' => 'Contact Form',
51 + 'name' => 'Contact form',
38 52 'description' => 'Add Contact Form to your WordPress website.',
39 - 'link' => 'http://bestwebsoft.com/products/contact-form/?k=012327ef413e5b527883e031d43b088b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
40 - 'download' => 'http://bestwebsoft.com/products/contact-form/download/?k=012327ef413e5b527883e031d43b088b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
41 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Contact+Form+bestwebsoft&plugin-search-input=Search+Plugins',
53 + 'link' => 'http://bestwebsoft.com/plugin/contact-form/?k=012327ef413e5b527883e031d43b088b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
54 + 'download' => 'http://bestwebsoft.com/plugin/contact-form/?k=012327ef413e5b527883e031d43b088b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
55 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Contact+Form+bestwebsoft&plugin-search-input=Search+Plugins',
42 56 'settings' => 'admin.php?page=contact_form.php',
43 - 'pro_version' => 'contact-form-pro/contact_form_pro.php',
44 - 'purchase' => 'http://bestwebsoft.com/products/contact-form/buy/?k=773dc97bb3551975db0e32edca1a6d71&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
45 - 'pro_settings' => 'admin.php?page=contact_form_pro.php'
46 - ),
57 + 'pro_version' => 'contact-form-pro/contact_form_pro.php'
58 + ),
47 59 'facebook-button-plugin/facebook-button-plugin.php' => array(
48 60 'name' => 'Facebook Like Button',
49 61 'description' => 'Allows you to add the Follow and Like buttons the easiest way.',
50 - 'link' => 'http://bestwebsoft.com/products/facebook-like-button/?k=05ec4f12327f55848335802581467d55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
51 - 'download' => 'http://bestwebsoft.com/products/facebook-like-button/download/?k=05ec4f12327f55848335802581467d55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
52 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Facebook+Like+Button+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
62 + 'link' => 'http://bestwebsoft.com/plugin/facebook-like-button-plugin/?k=05ec4f12327f55848335802581467d55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
63 + 'download' => 'http://bestwebsoft.com/plugin/facebook-like-button-plugin/?k=05ec4f12327f55848335802581467d55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
64 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Facebook+Like+Button+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
53 65 'settings' => 'admin.php?page=facebook-button-plugin.php',
54 - 'pro_version' => 'facebook-button-pro/facebook-button-pro.php',
55 - 'purchase' => 'http://bestwebsoft.com/products/facebook-like-button/buy/?k=8da168e60a831cfb3525417c333ad275&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
56 - 'pro_settings' => 'admin.php?page=facebook-button-pro.php'
66 + 'pro_version' => 'facebook-button-pro/facebook-button-pro.php'
57 67 ),
58 68 'twitter-plugin/twitter.php' => array(
59 69 'name' => 'Twitter',
60 70 'description' => 'Allows you to add the Twitter "Follow" and "Like" buttons the easiest way.',
61 - 'link' => 'http://bestwebsoft.com/products/twitter/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
62 - 'download' => 'http://bestwebsoft.com/products/twitter/download/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
63 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Twitter+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
71 + 'link' => 'http://bestwebsoft.com/plugin/twitter-plugin/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
72 + 'download' => 'http://bestwebsoft.com/plugin/twitter-plugin/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
73 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Twitter+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
64 74 'settings' => 'admin.php?page=twitter.php',
65 - 'pro_version' => 'twitter-pro/twitter-pro.php',
66 - 'purchase' => 'http://bestwebsoft.com/products/twitter/buy/?k=63ecbf0cc9cebf060b5a3c9362299700&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
67 - 'pro_settings' => 'admin.php?page=twitter-pro.php'
68 - ),
75 + 'pro_version' => 'twitter-pro/twitter-pro.php'
76 + ),
69 77 'portfolio/portfolio.php' => array(
70 78 'name' => 'Portfolio',
71 79 'description' => 'Allows you to create a page with the information about your past projects.',
72 - 'link' => 'http://bestwebsoft.com/products/portfolio/?k=1249a890c5b7bba6bda3f528a94f768b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
73 - 'download' => 'http://bestwebsoft.com/products/portfolio/download/?k=1249a890c5b7bba6bda3f528a94f768b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
74 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Portfolio+bestwebsoft&plugin-search-input=Search+Plugins',
80 + 'link' => 'http://bestwebsoft.com/plugin/portfolio-plugin/?k=1249a890c5b7bba6bda3f528a94f768b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
81 + 'download' => 'http://bestwebsoft.com/plugin/portfolio-plugin/?k=1249a890c5b7bba6bda3f528a94f768b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
82 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Portfolio+bestwebsoft&plugin-search-input=Search+Plugins',
75 83 'settings' => 'admin.php?page=portfolio.php'
76 84 ),
77 85 'gallery-plugin/gallery-plugin.php' => array(
78 86 'name' => 'Gallery',
79 87 'description' => 'Allows you to implement a Gallery page into your website.',
80 - 'link' => 'http://bestwebsoft.com/products/gallery/?k=2da21c0a64eec7ebf16337fa134c5f78&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
81 - 'download' => 'http://bestwebsoft.com/products/gallery/download/?k=2da21c0a64eec7ebf16337fa134c5f78&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
82 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Gallery+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
88 + 'link' => 'http://bestwebsoft.com/plugin/gallery-plugin/?k=2da21c0a64eec7ebf16337fa134c5f78&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
89 + 'download' => 'http://bestwebsoft.com/plugin/gallery-plugin/?k=2da21c0a64eec7ebf16337fa134c5f78&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
90 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Gallery+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
83 91 'settings' => 'admin.php?page=gallery-plugin.php',
84 - 'pro_version' => 'gallery-plugin-pro/gallery-plugin-pro.php',
85 - 'purchase' => 'http://bestwebsoft.com/products/gallery/buy/?k=382e5ce7c96a6391f5ffa5e116b37fe0&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
86 - 'pro_settings' => 'admin.php?page=gallery-plugin-pro.php'
92 + 'pro_version' => 'gallery-plugin-pro/gallery-plugin-pro.php'
87 93 ),
88 94 'adsense-plugin/adsense-plugin.php'=> array(
89 - 'name' => 'Google AdSense by BestWebSoft',
95 + 'name' => 'Google AdSense',
90 96 'description' => 'Allows Google AdSense implementation to your website.',
91 - 'link' => 'http://bestwebsoft.com/products/google-adsense/?k=60e3979921e354feb0347e88e7d7b73d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
92 - 'download' => 'http://bestwebsoft.com/products/google-adsense/download/?k=60e3979921e354feb0347e88e7d7b73d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
93 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Adsense+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
97 + 'link' => 'http://bestwebsoft.com/plugin/google-adsense-plugin/?k=60e3979921e354feb0347e88e7d7b73d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
98 + 'download' => 'http://bestwebsoft.com/plugin/google-adsense-plugin/?k=60e3979921e354feb0347e88e7d7b73d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
99 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Adsense+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
94 100 'settings' => 'admin.php?page=adsense-plugin.php'
95 101 ),
96 102 'custom-search-plugin/custom-search-plugin.php'=> array(
97 103 'name' => 'Custom Search',
98 104 'description' => 'Allows to extend your website search functionality by adding a custom post type.',
99 - 'link' => 'http://bestwebsoft.com/products/custom-search/?k=933be8f3a8b8719d95d1079d15443e29&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
100 - 'download' => 'http://bestwebsoft.com/products/custom-search/download/?k=933be8f3a8b8719d95d1079d15443e29&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
101 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Custom+Search+plugin+bestwebsoft&plugin-search-input=Search+Plugins',
105 + 'link' => 'http://bestwebsoft.com/plugin/custom-search-plugin/?k=933be8f3a8b8719d95d1079d15443e29&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
106 + 'download' => 'http://bestwebsoft.com/plugin/custom-search-plugin/?k=933be8f3a8b8719d95d1079d15443e29&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
107 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Search+plugin+bestwebsoft&plugin-search-input=Search+Plugins',
102 108 'settings' => 'admin.php?page=custom_search.php'
103 109 ),
104 110 'quotes-and-tips/quotes-and-tips.php'=> array(
105 111 'name' => 'Quotes and Tips',
106 112 'description' => 'Allows you to implement quotes & tips block into your web site.',
107 - 'link' => 'http://bestwebsoft.com/products/quotes-and-tips/?k=5738a4e85a798c4a5162240c6515098d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
108 - 'download' => 'http://bestwebsoft.com/products/quotes-and-tips/download/?k=5738a4e85a798c4a5162240c6515098d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
109 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Quotes+and+Tips+bestwebsoft&plugin-search-input=Search+Plugins',
113 + 'link' => 'http://bestwebsoft.com/plugin/quotes-and-tips/?k=5738a4e85a798c4a5162240c6515098d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
114 + 'download' => 'http://bestwebsoft.com/plugin/quotes-and-tips/?k=5738a4e85a798c4a5162240c6515098d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
115 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Quotes+and+Tips+bestwebsoft&plugin-search-input=Search+Plugins',
110 116 'settings' => 'admin.php?page=quotes-and-tips.php'
111 117 ),
112 118 'google-sitemap-plugin/google-sitemap-plugin.php'=> array(
113 - 'name' => 'Google Sitemap by BestWebSoft',
119 + 'name' => 'Google Sitemap',
114 120 'description' => 'Allows you to add sitemap file to Google Webmaster Tools.',
115 - 'link' => 'http://bestwebsoft.com/products/google-sitemap/?k=5202b2f5ce2cf85daee5e5f79a51d806&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
116 - 'download' => 'http://bestwebsoft.com/products/google-sitemap/download/?k=5202b2f5ce2cf85daee5e5f79a51d806&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
117 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Google+sitemap+plugin+bestwebsoft&plugin-search-input=Search+Plugins',
121 + 'link' => 'http://bestwebsoft.com/plugin/google-sitemap-plugin/?k=5202b2f5ce2cf85daee5e5f79a51d806&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
122 + 'download' => 'http://bestwebsoft.com/plugin/google-sitemap-plugin/?k=5202b2f5ce2cf85daee5e5f79a51d806&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
123 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+sitemap+plugin+bestwebsoft&plugin-search-input=Search+Plugins',
118 124 'settings' => 'admin.php?page=google-sitemap-plugin.php',
119 - 'pro_version' => 'google-sitemap-pro/google-sitemap-pro.php',
120 - 'purchase' => 'http://bestwebsoft.com/products/google-sitemap/buy/?k=7ea384a5cc36cb4c22741caa20dcd56d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
121 - 'pro_settings' => 'admin.php?page=google-sitemap-pro.php'
125 + 'pro_version' => 'google-sitemap-pro/google-sitemap-pro.php'
122 126 ),
123 127 'updater/updater.php'=> array(
124 128 'name' => 'Updater',
125 129 'description' => 'Allows you to update plugins and WP core.',
126 - 'link' => 'http://bestwebsoft.com/products/updater/?k=66f3ecd4c1912009d395c4bb30f779d1&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
127 - 'download' => 'http://bestwebsoft.com/products/updater/download/?k=66f3ecd4c1912009d395c4bb30f779d1&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
128 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=updater+bestwebsoft&plugin-search-input=Search+Plugins',
130 + 'link' => 'http://bestwebsoft.com/plugin/updater-plugin/?k=66f3ecd4c1912009d395c4bb30f779d1&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
131 + 'download' => 'http://bestwebsoft.com/plugin/updater-plugin/?k=66f3ecd4c1912009d395c4bb30f779d1&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
132 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=updater+bestwebsoft&plugin-search-input=Search+Plugins',
129 133 'settings' => 'admin.php?page=updater-options',
130 - 'pro_version' => 'updater-pro/updater_pro.php',
131 - 'purchase' => 'http://bestwebsoft.com/products/updater/buy/?k=cf633acbefbdff78545347fe08a3aecb&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
132 - 'pro_settings' => 'admin.php?page=updater-pro-options'
134 + 'pro_version' => 'updater-pro/updater_pro.php'
133 135 ),
134 136 'custom-fields-search/custom-fields-search.php'=> array(
135 137 'name' => 'Custom Fields Search',
136 138 'description' => 'Allows you to add website search any existing custom fields.',
137 - 'link' => 'http://bestwebsoft.com/products/custom-fields-search/?k=f3f8285bb069250c42c6ffac95ed3284&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
138 - 'download' => 'http://bestwebsoft.com/products/custom-fields-search/download/?k=f3f8285bb069250c42c6ffac95ed3284&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
139 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Custom+Fields+Search+bestwebsoft&plugin-search-input=Search+Plugins',
139 + 'link' => 'http://bestwebsoft.com/plugin/custom-fields-search/?k=f3f8285bb069250c42c6ffac95ed3284&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
140 + 'download' => 'http://bestwebsoft.com/plugin/custom-fields-search/?k=f3f8285bb069250c42c6ffac95ed3284&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
141 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Fields+Search+bestwebsoft&plugin-search-input=Search+Plugins',
140 142 'settings' => 'admin.php?page=custom_fields_search.php'
141 143 ),
142 144 'google-one/google-plus-one.php' => array(
143 - 'name' => 'Google +1 by BestWebSoft',
144 - 'description' => 'Allows you to see how many times your page has been liked on Google Search Engine as well as who has liked the article.',
145 - 'link' => 'http://bestwebsoft.com/products/google-plus-one/?k=ce7a88837f0a857b3a2bb142f470853c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
146 - 'download' => 'http://bestwebsoft.com/products/google-plus-one/download/?k=ce7a88837f0a857b3a2bb142f470853c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
147 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Google+%2B1+bestwebsoft&plugin-search-input=Search+Plugins',
145 + 'name' => 'Google +1',
146 + 'description' => 'Allows you to celebrate liked the article.',
147 + 'link' => 'http://bestwebsoft.com/plugin/google-plus-one/?k=ce7a88837f0a857b3a2bb142f470853c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
148 + 'download' => 'http://bestwebsoft.com/plugin/google-plus-one/?k=ce7a88837f0a857b3a2bb142f470853c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
149 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+%2B1+bestwebsoft&plugin-search-input=Search+Plugins',
148 150 'settings' => 'admin.php?page=google-plus-one.php',
149 - 'pro_version' => 'google-one-pro/google-plus-one-pro.php',
150 - 'purchase' => 'http://bestwebsoft.com/products/google-plus-one/buy/?k=f4b0a62d155c9df9601a0531ad5bd832&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
151 - 'pro_settings' => 'admin.php?page=google-plus-one-pro.php'
151 + 'pro_version' => 'google-one-pro/google-plus-one-pro.php'
152 152 ),
153 153 'relevant/related-posts-plugin.php' => array(
154 154 'name' => 'Relevant - Related Posts',
155 155 'description' => 'Allows you to display related posts with similar words in category, tags, title or by adding special meta key for posts.',
156 - 'link' => 'http://bestwebsoft.com/products/related-posts/?k=73fb737037f7141e66415ec259f7e426&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
157 - 'download' => 'http://bestwebsoft.com/products/related-posts/download/?k=73fb737037f7141e66415ec259f7e426&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
158 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Related+Posts+Plugin+Bestwebsoft&plugin-search-input=Search+Plugins',
156 + 'link' => 'http://bestwebsoft.com/plugin/related-posts-plugin/?k=73fb737037f7141e66415ec259f7e426&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
157 + 'download' => 'http://bestwebsoft.com/plugin/related-posts-plugin/?k=73fb737037f7141e66415ec259f7e426&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
158 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Related+Posts+Plugin+Bestwebsoft&plugin-search-input=Search+Plugins',
159 159 'settings' => 'admin.php?page=related-posts-plugin.php'
160 160 ),
161 161 'contact-form-to-db/contact_form_to_db.php' => array(
162 162 'name' => 'Contact Form To DB',
163 163 'description' => 'Allows you to manage the messages that have been sent from your site.',
164 - 'link' => 'http://bestwebsoft.com/products/contact-form-to-db/?k=ba3747d317c2692e4136ca096a8989d6&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
165 - 'download' => 'http://bestwebsoft.com/products/contact-form-to-db/download/?k=ba3747d317c2692e4136ca096a8989d6&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
166 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Contact+Form+to+DB+bestwebsoft&plugin-search-input=Search+Plugins',
164 + 'link' => 'http://bestwebsoft.com/plugin/contact-form-to-db/?k=ba3747d317c2692e4136ca096a8989d6&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
165 + 'download' => 'http://bestwebsoft.com/plugin/contact-form-to-db/?k=ba3747d317c2692e4136ca096a8989d6&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
166 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Contact+Form+to+DB+bestwebsoft&plugin-search-input=Search+Plugins',
167 167 'settings' => 'admin.php?page=cntctfrmtdb_settings',
168 - 'pro_version' => 'contact-form-to-db-pro/contact_form_to_db_pro.php',
169 - 'purchase' => 'http://bestwebsoft.com/products/contact-form-to-db/buy/?k=6ce5f4a9006ec906e4db643669246c6a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
170 - 'pro_settings' => 'admin.php?page=cntctfrmtdbpr_settings'
168 + 'pro_version' => 'contact-form-to-db-pro/contact_form_to_db_pro.php'
171 169 ),
172 170 'pdf-print/pdf-print.php' => array(
173 171 'name' => 'PDF & Print',
174 172 'description' => 'Allows you to create PDF and Print page with adding appropriate buttons to the content.',
175 - 'link' => 'http://bestwebsoft.com/products/pdf-print/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
176 - 'download' => 'http://bestwebsoft.com/products/pdf-print/download/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
177 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=PDF+Print+Bestwebsoft&plugin-search-input=Search+Plugins',
173 + 'link' => 'http://bestwebsoft.com/plugin/pdf-print/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
174 + 'download' => 'http://bestwebsoft.com/plugin/pdf-print/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
175 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=PDF+Print+Bestwebsoft&plugin-search-input=Search+Plugins',
178 176 'settings' => 'admin.php?page=pdf-print.php',
179 - 'pro_version' => 'pdf-print-pro/pdf-print-pro.php',
180 - 'purchase' => 'http://bestwebsoft.com/products/pdf-print/buy/?k=fd43a0e659ddc170a9060027cbfdcc3a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
181 - 'pro_settings' => 'admin.php?page=pdf-print-pro.php'
177 + 'pro_version' => 'pdf-print-pro/pdf-print-pro.php'
182 178 ),
183 179 'donate-button/donate.php' => array(
184 180 'name' => 'Donate',
185 181 'description' => 'Makes it possible to place donation buttons of various payment systems on your web page.',
186 - 'link' => 'http://bestwebsoft.com/products/donate/?k=a8b2e2a56914fb1765dd20297c26401b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
187 - 'download' => 'http://bestwebsoft.com/products/donate/download/?k=a8b2e2a56914fb1765dd20297c26401b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
188 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Donate+Bestwebsoft&plugin-search-input=Search+Plugins',
182 + 'link' => 'http://bestwebsoft.com/plugin/donate/?k=a8b2e2a56914fb1765dd20297c26401b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
183 + 'download' => 'http://bestwebsoft.com/plugin/donate/?k=a8b2e2a56914fb1765dd20297c26401b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
184 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Donate+Bestwebsoft&plugin-search-input=Search+Plugins',
189 185 'settings' => 'admin.php?page=donate.php'
190 186 ),
191 187 'post-to-csv/post-to-csv.php' => array(
192 188 'name' => 'Post To CSV',
193 189 'description' => 'The plugin allows to export posts of any types to a csv file.',
194 - 'link' => 'http://bestwebsoft.com/products/post-to-csv/?k=653aa55518ae17409293a7a894268b8f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
195 - 'download' => 'http://bestwebsoft.com/products/post-to-csv/download/?k=653aa55518ae17409293a7a894268b8f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
196 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Post+To+CSV+Bestwebsoft&plugin-search-input=Search+Plugins',
190 + 'link' => 'http://bestwebsoft.com/plugin/post-to-csv/?k=653aa55518ae17409293a7a894268b8f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
191 + 'download' => 'http://bestwebsoft.com/plugin/post-to-csv/?k=653aa55518ae17409293a7a894268b8f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
192 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Post+To+CSV+Bestwebsoft&plugin-search-input=Search+Plugins',
197 193 'settings' => 'admin.php?page=post-to-csv.php'
198 194 ),
199 195 'google-shortlink/google-shortlink.php' => array(
200 - 'name' => 'Google Shortlink by BestWebSoft',
196 + 'name' => 'Google Shortlink',
201 197 'description' => 'Allows you to get short links from goo.gl servise without leaving your site.',
202 - 'link' => 'http://bestwebsoft.com/products/google-shortlink/?k=afcf3eaed021bbbbeea1090e16bc22db&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
203 - 'download' => 'http://bestwebsoft.com/products/google-shortlink/download/?k=afcf3eaed021bbbbeea1090e16bc22db&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
204 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Google+Shortlink+Bestwebsoft&plugin-search-input=Search+Plugins',
198 + 'link' => 'http://bestwebsoft.com/plugin/google-shortlink/?k=afcf3eaed021bbbbeea1090e16bc22db&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
199 + 'download' => 'http://bestwebsoft.com/plugin/google-shortlink/?k=afcf3eaed021bbbbeea1090e16bc22db&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
200 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Google+Shortlink+Bestwebsoft&plugin-search-input=Search+Plugins',
205 201 'settings' => 'admin.php?page=gglshrtlnk_options'
206 202 ),
207 203 'htaccess/htaccess.php' => array(
208 204 'name' => 'Htaccess',
209 205 'description' => 'Allows controlling access to your website using the directives Allow and Deny.',
210 - 'link' => 'http://bestwebsoft.com/products/htaccess/?k=2b865fcd56a935d22c5c4f1bba52ed46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
211 - 'download' => 'http://bestwebsoft.com/products/htaccess/download/?k=2b865fcd56a935d22c5c4f1bba52ed46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
212 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Htaccess+Bestwebsoft&plugin-search-input=Search+Plugins',
213 - 'settings' => 'admin.php?page=htaccess.php',
214 - 'pro_version' => 'htaccess-pro/htaccess-pro.php',
215 - 'purchase' => 'http://bestwebsoft.com/products/htaccess/buy/?k=59e9209a32864be534fda77d5e591c15&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
216 - 'pro_settings' => 'admin.php?page=htaccess-pro.php'
206 + 'link' => 'http://bestwebsoft.com/plugin/htaccess/?k=2b865fcd56a935d22c5c4f1bba52ed46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
207 + 'download' => 'http://bestwebsoft.com/plugin/htaccess/?k=2b865fcd56a935d22c5c4f1bba52ed46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
208 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Htaccess+Bestwebsoft&plugin-search-input=Search+Plugins',
209 + 'settings' => 'admin.php?page=htaccess.php'
217 210 ),
218 211 'google-captcha/google-captcha.php' => array(
219 - 'name' => 'Google Captcha (reCAPTCHA) by BestWebSoft',
212 + 'name' => 'Google Captcha (reCAPTCHA)',
220 213 'description' => 'Plugin intended to prove that the visitor is a human being and not a spam robot.',
221 - 'link' => 'http://bestwebsoft.com/products/google-captcha/?k=7b59fbe542acf950b29f3e020d5ad735&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
222 - 'download' => 'http://bestwebsoft.com/products/google-captcha/download/?k=7b59fbe542acf950b29f3e020d5ad735&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
223 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Google+Captcha+Bestwebsoft&plugin-search-input=Search+Plugins',
214 + 'link' => 'http://bestwebsoft.com/plugin/google-captcha/?k=7b59fbe542acf950b29f3e020d5ad735&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
215 + 'download' => 'http://bestwebsoft.com/plugin/google-captcha/?k=7b59fbe542acf950b29f3e020d5ad735&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
216 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Google+Captcha+Bestwebsoft&plugin-search-input=Search+Plugins',
224 217 'settings' => 'admin.php?page=google-captcha.php'
225 218 ),
226 219 'sender/sender.php' => array(
227 220 'name' => 'Sender',
228 221 'description' => 'You can send mails to all users or to certain categories of users.',
229 - 'link' => 'http://bestwebsoft.com/products/sender/?k=89c297d14ba85a8417a0f2fc05e089c7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
230 - 'download' => 'http://bestwebsoft.com/products/sender/download/?k=89c297d14ba85a8417a0f2fc05e089c7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
231 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Sender+Bestwebsoft&plugin-search-input=Search+Plugins',
232 - 'settings' => 'admin.php?page=sndr_settings',
233 - 'pro_version' => 'sender-pro/sender-pro.php',
234 - 'purchase' => 'http://bestwebsoft.com/products/sender/buy/?k=dc5d1a87bdc8aeab2de40ffb99b38054&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
235 - 'pro_settings' => 'admin.php?page=sndrpr_settings'
222 + 'link' => 'http://bestwebsoft.com/plugin/sender/?k=89c297d14ba85a8417a0f2fc05e089c7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
223 + 'download' => 'http://bestwebsoft.com/plugin/sender/?k=89c297d14ba85a8417a0f2fc05e089c7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
224 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Sender+Bestwebsoft&plugin-search-input=Search+Plugins',
225 + 'settings' => 'admin.php?page=sndr_settings'
226 + )
227 + );
228 + $bws_plugins_pro = array(
229 + 'gallery-plugin-pro/gallery-plugin-pro.php' => array(
230 + 'name' => 'Gallery Pro',
231 + 'description' => 'Allows you to implement as many galleries as you want into your website.',
232 + 'link' => 'http://bestwebsoft.com/plugin/gallery-pro/?k=382e5ce7c96a6391f5ffa5e116b37fe0&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
233 + 'purchase' => 'http://bestwebsoft.com/plugin/gallery-pro/?k=382e5ce7c96a6391f5ffa5e116b37fe0&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
234 + 'settings' => 'admin.php?page=gallery-plugin-pro.php'
236 235 ),
237 - 'subscriber/subscriber.php' => array(
238 - 'name' => 'Subscriber',
239 - 'description' => 'This plugin allows you to subscribe users for newsletters from your website.',
240 - 'link' => 'http://bestwebsoft.com/products/subscriber/?k=a4ecc1b7800bae7329fbe8b4b04e9c88&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
241 - 'download' => 'http://bestwebsoft.com/products/subscriber/download/?k=a4ecc1b7800bae7329fbe8b4b04e9c88&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
242 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Subscriber+Bestwebsoft&plugin-search-input=Search+Plugins',
243 - 'settings' => 'admin.php?page=sbscrbr_settings_page',
244 - 'pro_version' => 'subscriber-pro/subscriber-pro.php',
245 - 'purchase' => 'http://bestwebsoft.com/products/subscriber/buy/?k=02dbb8b549925d9b74e70adc2a7282e4&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
246 - 'pro_settings' => 'admin.php?page=sbscrbrpr_settings_page'
236 + 'contact-form-pro/contact_form_pro.php' => array(
237 + 'name' => 'Contact form Pro',
238 + 'description' => 'Allows you to implement a feedback form to a web-page or a post in no time.',
239 + 'link' => 'http://bestwebsoft.com/plugin/contact-form-pro/?k=773dc97bb3551975db0e32edca1a6d71&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
240 + 'purchase' => 'http://bestwebsoft.com/plugin/contact-form-pro/?k=773dc97bb3551975db0e32edca1a6d71&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
241 + 'settings' => 'admin.php?page=contact_form_pro.php'
247 242 ),
248 - 'contact-form-multi/contact-form-multi.php' => array(
249 - 'name' => 'Contact Form Multi',
250 - 'description' => 'Add-on to the Contact Form plugin that allows to create and implement multiple contact forms.',
251 - 'link' => 'http://bestwebsoft.com/products/contact-form-multi/?k=83cdd9e72a9f4061122ad28a67293c72&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
252 - 'download' => 'http://bestwebsoft.com/products/contact-form-multi/download/?k=83cdd9e72a9f4061122ad28a67293c72&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
253 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Contact+Form+Multi+Bestwebsoft&plugin-search-input=Search+Plugins',
254 - 'settings' => '',
255 - 'pro_version' => 'contact-form-multi-pro/contact-form-multi-pro.php',
256 - 'purchase' => 'http://bestwebsoft.com/products/contact-form-multi/buy/?k=fde3a18581c143654f060c398b07e8ac&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
257 - 'pro_settings' => ''
243 + 'captcha-pro/captcha_pro.php' => array(
244 + 'name' => 'Captcha Pro',
245 + 'description' => 'Allows you to implement a super security captcha form into web forms.',
246 + 'link' => 'http://bestwebsoft.com/plugin/captcha-pro/?k=ff7d65e55e5e7f98f219be9ed711094e&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
247 + 'purchase' => 'http://bestwebsoft.com/plugin/captcha-pro/?k=ff7d65e55e5e7f98f219be9ed711094e&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
248 + 'settings' => 'admin.php?page=captcha_pro.php'
258 249 ),
259 - 'bws-google-maps/bws-google-maps.php' => array(
260 - 'name' => 'Google Maps by BestWebSoft',
261 - 'description' => 'Easy to set up and insert Google Maps to your website.',
262 - 'link' => 'http://bestwebsoft.com/products/bws-google-maps/?k=d8fac412d7359ebaa4ff53b46572f9f7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
263 - 'download' => 'http://bestwebsoft.com/products/bws-google-maps/download/?k=d8fac412d7359ebaa4ff53b46572f9f7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
264 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Google+Maps+Bestwebsoft&plugin-search-input=Search+Plugins',
265 - 'settings' => 'admin.php?page=bws-google-maps.php',
266 - 'pro_version' => 'bws-google-maps-pro/bws-google-maps-pro.php',
267 - 'purchase' => 'http://bestwebsoft.com/products/bws-google-maps/buy/?k=117c3f9fc17f2c83ef430a8a9dc06f56&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
268 - 'pro_settings' => 'admin.php?page=bws-google-maps-pro.php'
250 + 'updater-pro/updater_pro.php' => array(
251 + 'name' => 'Updater Pro',
252 + 'description' => 'Allows you to update plugins and WordPress core on your website.',
253 + 'link' => 'http://bestwebsoft.com/plugin/updater-pro/?k=cf633acbefbdff78545347fe08a3aecb&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
254 + 'purchase' => 'http://bestwebsoft.com/plugin/updater-pro?k=cf633acbefbdff78545347fe08a3aecb&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
255 + 'settings' => 'admin.php?page=updater-pro-options'
269 256 ),
270 - 'bws-google-analytics/bws-google-analytics.php' => array(
271 - 'name' => 'Google Analytics by BestWebSoft',
272 - 'description' => 'Allows you to retrieve basic stats from Google Analytics account and add the tracking code to your blog.',
273 - 'link' => 'http://bestwebsoft.com/products/bws-google-analytics/?k=261c74cad753fb279cdf5a5db63fbd43&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
274 - 'download' => 'http://bestwebsoft.com/products/bws-google-analytics/download/?k=261c74cad753fb279cdf5a5db63fbd43&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
275 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Google+Analytics+Bestwebsoft&plugin-search-input=Search+Plugins',
276 - 'settings' => 'admin.php?page=bws-google-analytics.php',
277 - 'pro_version' => 'bws-google-analytics-pro/bws-google-analytics-pro.php',
278 - 'purchase' => 'http://bestwebsoft.com/products/bws-google-analytics/buy/?k=83796e84fec3f70ecfcc8894a73a6c4a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
279 - 'pro_settings' => 'admin.php?page=bws-google-analytics-pro.php'
257 + 'contact-form-to-db-pro/contact_form_to_db_pro.php' => array(
258 + 'name' => 'Contact form to DB Pro',
259 + 'description' => 'The plugin provides a unique opportunity to manage messages sent from your site via the contact form.',
260 + 'link' => 'http://bestwebsoft.com/plugin/contact-form-to-db-pro/?k=6ce5f4a9006ec906e4db643669246c6a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
261 + 'purchase' => 'http://bestwebsoft.com/plugin/contact-form-to-db-pro/?k=6ce5f4a9006ec906e4db643669246c6a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
262 + 'settings' => 'admin.php?page=cntctfrmtdbpr_settings'
280 263 ),
281 - 'db-manager/db-manager.php' => array(
282 - 'name' => 'DB manager',
283 - 'description' => 'Allows you to download the latest version of PhpMyadmin and Dumper and manage your site.',
284 - 'link' => 'http://bestwebsoft.com/products/db-manager/?k=01ed9731780d87f85f5901064b7d76d8&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
285 - 'download' => 'http://bestwebsoft.com/products/db-manager/download/?k=01ed9731780d87f85f5901064b7d76d8&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
286 - 'wp_install' => 'http://bestwebsoft.com/products/db-manager/download/?k=01ed9731780d87f85f5901064b7d76d8&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
287 - 'settings' => 'admin.php?page=db-manager.php'
264 + 'google-sitemap-pro/google-sitemap-pro.php'=> array(
265 + 'name' => 'Google Sitemap Pro',
266 + 'description' => 'Allows you to add sitemap file to Google Webmaster Tools.',
267 + 'link' => 'http://bestwebsoft.com/plugin/google-sitemap-pro/?k=7ea384a5cc36cb4c22741caa20dcd56d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
268 + 'purchase' => 'http://bestwebsoft.com/plugin/google-sitemap-pro/?k=7ea384a5cc36cb4c22741caa20dcd56d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
269 + 'settings' => 'admin.php?page=google-sitemap-pro.php'
288 270 ),
289 - 'user-role/user-role.php' => array(
290 - 'name' => 'User Role',
291 - 'description' => 'Allows to change wordpress user role capabilities.',
292 - 'link' => 'http://bestwebsoft.com/products/user-role/?k=dfe2244835c6fbf601523964b3f34ccc&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
293 - 'download' => 'http://bestwebsoft.com/products/user-role/download/?k=dfe2244835c6fbf601523964b3f34ccc&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
294 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=User+Role+BestWebSoft&plugin-search-input=Search+Plugins',
295 - 'settings' => 'admin.php?page=user-role.php',
296 - 'pro_version' => 'user-role-pro/user-role-pro.php',
297 - 'purchase' => 'http://bestwebsoft.com/products/user-role/buy/?k=cfa9cea6613fb3d7c0a3622fa2faaf46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
298 - 'pro_settings' => 'admin.php?page=user-role-pro.php'
271 + 'twitter-pro/twitter-pro.php' => array(
272 + 'name' => 'Twitter Pro',
273 + 'description' => 'Allows you to add the Twitter "Follow" and "Like" buttons the easiest way.',
274 + 'link' => 'http://bestwebsoft.com/plugin/twitter-pro/?k=63ecbf0cc9cebf060b5a3c9362299700&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
275 + 'purchase' => 'http://bestwebsoft.com/plugin/twitter-pro?k=63ecbf0cc9cebf060b5a3c9362299700&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
276 + 'settings' => 'admin.php?page=twitter-pro.php'
299 277 ),
300 - 'email-queue/email-queue.php' => array(
301 - 'name' => 'Email Queue',
302 - 'description' => 'Allows to manage email massages sent by BestWebSoft plugins.',
303 - 'link' => 'http://bestwebsoft.com/products/email-queue/?k=e345e1b6623f0dca119bc2d9433b130b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
304 - 'download' => 'http://bestwebsoft.com/products/email-queue/download/?k=e345e1b6623f0dca119bc2d9433b130b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
305 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Email+Queue+BestWebSoft&plugin-search-input=Search+Plugins',
306 - 'settings' => 'admin.php?page=mlq_settings'
278 + 'google-one-pro/google-plus-one-pro.php' => array(
279 + 'name' => 'Google +1 Pro',
280 + 'description' => 'Allows you to celebrate liked the article.',
281 + 'link' => 'http://bestwebsoft.com/plugin/google-plus-one-pro/?k=f4b0a62d155c9df9601a0531ad5bd832&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
282 + 'purchase' => 'http://bestwebsoft.com/plugin/google-plus-one-pro?k=f4b0a62d155c9df9601a0531ad5bd832&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
283 + 'settings' => 'admin.php?page=google-plus-one-pro.php'
307 284 ),
308 - 'limit-attempts/limit-attempts.php' => array(
309 - 'name' => 'Limit Attempts',
310 - 'description' => 'Allows you to limit rate of login attempts by the ip, and create whitelist and blacklist.',
311 - 'link' => 'http://bestwebsoft.com/products/limit-attempts/?k=b14e1697ee4d008abcd4bd34d492573a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
312 - 'download' => 'http://bestwebsoft.com/products/limit-attempts/download/?k=b14e1697ee4d008abcd4bd34d492573a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
313 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Limit+Attempts+BestWebSoft&plugin-search-input=Search+Plugins',
314 - 'settings' => 'admin.php?page=limit-attempts.php',
315 - 'pro_version' => 'limit-attempts-pro/limit-attempts-pro.php',
316 - 'purchase' => 'http://bestwebsoft.com/products/limit-attempts/buy/?k=9d42cdf22c7fce2c4b6b447e6a2856e0&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
317 - 'pro_settings' => 'admin.php?page=limit-attempts-pro.php'
285 + 'facebook-button-pro/facebook-button-pro.php' => array(
286 + 'name' => 'Facebook Like Button Pro',
287 + 'description' => 'Allows you to add the Follow and Like buttons the easiest way.',
288 + 'link' => 'http://bestwebsoft.com/plugin/facebook-like-button-pro/?k=8da168e60a831cfb3525417c333ad275&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
289 + 'purchase' => 'http://bestwebsoft.com/plugin/facebook-like-button-pro?k=8da168e60a831cfb3525417c333ad275&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
290 + 'settings' => 'admin.php?page=facebook-button-pro.php'
318 291 ),
319 - 'job-board/job-board.php' => array(
320 - 'name' => 'Job board',
321 - 'description' => 'Allows to create a job-board page on your site.',
322 - 'link' => 'http://bestwebsoft.com/products/job-board/?k=b0c504c9ce6edd6692e04222af3fed6f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
323 - 'download' => 'http://bestwebsoft.com/products/job-board/download/?k=b0c504c9ce6edd6692e04222af3fed6f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
324 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Job+board+BestWebSoft&plugin-search-input=Search+Plugins',
325 - 'settings' => 'admin.php?page=job-board.php'
326 - ),
327 - 'multilanguage/multilanguage.php' => array(
328 - 'name' => 'Multilanguage',
329 - 'description' => 'Allows to create content on a Wordpress site in different languages.',
330 - 'link' => 'http://bestwebsoft.com/products/multilanguage/?k=7d68c7bfec2486dc350c67fff57ad433&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
331 - 'download' => 'http://bestwebsoft.com/products/multilanguage/download/?k=7d68c7bfec2486dc350c67fff57ad433&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
332 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Multilanguage+BestWebSoft&plugin-search-input=Search+Plugins',
333 - 'settings' => 'admin.php?page=mltlngg_settings'
334 - ),
335 - 'bws-popular-posts/bws-popular-posts.php' => array(
336 - 'name' => 'Popular Posts by BestWebSoft',
337 - 'description' => 'This plugin will help you can display the most popular posts on your blog in the widget.',
338 - 'link' => 'http://bestwebsoft.com/products/popular-posts/?k=4d529f116d2b7f7df3a78018c383f975&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
339 - 'download' => 'http://bestwebsoft.com/products/popular-posts/download/?k=4d529f116d2b7f7df3a78018c383f975&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
340 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Popular+Posts+BestWebSoft&plugin-search-input=Search+Plugins',
341 - 'settings' => 'admin.php?page=popular-posts.php'
342 - ),
343 - 'bws-testimonials/bws-testimonials.php' => array(
344 - 'name' => 'Testimonials by BestWebSoft',
345 - 'description' => 'Allows creating and displaying a Testimonial on your website.',
346 - 'link' => 'http://bestwebsoft.com/products/testimonials/?k=3fe4bb89dc901c98e43a113e08f8db73&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
347 - 'download' => 'http://bestwebsoft.com/products/testimonials/download/?k=3fe4bb89dc901c98e43a113e08f8db73&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
348 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Testimonials+BestWebSoft&plugin-search-input=Search+Plugins',
349 - 'settings' => 'admin.php?page=testimonials.php'
350 - ),
351 - 'bws-featured-posts/bws-featured-posts.php' => array(
352 - 'name' => 'Featured Posts by BestWebSoft',
353 - 'description' => 'Displays featured posts randomly on any website page.',
354 - 'link' => 'http://bestwebsoft.com/products/featured-posts/?k=f0afb31185ba7c7d6d598528d69f6d97&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
355 - 'download' => 'http://bestwebsoft.com/products/featured-posts/download/?k=f0afb31185ba7c7d6d598528d69f6d97&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
356 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Featured+Posts+BestWebSoft&plugin-search-input=Search+Plugins',
357 - 'settings' => 'admin.php?page=featured-posts.php'
358 - ),
359 - 'gallery-categories/gallery-categories.php' => array(
360 - 'name' => 'Gallery Categories',
361 - 'description' => 'Add-on for Gallery Plugin by BestWebSoft',
362 - 'link' => 'http://bestwebsoft.com/products/gallery-categories/?k=7d68c7bfec2486dc350c67fff57ad433&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
363 - 'download' => 'http://bestwebsoft.com/products/gallery-categories/download/?k=7d68c7bfec2486dc350c67fff57ad433&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
364 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Gallery+Categories+BestWebSoft&plugin-search-input=Search+Plugins',
365 - 'settings' => ''
366 - ),
367 - 're-attacher/re-attacher.php' => array(
368 - 'name' => 'Re-attacher',
369 - 'description' => 'This plugin allows to attach, unattach or reattach media item in different post.',
370 - 'link' => 'http://bestwebsoft.com/products/re-attacher/?k=4d529f116d2b7f7df3a78018c383f975&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
371 - 'download' => 'http://bestwebsoft.com/products/re-attacher/download/?k=4d529f116d2b7f7df3a78018c383f975&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
372 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Re-attacher+BestWebSoft&plugin-search-input=Search+Plugins',
373 - 'settings' => 'admin.php?page=re-attacher.php'
374 - ),
375 - 'bws-smtp/bws-smtp.php' => array(
376 - 'name' => 'SMTP by BesWebSoft',
377 - 'description' => 'This plugin introduces an easy way to configure sending email messages via SMTP.',
378 - 'link' => 'http://bestwebsoft.com/products/bws-smtp/?k=0546419f962704429ad2d9b88567752f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
379 - 'download' => 'http://bestwebsoft.com/products/bws-smtp/download/?k=0546419f962704429ad2d9b88567752f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
380 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=SMTP+BestWebSoft&plugin-search-input=Search+Plugins',
381 - 'settings' => 'admin.php?page=bwssmtp_settings'
382 - ),
383 - 'promobar/promobar.php' => array(
384 - 'name' => 'PromoBar',
385 - 'description' => 'This plugin allows placing banners with any data on your website.',
386 - 'link' => 'http://bestwebsoft.com/products/promobar/?k=619eac2232d9cfa382c4e678c3b14766&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
387 - 'download' => 'http://bestwebsoft.com/products/promobar/download/?k=619eac2232d9cfa382c4e678c3b14766&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
388 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=PromoBar+BestWebSoft&plugin-search-input=Search+Plugins',
389 - 'settings' => 'admin.php?page=promobar.php',
390 - 'pro_version' => 'promobar-pro/promobar-pro.php',
391 - 'purchase' => 'http://bestwebsoft.com/products/promobar/buy/?k=a9b09708502f12a1483532ba12fe2103&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
392 - 'pro_settings' => 'admin.php?page=promobar-pro.php'
393 - ),
394 - 'realty/realty.php' => array(
395 - 'name' => 'Realty',
396 - 'description' => 'A convenient plugin that adds Real Estate functionality.',
397 - 'link' => 'http://bestwebsoft.com/products/realty/?k=d55de979dbbbb7af0b2ff1d7f43884fa&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
398 - 'download' => 'http://bestwebsoft.com/products/realty/download/?k=d55de979dbbbb7af0b2ff1d7f43884fa&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
399 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Realty+BestWebSoft&plugin-search-input=Search+Plugins',
400 - 'settings' => 'admin.php?page=realty_settings',
401 - 'pro_version' => 'realty-pro/realty-pro.php',
402 - 'purchase' => 'http://bestwebsoft.com/products/realty/buy/?k=c7791f0a72acfb36f564a614dbccb474&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
403 - 'pro_settings' => 'admin.php?page=realty_pro_settings'
404 - ),
405 - 'zendesk-help-center/zendesk-help-center.php' => array(
406 - 'name' => 'Zendesk Help Center Backup',
407 - 'description' => 'This plugin allows to backup Zendesk Help Center.',
408 - 'link' => 'http://bestwebsoft.com/products/zendesk-help-center/?k=2a5fd2f4b2f4bde46f2ca44b8d15846d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
409 - 'download' => 'http://bestwebsoft.com/products/zendesk-help-center/download/?k=2a5fd2f4b2f4bde46f2ca44b8d15846d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
410 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Zendesk+Help+Center+Backup+BestWebSoft&plugin-search-input=Search+Plugins',
411 - 'settings' => 'admin.php?page=zendesk_hc.php&tab=settings'
412 - ),
413 - 'social-buttons-pack/social-buttons-pack.php' => array(
414 - 'name' => 'Social Buttons Pack',
415 - 'description' => 'Add Social buttons to your WordPress website.',
416 - 'link' => 'http://bestwebsoft.com/products/social-buttons-pack/?k=b6440fad9f54274429e536b0c61b42da&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
417 - 'download' => 'http://bestwebsoft.com/products/social-buttons-pack/download/?k=b6440fad9f54274429e536b0c61b42da&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
418 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Social+Buttons+Pack+BestWebSoft&plugin-search-input=Search+Plugins',
419 - 'settings' => 'admin.php?page=social-buttons.php'
292 + 'pdf-print-pro/pdf-print-pro.php' => array(
293 + 'name' => 'PDF & Print Pro',
294 + 'description' => 'Allows you to create PDF and Print page with adding appropriate buttons to the content.',
295 + 'link' => 'http://bestwebsoft.com/plugin/pdf-print-pro/?k=fd43a0e659ddc170a9060027cbfdcc3a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
296 + 'purchase' => 'http://bestwebsoft.com/plugin/pdf-print-pro?k=fd43a0e659ddc170a9060027cbfdcc3a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
297 + 'settings' => 'admin.php?page=pdf-print-pro.php'
420 298 )
421 299 );
422 -
300 +
423 301 $all_plugins = get_plugins();
424 302 $active_plugins = get_option( 'active_plugins' );
425 - $recommend_plugins = array_diff_key( $bws_plugins, $all_plugins );
426 - $bws_plugins_pro = array();
427 303
428 - foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
429 - if ( ! isset( $all_plugins[ $key_plugin ] ) && isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) {
430 - unset( $recommend_plugins[ $key_plugin ] );
304 + if ( '1.1' == $bstwbsftwppdtplgns_options['bws_menu_version'] ) {
305 +
306 + $recommend_plugins = array_diff_key( $bws_plugins, $all_plugins );
307 +
308 + foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
309 + if ( ! isset( $all_plugins[ $key_plugin ] ) && isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) {
310 + unset( $recommend_plugins[ $key_plugin ] );
311 + }
431 312 }
432 - }
433 313
434 - foreach ( $all_plugins as $key_plugin => $value_plugin ) {
435 - if ( isset( $value_plugin['Author'] ) && $value_plugin['Author'] != "BestWebSoft" )
436 - unset( $all_plugins[ $key_plugin ] );
437 - elseif ( '-plus.php' == substr( $key_plugin, -9, 9 ) )
438 - unset( $all_plugins[ $key_plugin ] );
439 - else {
440 - foreach ( $bws_plugins as $key => $value ) {
441 - if ( isset( $value['pro_version'] ) && $value['pro_version'] == $key_plugin ) {
442 - $bws_plugins_pro[ $key_plugin ] = $key;
443 - unset( $all_plugins[ $key ] );
314 + foreach ( $all_plugins as $key_plugin => $value_plugin ) {
315 + if ( ! isset( $bws_plugins[ $key_plugin ] ) && ! isset( $bws_plugins_pro[ $key_plugin ] ) )
316 + unset( $all_plugins[ $key_plugin ] );
317 +
318 + if ( isset( $bws_plugins[ $key_plugin ] ) && isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) {
319 + unset( $all_plugins[ $key_plugin ] );
320 + }
321 + }
322 + } else {
323 +
324 + $array_activate = array();
325 + $array_install = array();
326 + $array_recomend = array();
327 + $count_activate = $count_install = $count_recomend = 0;
328 +
329 + foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
330 + if ( in_array( $key_plugin, $active_plugins ) || is_plugin_active_for_network( $key_plugin ) ) {
331 + $array_activate[ $count_activate ]["title"] = $value_plugin['name'];
332 + $array_activate[ $count_activate ]["link"] = $value_plugin['link'];
333 + $array_activate[ $count_activate ]["href"] = $value_plugin['download'];
334 + $array_activate[ $count_activate ]["url"] = $value_plugin['settings'];
335 + $count_activate++;
336 + } else if ( array_key_exists( $key_plugin, $all_plugins ) ) {
337 + $array_install[ $count_install ]["title"] = $value_plugin['name'];
338 + $array_install[ $count_install ]["link"] = $value_plugin['link'];
339 + $array_install[ $count_install ]["href"] = $value_plugin['download'];
340 + $count_install++;
341 + } else {
342 + $array_recomend[ $count_recomend ]["title"] = $value_plugin['name'];
343 + $array_recomend[ $count_recomend ]["link"] = $value_plugin['link'];
344 + $array_recomend[ $count_recomend ]["href"] = $value_plugin['download'];
345 + $array_recomend[ $count_recomend ]["slug"] = $value_plugin['wp_install'];
346 + $count_recomend++;
347 + }
348 + }
349 +
350 + $array_activate_pro = array();
351 + $array_install_pro = array();
352 + $array_recomend_pro = array();
353 + $count_activate_pro = $count_install_pro = $count_recomend_pro = 0;
354 + foreach ( $bws_plugins_pro as $key_plugin => $value_plugin ) {
355 + if ( in_array( $key_plugin, $active_plugins ) || is_plugin_active_for_network( $key_plugin ) ) {
356 + $array_activate_pro[ $count_activate_pro ]["title"] = $value_plugin['name'];
357 + $array_activate_pro[ $count_activate_pro ]["link"] = $value_plugin['link'];
358 + $array_activate_pro[ $count_activate_pro ]["href"] = $value_plugin['purchase'];
359 + $array_activate_pro[ $count_activate_pro ]["url"] = $value_plugin['settings'];
360 + $count_activate_pro++;
361 + } else if ( array_key_exists( $key_plugin, $all_plugins ) ) {
362 + $array_install_pro[ $count_install_pro ]["title"] = $value_plugin['name'];
363 + $array_install_pro[ $count_install_pro ]["link"] = $value_plugin['link'];
364 + $array_install_pro[ $count_install_pro ]["href"] = $value_plugin['purchase'];
365 + $count_install_pro++;
366 + } else {
367 + $array_recomend_pro[ $count_recomend_pro ]["title"] = $value_plugin['name'];
368 + $array_recomend_pro[ $count_recomend_pro ]["link"] = $value_plugin['link'];
369 + $array_recomend_pro[ $count_recomend_pro ]["href"] = $value_plugin['purchase'];
370 + $count_recomend_pro++;
371 + }
372 + }
373 + if ( $wp_version >= '3.4' ) {
374 + $wp_list_table = _get_list_table( 'WP_Themes_List_Table' );
375 + $wp_list_table->prepare_items();
376 + $current_theme = wp_get_theme();
377 + $array_activate_theme = array();
378 + $array_install_theme = array();
379 + $array_recomend_theme = array();
380 + $count_activate_theme = $count_install_theme = $count_recomend_theme = 0;
381 + $array_theme = array(
382 + array( 'central', 'Central', 'http://bestwebsoft.com/theme/central/?k=77c0199aabdb1f601a0504e312bee220&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version, 'http://bestwebsoft.com/theme/central/?k=77c0199aabdb1f601a0504e312bee220&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download', '/wp-admin/theme-install.php?tab=search&s=Central&search=Search' ),
383 + array( 'simple-classic', 'Simple Classic', 'http://bestwebsoft.com/theme/simple-classic/?k=b3990bfc85125747f48ece9f011f4cde&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version, 'http://bestwebsoft.com/theme/simple-classic/?k=b3990bfc85125747f48ece9f011f4cde&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download', '/wp-admin/theme-install.php?tab=search&type=term&s=Simple+Classic&search=Search' ),
384 + array( 'reddish', 'Reddish', 'http://bestwebsoft.com/theme/reddish/?k=1ea187e3fd401fd278e23a333abaf4f6&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version, 'http://bestwebsoft.com/theme/reddish/?k=1ea187e3fd401fd278e23a333abaf4f6&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download', '/wp-admin/theme-install.php?tab=search&type=term&s=reddish&search=Search' ),
385 + array( 'wordpost', 'Wordpost', 'http://bestwebsoft.com/theme/wordpost/?k=f0fc8c98135c9657751224562aca7a55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version, 'http://bestwebsoft.com/theme/wordpost/?k=f0fc8c98135c9657751224562aca7a55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download', '/wp-admin/theme-install.php?tab=search&type=term&s=Wordpost&search=Search' )
386 + );
387 + foreach ( $array_theme as $theme ) {
388 + if ( $current_theme->get( 'Name' ) == $theme[1] ) {
389 + $array_activate_theme[ $count_activate_theme ]["title"] = $theme[1];
390 + $array_activate_theme[ $count_activate_theme ]["link"] = $theme[2];
391 + $array_activate_theme[ $count_activate_theme ]["href"] = $theme[3];
392 + $count_activate_theme++;
393 + } elseif ( array_key_exists( $theme[0], $wp_list_table->items ) ) {
394 + $array_install_theme[ $count_install_theme ]["title"] = $theme[1];
395 + $array_install_theme[ $count_install_theme ]["link"] = $theme[2];
396 + $array_install_theme[ $count_install_theme ]["href"] = $theme[3];
397 + $count_install_theme++;
398 + } else {
399 + $array_recomend_theme[ $count_recomend_theme ]["title"] = $theme[1];
400 + $array_recomend_theme[ $count_recomend_theme ]["link"] = $theme[2];
401 + $array_recomend_theme[ $count_recomend_theme ]["href"] = $theme[3];
402 + $array_recomend_theme[ $count_recomend_theme ]["slug"] = $theme[4];
403 + $count_recomend_theme++;
444 404 }
445 405 }
446 406 }
447 407 }
448 408
449 - if ( isset( $_GET['action'] ) && 'system_status' == $_GET['action'] ) {
409 + if ( ( isset( $_GET['action'] ) && 'system_status' == $_GET['action'] ) || 'old' == $bstwbsftwppdtplgns_options['bws_menu_version'] ) {
450 410 $all_plugins = get_plugins();
451 411 $active_plugins = get_option( 'active_plugins' );
412 + $sql_version = $wpdb->get_var( "SELECT VERSION() AS version" );
452 413 $mysql_info = $wpdb->get_results( "SHOW VARIABLES LIKE 'sql_mode'" );
453 - if ( is_array( $mysql_info ) )
414 + if ( is_array( $mysql_info) )
454 415 $sql_mode = $mysql_info[0]->Value;
455 416 if ( empty( $sql_mode ) )
456 417 $sql_mode = __( 'Not set', 'bestwebsoft' );
418 + if ( ini_get( 'safe_mode' ) )
419 + $safe_mode = __( 'On', 'bestwebsoft' );
420 + else
421 + $safe_mode = __( 'Off', 'bestwebsoft' );
422 + if ( ini_get( 'allow_url_fopen' ) )
423 + $allow_url_fopen = __( 'On', 'bestwebsoft' );
424 + else
425 + $allow_url_fopen = __( 'Off', 'bestwebsoft' );
426 + if ( ini_get( 'upload_max_filesize' ) )
427 + $upload_max_filesize = ini_get( 'upload_max_filesize' );
428 + else
429 + $upload_max_filesize = __( 'N/A', 'bestwebsoft' );
430 + if ( ini_get('post_max_size') )
431 + $post_max_size = ini_get('post_max_size');
432 + else
433 + $post_max_size = __( 'N/A', 'bestwebsoft' );
434 + if ( ini_get( 'max_execution_time' ) )
435 + $max_execution_time = ini_get( 'max_execution_time' );
436 + else
437 + $max_execution_time = __( 'N/A', 'bestwebsoft' );
438 + if ( ini_get( 'memory_limit' ) )
439 + $memory_limit = ini_get( 'memory_limit' );
440 + else
441 + $memory_limit = __( 'N/A', 'bestwebsoft' );
442 + if ( function_exists( 'memory_get_usage' ) )
443 + $memory_usage = round( memory_get_usage() / 1024 / 1024, 2 ) . __( ' Mb', 'bestwebsoft' );
444 + else
445 + $memory_usage = __( 'N/A', 'bestwebsoft' );
446 + if ( is_callable( 'exif_read_data' ) )
447 + $exif_read_data = __( 'Yes', 'bestwebsoft' ) . " ( V" . substr( phpversion( 'exif' ), 0,4 ) . ")" ;
448 + else
449 + $exif_read_data = __( 'No', 'bestwebsoft' );
450 + if ( is_callable( 'iptcparse' ) )
451 + $iptcparse = __( 'Yes', 'bestwebsoft' );
452 + else
453 + $iptcparse = __( 'No', 'bestwebsoft' );
454 + if ( is_callable( 'xml_parser_create' ) )
455 + $xml_parser_create = __( 'Yes', 'bestwebsoft' );
456 + else
457 + $xml_parser_create = __( 'No', 'bestwebsoft' );
457 458
458 - $safe_mode = ( ini_get( 'safe_mode' ) ) ? __( 'On', 'bestwebsoft' ) : __( 'Off', 'bestwebsoft' );
459 - $allow_url_fopen = ( ini_get( 'allow_url_fopen' ) ) ? __( 'On', 'bestwebsoft' ) : __( 'Off', 'bestwebsoft' );
460 - $upload_max_filesize = ( ini_get( 'upload_max_filesize' ) )? ini_get( 'upload_max_filesize' ) : __( 'N/A', 'bestwebsoft' );
461 - $post_max_size = ( ini_get( 'post_max_size' ) ) ? ini_get( 'post_max_size' ) : __( 'N/A', 'bestwebsoft' );
462 - $max_execution_time = ( ini_get( 'max_execution_time' ) ) ? ini_get( 'max_execution_time' ) : __( 'N/A', 'bestwebsoft' );
463 - $memory_limit = ( ini_get( 'memory_limit' ) ) ? ini_get( 'memory_limit' ) : __( 'N/A', 'bestwebsoft' );
464 - $memory_usage = ( function_exists( 'memory_get_usage' ) ) ? round( memory_get_usage() / 1024 / 1024, 2 ) . __( ' Mb', 'bestwebsoft' ) : __( 'N/A', 'bestwebsoft' );
465 - $exif_read_data = ( is_callable( 'exif_read_data' ) ) ? __( 'Yes', 'bestwebsoft' ) . " ( V" . substr( phpversion( 'exif' ), 0,4 ) . ")" : __( 'No', 'bestwebsoft' );
466 - $iptcparse = ( is_callable( 'iptcparse' ) ) ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
467 - $xml_parser_create = ( is_callable( 'xml_parser_create' ) ) ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
468 - $theme = ( function_exists( 'wp_get_theme' ) ) ? wp_get_theme() : get_theme( get_current_theme() );
459 + if ( function_exists( 'wp_get_theme' ) )
460 + $theme = wp_get_theme();
461 + else
462 + $theme = get_theme( get_current_theme() );
469 463
470 464 if ( function_exists( 'is_multisite' ) ) {
471 - if ( is_multisite() )
465 + if ( is_multisite() ) {
472 466 $multisite = __( 'Yes', 'bestwebsoft' );
473 - else
467 + } else {
474 468 $multisite = __( 'No', 'bestwebsoft' );
469 + }
475 470 } else
476 471 $multisite = __( 'N/A', 'bestwebsoft' );
477 472
473 + $site_url = get_option( 'siteurl' );
474 + $home_url = get_option( 'home' );
475 + $db_version = get_option( 'db_version' );
478 476 $system_info = array(
479 477 'system_info' => '',
480 478 'active_plugins' => '',
481 479 'inactive_plugins' => ''
@@ -483,9 +481,9 @@
483 481 $system_info['system_info'] = array(
484 482 __( 'Operating System', 'bestwebsoft' ) => PHP_OS,
485 483 __( 'Server', 'bestwebsoft' ) => $_SERVER["SERVER_SOFTWARE"],
486 484 __( 'Memory usage', 'bestwebsoft' ) => $memory_usage,
487 - __( 'MYSQL Version', 'bestwebsoft' ) => $wpdb->get_var( "SELECT VERSION() AS version" ),
485 + __( 'MYSQL Version', 'bestwebsoft' ) => $sql_version,
488 486 __( 'SQL Mode', 'bestwebsoft' ) => $sql_mode,
489 487 __( 'PHP Version', 'bestwebsoft' ) => PHP_VERSION,
490 488 __( 'PHP Safe Mode', 'bestwebsoft' ) => $safe_mode,
491 489 __( 'PHP Allow URL fopen', 'bestwebsoft' ) => $allow_url_fopen,
@@ -495,35 +493,36 @@
495 493 __( 'PHP Max Script Execute Time', 'bestwebsoft' ) => $max_execution_time,
496 494 __( 'PHP Exif support', 'bestwebsoft' ) => $exif_read_data,
497 495 __( 'PHP IPTC support', 'bestwebsoft' ) => $iptcparse,
498 496 __( 'PHP XML support', 'bestwebsoft' ) => $xml_parser_create,
499 - __( 'Site URL', 'bestwebsoft' ) => get_option( 'siteurl' ),
500 - __( 'Home URL', 'bestwebsoft' ) => home_url(),
497 + __( 'Site URL', 'bestwebsoft' ) => $site_url,
498 + __( 'Home URL', 'bestwebsoft' ) => $home_url,
501 499 '$_SERVER[HTTP_HOST]' => $_SERVER['HTTP_HOST'],
502 500 '$_SERVER[SERVER_NAME]' => $_SERVER['SERVER_NAME'],
503 501 __( 'WordPress Version', 'bestwebsoft' ) => $wp_version,
504 - __( 'WordPress DB Version', 'bestwebsoft' ) => get_option( 'db_version' ),
502 + __( 'WordPress DB Version', 'bestwebsoft' ) => $db_version,
505 503 __( 'Multisite', 'bestwebsoft' ) => $multisite,
506 504 __( 'Active Theme', 'bestwebsoft' ) => $theme['Name'] . ' ' . $theme['Version']
507 505 );
508 506 foreach ( $all_plugins as $path => $plugin ) {
509 - if ( is_plugin_active( $path ) )
507 + if ( is_plugin_active( $path ) ) {
510 508 $system_info['active_plugins'][ $plugin['Name'] ] = $plugin['Version'];
511 - else
509 + } else {
512 510 $system_info['inactive_plugins'][ $plugin['Name'] ] = $plugin['Version'];
513 - }
511 + }
512 + }
514 513 }
515 514
516 515 if ( ( isset( $_REQUEST['bwsmn_form_submit'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ) ) ||
517 516 ( isset( $_REQUEST['bwsmn_form_submit_custom_email'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ) ) ) {
518 517 if ( isset( $_REQUEST['bwsmn_form_email'] ) ) {
519 - $bwsmn_form_email = esc_html( trim( $_REQUEST['bwsmn_form_email'] ) );
520 - if ( $bwsmn_form_email == "" || ! is_email( $bwsmn_form_email ) ) {
518 + $bwsmn_form_email = trim( $_REQUEST['bwsmn_form_email'] );
519 + if ( $bwsmn_form_email == "" || !preg_match( "/^((?:[a-z0-9']+(?:[a-z0-9\-_\.']+)?@[a-z0-9]+(?:[a-z0-9\-\.]+)?\.[a-z]{2,5})[, ]*)+$/i", $bwsmn_form_email ) ) {
521 520 $error = __( "Please enter a valid email address.", 'bestwebsoft' );
522 521 } else {
523 522 $email = $bwsmn_form_email;
524 523 $bwsmn_form_email = '';
525 - $message = __( 'Email with system info is sent to ', 'bestwebsoft' ) . $email;
524 + $message = __( 'Email with system info is sent to ', 'bestwebsoft' ) . $email;
526 525 }
527 526 } else {
528 527 $email = '[email protected]';
529 528 $message = __( 'Thank you for contacting us.', 'bestwebsoft' );
@@ -532,251 +531,416 @@
532 531 if ( $error == '' ) {
533 532 $headers = 'MIME-Version: 1.0' . "\n";
534 533 $headers .= 'Content-type: text/html; charset=utf-8' . "\n";
535 534 $headers .= 'From: ' . get_option( 'admin_email' );
536 - $message_text = '<html><head><title>System Info From ' . home_url() . '</title></head><body>
535 + $message_text = '<html><head><title>System Info From ' . $home_url . '</title></head><body>
537 536 <h4>Environment</h4>
538 537 <table>';
539 538 foreach ( $system_info['system_info'] as $key => $value ) {
540 - $message_text .= '<tr><td>'. $key .'</td><td>'. $value .'</td></tr>';
539 + $message_text .= '<tr><td>'. $key .'</td><td>'. $value .'</td></tr>';
541 540 }
542 - $message_text .= '</table>';
543 - if ( ! empty( $system_info['active_plugins'] ) ) {
544 - $message_text .= '<h4>Active Plugins</h4>
545 - <table>';
546 - foreach ( $system_info['active_plugins'] as $key => $value ) {
547 - $message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>';
548 - }
549 - $message_text .= '</table>';
541 + $message_text .= '</table>
542 + <h4>Active Plugins</h4>
543 + <table>';
544 + foreach ( $system_info['active_plugins'] as $key => $value ) {
545 + $message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>';
550 546 }
551 - if ( ! empty( $system_info['inactive_plugins'] ) ) {
552 - $message_text .= '<h4>Inactive Plugins</h4>
553 - <table>';
554 - foreach ( $system_info['inactive_plugins'] as $key => $value ) {
555 - $message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>';
556 - }
557 - $message_text .= '</table>';
547 + $message_text .= '</table>
548 + <h4>Inactive Plugins</h4>
549 + <table>';
550 + foreach ( $system_info['inactive_plugins'] as $key => $value ) {
551 + $message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>';
558 552 }
559 - $message_text .= '</body></html>';
560 - $result = wp_mail( $email, 'System Info From ' . home_url(), $message_text, $headers );
553 + $message_text .= '</table></body></html>';
554 + $result = wp_mail( $email, 'System Info From ' . $home_url, $message_text, $headers );
561 555 if ( $result != true )
562 556 $error = __( "Sorry, email message could not be delivered.", 'bestwebsoft' );
563 557 }
564 - } ?>
558 + }
559 +
560 + ?>
565 561 <div class="wrap">
566 562 <div class="icon32 icon32-bws" id="icon-options-general"></div>
567 563 <h2>
568 - <span class="bws_main title">BestWebSoft</span>
569 - <ul class="subsubsub bws_title_menu">
570 - <li><a href="<?php echo esc_url( 'http://support.bestwebsoft.com/home' ); ?>" target="_blank"><?php _e( 'Need help?', 'bestwebsoft' ); ?></a></li> |
571 - <li><a href="<?php echo esc_url( 'http://bestwebsoft.com/wp-login.php' ); ?>" target="_blank"><?php _e( 'Client area', 'bestwebsoft' ); ?></a></li>
572 - <li><a class="bws_system_status <?php if ( isset( $_GET['action'] ) && 'system_status' == $_GET['action'] ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins&amp;action=system_status"><?php _e( 'System status', 'bestwebsoft' ); ?></a></li>
573 - </ul>
564 + <span class="bws_main title">BestWebSoft</span>
565 + <?php if ( 'old' == $bstwbsftwppdtplgns_options['bws_menu_version'] && isset( $bstwbsftwppdtplgns_options['bws_menu_time'] ) && strtotime("-14 day") < $bstwbsftwppdtplgns_options['bws_menu_time'] ) { ?>
566 + <form method="post" action="admin.php?page=bws_plugins">
567 + <input type="hidden" name="bwsmn_form_submit_switch" value="submit" />
568 + <input type="submit" class="bws_switch_link" value="<?php _e( 'Switch to new interface', 'bestwebsoft' ) ?>" />
569 + <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_switch' ); ?>
570 + </form>
571 + </h2>
574 572 <div class="clear"></div>
575 - </h2>
576 - <h2 class="nav-tab-wrapper">
577 - <a class="nav-tab<?php if ( !isset( $_GET['action'] ) ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins"><?php _e( 'Plugins', 'bestwebsoft' ); ?></a>
578 - <?php if ( $wp_version >= '3.4' ) { ?>
579 - <a class="nav-tab<?php if ( isset( $_GET['action'] ) && 'themes' == $_GET['action'] ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins&amp;action=themes"><?php _e( 'Themes', 'bestwebsoft' ); ?></a>
573 + <div class="updated fade" <?php if ( ! ( isset( $_REQUEST['bwsmn_form_submit'] ) || isset( $_REQUEST['bwsmn_form_submit_custom_email'] ) ) || $error != "" ) echo "style=\"display:none\""; ?>><p><strong><?php echo $message; ?></strong></p></div>
574 + <div class="error" <?php if ( "" == $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $error; ?></strong></p></div>
575 + <h3 style="color: blue;"><?php _e( 'Pro plugins', 'bestwebsoft' ); ?></h3>
576 + <?php if ( 0 < $count_activate_pro ) { ?>
577 + <div style="padding-left:15px;">
578 + <h4><?php _e( 'Activated plugins', 'bestwebsoft' ); ?></h4>
579 + <?php foreach ( $array_activate_pro as $activate_plugin ) { ?>
580 + <div style="float:left; width:200px;"><?php echo $activate_plugin["title"]; ?></div> <p><a href="<?php echo $activate_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo $activate_plugin["url"]; ?>"><?php echo __( "Settings", 'bestwebsoft' ); ?></a></p>
581 + <?php } ?>
582 + </div>
580 583 <?php } ?>
581 - </h2>
582 - <?php if ( ! isset( $_GET['action'] ) ) { ?>
583 - <ul class="subsubsub">
584 - <li><a <?php if ( !isset( $_GET['sub'] ) ) echo 'class="current" '; ?>href="admin.php?page=bws_plugins"><?php _e( 'All', 'bestwebsoft' ); ?></a></li> |
585 - <li><a <?php if ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) echo 'class="current" '; ?>href="admin.php?page=bws_plugins&amp;sub=installed"><?php _e( 'Installed', 'bestwebsoft' ); ?></a></li> |
586 - <li><a <?php if ( isset( $_GET['sub'] ) && 'recommended' == $_GET['sub'] ) echo 'class="current" '; ?>href="admin.php?page=bws_plugins&amp;sub=recommended"><?php _e( 'Recommended', 'bestwebsoft' ); ?></a></li>
587 - </ul>
588 - <div class="clear"></div>
589 - <?php if ( ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
590 - <h4 class="bws_installed"><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4>
591 - <?php foreach ( $all_plugins as $key_plugin => $value_plugin ) {
592 - if ( isset( $bws_plugins_pro[ $key_plugin ] ) )
593 - $key_plugin = $bws_plugins_pro[ $key_plugin ];
584 + <?php if ( 0 < $count_install_pro ) { ?>
585 + <div style="padding-left:15px;">
586 + <h4><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4>
587 + <?php foreach ( $array_install_pro as $install_plugin) { ?>
588 + <div style="float:left; width:200px;"><?php echo $install_plugin["title"]; ?></div> <p><a href="<?php echo $install_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a></p>
589 + <?php } ?>
590 + </div>
591 + <?php } ?>
592 + <?php if ( 0 < $count_recomend_pro ) { ?>
593 + <div style="padding-left:15px;">
594 + <h4><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4>
595 + <?php foreach ( $array_recomend_pro as $recomend_plugin ) { ?>
596 + <div style="float:left; width:200px;"><?php echo $recomend_plugin["title"]; ?></div> <p><a href="<?php echo $recomend_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo $recomend_plugin["href"]; ?>" target="_blank"><?php echo __( "Purchase", 'bestwebsoft' ); ?></a></p>
597 + <?php } ?>
598 + </div>
599 + <?php } ?>
600 + <br />
601 + <h3 style="color: green"><?php _e( 'Free plugins', 'bestwebsoft' ); ?></h3>
602 + <?php if ( 0 < $count_activate ) { ?>
603 + <div style="padding-left:15px;">
604 + <h4><?php _e( 'Activated plugins', 'bestwebsoft' ); ?></h4>
605 + <?php foreach ( $array_activate as $activate_plugin ) { ?>
606 + <div style="float:left; width:200px;"><?php echo $activate_plugin["title"]; ?></div> <p><a href="<?php echo $activate_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo $activate_plugin["url"]; ?>"><?php echo __( "Settings", 'bestwebsoft' ); ?></a></p>
607 + <?php } ?>
608 + </div>
609 + <?php } ?>
610 + <?php if ( 0 < $count_install ) { ?>
611 + <div style="padding-left:15px;">
612 + <h4><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4>
613 + <?php foreach ( $array_install as $install_plugin ) { ?>
614 + <div style="float:left; width:200px;"><?php echo $install_plugin["title"]; ?></div> <p><a href="<?php echo $install_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a></p>
615 + <?php } ?>
616 + </div>
617 + <?php } ?>
618 + <?php if ( 0 < $count_recomend ) { ?>
619 + <div style="padding-left:15px;">
620 + <h4><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4>
621 + <?php foreach ( $array_recomend as $recomend_plugin ) { ?>
622 + <div style="float:left; width:200px;"><?php echo $recomend_plugin["title"]; ?></div> <p><a href="<?php echo $recomend_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo $recomend_plugin["href"]; ?>" target="_blank"><?php echo __( "Download", 'bestwebsoft' ); ?></a> <a class="install-now" href="<?php echo get_bloginfo( "url" ) . $recomend_plugin["slug"]; ?>" title="<?php esc_attr( sprintf( __( 'Install %s' ), $recomend_plugin["title"] ) ) ?>" target="_blank"><?php echo __( 'Install now from wordpress.org', 'bestwebsoft' ) ?></a></p>
623 + <?php } ?>
624 + </div>
625 + <?php } ?>
626 + <br />
627 + <?php if ( $wp_version >= '3.4' ) { ?>
628 + <h3 style="color: green"><?php _e( 'Free themes', 'bestwebsoft' ); ?></h3>
629 + <?php if ( 0 < $count_activate_theme ) { ?>
630 + <div style="padding-left:15px;">
631 + <h4><?php _e( 'Activated theme', 'bestwebsoft' ); ?></h4>
632 + <div style="float:left; width:200px;"><?php echo $array_activate_theme[0]["title"]; ?></div> <p><a href="<?php echo $array_activate_theme[0]["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo wp_customize_url(); ?>" title="<?php echo esc_attr( sprintf( __( 'Customize &#8220;%s&#8221;' ), $current_theme->display('Name') ) ); ?>"><?php _e( 'Customize' ); ?></a></p>
633 + </div>
634 + <?php } ?>
635 + <?php if ( 0 < $count_install_theme ) { ?>
636 + <div style="padding-left:15px;">
637 + <h4><?php _e( 'Installed themes', 'bestwebsoft' ); ?></h4>
638 + <?php foreach ( $array_install_theme as $install_theme ) { ?>
639 + <div style="float:left; width:200px;"><?php echo $install_theme["title"]; ?></div> <p><a href="<?php echo $install_theme["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a></p>
640 + <?php } ?>
641 + </div>
642 + <?php } ?>
643 + <?php if ( 0 < $count_recomend_theme ) { ?>
644 + <div style="padding-left:15px;">
645 + <h4><?php _e( 'Recommended themes', 'bestwebsoft' ); ?></h4>
646 + <?php foreach ( $array_recomend_theme as $recomend_theme ) { ?>
647 + <div style="float:left; width:200px;"><?php echo $recomend_theme["title"]; ?></div> <p><a href="<?php echo $recomend_theme["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo $recomend_theme["href"]; ?>" target="_blank"><?php echo __( "Download", 'bestwebsoft' ); ?></a> <a class="install-now" href="<?php echo get_bloginfo( "url" ) . $recomend_theme["slug"]; ?>" title="<?php esc_attr( sprintf( __( 'Install %s' ), $recomend_theme["title"] ) ) ?>" target="_blank"><?php echo __( 'Install now from wordpress.org', 'bestwebsoft' ) ?></a></p>
648 + <?php } ?>
649 + </div>
650 + <?php } ?>
651 + <br />
652 + <?php } ?>
653 + <span style="color: rgb(136, 136, 136); font-size: 10px;"><?php _e( 'If you have any questions, please contact us via', 'bestwebsoft' ); ?> <a href="http://support.bestwebsoft.com">http://support.bestwebsoft.com</a></span>
654 + <div id="poststuff" class="bws_system_info_meta_box">
655 + <div class="postbox">
656 + <div class="handlediv" title="Click to toggle">
657 + <br>
658 + </div>
659 + <h3 class="hndle">
660 + <span><?php _e( 'System status', 'bestwebsoft' ); ?></span>
661 + </h3>
662 + <div class="inside">
663 + <table class="bws_system_info">
664 + <thead><tr><th><?php _e( 'Environment', 'bestwebsoft' ); ?></th><td></td></tr></thead>
665 + <tbody>
666 + <?php foreach ( $system_info['system_info'] as $key => $value ) { ?>
667 + <tr>
668 + <td scope="row"><?php echo $key; ?></td>
669 + <td scope="row"><?php echo $value; ?></td>
670 + </tr>
671 + <?php } ?>
672 + </tbody>
673 + </table>
674 + <table class="bws_system_info">
675 + <thead><tr><th><?php _e( 'Active Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
676 + <tbody>
677 + <?php foreach ( $system_info['active_plugins'] as $key => $value ) { ?>
678 + <tr>
679 + <td scope="row"><?php echo $key; ?></td>
680 + <td scope="row"><?php echo $value; ?></td>
681 + </tr>
682 + <?php } ?>
683 + </tbody>
684 + </table>
685 + <table class="bws_system_info">
686 + <thead><tr><th><?php _e( 'Inactive Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
687 + <tbody>
688 + <?php
689 + if ( ! empty( $system_info['inactive_plugins'] ) ) {
690 + foreach ( $system_info['inactive_plugins'] as $key => $value ) { ?>
691 + <tr>
692 + <td scope="row"><?php echo $key; ?></td>
693 + <td scope="row"><?php echo $value; ?></td>
694 + </tr>
695 + <?php }
696 + } ?>
697 + </tbody>
698 + </table>
699 + <div class="clear"></div>
700 + <form method="post" action="admin.php?page=bws_plugins">
701 + <p>
702 + <input type="hidden" name="bwsmn_form_submit" value="submit" />
703 + <input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" />
704 + <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ); ?>
705 + </p>
706 + </form>
707 + <form method="post" action="admin.php?page=bws_plugins">
708 + <p>
709 + <input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" />
710 + <input type="submit" class="button" value="<?php _e( 'Send to custom email &#187;', 'bestwebsoft' ) ?>" />
711 + <input type="text" value="<?php echo $bwsmn_form_email; ?>" name="bwsmn_form_email" />
712 + <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ); ?>
713 + </p>
714 + </form>
715 + </div>
716 + </div>
717 + </div>
718 + <?php } else { ?>
719 + <form method="post" action="admin.php?page=bws_plugins">
720 + <input type="hidden" name="bwsmn_form_submit_switch" value="submit" />
721 + <input type="submit" class="bws_switch_link" value="<?php _e( 'Switch to old interface', 'bestwebsoft' ) ?>" />
722 + <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_switch' ); ?>
723 + </form>
724 + </h2>
725 + <div class="clear"></div>
726 + <h2 class="nav-tab-wrapper">
727 + <a class="nav-tab<?php if ( !isset( $_GET['action'] ) ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins"><?php _e( 'Plugins', 'bestwebsoft' ); ?></a>
728 + <?php if ( $wp_version >= '3.4' ) { ?>
729 + <a class="nav-tab<?php if ( isset( $_GET['action'] ) && 'themes' == $_GET['action'] ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins&amp;action=themes"><?php _e( 'Themes', 'bestwebsoft' ); ?></a>
730 + <?php } ?>
731 + <a class="nav-tab<?php if ( isset( $_GET['action'] ) && 'system_status' == $_GET['action'] ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins&amp;action=system_status"><?php _e( 'System status', 'bestwebsoft' ); ?></a>
732 + </h2>
733 + <?php if ( !isset( $_GET['action'] ) ) { ?>
734 + <ul class="subsubsub">
735 + <li><a <?php if ( !isset( $_GET['sub'] ) ) echo 'class="current" '; ?>href="admin.php?page=bws_plugins"><?php _e( 'All', 'bestwebsoft' ); ?></a></li> |
736 + <li><a <?php if ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) echo 'class="current" '; ?>href="admin.php?page=bws_plugins&amp;sub=installed"><?php _e( 'Installed', 'bestwebsoft' ); ?></a></li> |
737 + <li><a <?php if ( isset( $_GET['sub'] ) && 'recommended' == $_GET['sub'] ) echo 'class="current" '; ?>href="admin.php?page=bws_plugins&amp;sub=recommended"><?php _e( 'Recommended', 'bestwebsoft' ); ?></a></li>
738 + </ul>
739 + <div class="clear"></div>
740 + <?php if ( ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
741 + <h4 class="bws_installed"><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4>
742 + <?php foreach ( $all_plugins as $key_plugin => $value_plugin ) {
594 743
595 - if ( isset( $bws_plugins[ $key_plugin ] ) ) {
596 - $key_plugin_explode = explode( '-plugin/', $key_plugin );
597 - if ( isset( $key_plugin_explode[1] ) )
598 - $icon = $key_plugin_explode[0];
599 - else {
600 - $key_plugin_explode = explode( '/', $key_plugin );
601 - $icon = $key_plugin_explode[0];
744 + if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) {
745 + $key_plugin_explode = explode( '-plugin-pro/', $key_plugin );
746 + if ( isset( $key_plugin_explode[1] ) )
747 + $icon = $key_plugin_explode[0];
748 + else {
749 + $key_plugin_explode = explode( '-pro/', $key_plugin );
750 + $icon = $key_plugin_explode[0];
751 + }
752 + } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) {
753 + $key_plugin_explode = explode( '-plugin/', $key_plugin );
754 + if ( isset( $key_plugin_explode[1] ) )
755 + $icon = $key_plugin_explode[0];
756 + else {
757 + $key_plugin_explode = explode( '/', $key_plugin );
758 + $icon = $key_plugin_explode[0];
759 + }
602 760 }
603 - }
604 761
605 - if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && ( in_array( $bws_plugins[ $key_plugin ]['pro_version'], $active_plugins ) || is_plugin_active_for_network( $bws_plugins[ $key_plugin ]['pro_version'] ) ) ) { ?>
606 - <div class="bws_product_box bws_exist_overlay">
607 - <div class="bws_product">
608 - <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
609 - <div class="bws_product_content">
610 - <div class="bws_product_icon">
611 - <div class="bws_product_icon_pro">PRO</div>
612 - <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
762 + if ( in_array( $key_plugin, $active_plugins ) || is_plugin_active_for_network( $key_plugin ) ) { ?>
763 + <?php if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) { ?>
764 + <div class="bws_product_box bws_exist_overlay">
765 + <div class="bws_product">
766 + <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
767 + <div class="bws_product_content">
768 + <div class="bws_product_icon">
769 + <div class="bws_product_icon_pro"></div>
770 + <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
771 + </div>
772 + <div class="bws_product_description"><?php echo $value_plugin["Description"]; ?></div>
773 + </div>
774 + <div class="clear"></div>
613 775 </div>
614 - <div class="bws_product_description"><?php echo $value_plugin["Description"]; ?></div>
776 + <div class="bws_product_links">
777 + <a href="<?php echo $bws_plugins_pro[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
778 + <span> | </span>
779 + <a href="<?php echo $bws_plugins_pro[ $key_plugin ]["settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
780 + </div>
615 781 </div>
616 - <div class="clear"></div>
617 - </div>
618 - <div class="bws_product_links">
619 - <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
620 - <?php if ( '' != $bws_plugins[ $key_plugin ]["pro_settings"] ) { ?>
621 - <span> | </span>
622 - <a href="<?php echo $bws_plugins[ $key_plugin ]["pro_settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
623 - <?php } ?>
624 - </div>
625 - </div>
626 - <?php } elseif ( isset( $bws_plugins[ $key_plugin ] ) && ( in_array( $key_plugin, $active_plugins ) || is_plugin_active_for_network( $key_plugin ) ) ) {
627 - if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
628 - <div class="bws_product_box bws_product_deactivated">
629 - <div class="bws_product">
630 - <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
631 - <div class="bws_product_content">
632 - <div class="bws_product_icon">
633 - <div class="bws_product_icon_pro">PRO</div>
634 - <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
782 + <?php } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) { ?>
783 + <div class="bws_product_box bws_product_free">
784 + <div class="bws_product">
785 + <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
786 + <div class="bws_product_content">
787 + <div class="bws_product_icon">
788 + <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
789 + </div>
790 + <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
635 791 </div>
636 - <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
792 + <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
793 + <a class="bws_product_button" href="<?php echo $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ]["purchase"]; ?>" target="_blank">
794 + <?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
795 + </a>
796 + <?php } else { ?>
797 + <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
798 + <strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
799 + </a>
800 + <?php } ?>
801 + <div class="clear"></div>
802 + </div>
803 + <div class="bws_product_links">
804 + <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
805 + <span> | </span>
806 + <a href="<?php echo $bws_plugins[ $key_plugin ]["settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
637 807 </div>
638 - <div class="clear"></div>
639 808 </div>
640 - <div class="bws_product_links">
641 - <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
642 - <span> | </span>
643 - <a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
809 + <?php }
810 + } else {
811 + if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) { ?>
812 + <div class="bws_product_box bws_product_deactivated">
813 + <div class="bws_product">
814 + <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
815 + <div class="bws_product_content">
816 + <div class="bws_product_icon">
817 + <div class="bws_product_icon_pro"></div>
818 + <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
819 + </div>
820 + <div class="bws_product_description"><?php echo $bws_plugins_pro[ $key_plugin ]["description"]; ?></div>
821 + </div>
822 + <div class="clear"></div>
823 + </div>
824 + <div class="bws_product_links">
825 + <a href="<?php echo $bws_plugins_pro[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
826 + <span> | </span>
827 + <a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
828 + </div>
644 829 </div>
645 - </div>
646 - <?php } else { ?>
647 - <div class="bws_product_box bws_product_free">
648 - <div class="bws_product">
649 - <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
650 - <div class="bws_product_content">
651 - <div class="bws_product_icon">
652 - <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
830 + <?php } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) { ?>
831 + <div class="bws_product_box bws_product_deactivated bws_product_free">
832 + <div class="bws_product">
833 + <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
834 + <div class="bws_product_content">
835 + <div class="bws_product_icon">
836 + <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
837 + </div>
838 + <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
653 839 </div>
654 - <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
840 + <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
841 + <a class="bws_product_button" href="<?php echo $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ]["purchase"]; ?>" target="_blank">
842 + <?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
843 + </a>
844 + <?php } else { ?>
845 + <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
846 + <strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
847 + </a>
848 + <?php } ?>
849 + <div class="clear"></div>
655 850 </div>
656 - <?php if ( isset( $bws_plugins[ $key_plugin ]["purchase"] ) ) { ?>
657 - <a class="bws_product_button" href="<?php echo $bws_plugins[ $key_plugin ]["purchase"]; ?>" target="_blank">
658 - <?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
659 - </a>
660 - <?php } else { ?>
661 - <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
662 - <strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
663 - </a>
664 - <?php } ?>
665 - <div class="clear"></div>
666 - </div>
667 - <div class="bws_product_links">
668 - <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
669 - <?php if ( '' != $bws_plugins[ $key_plugin ]["settings"] ) { ?>
851 + <div class="bws_product_links">
852 + <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
670 853 <span> | </span>
671 - <a href="<?php echo $bws_plugins[ $key_plugin ]["settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
672 - <?php } ?>
854 + <a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
855 + </div>
673 856 </div>
674 - </div>
675 - <?php }
676 - } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) { ?>
677 - <div class="bws_product_box bws_product_deactivated bws_product_free">
678 - <div class="bws_product">
679 - <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
857 + <?php }
858 + }
859 + }
860 + } ?>
861 + <div class="clear"></div>
862 + <?php if ( ( isset( $_GET['sub'] ) && 'recommended' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
863 + <h4 class="bws_recommended"><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4>
864 + <?php foreach ( $recommend_plugins as $key_plugin => $value_plugin ) {
865 +
866 + if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) {
867 + $key_plugin_explode = explode( '-plugin-pro/', $key_plugin );
868 + if ( isset( $key_plugin_explode[1] ) )
869 + $icon = $key_plugin_explode[0];
870 + else {
871 + $key_plugin_explode = explode( '-pro/', $key_plugin );
872 + $icon = $key_plugin_explode[0];
873 + }
874 + } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) {
875 + $key_plugin_explode = explode( '-plugin/', $key_plugin );
876 + if ( isset( $key_plugin_explode[1] ) )
877 + $icon = $key_plugin_explode[0];
878 + else {
879 + $key_plugin_explode = explode( '/', $key_plugin );
880 + $icon = $key_plugin_explode[0];
881 + }
882 + }
883 + ?>
884 + <div class="bws_product_box">
885 + <div class="bws_product">
886 + <div class="bws_product_title"><?php echo $value_plugin["name"]; ?></div>
680 887 <div class="bws_product_content">
681 888 <div class="bws_product_icon">
889 + <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
890 + <div class="bws_product_icon_pro"></div>
891 + <?php } ?>
682 892 <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
683 893 </div>
684 894 <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
685 895 </div>
686 - <?php if ( isset( $bws_plugins[ $key_plugin ]["purchase"] ) ) { ?>
687 - <a class="bws_product_button" href="<?php echo $bws_plugins[ $key_plugin ]["purchase"]; ?>" target="_blank">
688 - <?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
689 - </a>
896 + <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
897 + <a class="bws_product_button" href="<?php echo $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ]["link"]; ?>" target="_blank">
898 + <?php echo _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
899 + </a>
690 900 <?php } else { ?>
691 901 <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
692 - <strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
902 + <strong><?php echo _e( 'DONATE', 'bestwebsoft' );?></strong>
693 903 </a>
694 904 <?php } ?>
695 - <div class="clear"></div>
696 905 </div>
697 - <div class="bws_product_links">
698 - <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
906 + <div class="clear"></div>
907 + <div class="bws_product_links">
908 + <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php echo __( "Learn more", 'bestwebsoft' ); ?></a>
699 909 <span> | </span>
700 - <a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
910 + <a href="<?php echo $bws_plugins[ $key_plugin ]["wp_install"]; ?>" target="_blank"><?php echo __( "Install now", 'bestwebsoft' ); ?></a>
701 911 </div>
702 912 </div>
703 - <?php }
704 - }
705 - } ?>
706 - <div class="clear"></div>
707 - <?php if ( ( isset( $_GET['sub'] ) && 'recommended' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
708 - <h4 class="bws_recommended"><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4>
709 - <?php foreach ( $recommend_plugins as $key_plugin => $value_plugin ) {
913 + <?php }
914 + } ?>
915 + <?php } elseif ( 'themes' == $_GET['action'] ) { ?>
916 + <div id="availablethemes">
917 + <?php
918 + global $tabs, $tab, $paged, $type, $theme_field_defaults;
919 + include( ABSPATH . 'wp-admin/includes/theme-install.php' );
920 + include( ABSPATH . 'wp-admin/includes/class-wp-themes-list-table.php' );
921 + include( ABSPATH . 'wp-admin/includes/class-wp-theme-install-list-table.php' );
710 922
711 - if ( isset( $bws_plugins[ $key_plugin ] ) ) {
712 - $key_plugin_explode = explode( '-plugin/', $key_plugin );
713 - if ( isset( $key_plugin_explode[1] ) )
714 - $icon = $key_plugin_explode[0];
715 - else {
716 - $key_plugin_explode = explode( '/', $key_plugin );
717 - $icon = $key_plugin_explode[0];
718 - }
719 - } ?>
720 - <div class="bws_product_box">
721 - <div class="bws_product">
722 - <div class="bws_product_title"><?php echo $value_plugin["name"]; ?></div>
723 - <div class="bws_product_content">
724 - <div class="bws_product_icon">
725 - <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) ) { ?>
726 - <div class="bws_product_icon_pro">PRO</div>
727 - <?php } ?>
728 - <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
729 - </div>
730 - <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
731 - </div>
732 - <?php if ( isset( $bws_plugins[ $key_plugin ]["pro_version"] ) ) { ?>
733 - <a class="bws_product_button" href="<?php echo $bws_plugins[ $key_plugin ]["purchase"]; ?>" target="_blank">
734 - <?php _e( 'Go', 'bestwebsoft' ); ?> <strong>PRO</strong>
735 - </a>
736 - <?php } else { ?>
737 - <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
738 - <strong><?php _e( 'DONATE', 'bestwebsoft' ); ?></strong>
739 - </a>
740 - <?php } ?>
741 - </div>
742 - <div class="clear"></div>
743 - <div class="bws_product_links">
744 - <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
745 - <span> | </span>
746 - <a href="<?php echo $bws_plugins[ $key_plugin ]["wp_install"]; ?>" target="_blank"><?php _e( "Install now", 'bestwebsoft' ); ?></a>
747 - </div>
748 - </div>
749 - <?php }
750 - } ?>
751 - <?php } elseif ( 'themes' == $_GET['action'] ) { ?>
752 - <div id="availablethemes">
753 - <?php global $tabs, $tab, $paged, $type, $theme_field_defaults;
754 - include( ABSPATH . 'wp-admin/includes/theme-install.php' );
755 - include( ABSPATH . 'wp-admin/includes/class-wp-themes-list-table.php' );
756 - include( ABSPATH . 'wp-admin/includes/class-wp-theme-install-list-table.php' );
923 + $theme_class = new WP_Theme_Install_List_Table();
924 + $paged = $theme_class->get_pagenum();
925 + $per_page = 36;
926 + $args = array( 'page' => $paged, 'per_page' => $per_page, 'fields' => $theme_field_defaults );
927 + $args['author'] = 'bestwebsoft';
928 + $args = apply_filters( 'install_themes_table_api_args_search', $args );
929 + $api = themes_api( 'query_themes', $args );
757 930
758 - $theme_class = new WP_Theme_Install_List_Table();
759 - $paged = $theme_class->get_pagenum();
760 - $per_page = 36;
761 - $args = array( 'page' => $paged, 'per_page' => $per_page, 'fields' => $theme_field_defaults );
762 - $args['author'] = 'bestwebsoft';
763 - $args = apply_filters( 'install_themes_table_api_args_search', $args );
764 - $api = themes_api( 'query_themes', $args );
931 + if ( is_wp_error( $api ) )
932 + wp_die( $api->get_error_message() . '</p> <p><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try again' ) . '</a>' );
765 933
766 - if ( is_wp_error( $api ) )
767 - wp_die( $api->get_error_message() . '</p> <p><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try again', 'bestwebsoft' ) . '</a>' );
768 -
769 - $theme_class->items = $api->themes;
770 - $theme_class->set_pagination_args( array(
771 - 'total_items' => $api->info['results'],
772 - 'per_page' => $per_page,
773 - 'infinite_scroll' => true,
774 - ) );
775 - $themes = $theme_class->items;
776 - if ( $wp_version < '3.9' ) {
777 - foreach ( $themes as $theme ) { ?>
778 - <div class="available-theme installable-theme"><?php
934 + $theme_class->items = $api->themes;
935 + $theme_class->set_pagination_args( array(
936 + 'total_items' => $api->info['results'],
937 + 'per_page' => $per_page,
938 + 'infinite_scroll' => true,
939 + ) );
940 + $themes = $theme_class->items;
941 + foreach ( $themes as $theme ) {
942 + ?><div class="available-theme installable-theme"><?php
779 943 global $themes_allowedtags;
780 944 if ( empty( $theme ) )
781 945 return;
782 946
@@ -781,9 +945,9 @@
781 945 return;
782 946
783 947 $name = wp_kses( $theme->name, $themes_allowedtags );
784 948 $author = wp_kses( $theme->author, $themes_allowedtags );
785 - $preview_title = sprintf( __( 'Preview &#8220;%s&#8221;', 'bestwebsoft' ), $name );
949 + $preview_title = sprintf( __('Preview &#8220;%s&#8221;'), $name );
786 950 $preview_url = add_query_arg( array(
787 951 'tab' => 'theme-information',
788 952 'theme' => $theme->slug,
789 953 ), self_admin_url( 'theme-install.php' ) );
@@ -812,161 +976,125 @@
812 976 }
813 977 switch ( $status ) {
814 978 default:
815 979 case 'install':
816 - $actions[] = '<a class="install-now" href="' . esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ) . '" title="' . esc_attr( sprintf( __( 'Install %s', 'bestwebsoft' ), $name ) ) . '">' . __( 'Install Now', 'bestwebsoft' ) . '</a>';
980 + $actions[] = '<a class="install-now" href="' . esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ) . '" title="' . esc_attr( sprintf( __( 'Install %s' ), $name ) ) . '">' . __( 'Install Now' ) . '</a>';
817 981 break;
818 982 case 'update_available':
819 - $actions[] = '<a class="install-now" href="' . esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ) . '" title="' . esc_attr( sprintf( __( 'Update to version %s', 'bestwebsoft' ), $theme->version ) ) . '">' . __( 'Update', 'bestwebsoft' ) . '</a>';
983 + $actions[] = '<a class="install-now" href="' . esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ) . '" title="' . esc_attr( sprintf( __( 'Update to version %s' ), $theme->version ) ) . '">' . __( 'Update' ) . '</a>';
820 984 break;
821 985 case 'newer_installed':
822 986 case 'latest_installed':
823 - $actions[] = '<span class="install-now" title="' . esc_attr__( 'This theme is already installed and is up to date' ) . '">' . _x( 'Installed', 'theme', 'bestwebsoft' ) . '</span>';
987 + $actions[] = '<span class="install-now" title="' . esc_attr__( 'This theme is already installed and is up to date' ) . '">' . _x( 'Installed', 'theme' ) . '</span>';
824 988 break;
825 989 }
826 - $actions[] = '<a class="install-theme-preview" href="' . esc_url( $preview_url ) . '" title="' . esc_attr( sprintf( __( 'Preview %s', 'bestwebsoft' ), $name ) ) . '">' . __( 'Preview', 'bestwebsoft' ) . '</a>';
827 - $actions = apply_filters( 'theme_install_actions', $actions, $theme ); ?>
990 + $actions[] = '<a class="install-theme-preview" href="' . esc_url( $preview_url ) . '" title="' . esc_attr( sprintf( __( 'Preview %s' ), $name ) ) . '">' . __( 'Preview' ) . '</a>';
991 + $actions = apply_filters( 'theme_install_actions', $actions, $theme );
992 + ?>
828 993 <a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>">
829 994 <img src='<?php echo esc_url( $theme->screenshot_url ); ?>' width='150' />
830 995 </a>
831 996 <h3><?php echo $name; ?></h3>
832 - <div class="theme-author"><?php printf( __( 'By %s', 'bestwebsoft' ), $author ); ?></div>
997 + <div class="theme-author"><?php printf( __( 'By %s' ), $author ); ?></div>
833 998 <div class="action-links">
834 999 <ul>
835 1000 <?php foreach ( $actions as $action ): ?>
836 1001 <li><?php echo $action; ?></li>
837 1002 <?php endforeach; ?>
838 - <li class="hide-if-no-js"><a href="#" class="theme-detail"><?php _e( 'Details', 'bestwebsoft' ) ?></a></li>
1003 + <li class="hide-if-no-js"><a href="#" class="theme-detail"><?php _e('Details') ?></a></li>
839 1004 </ul>
840 1005 </div>
841 - <?php $theme_class->install_theme_info( $theme ); ?>
842 - </div>
1006 + <?php $theme_class->install_theme_info( $theme );
1007 + ?></div>
843 1008 <?php }
844 1009 // end foreach $theme_names
845 1010 $theme_class->theme_installer();
846 - } else { ?>
847 - <div class="theme-browser">
848 - <div class="themes">
849 - <?php foreach ( $themes as $key => $theme ) {
850 - $installed_theme = wp_get_theme( $theme->slug );
851 - if ( $installed_theme->exists() )
852 - $theme->installed = true;
853 - else
854 - $theme->installed = false;
855 - ?>
856 - <div class="theme" tabindex="0">
857 - <?php if ( $theme->screenshot_url ) { ?>
858 - <div class="theme-screenshot">
859 - <img src="<?php echo $theme->screenshot_url; ?>" alt="" />
860 - </div>
861 - <?php } else { ?>
862 - <div class="theme-screenshot blank"></div>
863 - <?php } ?>
864 - <div class="theme-author"><?php printf( __( 'By %s', 'bestwebsoft' ), $theme->author ); ?></div>
865 - <h3 class="theme-name"><?php echo $theme->name; ?></h3>
866 - <div class="theme-actions">
867 - <a class="button button-secondary preview install-theme-preview" href="theme-install.php?theme=<?php echo $theme->slug ?>"><?php esc_html_e( 'Learn More', 'bestwebsoft' ); ?></a>
868 - </div>
869 - <?php if ( $theme->installed ) { ?>
870 - <div class="theme-installed"><?php _e( 'Already Installed', 'bestwebsoft' ); ?></div>
871 - <?php } ?>
872 - </div>
873 - <?php } ?>
874 - <br class="clear" />
875 - </div>
876 - </div>
877 - <div class="theme-overlay"></div>
878 - <?php } ?>
879 - </div>
880 - <?php } elseif ( 'system_status' == $_GET['action'] ) { ?>
881 - <div class="updated fade" <?php if ( ! ( isset( $_REQUEST['bwsmn_form_submit'] ) || isset( $_REQUEST['bwsmn_form_submit_custom_email'] ) ) || $error != "" ) echo "style=\"display:none\""; ?>><p><strong><?php echo $message; ?></strong></p></div>
882 - <div class="error" <?php if ( "" == $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $error; ?></strong></p></div>
883 - <h3><?php _e( 'System status', 'bestwebsoft' ); ?></h3>
884 - <div class="inside">
885 - <table class="bws_system_info">
886 - <thead><tr><th><?php _e( 'Environment', 'bestwebsoft' ); ?></th><td></td></tr></thead>
887 - <tbody>
888 - <?php foreach ( $system_info['system_info'] as $key => $value ) { ?>
889 - <tr>
890 - <td scope="row"><?php echo $key; ?></td>
891 - <td scope="row"><?php echo $value; ?></td>
892 - </tr>
893 - <?php } ?>
894 - </tbody>
895 - </table>
896 - <table class="bws_system_info">
897 - <thead><tr><th><?php _e( 'Active Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
898 - <tbody>
899 - <?php if ( ! empty( $system_info['active_plugins'] ) ) {
900 - foreach ( $system_info['active_plugins'] as $key => $value ) { ?>
1011 + ?>
1012 + </div>
1013 + <?php } elseif ( 'system_status' == $_GET['action'] ) { ?>
1014 + <div class="updated fade" <?php if ( ! ( isset( $_REQUEST['bwsmn_form_submit'] ) || isset( $_REQUEST['bwsmn_form_submit_custom_email'] ) ) || $error != "" ) echo "style=\"display:none\""; ?>><p><strong><?php echo $message; ?></strong></p></div>
1015 + <div class="error" <?php if ( "" == $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $error; ?></strong></p></div>
1016 + <h3><?php _e( 'System status', 'bestwebsoft' ); ?></h3>
1017 + <div class="inside">
1018 + <table class="bws_system_info">
1019 + <thead><tr><th><?php _e( 'Environment', 'bestwebsoft' ); ?></th><td></td></tr></thead>
1020 + <tbody>
1021 + <?php foreach ( $system_info['system_info'] as $key => $value ) { ?>
901 1022 <tr>
902 1023 <td scope="row"><?php echo $key; ?></td>
903 1024 <td scope="row"><?php echo $value; ?></td>
904 - </tr>
905 - <?php }
906 - } ?>
907 - </tbody>
908 - </table>
909 - <table class="bws_system_info">
910 - <thead><tr><th><?php _e( 'Inactive Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
911 - <tbody>
912 - <?php if ( ! empty( $system_info['inactive_plugins'] ) ) {
913 - foreach ( $system_info['inactive_plugins'] as $key => $value ) { ?>
1025 + </tr>
1026 + <?php } ?>
1027 + </tbody>
1028 + </table>
1029 + <table class="bws_system_info">
1030 + <thead><tr><th><?php _e( 'Active Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
1031 + <tbody>
1032 + <?php foreach ( $system_info['active_plugins'] as $key => $value ) { ?>
914 1033 <tr>
915 1034 <td scope="row"><?php echo $key; ?></td>
916 1035 <td scope="row"><?php echo $value; ?></td>
917 - </tr>
918 - <?php }
919 - } ?>
920 - </tbody>
921 - </table>
922 - <div class="clear"></div>
923 - <form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
924 - <p>
925 - <input type="hidden" name="bwsmn_form_submit" value="submit" />
926 - <input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" />
927 - <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ); ?>
928 - </p>
929 - </form>
930 - <form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
931 - <p>
932 - <input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" />
933 - <input type="submit" class="button" value="<?php _e( 'Send to custom email &#187;', 'bestwebsoft' ) ?>" />
934 - <input type="text" value="<?php echo $bwsmn_form_email; ?>" name="bwsmn_form_email" />
935 - <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ); ?>
936 - </p>
937 - </form>
938 - </div>
939 - <?php } ?>
1036 + </tr>
1037 + <?php } ?>
1038 + </tbody>
1039 + </table>
1040 + <table class="bws_system_info">
1041 + <thead><tr><th><?php _e( 'Inactive Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
1042 + <tbody>
1043 + <?php
1044 + if ( ! empty( $system_info['inactive_plugins'] ) ) {
1045 + foreach ( $system_info['inactive_plugins'] as $key => $value ) { ?>
1046 + <tr>
1047 + <td scope="row"><?php echo $key; ?></td>
1048 + <td scope="row"><?php echo $value; ?></td>
1049 + </tr>
1050 + <?php }
1051 + } ?>
1052 + </tbody>
1053 + </table>
1054 + <div class="clear"></div>
1055 + <form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
1056 + <p>
1057 + <input type="hidden" name="bwsmn_form_submit" value="submit" />
1058 + <input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" />
1059 + <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ); ?>
1060 + </p>
1061 + </form>
1062 + <form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
1063 + <p>
1064 + <input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" />
1065 + <input type="submit" class="button" value="<?php _e( 'Send to custom email &#187;', 'bestwebsoft' ) ?>" />
1066 + <input type="text" value="<?php echo $bwsmn_form_email; ?>" name="bwsmn_form_email" />
1067 + <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ); ?>
1068 + </p>
1069 + </form>
1070 + </div>
1071 + <?php }
1072 + } ?>
940 1073 </div>
941 1074 <?php }
1075 +}
1076 +
1077 +if ( ! function_exists ( 'bws_plugin_init' ) ) {
1078 + function bws_plugin_init() {
1079 + // Internationalization, first(!)
1080 + load_plugin_textdomain( 'bestwebsoft', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
1081 + }
942 1082 }
943 1083
944 -if ( ! function_exists( 'bws_get_banner_array' ) ) {
945 - function bws_get_banner_array() {
946 - global $bstwbsftwppdtplgns_banner_array;
947 - $bstwbsftwppdtplgns_banner_array = array(
948 - array( 'rlt_hide_banner_on_plugin_page', 'realty/realty.php', '1.0.0' ),
949 - array( 'prmbr_hide_banner_on_plugin_page', 'promobar/promobar.php', '1.0.0' ),
950 - array( 'gglnltcs_hide_banner_on_plugin_page', 'bws-google-analytics/bws-google-analytics.php', '1.6.2' ),
951 - array( 'htccss_hide_banner_on_plugin_page', 'htaccess/htaccess.php', '1.6.3' ),
952 - array( 'sbscrbr_hide_banner_on_plugin_page', 'subscriber/subscriber.php', '1.1.8' ),
953 - array( 'lmtttmpts_hide_banner_on_plugin_page', 'limit-attempts/limit-attempts.php', '1.0.2' ),
954 - array( 'sndr_hide_banner_on_plugin_page', 'sender/sender.php', '0.5' ),
955 - array( 'srrl_hide_banner_on_plugin_page', 'user-role/user-role.php', '1.4' ),
956 - array( 'pdtr_hide_banner_on_plugin_page', 'updater/updater.php', '1.12' ),
957 - array( 'cntctfrmtdb_hide_banner_on_plugin_page', 'contact-form-to-db/contact_form_to_db.php', '1.2' ),
958 - array( 'cntctfrmmlt_hide_banner_on_plugin_page', 'contact-form-multi/contact-form-multi.php', '1.0.7' ),
959 - array( 'gglmps_hide_banner_on_plugin_page', 'bws-google-maps/bws-google-maps.php', '1.2' ),
960 - array( 'fcbkbttn_hide_banner_on_plugin_page', 'facebook-button-plugin/facebook-button-plugin.php', '2.29' ),
961 - array( 'twttr_hide_banner_on_plugin_page', 'twitter-plugin/twitter.php', '2.34' ),
962 - array( 'pdfprnt_hide_banner_on_plugin_page', 'pdf-print/pdf-print.php', '1.7.1' ),
963 - array( 'gglplsn_hide_banner_on_plugin_page', 'google-one/google-plus-one.php', '1.1.4' ),
964 - array( 'gglstmp_hide_banner_on_plugin_page', 'google-sitemap-plugin/google-sitemap-plugin.php', '2.8.4' ),
965 - array( 'cntctfrmpr_for_ctfrmtdb_hide_banner_on_plugin_page', 'contact-form-pro/contact_form_pro.php', '1.14' ),
966 - array( 'cntctfrm_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.47' ),
967 - array( 'cptch_hide_banner_on_plugin_page', 'captcha/captcha.php', '3.8.4' ),
968 - array( 'gllr_hide_banner_on_plugin_page', 'gallery-plugin/gallery-plugin.php', '3.9.1' ),
969 - array( 'cntctfrm_for_ctfrmtdb_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.62' ),
970 - );
1084 +if ( ! function_exists ( 'bws_admin_head' ) ) {
1085 + function bws_admin_head() {
1086 + global $wp_version;
1087 + if ( isset( $_GET['page'] ) && $_GET['page'] == "bws_plugins" ) {
1088 + wp_enqueue_style( 'bws_menu_style', plugins_url( 'css/style.css', __FILE__ ) );
1089 + wp_enqueue_script( 'bws_menu_script', plugins_url( 'js/bws_menu.js' , __FILE__ ) );
1090 + if ( $wp_version >= '3.8' )
1091 + wp_enqueue_script( 'theme-install' );
1092 + elseif ( $wp_version >= '3.4' )
1093 + wp_enqueue_script( 'theme' );
1094 + }
971 1095 }
972 -}
1096 +}
1097 +
1098 +add_action( 'init', 'bws_plugin_init' );
1099 +add_action( 'admin_enqueue_scripts', 'bws_admin_head' );
1100 +?>