wp/wp-content/plugins/portfolio/bws_menu/bws_menu.php
changeset 12 d8a8807227e4
parent 7 cf61fcea0001
child 16 a86126ab1dd4
--- a/wp/wp-content/plugins/portfolio/bws_menu/bws_menu.php	Mon Oct 14 18:35:50 2019 +0200
+++ b/wp/wp-content/plugins/portfolio/bws_menu/bws_menu.php	Tue Oct 15 11:56:20 2019 +0200
@@ -1,7 +1,7 @@
 <?php
 /*
 * Function for displaying BestWebSoft menu
-* Version: 2.1.5
+* Version: 2.2.0
 */
 
 if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) )
@@ -13,8 +13,8 @@
 		$error = $message = '';
 
 		/**
-		* @deprecated 1.9.8 (15.12.2016)
-		*/
+		 * @deprecated 1.9.8 (15.12.2016)
+		 */
 		$is_main_page = in_array( $_GET['page'], array( 'bws_panel', 'bws_themes', 'bws_system_status' ) );
 		$page = esc_attr( $_GET['page'] );
 		$tab = isset( $_GET['tab'] ) ? esc_attr( $_GET['tab'] ) : '';
@@ -66,7 +66,7 @@
 					}
 					/* check expired */
 					if ( $is_pro_installed && isset( $bstwbsftwppdtplgns_options['time_out'][ $value_plugin['pro_version'] ] ) &&
-						strtotime( $bstwbsftwppdtplgns_options['time_out'][ $value_plugin['pro_version'] ] ) < strtotime( date( "m/d/Y" ) ) ) {
+					     strtotime( $bstwbsftwppdtplgns_options['time_out'][ $value_plugin['pro_version'] ] ) < strtotime( date( "m/d/Y" ) ) ) {
 						unset( $bws_plugins[ $key_plugin ] );
 						$value_plugin['expired'] = $bstwbsftwppdtplgns_options['time_out'][ $value_plugin['pro_version'] ];
 						$bws_plugins_expired[ $key_plugin ] = $value_plugin;
@@ -157,7 +157,7 @@
 						if ( is_multisite() )
 							update_site_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
 						else
-						 	update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
+							update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
 					}
 				} else {
 					$error = __( "Please enter your license key.", 'bestwebsoft' );
@@ -167,11 +167,11 @@
 
 			$all_plugins = get_plugins();
 			$active_plugins = get_option( 'active_plugins' );
-		    $mysql_info = $wpdb->get_results( "SHOW VARIABLES LIKE 'sql_mode'" );
-		    if ( is_array( $mysql_info ) )
-		    	$sql_mode = $mysql_info[0]->Value;
-		    if ( empty( $sql_mode ) )
-		    	$sql_mode = __( 'Not set', 'bestwebsoft' );
+			$mysql_info = $wpdb->get_results( "SHOW VARIABLES LIKE 'sql_mode'" );
+			if ( is_array( $mysql_info ) )
+				$sql_mode = $mysql_info[0]->Value;
+			if ( empty( $sql_mode ) )
+				$sql_mode = __( 'Not set', 'bestwebsoft' );
 
 			$allow_url_fopen = ( ini_get( 'allow_url_fopen' ) ) ? __( 'On', 'bestwebsoft' ) : __( 'Off', 'bestwebsoft' );
 			$upload_max_filesize = ( ini_get( 'upload_max_filesize' ) )? ini_get( 'upload_max_filesize' ) : __( 'N/A', 'bestwebsoft' );
@@ -290,82 +290,82 @@
 				}
 			}
 		} ?>
