PluginProbe
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin / 1.8.0
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin v1.8.0
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
pdf-print / bws_menu / bws_menu.php

bws_menu.php in PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin 1.8.0, at bws_menu/bws_menu.php

972 lines 67.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Function for displaying BestWebSoft menu
4 * Version: 1.6.0
5 */
6
7 if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) )
8 require_once( dirname( __FILE__ ) . '/bws_functions.php' );
9
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/';
15
16 if ( ! function_exists( 'is_plugin_active_for_network' ) )
17 require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
18
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 $bws_plugins = array(
25 'captcha/captcha.php' => array(
26 'name' => 'Captcha',
27 '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',
31 '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'
35 ),
36 'contact-form-plugin/contact_form.php' => array(
37 'name' => 'Contact Form',
38 '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',
42 '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 ),
47 'facebook-button-plugin/facebook-button-plugin.php' => array(
48 'name' => 'Facebook Like Button',
49 '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',
53 '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'
57 ),
58 'twitter-plugin/twitter.php' => array(
59 'name' => 'Twitter',
60 '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',
64 '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 ),
69 'portfolio/portfolio.php' => array(
70 'name' => 'Portfolio',
71 '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',
75 'settings' => 'admin.php?page=portfolio.php'
76 ),
77 'gallery-plugin/gallery-plugin.php' => array(
78 'name' => 'Gallery',
79 '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',
83 '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'
87 ),
88 'adsense-plugin/adsense-plugin.php'=> array(
89 'name' => 'Google AdSense by BestWebSoft',
90 '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',
94 'settings' => 'admin.php?page=adsense-plugin.php'
95 ),
96 'custom-search-plugin/custom-search-plugin.php'=> array(
97 'name' => 'Custom Search',
98 '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',
102 'settings' => 'admin.php?page=custom_search.php'
103 ),
104 'quotes-and-tips/quotes-and-tips.php'=> array(
105 'name' => 'Quotes and Tips',
106 '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',
110 'settings' => 'admin.php?page=quotes-and-tips.php'
111 ),
112 'google-sitemap-plugin/google-sitemap-plugin.php'=> array(
113 'name' => 'Google Sitemap by BestWebSoft',
114 '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',
118 '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'
122 ),
123 'updater/updater.php'=> array(
124 'name' => 'Updater',
125 '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',
129 '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'
133 ),
134 'custom-fields-search/custom-fields-search.php'=> array(
135 'name' => 'Custom Fields Search',
136 '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',
140 'settings' => 'admin.php?page=custom_fields_search.php'
141 ),
142 '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',
148 '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'
152 ),
153 'relevant/related-posts-plugin.php' => array(
154 'name' => 'Relevant - Related Posts',
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',
159 'settings' => 'admin.php?page=related-posts-plugin.php'
160 ),
161 'contact-form-to-db/contact_form_to_db.php' => array(
162 'name' => 'Contact Form To DB',
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',
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'
171 ),
172 'pdf-print/pdf-print.php' => array(
173 'name' => 'PDF & Print',
174 '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',
178 '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'
182 ),
183 'donate-button/donate.php' => array(
184 'name' => 'Donate',
185 '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',
189 'settings' => 'admin.php?page=donate.php'
190 ),
191 'post-to-csv/post-to-csv.php' => array(
192 'name' => 'Post To CSV',
193 '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',
197 'settings' => 'admin.php?page=post-to-csv.php'
198 ),
199 'google-shortlink/google-shortlink.php' => array(
200 'name' => 'Google Shortlink by BestWebSoft',
201 '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',
205 'settings' => 'admin.php?page=gglshrtlnk_options'
206 ),
207 'htaccess/htaccess.php' => array(
208 'name' => 'Htaccess',
209 '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'
217 ),
218 'google-captcha/google-captcha.php' => array(
219 'name' => 'Google Captcha (reCAPTCHA) by BestWebSoft',
220 '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',
224 'settings' => 'admin.php?page=google-captcha.php'
225 ),
226 'sender/sender.php' => array(
227 'name' => 'Sender',
228 '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'
236 ),
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'
247 ),
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' => ''
258 ),
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'
269 ),
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'
280 ),
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'
288 ),
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'
299 ),
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'
307 ),
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'
318 ),
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'
420 )
421 );
422
423 $all_plugins = get_plugins();
424 $active_plugins = get_option( 'active_plugins' );
425 $recommend_plugins = array_diff_key( $bws_plugins, $all_plugins );
426 $bws_plugins_pro = array();
427
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 ] );
431 }
432 }
433
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 ] );
444 }
445 }
446 }
447 }
448
449 if ( isset( $_GET['action'] ) && 'system_status' == $_GET['action'] ) {
450 $all_plugins = get_plugins();
451 $active_plugins = get_option( 'active_plugins' );
452 $mysql_info = $wpdb->get_results( "SHOW VARIABLES LIKE 'sql_mode'" );
453 if ( is_array( $mysql_info ) )
454 $sql_mode = $mysql_info[0]->Value;
455 if ( empty( $sql_mode ) )
456 $sql_mode = __( 'Not set', 'bestwebsoft' );
457
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() );
469
470 if ( function_exists( 'is_multisite' ) ) {
471 if ( is_multisite() )
472 $multisite = __( 'Yes', 'bestwebsoft' );
473 else
474 $multisite = __( 'No', 'bestwebsoft' );
475 } else
476 $multisite = __( 'N/A', 'bestwebsoft' );
477
478 $system_info = array(
479 'system_info' => '',
480 'active_plugins' => '',
481 'inactive_plugins' => ''
482 );
483 $system_info['system_info'] = array(
484 __( 'Operating System', 'bestwebsoft' ) => PHP_OS,
485 __( 'Server', 'bestwebsoft' ) => $_SERVER["SERVER_SOFTWARE"],
486 __( 'Memory usage', 'bestwebsoft' ) => $memory_usage,
487 __( 'MYSQL Version', 'bestwebsoft' ) => $wpdb->get_var( "SELECT VERSION() AS version" ),
488 __( 'SQL Mode', 'bestwebsoft' ) => $sql_mode,
489 __( 'PHP Version', 'bestwebsoft' ) => PHP_VERSION,
490 __( 'PHP Safe Mode', 'bestwebsoft' ) => $safe_mode,
491 __( 'PHP Allow URL fopen', 'bestwebsoft' ) => $allow_url_fopen,
492 __( 'PHP Memory Limit', 'bestwebsoft' ) => $memory_limit,
493 __( 'PHP Max Upload Size', 'bestwebsoft' ) => $upload_max_filesize,
494 __( 'PHP Max Post Size', 'bestwebsoft' ) => $post_max_size,
495 __( 'PHP Max Script Execute Time', 'bestwebsoft' ) => $max_execution_time,
496 __( 'PHP Exif support', 'bestwebsoft' ) => $exif_read_data,
497 __( 'PHP IPTC support', 'bestwebsoft' ) => $iptcparse,
498 __( 'PHP XML support', 'bestwebsoft' ) => $xml_parser_create,
499 __( 'Site URL', 'bestwebsoft' ) => get_option( 'siteurl' ),
500 __( 'Home URL', 'bestwebsoft' ) => home_url(),
501 '$_SERVER[HTTP_HOST]' => $_SERVER['HTTP_HOST'],
502 '$_SERVER[SERVER_NAME]' => $_SERVER['SERVER_NAME'],
503 __( 'WordPress Version', 'bestwebsoft' ) => $wp_version,
504 __( 'WordPress DB Version', 'bestwebsoft' ) => get_option( 'db_version' ),
505 __( 'Multisite', 'bestwebsoft' ) => $multisite,
506 __( 'Active Theme', 'bestwebsoft' ) => $theme['Name'] . ' ' . $theme['Version']
507 );
508 foreach ( $all_plugins as $path => $plugin ) {
509 if ( is_plugin_active( $path ) )
510 $system_info['active_plugins'][ $plugin['Name'] ] = $plugin['Version'];
511 else
512 $system_info['inactive_plugins'][ $plugin['Name'] ] = $plugin['Version'];
513 }
514 }
515
516 if ( ( isset( $_REQUEST['bwsmn_form_submit'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ) ) ||
517 ( isset( $_REQUEST['bwsmn_form_submit_custom_email'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ) ) ) {
518 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 ) ) {
521 $error = __( "Please enter a valid email address.", 'bestwebsoft' );
522 } else {
523 $email = $bwsmn_form_email;
524 $bwsmn_form_email = '';
525 $message = __( 'Email with system info is sent to ', 'bestwebsoft' ) . $email;
526 }
527 } else {
528 $email = '[email protected]';
529 $message = __( 'Thank you for contacting us.', 'bestwebsoft' );
530 }
531
532 if ( $error == '' ) {
533 $headers = 'MIME-Version: 1.0' . "\n";
534 $headers .= 'Content-type: text/html; charset=utf-8' . "\n";
535 $headers .= 'From: ' . get_option( 'admin_email' );
536 $message_text = '<html><head><title>System Info From ' . home_url() . '</title></head><body>
537 <h4>Environment</h4>
538 <table>';
539 foreach ( $system_info['system_info'] as $key => $value ) {
540 $message_text .= '<tr><td>'. $key .'</td><td>'. $value .'</td></tr>';
541 }
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>';
550 }
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>';
558 }
559 $message_text .= '</body></html>';
560 $result = wp_mail( $email, 'System Info From ' . home_url(), $message_text, $headers );
561 if ( $result != true )
562 $error = __( "Sorry, email message could not be delivered.", 'bestwebsoft' );
563 }
564 } ?>
565 <div class="wrap">
566 <div class="icon32 icon32-bws" id="icon-options-general"></div>
567 <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>
574 <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>
580 <?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 ];
594
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];
602 }
603 }
604
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'; ?>"/>
613 </div>
614 <div class="bws_product_description"><?php echo $value_plugin["Description"]; ?></div>
615 </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'; ?>"/>
635 </div>
636 <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
637 </div>
638 <div class="clear"></div>
639 </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>
644 </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'; ?>"/>
653 </div>
654 <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
655 </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"] ) { ?>
670 <span> | </span>
671 <a href="<?php echo $bws_plugins[ $key_plugin ]["settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
672 <?php } ?>
673 </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>
680 <div class="bws_product_content">
681 <div class="bws_product_icon">
682 <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
683 </div>
684 <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
685 </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>
690 <?php } else { ?>
691 <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
692 <strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
693 </a>
694 <?php } ?>
695 <div class="clear"></div>
696 </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>
699 <span> | </span>
700 <a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
701 </div>
702 </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 ) {
710
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' );
757
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 );
765
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
779 global $themes_allowedtags;
780 if ( empty( $theme ) )
781 return;
782
783 $name = wp_kses( $theme->name, $themes_allowedtags );
784 $author = wp_kses( $theme->author, $themes_allowedtags );
785 $preview_title = sprintf( __( 'Preview &#8220;%s&#8221;', 'bestwebsoft' ), $name );
786 $preview_url = add_query_arg( array(
787 'tab' => 'theme-information',
788 'theme' => $theme->slug,
789 ), self_admin_url( 'theme-install.php' ) );
790
791 $actions = array();
792
793 $install_url = add_query_arg( array(
794 'action' => 'install-theme',
795 'theme' => $theme->slug,
796 ), self_admin_url( 'update.php' ) );
797
798 $update_url = add_query_arg( array(
799 'action' => 'upgrade-theme',
800 'theme' => $theme->slug,
801 ), self_admin_url( 'update.php' ) );
802
803 $status = 'install';
804 $installed_theme = wp_get_theme( $theme->slug );
805 if ( $installed_theme->exists() ) {
806 if ( version_compare( $installed_theme->get('Version'), $theme->version, '=' ) )
807 $status = 'latest_installed';
808 elseif ( version_compare( $installed_theme->get('Version'), $theme->version, '>' ) )
809 $status = 'newer_installed';
810 else
811 $status = 'update_available';
812 }
813 switch ( $status ) {
814 default:
815 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>';
817 break;
818 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>';
820 break;
821 case 'newer_installed':
822 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>';
824 break;
825 }
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 ); ?>
828 <a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>">
829 <img src='<?php echo esc_url( $theme->screenshot_url ); ?>' width='150' />
830 </a>
831 <h3><?php echo $name; ?></h3>
832 <div class="theme-author"><?php printf( __( 'By %s', 'bestwebsoft' ), $author ); ?></div>
833 <div class="action-links">
834 <ul>
835 <?php foreach ( $actions as $action ): ?>
836 <li><?php echo $action; ?></li>
837 <?php endforeach; ?>
838 <li class="hide-if-no-js"><a href="#" class="theme-detail"><?php _e( 'Details', 'bestwebsoft' ) ?></a></li>
839 </ul>
840 </div>
841 <?php $theme_class->install_theme_info( $theme ); ?>
842 </div>
843 <?php }
844 // end foreach $theme_names
845 $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 ) { ?>
901 <tr>
902 <td scope="row"><?php echo $key; ?></td>
903 <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 ) { ?>
914 <tr>
915 <td scope="row"><?php echo $key; ?></td>
916 <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 } ?>
940 </div>
941 <?php }
942 }
943
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 );
971 }
972 }