wp/wp-content/plugins/portfolio/bws_menu/bws_menu.php
changeset 16 a86126ab1dd4
parent 12 d8a8807227e4
child 19 3d72ae0968f4
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
     1 <?php
     1 <?php
     2 /*
     2 /*
     3 * Function for displaying BestWebSoft menu
     3 * Function for displaying BestWebSoft menu
     4 * Version: 2.2.0
     4 * Version: 2.3.4
     5 */
     5 */
     6 
     6 
     7 if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) )
     7 if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) )
     8 	require_once( dirname( __FILE__ ) . '/bws_functions.php' );
     8 	require_once( dirname( __FILE__ ) . '/bws_functions.php' );
     9 
     9 
    10 if ( ! function_exists( 'bws_add_menu_render' ) ) {
    10 if ( ! function_exists( 'bws_add_menu_render' ) ) {
    11 	function bws_add_menu_render() {
    11 	function bws_add_menu_render() {
    12 		global $wpdb, $wp_version, $bws_plugin_info, $bstwbsftwppdtplgns_options;
    12 		global $wpdb, $wp_version, $bstwbsftwppdtplgns_options;
    13 		$error = $message = '';
    13 		$error = $message = '';
    14 
    14 
    15 		/**
    15 		/**
    16 		 * @deprecated 1.9.8 (15.12.2016)
    16 		 * @deprecated 1.9.8 (15.12.2016)
    17 		 */
    17 		 */
    18 		$is_main_page = in_array( $_GET['page'], array( 'bws_panel', 'bws_themes', 'bws_system_status' ) );
    18 		$is_main_page = in_array( $_GET['page'], array( 'bws_panel', 'bws_themes', 'bws_system_status' ) );
    19 		$page = esc_attr( $_GET['page'] );
    19 		$page = wp_unslash( $_GET['page'] );
    20 		$tab = isset( $_GET['tab'] ) ? esc_attr( $_GET['tab'] ) : '';
    20 		$tab = isset( $_GET['tab'] ) ? wp_unslash( $_GET['tab'] ) : '';
    21 
    21 
    22 		if ( $is_main_page )
    22 		if ( $is_main_page )
    23 			$current_page = 'admin.php?page=' . $page;
    23 			$current_page = 'admin.php?page=' . $page;
    24 		else
    24 		else
    25 			$current_page = isset( $_GET['tab'] ) ? 'admin.php?page=' . $page . '&tab=' . $tab : 'admin.php?page=' . $page;
    25 			$current_page = isset( $_GET['tab'] ) ? 'admin.php?page=' . $page . '&tab=' . $tab : 'admin.php?page=' . $page;
   114 						$to_send["plugins"][ $bws_license_plugin ]["bws_license_key"] = $bws_license_key;
   114 						$to_send["plugins"][ $bws_license_plugin ]["bws_license_key"] = $bws_license_key;
   115 						$options = array(
   115 						$options = array(
   116 							'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3 ),
   116 							'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3 ),
   117 							'body' => array( 'plugins' => serialize( $to_send ) ),
   117 							'body' => array( 'plugins' => serialize( $to_send ) ),
   118 							'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) );
   118 							'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) );
   119 						$raw_response = wp_remote_post( 'http://bestwebsoft.com/wp-content/plugins/paid-products/plugins/update-check/1.0/', $options );
   119 						$raw_response = wp_remote_post( 'https://bestwebsoft.com/wp-content/plugins/paid-products/plugins/pro-license-check/1.0/', $options );
   120 
   120 
   121 						if ( is_wp_error( $raw_response ) || 200 != wp_remote_retrieve_response_code( $raw_response ) ) {
   121 						if ( is_wp_error( $raw_response ) || 200 != wp_remote_retrieve_response_code( $raw_response ) ) {
   122 							$error = __( "Something went wrong. Please try again later. If the error appears again, please contact us", 'bestwebsoft' ) . ' <a href="https://support.bestwebsoft.com">BestWebSoft</a>. ' . __( "We are sorry for inconvenience.", 'bestwebsoft' );
   122 							$error = __( "Something went wrong. Please try again later. If the error appears again, please contact us", 'bestwebsoft' ) . ' <a href="https://support.bestwebsoft.com">BestWebSoft</a>. ' . __( "We are sorry for inconvenience.", 'bestwebsoft' );
   123 						} else {
   123 						} else {
   124 							$response = maybe_unserialize( wp_remote_retrieve_body( $raw_response ) );
   124 							$response = maybe_unserialize( wp_remote_retrieve_body( $raw_response ) );
       
   125 
   125 							if ( is_array( $response ) && !empty( $response ) ) {
   126 							if ( is_array( $response ) && !empty( $response ) ) {
   126 								foreach ( $response as $key => $value ) {
   127 								foreach ( $response as $key => $value ) {
   127 									if ( "wrong_license_key" == $value->package ) {
   128 									if ( "wrong_license_key" == $value->package ) {
   128 										$error = __( "Wrong license key.", 'bestwebsoft' );
   129 										$error = __( "Wrong license key.", 'bestwebsoft' );
   129 									} elseif ( "wrong_domain" == $value->package ) {
   130 									} elseif ( "wrong_domain" == $value->package ) {
   177 			$upload_max_filesize = ( ini_get( 'upload_max_filesize' ) )? ini_get( 'upload_max_filesize' ) : __( 'N/A', 'bestwebsoft' );
   178 			$upload_max_filesize = ( ini_get( 'upload_max_filesize' ) )? ini_get( 'upload_max_filesize' ) : __( 'N/A', 'bestwebsoft' );
   178 			$post_max_size = ( ini_get( 'post_max_size' ) ) ? ini_get( 'post_max_size' ) : __( 'N/A', 'bestwebsoft' );
   179 			$post_max_size = ( ini_get( 'post_max_size' ) ) ? ini_get( 'post_max_size' ) : __( 'N/A', 'bestwebsoft' );
   179 			$max_execution_time = ( ini_get( 'max_execution_time' ) ) ? ini_get( 'max_execution_time' ) : __( 'N/A', 'bestwebsoft' );
   180 			$max_execution_time = ( ini_get( 'max_execution_time' ) ) ? ini_get( 'max_execution_time' ) : __( 'N/A', 'bestwebsoft' );
   180 			$memory_limit = ( ini_get( 'memory_limit' ) ) ? ini_get( 'memory_limit' ) : __( 'N/A', 'bestwebsoft' );
   181 			$memory_limit = ( ini_get( 'memory_limit' ) ) ? ini_get( 'memory_limit' ) : __( 'N/A', 'bestwebsoft' );
   181 			$wp_memory_limit = ( defined( 'WP_MEMORY_LIMIT' ) ) ? WP_MEMORY_LIMIT : __( 'N/A', 'bestwebsoft' );
   182 			$wp_memory_limit = ( defined( 'WP_MEMORY_LIMIT' ) ) ? WP_MEMORY_LIMIT : __( 'N/A', 'bestwebsoft' );
   182 			$memory_usage = ( function_exists( 'memory_get_usage' ) ) ? round( memory_get_usage() / 1024 / 1024, 2 ) . __( ' Mb', 'bestwebsoft' ) : __( 'N/A', 'bestwebsoft' );
   183 			$memory_usage = ( function_exists( 'memory_get_usage' ) ) ? round( memory_get_usage() / 1024 / 1024, 2 ) . ' ' . __( 'Mb', 'bestwebsoft' ) : __( 'N/A', 'bestwebsoft' );
   183 			$exif_read_data = ( is_callable( 'exif_read_data' ) ) ? __( 'Yes', 'bestwebsoft' ) . " ( V" . substr( phpversion( 'exif' ), 0,4 ) . ")" : __( 'No', 'bestwebsoft' );
   184 			$exif_read_data = ( is_callable( 'exif_read_data' ) ) ? __( 'Yes', 'bestwebsoft' ) . " ( V" . substr( phpversion( 'exif' ), 0,4 ) . ")" : __( 'No', 'bestwebsoft' );
   184 			$iptcparse = ( is_callable( 'iptcparse' ) ) ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
   185 			$iptcparse = ( is_callable( 'iptcparse' ) ) ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
   185 			$xml_parser_create = ( is_callable( 'xml_parser_create' ) ) ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
   186 			$xml_parser_create = ( is_callable( 'xml_parser_create' ) ) ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
   186 			$theme = ( function_exists( 'wp_get_theme' ) ) ? wp_get_theme() : get_theme( get_current_theme() );
   187 			$theme = ( function_exists( 'wp_get_theme' ) ) ? wp_get_theme() : get_theme( get_current_theme() );
   187 
   188 
   370 
   371 
   371 					if ( isset( $_POST['bws_plugin_action_submit'] ) && isset( $_POST['bws_install_plugin'] ) && check_admin_referer( plugin_basename(__FILE__), 'bws_license_install_nonce_name' ) ) {
   372 					if ( isset( $_POST['bws_plugin_action_submit'] ) && isset( $_POST['bws_install_plugin'] ) && check_admin_referer( plugin_basename(__FILE__), 'bws_license_install_nonce_name' ) ) {
   372 
   373 
   373 						$bws_license_plugin = sanitize_text_field( $_POST['bws_install_plugin'] );
   374 						$bws_license_plugin = sanitize_text_field( $_POST['bws_install_plugin'] );
   374 
   375 
   375 						echo '<h2>' . __( 'Installing Plugin', 'bestwebsoft' ) . ': ' . $plugins_array[ $bws_license_plugin ]['name'] . '</h2>';
       
   376 
       
   377 						$bstwbsftwppdtplgns_options[ $bws_license_plugin ] = $bws_license_key;
   376 						$bstwbsftwppdtplgns_options[ $bws_license_plugin ] = $bws_license_key;
   378 
   377 						if ( is_multisite() )
   379 						$url = $plugins_array[ $bws_license_plugin ]['link'] . '&download_from=5';
   378 							update_site_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
   380 
   379 						else
   381 						echo '<p>' . __( "Downloading install package from", 'bestwebsoft' ) . ' ' . $url . '</p>';
   380 							update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
   382 
   381 
   383 						$uploadDir = wp_upload_dir();
   382 						$url = $plugins_array[ $bws_license_plugin ]['link'] . '&download_from=5'; ?>
   384 						$zip_name = explode( '/', $bws_license_plugin );
   383 						<h2><?php _e( 'Download Pro Plugin', 'bestwebsoft' ); ?></h2>		
   385 
   384 						<p>
   386 						if ( !function_exists( 'curl_init' ) ) {
   385 							<strong><?php _e( 'Your Pro plugin is ready', 'bestwebsoft' ); ?></strong>
   387 							$received_content = file_get_contents( $url );
   386 							<br>
   388 						} else {
   387 							<?php _e( 'Your plugin has been zipped, and now is ready to download.', 'bestwebsoft' ); ?>
   389 							$ch = curl_init();
   388 						</p>
   390 							curl_setopt( $ch, CURLOPT_URL, $url );
   389 						<p>
   391 							curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
   390 							<a class="button button-secondary" target="_parent" href="<?php echo esc_url( $url ); ?>"><?php _e( 'Download Now', 'bestwebsoft' ); ?></a>
   392 							curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
   391 						</p>
   393 							$received_content = curl_exec( $ch );
   392 						<br>
   394 							curl_close( $ch );
   393 						<p>
   395 						}
   394 							<strong><?php _e( 'Need help installing the plugin?', 'bestwebsoft' ); ?></strong>
   396 
   395 							<br>
   397 						if ( ! $received_content ) {
   396 							<a target="_blank" href="https://docs.google.com/document/d/1-hvn6WRvWnOqj5v5pLUk7Awyu87lq5B_dO-Tv-MC9JQ/"><?php _e( 'How to install WordPress plugin from your admin Dashboard (ZIP archive)', 'bestwebsoft' ); ?></a>
   398 							$error = __( "Failed to download the zip archive. Please, upload the plugin manually", 'bestwebsoft' );
   397 						</p>						
   399 						} else {
   398 						<p>
   400 							if ( is_writable( $uploadDir["path"] ) ) {
   399 							<strong><?php _e( 'Get Started', 'bestwebsoft' ); ?></strong>
   401 								$file_put_contents = $uploadDir["path"] . "/" . $zip_name[0] . ".zip";
   400 							<br>
   402 
   401 							<a target="_blank" href="https://drive.google.com/drive/u/0/folders/0B5l8lO-CaKt9VGh0a09vUjNFNjA"><?php _e( 'Documentation', 'bestwebsoft' ); ?></a>
   403 								if ( file_put_contents( $file_put_contents, $received_content ) ) {
   402 							<br>
   404 									@chmod( $file_put_contents, octdec( 755 ) );
   403 							<a target="_blank" href="https://www.youtube.com/user/bestwebsoft"><?php _e( 'Video Instructions', 'bestwebsoft' ); ?></a>
   405 
   404 							<br>
   406 									echo '<p>' . __( 'Unpacking the package', 'bestwebsoft' ) . '...</p>';
   405 							<a target="_blank" href="https://support.bestwebsoft.com"><?php _e( 'Knowledge Base', 'bestwebsoft' ); ?></a>
   407 
   406 						</p>
   408 									if ( class_exists( 'ZipArchive' ) ) {
   407 						<p>
   409 										$zip = new ZipArchive();
   408 							<strong><?php _e( 'Licenses & Domains', 'bestwebsoft' ); ?></strong>
   410 										if ( $zip->open( $file_put_contents ) === TRUE ) {
   409 							<br>
   411 											echo '<p>' . __( 'Installing the plugin', 'bestwebsoft' ) . '...</p>';
   410 							<?php printf( 'Manage your license(-s) and change domain names using the %s at BestWebSoft.',
   412 											$zip->extractTo( WP_PLUGIN_DIR );
   411 							'<a target="_blank" href="https://bestwebsoft.com/client-area">' . __( 'Client Area', 'bestwebsoft' ) . '</a>' ); ?>
   413 											$zip->close();
   412 						</p>
   414 										} else {
   413 						<p><a href="<?php echo esc_url( self_admin_url( $current_page ) ); ?>" target="_parent"><?php _e( 'Return to BestWebSoft Panel', 'bestwebsoft' ); ?></a></p>
   415 											$error = __( "Failed to open the zip archive. Please, upload the plugin manually", 'bestwebsoft' );
   414 					<?php } else {
   416 										}
       
   417 									} elseif ( class_exists( 'Phar' ) ) {
       
   418 										$phar = new PharData( $file_put_contents );
       
   419 										echo '<p>' . __( 'Installing the plugin', 'bestwebsoft' ) . '...</p>';
       
   420 										$phar->extractTo( WP_PLUGIN_DIR );
       
   421 									} else {
       
   422 										$error = __( "Your server does not support either ZipArchive or Phar. Please, upload the plugin manually", 'bestwebsoft' );
       
   423 									}
       
   424 									if ( empty( $error ) )
       
   425 										echo '<p>' . sprintf( __( 'The plugin %s is successfully installed.', 'bestwebsoft' ), '<strong>' . $plugins_array[ $bws_license_plugin ]['name'] . '</strong>' ) . '</p>';
       
   426 
       
   427 									@unlink( $file_put_contents );
       
   428 								} else {
       
   429 									$error = __( "Failed to download the zip archive. Please, upload the plugin manually", 'bestwebsoft' );
       
   430 								}
       
   431 							} else {
       
   432 								$error = __( "UploadDir is not writable. Please, upload the plugin manually", 'bestwebsoft' );
       
   433 							}
       
   434 						}
       
   435 
       
   436 						if ( file_exists( WP_PLUGIN_DIR . '/' . $zip_name[0] ) ) {
       
   437 							echo '<p><a href="' . esc_url( wp_nonce_url( self_admin_url( $current_page . '&bws_activate_plugin=' . $bws_license_plugin ), 'bws_activate_plugin' . $bws_license_plugin ) ) . '" target="_parent">' . __( 'Activate Plugin', 'bestwebsoft' ) . '</a> | <a href="' . esc_url( self_admin_url( $current_page ) ) . '" target="_parent">' . __( 'Return to BestWebSoft Panel', 'bestwebsoft' ) . '</a></p>';
       
   438 						} else {
       
   439 							if ( empty( $error ) )
       
   440 								$error = __( "Failed to download the zip archive. Please, upload the plugin manually", 'bestwebsoft' );
       
   441 
       
   442 							echo '<p class="error">' . $error . '</p>';
       
   443 							echo '<p><a href="' . esc_url( self_admin_url( $current_page ) ) . '" target="_parent">' . __( 'Return to BestWebSoft Panel', 'bestwebsoft' ) . '</a></p>';
       
   444 						}
       
   445 					} else {
       
   446 						$category_href = $current_page;
   415 						$category_href = $current_page;
   447 						if ( 'all' != $plugin_category )
   416 						if ( 'all' != $plugin_category )
   448 							$category_href .= '&category=' . $plugin_category; ?>
   417 							$category_href .= '&category=' . $plugin_category; ?>
   449                         <ul class="subsubsub">
   418                         <ul class="subsubsub">
   450                             <li>
   419                             <li>
   489 								if ( 'all' != $plugin_category && isset( $bws_plugins_category[ $plugin_category ] ) && ! in_array( $plugin_category, $value_plugin['category'] ) )
   458 								if ( 'all' != $plugin_category && isset( $bws_plugins_category[ $plugin_category ] ) && ! in_array( $plugin_category, $value_plugin['category'] ) )
   490 									continue;
   459 									continue;
   491 
   460 
   492 								$key_plugin_explode = explode( '/', $key_plugin );
   461 								$key_plugin_explode = explode( '/', $key_plugin );
   493 
   462 
   494 								$icon = isset( $value_plugin['icon'] ) ? $value_plugin['icon'] : '//ps.w.org/' . $key_plugin_explode[0] . '/assets/icon-128x128.png';
   463 								$icon = isset( $value_plugin['icon'] ) ? $value_plugin['icon'] : '//ps.w.org/' . $key_plugin_explode[0] . '/assets/icon-256x256.png';
   495 								$is_pro_isset = isset( $value_plugin['pro_version'] );
   464 								$is_pro_isset = isset( $value_plugin['pro_version'] );
   496 								$is_installed = array_key_exists( $key_plugin, $all_plugins );
   465 								$is_installed = array_key_exists( $key_plugin, $all_plugins );
   497 								$is_active = in_array( $key_plugin, $active_plugins ) || isset( $sitewide_active_plugins[ $key_plugin ] );
   466 								$is_active = in_array( $key_plugin, $active_plugins ) || isset( $sitewide_active_plugins[ $key_plugin ] );
   498 
   467 
   499 								$is_pro_installed = $is_pro_active = false;
   468 								$is_pro_installed = $is_pro_active = false;
   545 											<?php if ( $is_active || $is_pro_active ) {
   514 											<?php if ( $is_active || $is_pro_active ) {
   546 												if ( $is_pro_isset ) {
   515 												if ( $is_pro_isset ) {
   547 													if ( ! $is_pro_installed ) {
   516 													if ( ! $is_pro_installed ) {
   548 														if ( ! empty( $plugins_array ) && array_key_exists( $value_plugin['pro_version'], $plugins_array ) ) { ?>
   517 														if ( ! empty( $plugins_array ) && array_key_exists( $value_plugin['pro_version'], $plugins_array ) ) { ?>
   549                                                             <form method="post" action="">
   518                                                             <form method="post" action="">
   550                                                                 <input type="submit" class="button button-secondary" value="<?php _e( 'Install Now', 'bestwebsoft' ); ?>" />
   519                                                                 <input type="submit" class="button button-secondary" value="<?php _e( 'Get Pro', 'bestwebsoft' ); ?>" />
   551                                                                 <input type="hidden" name="bws_plugin_action_submit" value="submit" />
   520                                                                 <input type="hidden" name="bws_plugin_action_submit" value="submit" />
   552                                                                 <input type="hidden" name="bws_install_plugin" value="<?php echo $value_plugin['pro_version']; ?>" />
   521                                                                 <input type="hidden" name="bws_install_plugin" value="<?php echo $value_plugin['pro_version']; ?>" />
   553 																<?php wp_nonce_field( plugin_basename(__FILE__), 'bws_license_install_nonce_name' ); ?>
   522 																<?php wp_nonce_field( plugin_basename(__FILE__), 'bws_license_install_nonce_name' ); ?>
   554                                                             </form>
   523                                                             </form>
   555 														<?php } else { ?>
   524 														<?php } else { ?>
   568 											} else {
   537 											} else {
   569 												if ( $is_pro_installed ) { ?>
   538 												if ( $is_pro_installed ) { ?>
   570                                                     <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>
   539                                                     <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>
   571 												<?php } elseif ( ! empty( $plugins_array ) && isset( $value_plugin['pro_version'] ) && array_key_exists( $value_plugin['pro_version'], $plugins_array ) ) { ?>
   540 												<?php } elseif ( ! empty( $plugins_array ) && isset( $value_plugin['pro_version'] ) && array_key_exists( $value_plugin['pro_version'], $plugins_array ) ) { ?>
   572                                                     <form method="post" action="">
   541                                                     <form method="post" action="">
   573                                                         <input type="submit" class="button button-secondary" value="<?php _e( 'Install Now', 'bestwebsoft' ); ?>" />
   542                                                         <input type="submit" class="button button-secondary" value="<?php _e( 'Get Pro', 'bestwebsoft' ); ?>" />
   574                                                         <input type="hidden" name="bws_plugin_action_submit" value="submit" />
   543                                                         <input type="hidden" name="bws_plugin_action_submit" value="submit" />
   575                                                         <input type="hidden" name="bws_install_plugin" value="<?php echo $value_plugin['pro_version']; ?>" />
   544                                                         <input type="hidden" name="bws_install_plugin" value="<?php echo $value_plugin['pro_version']; ?>" />
   576 														<?php wp_nonce_field( plugin_basename(__FILE__), 'bws_license_install_nonce_name' ); ?>
   545 														<?php wp_nonce_field( plugin_basename(__FILE__), 'bws_license_install_nonce_name' ); ?>
   577                                                     </form>
   546                                                     </form>
   578 												<?php } elseif ( $is_installed ) { ?>
   547 												<?php } elseif ( $is_installed ) { ?>
   579                                                     <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>
   548                                                     <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>
   580 												<?php } else {
   549 												<?php } else {
   581 													$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' ); ?>
   550 													$install_url = isset( $value_plugin['install_url'] ) ? $value_plugin['install_url'] : network_admin_url( 'plugin-install.php?tab=search&type=term&s=' . str_replace( array( ' ', '-' ), '+', str_replace( '&', '', $value_plugin['name'] ) ) . '+BestWebSoft&plugin-search-input=Search+Plugins' ); ?>
   582                                                     <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>
   551                                                     <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>
   583 												<?php }
   552 												<?php }
   584 											} ?>
   553 											} ?>
   585                                         </div>
   554                                         </div>
   586                                     </div>
   555                                     </div>
   723 			array( 'cntctfrmmlt_hide_banner_on_plugin_page', 'contact-form-multi/contact-form-multi.php', '1.0.7' ),
   692 			array( 'cntctfrmmlt_hide_banner_on_plugin_page', 'contact-form-multi/contact-form-multi.php', '1.0.7' ),
   724 			array( 'gglmps_hide_banner_on_plugin_page', 'bws-google-maps/bws-google-maps.php', '1.2' ),
   693 			array( 'gglmps_hide_banner_on_plugin_page', 'bws-google-maps/bws-google-maps.php', '1.2' ),
   725 			array( 'fcbkbttn_hide_banner_on_plugin_page', 'facebook-button-plugin/facebook-button-plugin.php', '2.29' ),
   694 			array( 'fcbkbttn_hide_banner_on_plugin_page', 'facebook-button-plugin/facebook-button-plugin.php', '2.29' ),
   726 			array( 'twttr_hide_banner_on_plugin_page', 'twitter-plugin/twitter.php', '2.34' ),
   695 			array( 'twttr_hide_banner_on_plugin_page', 'twitter-plugin/twitter.php', '2.34' ),
   727 			array( 'pdfprnt_hide_banner_on_plugin_page', 'pdf-print/pdf-print.php', '1.7.1' ),
   696 			array( 'pdfprnt_hide_banner_on_plugin_page', 'pdf-print/pdf-print.php', '1.7.1' ),
   728 			array( 'gglplsn_hide_banner_on_plugin_page', 'google-one/google-plus-one.php', '1.1.4' ),
       
   729 			array( 'gglstmp_hide_banner_on_plugin_page', 'google-sitemap-plugin/google-sitemap-plugin.php', '2.8.4' ),
   697 			array( 'gglstmp_hide_banner_on_plugin_page', 'google-sitemap-plugin/google-sitemap-plugin.php', '2.8.4' ),
   730 			array( 'cntctfrmpr_for_ctfrmtdb_hide_banner_on_plugin_page', 'contact-form-pro/contact_form_pro.php', '1.14' ),
   698 			array( 'cntctfrmpr_for_ctfrmtdb_hide_banner_on_plugin_page', 'contact-form-pro/contact_form_pro.php', '1.14' ),
   731 			array( 'cntctfrm_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.47' ),
   699 			array( 'cntctfrm_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.47' ),
   732 			array( 'cptch_hide_banner_on_plugin_page', 'captcha-bws/captcha-bws.php', '3.8.4' ),
   700 			array( 'cptch_hide_banner_on_plugin_page', 'captcha-bws/captcha-bws.php', '3.8.4' ),
   733 			array( 'gllr_hide_banner_on_plugin_page', 'gallery-plugin/gallery-plugin.php', '3.9.1' ),
   701 			array( 'gllr_hide_banner_on_plugin_page', 'gallery-plugin/gallery-plugin.php', '3.9.1' ),