-		<div class="bws-wrap">
-			<div class="bws-header">
-				<div class="bws-title">
-					<a href="<?php echo ( $is_main_page ) ? self_admin_url( 'admin.php?page=bws_panel' ) : esc_url( self_admin_url( 'admin.php?page=' . $page ) ); ?>">
-						<span class="bws-logo bwsicons bwsicons-bws-logo"></span>
-						BestWebSoft
-						<span>panel</span>
-					</a>
-				</div>
-				<div class="bws-menu-item-icon">&#8226;&#8226;&#8226;</div>
-				<div class="bws-nav-tab-wrapper">
+        <div class="bws-wrap">
+            <div class="bws-header">
+                <div class="bws-title">
+                    <a href="<?php echo ( $is_main_page ) ? self_admin_url( 'admin.php?page=bws_panel' ) : esc_url( self_admin_url( 'admin.php?page=' . $page ) ); ?>">
+                        <span class="bws-logo bwsicons bwsicons-bws-logo"></span>
+                        BestWebSoft
+                        <span>panel</span>
+                    </a>
+                </div>
+                <div class="bws-menu-item-icon">&#8226;&#8226;&#8226;</div>
+                <div class="bws-nav-tab-wrapper">
 					<?php if ( $is_main_page ) { ?>
-						<a class="bws-nav-tab<?php if ( 'bws_panel' == $page ) echo ' bws-nav-tab-active'; ?>" href="<?php echo self_admin_url( 'admin.php?page=bws_panel' ); ?>"><?php _e( 'Plugins', 'bestwebsoft' ); ?></a>
-						<a class="bws-nav-tab<?php if ( 'bws_themes' == $page ) echo ' bws-nav-tab-active'; ?>" href="<?php echo self_admin_url( 'admin.php?page=bws_themes' ); ?>"><?php _e( 'Themes', 'bestwebsoft' ); ?></a>
-						<a class="bws-nav-tab<?php if ( 'bws_system_status' == $page ) echo ' bws-nav-tab-active'; ?>" href="<?php echo self_admin_url( 'admin.php?page=bws_system_status' ); ?>"><?php _e( 'System status', 'bestwebsoft' ); ?></a>
+                        <a class="bws-nav-tab<?php if ( 'bws_panel' == $page ) echo ' bws-nav-tab-active'; ?>" href="<?php echo self_admin_url( 'admin.php?page=bws_panel' ); ?>"><?php _e( 'Plugins', 'bestwebsoft' ); ?></a>
+                        <a class="bws-nav-tab<?php if ( 'bws_themes' == $page ) echo ' bws-nav-tab-active'; ?>" href="<?php echo self_admin_url( 'admin.php?page=bws_themes' ); ?>"><?php _e( 'Themes', 'bestwebsoft' ); ?></a>
+                        <a class="bws-nav-tab<?php if ( 'bws_system_status' == $page ) echo ' bws-nav-tab-active'; ?>" href="<?php echo self_admin_url( 'admin.php?page=bws_system_status' ); ?>"><?php _e( 'System status', 'bestwebsoft' ); ?></a>
 					<?php } else { ?>
-						<a class="bws-nav-tab<?php if ( ! isset( $_GET['tab'] ) ) echo ' bws-nav-tab-active'; ?>" href="<?php echo esc_url( self_admin_url( 'admin.php?page=' . $page ) ); ?>"><?php _e( 'Plugins', 'bestwebsoft' ); ?></a>
-						<a class="bws-nav-tab<?php if ( 'themes' == $tab ) echo ' bws-nav-tab-active'; ?>" href="<?php echo esc_url( self_admin_url( 'admin.php?page=' . $page . '&tab=themes' ) ); ?>"><?php _e( 'Themes', 'bestwebsoft' ); ?></a>
-						<a class="bws-nav-tab<?php if ( 'system-status' == $tab ) echo ' bws-nav-tab-active'; ?>" href="<?php echo esc_url( self_admin_url( 'admin.php?page=' . $page . '&tab=system-status' ) ); ?>"><?php _e( 'System status', 'bestwebsoft' ); ?></a>
+                        <a class="bws-nav-tab<?php if ( ! isset( $_GET['tab'] ) ) echo ' bws-nav-tab-active'; ?>" href="<?php echo esc_url( self_admin_url( 'admin.php?page=' . $page ) ); ?>"><?php _e( 'Plugins', 'bestwebsoft' ); ?></a>
+                        <a class="bws-nav-tab<?php if ( 'themes' == $tab ) echo ' bws-nav-tab-active'; ?>" href="<?php echo esc_url( self_admin_url( 'admin.php?page=' . $page . '&tab=themes' ) ); ?>"><?php _e( 'Themes', 'bestwebsoft' ); ?></a>
+                        <a class="bws-nav-tab<?php if ( 'system-status' == $tab ) echo ' bws-nav-tab-active'; ?>" href="<?php echo esc_url( self_admin_url( 'admin.php?page=' . $page . '&tab=system-status' ) ); ?>"><?php _e( 'System status', 'bestwebsoft' ); ?></a>
 					<?php } ?>
-				</div>
-				<div class="bws-help-links-wrapper">
-					<a href="https://support.bestwebsoft.com" target="_blank"><?php _e( 'Support', 'bestwebsoft' ); ?></a>
-					<a href="https://bestwebsoft.com/client-area" target="_blank" title="<?php _e( 'Manage purchased licenses & subscriptions', 'bestwebsoft' ); ?>">Client Area</a>
-				</div>
-				<div class="clear"></div>
-			</div>
+                </div>
+                <div class="bws-help-links-wrapper">
+                    <a href="https://support.bestwebsoft.com" target="_blank"><?php _e( 'Support', 'bestwebsoft' ); ?></a>
+                    <a href="https://bestwebsoft.com/client-area" target="_blank" title="<?php _e( 'Manage purchased licenses & subscriptions', 'bestwebsoft' ); ?>">Client Area</a>
+                </div>
+                <div class="clear"></div>
+            </div>
 			<?php if ( ( 'bws_panel' == $page || ( ! isset( $_GET['tab'] ) && ! $is_main_page ) ) && ! isset( $_POST['bws_plugin_action_submit'] ) ) { ?>
-				<div class="bws-membership-wrap">
-					<div class="bws-membership-backround"></div>
-					<div class="bws-membership">
-						<div class="bws-membership-title"><?php printf( __( 'Get Access to %s+ Premium Plugins', 'bestwebsoft' ), '30' ); ?></div>
-						<form class="bws-membership-form" method="post" action="">
-							<span class="bws-membership-link"><a target="_blank" href="https://bestwebsoft.com/membership/"><?php _e( 'Subscribe to Pro Membership', 'bestwebsoft' ); ?></a> <?php _e( 'or', 'bestwebsoft' ); ?></span>
+                <div class="bws-membership-wrap">
+                    <div class="bws-membership-backround"></div>
+                    <div class="bws-membership">
+                        <div class="bws-membership-title"><?php printf( __( 'Get Access to %s+ Premium Plugins', 'bestwebsoft' ), '30' ); ?></div>
+                        <form class="bws-membership-form" method="post" action="">
+                            <span class="bws-membership-link"><a target="_blank" href="https://bestwebsoft.com/membership/"><?php _e( 'Subscribe to Pro Membership', 'bestwebsoft' ); ?></a> <?php _e( 'or', 'bestwebsoft' ); ?></span>
 							<?php if ( isset( $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] ) &&
-								'5' < $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] &&
-								$bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['time'] > ( time() - ( 24 * 60 * 60 ) ) ) { ?>
-								<div class="bws_form_input_wrap">
-									<input disabled="disabled" type="text" name="bws_license_key" value="<?php echo esc_attr( $bws_license_key); ?>" />
-									<div class="bws_error"><?php _e( "Unfortunately, you have exceeded the number of available tries per day.", 'bestwebsoft' ); ?></div>
-								</div>
-								<input disabled="disabled" type="submit" class="bws-button" value="<?php _e( 'Check license key', 'bestwebsoft' ); ?>" />
+							           '5' < $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] &&
+							           $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['time'] > ( time() - ( 24 * 60 * 60 ) ) ) { ?>
+                                <div class="bws_form_input_wrap">
+                                    <input disabled="disabled" type="text" name="bws_license_key" value="<?php echo esc_attr( $bws_license_key); ?>" />
+                                    <div class="bws_error"><?php _e( "Unfortunately, you have exceeded the number of available tries per day.", 'bestwebsoft' ); ?></div>
+                                </div>
+                                <input disabled="disabled" type="submit" class="bws-button" value="<?php _e( 'Check license key', 'bestwebsoft' ); ?>" />
 							<?php } else { ?>
-								<div class="bws_form_input_wrap">
-									<input <?php if ( "" != $error ) echo 'class="bws_input_error"'; ?> type="text" placeholder="<?php _e( 'Enter your license key', 'bestwebsoft' ); ?>" maxlength="100" name="bws_license_key" value="<?php echo esc_attr( $bws_license_key ); ?>" />
-									<div class="bws_error" <?php if ( "" == $error ) echo 'style="display:none"'; ?>><?php echo $error; ?></div>
-								</div>
-								<input type="hidden" name="bws_license_plugin" value="<?php echo esc_attr( $bws_license_plugin ); ?>" />
-								<input type="hidden" name="bws_license_submit" value="submit" />
+                                <div class="bws_form_input_wrap">
+                                    <input <?php if ( "" != $error ) echo 'class="bws_input_error"'; ?> type="text" placeholder="<?php _e( 'Enter your license key', 'bestwebsoft' ); ?>" maxlength="100" name="bws_license_key" value="<?php echo esc_attr( $bws_license_key ); ?>" />
+                                    <div class="bws_error" <?php if ( "" == $error ) echo 'style="display:none"'; ?>><?php echo $error; ?></div>
+                                </div>
+                                <input type="hidden" name="bws_license_plugin" value="<?php echo esc_attr( $bws_license_plugin ); ?>" />
+                                <input type="hidden" name="bws_license_submit" value="submit" />
 								<?php if ( empty( $plugins_array ) ) { ?>
-									<input type="submit" class="bws-button" value="<?php _e( 'Activate', 'bestwebsoft' ); ?>" />
+                                    <input type="submit" class="bws-button" value="<?php _e( 'Activate', 'bestwebsoft' ); ?>" />
 								<?php } else { ?>
-									<input type="submit" class="bws-button" value="<?php _e( 'Check license key', 'bestwebsoft' ); ?>" />
+                                    <input type="submit" class="bws-button" value="<?php _e( 'Check license key', 'bestwebsoft' ); ?>" />
 								<?php } ?>
 								<?php wp_nonce_field( plugin_basename(__FILE__), 'bws_license_nonce_name' ); ?>
 							<?php } ?>
-						</form>
-						<div class="clear"></div>
-					</div>
-				</div>
+                        </form>
+                        <div class="clear"></div>
+                    </div>
+                </div>
 			<?php } ?>
-			<div class="bws-wrap-content wrap">
+            <div class="bws-wrap-content wrap">
 				<?php if ( 'bws_panel' == $page || ( ! isset( $_GET['tab'] ) && ! $is_main_page ) ) { ?>
-					<div class="updated notice is-dismissible inline" <?php if ( '' == $message || '' != $error ) echo 'style="display:none"'; ?>><p><?php echo $message; ?></p></div>
-					<h1>
+                    <div class="updated notice is-dismissible inline" <?php if ( '' == $message || '' != $error ) echo 'style="display:none"'; ?>><p><?php echo $message; ?></p></div>
+                    <h1>
 						<?php _e( 'Plugins', 'bestwebsoft' ); ?>
-						<a href="<?php echo self_admin_url( 'plugin-install.php?tab=upload' ); ?>" class="upload page-title-action add-new-h2"><?php _e( 'Upload Plugin', 'bestwebsoft' ); ?></a>
-					</h1>
+                        <a href="<?php echo self_admin_url( 'plugin-install.php?tab=upload' ); ?>" class="upload page-title-action add-new-h2"><?php _e( 'Upload Plugin', 'bestwebsoft' ); ?></a>
+                    </h1>
 					<?php if ( isset( $_GET['error'] ) ) {
 						if ( isset( $_GET['charsout'] ) )
 							$errmsg = sprintf( __( 'The plugin generated %d characters of <strong>unexpected output</strong> during activation. If you notice &#8220;headers already sent&#8221; messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.' ), $_GET['charsout'] );
 						else
 							$errmsg = __( 'Plugin could not be activated because it triggered a <strong>fatal error</strong>.' ); ?>
-						<div id="message" class="error is-dismissible"><p><?php echo $errmsg; ?></p></div>
+                        <div id="message" class="error is-dismissible"><p><?php echo $errmsg; ?></p></div>
 					<?php } elseif ( isset( $_GET['activate'] ) ) { ?>
-						<div id="message" class="updated notice is-dismissible"><p><?php _e( 'Plugin <strong>activated</strong>.' ) ?></p></div>
+                        <div id="message" class="updated notice is-dismissible"><p><?php _e( 'Plugin <strong>activated</strong>.' ) ?></p></div>
 					<?php }
 
 					if ( isset( $_POST['bws_plugin_action_submit'] ) && isset( $_POST['bws_install_plugin'] ) && check_admin_referer( plugin_basename(__FILE__), 'bws_license_install_nonce_name' ) ) {
@@ -442,47 +442,47 @@
 							echo '<p class="error">' . $error . '</p>';
 							echo '<p><a href="' . esc_url( self_admin_url( $current_page ) ) . '" target="_parent">' . __( 'Return to BestWebSoft Panel', 'bestwebsoft' ) . '</a></p>';
 						}
-					} else { 
+					} else {
 						$category_href = $current_page;
 						if ( 'all' != $plugin_category )
 							$category_href .= '&category=' . $plugin_category; ?>
-						<ul class="subsubsub">
-							<li>
-								<a <?php if ( ! isset( $_GET['sub'] ) ) echo 'class="current" '; ?>href="<?php echo esc_url( self_admin_url( $category_href ) ); ?>"><?php _e( 'All', 'bestwebsoft' ); ?></a>
-							</li> |
-							<li>
-								<a <?php if ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) echo 'class="current" '; ?>href="<?php echo esc_url( self_admin_url( $category_href . '&sub=installed' ) ); ?>"><?php _e( 'Installed', 'bestwebsoft' ); ?></a>
-							</li> |
-							<li>
-								<a <?php if ( isset( $_GET['sub'] ) && 'not_installed' == $_GET['sub'] ) echo 'class="current" '; ?>href="<?php echo esc_url( self_admin_url( $category_href . '&sub=not_installed' ) ); ?>"><?php _e( 'Not Installed', 'bestwebsoft' ); ?></a>
-							</li>
-						</ul>
-						<div class="clear"></div>
-						<div class="bws-filter-top">
-							<h2>
-								<span class="bws-toggle-indicator"></span>
+                        <ul class="subsubsub">
+                            <li>
+                                <a <?php if ( ! isset( $_GET['sub'] ) ) echo 'class="current" '; ?>href="<?php echo esc_url( self_admin_url( $category_href ) ); ?>"><?php _e( 'All', 'bestwebsoft' ); ?></a>
+                            </li> |
+                            <li>
+                                <a <?php if ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) echo 'class="current" '; ?>href="<?php echo esc_url( self_admin_url( $category_href . '&sub=installed' ) ); ?>"><?php _e( 'Installed', 'bestwebsoft' ); ?></a>
+                            </li> |
+                            <li>
+                                <a <?php if ( isset( $_GET['sub'] ) && 'not_installed' == $_GET['sub'] ) echo 'class="current" '; ?>href="<?php echo esc_url( self_admin_url( $category_href . '&sub=not_installed' ) ); ?>"><?php _e( 'Not Installed', 'bestwebsoft' ); ?></a>
+                            </li>
+                        </ul>
+                        <div class="clear"></div>
+                        <div class="bws-filter-top">
+                            <h2>
+                                <span class="bws-toggle-indicator"></span>
 								<?php _e( 'Filter results', 'bestwebsoft' ); ?>
-							</h2>
-							<div class="bws-filter-top-inside">
-								<div class="bws-filter-title"><?php _e( 'Category', 'bestwebsoft' ); ?></div>
-								<ul class="bws-category">
-									<li>
+                            </h2>
+                            <div class="bws-filter-top-inside">
+                                <div class="bws-filter-title"><?php _e( 'Category', 'bestwebsoft' ); ?></div>
+                                <ul class="bws-category">
+                                    <li>
 										<?php $sub_in_url = ( isset( $_GET['sub'] ) && in_array( $_GET['sub'], array( 'installed', 'not_installed' ) ) ) ? '&sub=' . $_GET['sub'] : ''; ?>
-										<a <?php if ( 'all' == $plugin_category ) echo ' class="bws-active"'; ?> href="<?php echo esc_url(self_admin_url( $current_page . $sub_in_url ) ); ?>"><?php _e( 'All', 'bestwebsoft' ); ?>
-											<span>(<?php echo count( $bws_plugins ); ?>)</span>
-										</a>
-									</li>
+                                        <a <?php if ( 'all' == $plugin_category ) echo ' class="bws-active"'; ?> href="<?php echo esc_url(self_admin_url( $current_page . $sub_in_url ) ); ?>"><?php _e( 'All', 'bestwebsoft' ); ?>
+                                            <span>(<?php echo count( $bws_plugins ); ?>)</span>
+                                        </a>
+                                    </li>
 									<?php foreach ( $bws_plugins_category as $category_key => $category_value ) { ?>
-										<li>
-											<a <?php if ( $category_key == $plugin_category ) echo ' class="bws-active"'; ?> href="<?php echo esc_url( self_admin_url( $current_page . $sub_in_url . '&category=' . $category_key ) ); ?>"><?php echo $category_value['name']; ?>
-												<span>(<?php echo $category_value['count']; ?>)</span>
-											</a>
-										</li>
+                                        <li>
+                                            <a <?php if ( $category_key == $plugin_category ) echo ' class="bws-active"'; ?> href="<?php echo esc_url( self_admin_url( $current_page . $sub_in_url . '&category=' . $category_key ) ); ?>"><?php echo $category_value['name']; ?>
+                                                <span>(<?php echo $category_value['count']; ?>)</span>
+                                            </a>
+                                        </li>
 									<?php } ?>
-								</ul>
-							</div>
-						</div>
-						<div class="bws-products">
+                                </ul>
+                            </div>
+                        </div>
+                        <div class="bws-products">
 							<?php $nothing_found = true;
 							foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
 
@@ -503,19 +503,19 @@
 								}
 
 								if ( ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] && ! $is_pro_installed && ! $is_installed ) ||
-									( isset( $_GET['sub'] ) && 'not_installed' == $_GET['sub'] && ( $is_pro_installed || $is_installed ) ) )
+								     ( isset( $_GET['sub'] ) && 'not_installed' == $_GET['sub'] && ( $is_pro_installed || $is_installed ) ) )
 									continue;
 
 								$link_attr = isset( $value_plugin['install_url'] ) ? 'href="' . esc_url( $value_plugin['install_url'] ) . '" target="_blank"' : 'href="' . esc_url( self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $key_plugin_explode[0] . '&from=import&TB_iframe=true&width=600&height=550' ) ) . '" class="thickbox open-plugin-details-modal"';
 
 								$nothing_found = false; ?>
-								<div class="bws_product_box<?php if ( $is_active || $is_pro_active ) echo ' bws_product_active'; ?>">
-									<div class="bws_product_image">
-										<a <?php echo $link_attr; ?>><img src="<?php echo $icon; ?>"/></a>
-									</div>
-									<div class="bws_product_content">
-										<div class="bws_product_title"><a <?php echo $link_attr; ?>><?php echo $value_plugin['name']; ?></a></div>
-										<div class="bws-version">
+                                <div class="bws_product_box<?php if ( $is_active || $is_pro_active ) echo ' bws_product_active'; ?>">
+                                    <div class="bws_product_image">
+                                        <a <?php echo $link_attr; ?>><img src="<?php echo $icon; ?>"/></a>
+                                    </div>
+                                    <div class="bws_product_content">
+                                        <div class="bws_product_title"><a <?php echo $link_attr; ?>><?php echo $value_plugin['name']; ?></a></div>
+                                        <div class="bws-version">
 											<?php
 											if ( $is_pro_installed ) {
 												echo '<span';
@@ -537,158 +537,158 @@
 												$r = $update_availible_all->response[ $value_plugin['update_availible'] ];
 												echo ' - <a class="bws-update-now" href="' . esc_url( wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' . $value_plugin['update_availible'] ), 'upgrade-plugin_' . $value_plugin['update_availible'] ) ) . '" class="update-link" aria-label="' . sprintf( __( 'Update to v %s', 'bestwebsoft' ), $r->new_version ) . '">' . sprintf( __( 'Update to v %s', 'bestwebsoft' ), $r->new_version ) . '</a>';
 											} ?>
-										</div>
-										<div class="bws_product_description">
+                                        </div>
+                                        <div class="bws_product_description">
 											<?php echo ( strlen( $value_plugin['description'] ) > 100 ) ? mb_substr( $value_plugin['description'], 0, 100 ) . '...' : $value_plugin['description']; ?>
-										</div>
-										<div class="bws_product_links">
+                                        </div>
+                                        <div class="bws_product_links">
 											<?php if ( $is_active || $is_pro_active ) {
-												if ( $is_pro_isset ) {													
+												if ( $is_pro_isset ) {
 													if ( ! $is_pro_installed ) {
 														if ( ! empty( $plugins_array ) && array_key_exists( $value_plugin['pro_version'], $plugins_array ) ) { ?>
-															<form method="post" action="">
-																<input type="submit" class="button button-secondary" value="<?php _e( 'Install Now', 'bestwebsoft' ); ?>" />
-																<input type="hidden" name="bws_plugin_action_submit" value="submit" />
-																<input type="hidden" name="bws_install_plugin" value="<?php echo $value_plugin['pro_version']; ?>" />
+                                                            <form method="post" action="">
+                                                                <input type="submit" class="button button-secondary" value="<?php _e( 'Install Now', 'bestwebsoft' ); ?>" />
+                                                                <input type="hidden" name="bws_plugin_action_submit" value="submit" />
+                                                                <input type="hidden" name="bws_install_plugin" value="<?php echo $value_plugin['pro_version']; ?>" />
 																<?php wp_nonce_field( plugin_basename(__FILE__), 'bws_license_install_nonce_name' ); ?>
-															</form>
+                                                            </form>
 														<?php } else { ?>
-															<a class="button button-secondary bws_upgrade_button" href="<?php echo esc_url( $bws_plugins[ $key_plugin ]['purchase'] ); ?>" target="_blank"><?php _e( 'Upgrade to Pro', 'bestwebsoft' ); ?></a>
+                                                            <a class="button button-secondary bws_upgrade_button" href="<?php echo esc_url( $bws_plugins[ $key_plugin ]['purchase'] ); ?>" target="_blank"><?php _e( 'Upgrade to Pro', 'bestwebsoft' ); ?></a>
 														<?php }
 													}
 												} else { ?>
-													<a class="bws_donate" href="https://bestwebsoft.com/donate/" target="_blank"><?php _e( 'Donate', 'bestwebsoft' ); ?></a> <span>|</span>
+                                                    <a class="bws_donate" href="https://bestwebsoft.com/donate/" target="_blank"><?php _e( 'Donate', 'bestwebsoft' ); ?></a> <span>|</span>
 												<?php }
 
 												if ( $is_pro_active ) { ?>
-													<a class="bws_settings" href="<?php echo esc_url( self_admin_url( $bws_plugins[ $key_plugin ]["pro_settings"] ) ); ?>"><?php _e( 'Settings', 'bestwebsoft' ); ?></a>
+                                                    <a class="bws_settings" href="<?php echo esc_url( self_admin_url( $bws_plugins[ $key_plugin ]["pro_settings"] ) ); ?>"><?php _e( 'Settings', 'bestwebsoft' ); ?></a>
 												<?php } else { ?>
-													<a class="bws_settings" href="<?php echo esc_url( self_admin_url( $bws_plugins[ $key_plugin ]["settings"] ) ); ?>"><?php _e( 'Settings', 'bestwebsoft' ); ?></a>
+                                                    <a class="bws_settings" href="<?php echo esc_url( self_admin_url( $bws_plugins[ $key_plugin ]["settings"] ) ); ?>"><?php _e( 'Settings', 'bestwebsoft' ); ?></a>
 												<?php }
 											} else {
 												if ( $is_pro_installed ) { ?>
-													<a class="button button-secondary" href="<?php echo esc_url( wp_nonce_url( self_admin_url( $current_page . '&bws_activate_plugin=' . $value_plugin['pro_version'] ), 'bws_activate_plugin' . $value_plugin['pro_version'] ) ); ?>" title="<?php _e( 'Activate this plugin', 'bestwebsoft' ); ?>"><?php _e( 'Activate', 'bestwebsoft' ); ?></a>
+                                                    <a class="button button-secondary" href="<?php echo esc_url( wp_nonce_url( self_admin_url( $current_page . '&bws_activate_plugin=' . $value_plugin['pro_version'] ), 'bws_activate_plugin' . $value_plugin['pro_version'] ) ); ?>" title="<?php _e( 'Activate this plugin', 'bestwebsoft' ); ?>"><?php _e( 'Activate', 'bestwebsoft' ); ?></a>
 												<?php } elseif ( ! empty( $plugins_array ) && isset( $value_plugin['pro_version'] ) && array_key_exists( $value_plugin['pro_version'], $plugins_array ) ) { ?>
-													<form method="post" action="">
-														<input type="submit" class="button button-secondary" value="<?php _e( 'Install Now', 'bestwebsoft' ); ?>" />
-														<input type="hidden" name="bws_plugin_action_submit" value="submit" />
-														<input type="hidden" name="bws_install_plugin" value="<?php echo $value_plugin['pro_version']; ?>" />
+                                                    <form method="post" action="">
+                                                        <input type="submit" class="button button-secondary" value="<?php _e( 'Install Now', 'bestwebsoft' ); ?>" />
+                                                        <input type="hidden" name="bws_plugin_action_submit" value="submit" />
+                                                        <input type="hidden" name="bws_install_plugin" value="<?php echo $value_plugin['pro_version']; ?>" />
 														<?php wp_nonce_field( plugin_basename(__FILE__), 'bws_license_install_nonce_name' ); ?>
-													</form>
+                                                    </form>
 												<?php } elseif ( $is_installed ) { ?>
-													<a class="button button-secondary" href="<?php echo esc_url( wp_nonce_url( self_admin_url( $current_page . '&bws_activate_plugin=' . $key_plugin ), 'bws_activate_plugin' . $key_plugin ) ); ?>" title="<?php _e( 'Activate this plugin', 'bestwebsoft' ); ?>"><?php _e( 'Activate', 'bestwebsoft' ); ?></a>
+                                                    <a class="button button-secondary" href="<?php echo esc_url( wp_nonce_url( self_admin_url( $current_page . '&bws_activate_plugin=' . $key_plugin ), 'bws_activate_plugin' . $key_plugin ) ); ?>" title="<?php _e( 'Activate this plugin', 'bestwebsoft' ); ?>"><?php _e( 'Activate', 'bestwebsoft' ); ?></a>
 												<?php } else {
 													$install_url = isset( $value_plugin['install_url'] ) ? $value_plugin['install_url'] : self_admin_url( 'plugin-install.php?tab=search&type=term&s=' . str_replace( ' ', '+', str_replace( '-', '', $value_plugin['name'] ) ) . '+BestWebSoft&plugin-search-input=Search+Plugins' ); ?>
-													<a class="button button-secondary" href="<?php echo esc_url( $install_url ); ?>" title="<?php _e( 'Install this plugin', 'bestwebsoft' ); ?>" target="_blank"><?php _e( 'Install Now', 'bestwebsoft' ); ?></a>
+                                                    <a class="button button-secondary" href="<?php echo esc_url( $install_url ); ?>" title="<?php _e( 'Install this plugin', 'bestwebsoft' ); ?>" target="_blank"><?php _e( 'Install Now', 'bestwebsoft' ); ?></a>
 												<?php }
 											} ?>
-										</div>
-									</div>
-									<div class="clear"></div>
-								</div>
+                                        </div>
+                                    </div>
+                                    <div class="clear"></div>
+                                </div>
 							<?php }
 							if ( $nothing_found ) { ?>
-								<p class="description"><?php _e( 'Nothing found. Try another criteria.', 'bestwebsoft' ); ?></p>
+                                <p class="description"><?php _e( 'Nothing found. Try another criteria.', 'bestwebsoft' ); ?></p>
 							<?php } ?>
-						</div>
-						<div id="bws-filter-wrapper">
-							<div class="bws-filter">
-								<div class="bws-filter-title"><?php _e( 'Category', 'bestwebsoft' ); ?></div>
-								<ul class="bws-category">
-									<li>
+                        </div>
+                        <div id="bws-filter-wrapper">
+                            <div class="bws-filter">
+                                <div class="bws-filter-title"><?php _e( 'Category', 'bestwebsoft' ); ?></div>
+                                <ul class="bws-category">
+                                    <li>
 										<?php $sub_in_url = ( isset( $_GET['sub'] ) && in_array( $_GET['sub'], array( 'installed', 'not_installed' ) ) ) ? '&sub=' . $_GET['sub'] : ''; ?>
-										<a <?php if ( 'all' == $plugin_category ) echo ' class="bws-active"'; ?> href="<?php echo esc_url( self_admin_url( $current_page . $sub_in_url ) ); ?>"><?php _e( 'All', 'bestwebsoft' ); ?>
-											<span>(<?php echo count( $bws_plugins ); ?>)</span>
-										</a>
-									</li>
+                                        <a <?php if ( 'all' == $plugin_category ) echo ' class="bws-active"'; ?> href="<?php echo esc_url( self_admin_url( $current_page . $sub_in_url ) ); ?>"><?php _e( 'All', 'bestwebsoft' ); ?>
+                                            <span>(<?php echo count( $bws_plugins ); ?>)</span>
+                                        </a>
+                                    </li>
 									<?php foreach ( $bws_plugins_category as $category_key => $category_value ) { ?>
-										<li>
-											<a <?php if ( $category_key == $plugin_category ) echo ' class="bws-active"'; ?> href="<?php echo esc_url( self_admin_url( $current_page . $sub_in_url . '&category=' . $category_key ) ); ?>"><?php echo $category_value['name']; ?>
-												<span>(<?php echo $category_value['count']; ?>)</span>
-											</a>
-										</li>
+                                        <li>
+                                            <a <?php if ( $category_key == $plugin_category ) echo ' class="bws-active"'; ?> href="<?php echo esc_url( self_admin_url( $current_page . $sub_in_url . '&category=' . $category_key ) ); ?>"><?php echo $category_value['name']; ?>
+                                                <span>(<?php echo $category_value['count']; ?>)</span>
+                                            </a>
+                                        </li>
 									<?php } ?>
-								</ul>
-							</div>
-						</div><!-- #bws-filter-wrapper -->
-						<div class="clear"></div>
+                                </ul>
+                            </div>
+                        </div><!-- #bws-filter-wrapper -->
+                        <div class="clear"></div>
 					<?php }
 				} elseif ( 'bws_themes' == $page || 'themes' == $tab ) {
 					require( dirname( __FILE__ ) . '/product_list.php' ); ?>
-					<h1><?php _e( 'Themes', 'bestwebsoft' ); ?></h1>
-					<div id="availablethemes" class="bws-availablethemes">
-						<div class="theme-browser content-filterable rendered">
-							<div class="themes wp-clearfix">
+                    <h1><?php _e( 'Themes', 'bestwebsoft' ); ?></h1>
+                    <div id="availablethemes" class="bws-availablethemes">
+                        <div class="theme-browser content-filterable rendered">
+                            <div class="themes wp-clearfix">
 								<?php foreach ( $themes as $key => $theme ) {
 									$installed_theme = wp_get_theme( $theme->slug ); ?>
-									<div class="theme" tabindex="0">
-										<div class="theme-screenshot">
-											<img src="<?php echo bws_menu_url( "icons/themes/" ) . $theme->slug . '.png'; ?>" alt="" />
-										</div>
-										<div class="theme-author"><?php printf( __( 'By %s', 'bestwebsoft' ), 'BestWebSoft' ); ?></div>
-										<h3 class="theme-name"><?php echo $theme->name; ?></h3>
-										<div class="theme-actions">
-											<a class="button button-secondary preview install-theme-preview" href="<?php echo esc_url( $theme->href ); ?>" target="_blank"><?php _e( 'Learn More', 'bestwebsoft' ); ?></a>
-										</div>
+                                    <div class="theme" tabindex="0">
+                                        <div class="theme-screenshot">
+                                            <img src="<?php echo bws_menu_url( "icons/themes/" ) . $theme->slug . '.png'; ?>" alt="" />
+                                        </div>
+                                        <div class="theme-author"><?php printf( __( 'By %s', 'bestwebsoft' ), 'BestWebSoft' ); ?></div>
+                                        <h3 class="theme-name"><?php echo $theme->name; ?></h3>
+                                        <div class="theme-actions">
+                                            <a class="button button-secondary preview install-theme-preview" href="<?php echo esc_url( $theme->href ); ?>" target="_blank"><?php _e( 'Learn More', 'bestwebsoft' ); ?></a>
+                                        </div>
 										<?php if ( $installed_theme->exists() ) {
 											if ( $wp_version < '4.6' ) { ?>
-												<div class="theme-installed"><?php _e( 'Already Installed', 'bestwebsoft' ); ?></div>
+                                                <div class="theme-installed"><?php _e( 'Already Installed', 'bestwebsoft' ); ?></div>
 											<?php } else { ?>
-												<div class="notice notice-success notice-alt inline"><p><?php _e( 'Installed', 'bestwebsoft' ); ?></p></div>
+                                                <div class="notice notice-success notice-alt inline"><p><?php _e( 'Installed', 'bestwebsoft' ); ?></p></div>
 											<?php }
 										} ?>
-									</div>
+                                    </div>
 								<?php } ?>
-								<br class="clear" />
-							</div>
-						</div>
-						<p><a class="bws_browse_link" href="https://bestwebsoft.com/products/wordpress/themes/" target="_blank"><?php _e( 'Browse More WordPress Themes', 'bestwebsoft' ); ?> <span class="dashicons dashicons-arrow-right-alt2"></span></a></p>
-					</div>
+                                <br class="clear" />
+                            </div>
+                        </div>
+                        <p><a class="bws_browse_link" href="https://bestwebsoft.com/products/wordpress/themes/" target="_blank"><?php _e( 'Browse More WordPress Themes', 'bestwebsoft' ); ?> <span class="dashicons dashicons-arrow-right-alt2"></span></a></p>
+                    </div>
 				<?php } elseif ( 'bws_system_status' == $page || 'system-status' == $tab ) { ?>
-					<h1><?php _e( 'System status', 'bestwebsoft' ); ?></h1>
-					<div class="updated fade notice is-dismissible inline" <?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>
-					<div class="error" <?php if ( "" == $error ) echo 'style="display:none"'; ?>><p><strong><?php echo $error; ?></strong></p></div>
-					<form method="post" action="">
-						<p>
-							<input type="hidden" name="bwsmn_form_submit" value="submit" />
-							<input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" />
+                    <h1><?php _e( 'System status', 'bestwebsoft' ); ?></h1>
+                    <div class="updated fade notice is-dismissible inline" <?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>
+                    <div class="error" <?php if ( "" == $error ) echo 'style="display:none"'; ?>><p><strong><?php echo $error; ?></strong></p></div>
+                    <form method="post" action="">
+                        <p>
+                            <input type="hidden" name="bwsmn_form_submit" value="submit" />
+                            <input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" />
 							<?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ); ?>
-						</p>
-					</form>
-					<form method="post" action="">
-						<p>
-							<input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" />
-							<input type="submit" class="button" value="<?php _e( 'Send to custom email &#187;', 'bestwebsoft' ) ?>" />
-							<input type="text" maxlength="250" value="" name="bwsmn_form_email" />
+                        </p>
+                    </form>
+                    <form method="post" action="">
+                        <p>
+                            <input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" />
+                            <input type="submit" class="button" value="<?php _e( 'Send to custom email &#187;', 'bestwebsoft' ) ?>" />
+                            <input type="text" maxlength="250" value="" name="bwsmn_form_email" />
 							<?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ); ?>
-						</p>
-					</form>
+                        </p>
+                    </form>
 					<?php foreach ( $system_info as $info ) { ?>
-						<table class="widefat bws-system-info" cellspacing="0">
-							<thead>
-								<tr>
-									<th colspan="2">
-										<strong>
-											<?php echo $info['name'];
-											if ( isset( $info['count'] ) )
-												echo ' (' . $info['count'] . ')'; ?>
-										</strong>
-									</th>
-								</tr>
-							</thead>
-							<tbody>
-								<?php foreach ( $info['data'] as $key => $value ) { ?>
-									<tr>
-										<td scope="row"><?php echo $key; ?></td>
-										<td scope="row"><?php echo $value; ?></td>
-									</tr>
-								<?php } ?>
-							</tbody>
-						</table>
+                        <table class="widefat bws-system-info" cellspacing="0">
+                            <thead>
+                            <tr>
+                                <th colspan="2">
+                                    <strong>
+										<?php echo $info['name'];
+										if ( isset( $info['count'] ) )
+											echo ' (' . $info['count'] . ')'; ?>
+                                    </strong>
+                                </th>
+                            </tr>
+                            </thead>
+                            <tbody>
+							<?php foreach ( $info['data'] as $key => $value ) { ?>
+                                <tr>
+                                    <td scope="row"><?php echo $key; ?></td>
+                                    <td scope="row"><?php echo $value; ?></td>
+                                </tr>
+							<?php } ?>
+                            </tbody>
+                        </table>
 					<?php }
 				} ?>
-			</div>
-		</div>
+            </div>
+        </div>
 	<?php }
 }
 
@@ -729,9 +729,14 @@
 			array( 'gglstmp_hide_banner_on_plugin_page', 'google-sitemap-plugin/google-sitemap-plugin.php', '2.8.4' ),
 			array( 'cntctfrmpr_for_ctfrmtdb_hide_banner_on_plugin_page', 'contact-form-pro/contact_form_pro.php', '1.14' ),
 			array( 'cntctfrm_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.47' ),
-			array( 'cptch_hide_banner_on_plugin_page', 'captcha/captcha.php', '3.8.4' ),
+			array( 'cptch_hide_banner_on_plugin_page', 'captcha-bws/captcha-bws.php', '3.8.4' ),
 			array( 'gllr_hide_banner_on_plugin_page', 'gallery-plugin/gallery-plugin.php', '3.9.1' ),
-			array( 'cntctfrm_for_ctfrmtdb_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.62' )
+			array( 'cntctfrm_for_ctfrmtdb_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.62' ),
+            array( 'bwscrrntl_hide_banner_on_plugin_page', 'bws-car-rental/bws-car-rental.php', '0.0.1' ),
+			array( 'rtng_hide_banner_on_plugin_page', 'rating-bws/rating-bws.php', '1.0.0' ),
+			array( 'prflxtrflds_hide_banner_on_plugin_page', 'profile-extra-fields/profile-extra-fields.php', '1.1.3' ),
+			array( 'psttcsv_hide_banner_on_plugin_page', 'post-to-csv/post-to-csv.php', '1.3.4' ),
+			array( 'cstmdmnpg_hide_banner_on_plugin_page', 'custom-admin-page/custom-admin-page.php', '1.0.0' )
 		);
 	}
 }
\ No newline at end of file