Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/portfoli.../bws_menu
File: bws_menu.php
<p>
[500] Fix | Delete
<strong><?php esc_html_e( 'Your Pro plugin is ready', 'bestwebsoft' ); ?></strong>
[501] Fix | Delete
<br>
[502] Fix | Delete
<?php esc_html_e( 'Your plugin has been zipped, and now is ready to download.', 'bestwebsoft' ); ?>
[503] Fix | Delete
</p>
[504] Fix | Delete
<p>
[505] Fix | Delete
<a class="button button-secondary" target="_parent" href="<?php echo esc_url( $url ); ?>"><?php esc_html_e( 'Download Now', 'bestwebsoft' ); ?></a>
[506] Fix | Delete
</p>
[507] Fix | Delete
<br>
[508] Fix | Delete
<p>
[509] Fix | Delete
<strong><?php esc_html_e( 'Need help installing the plugin?', 'bestwebsoft' ); ?></strong>
[510] Fix | Delete
<br>
[511] Fix | Delete
<a target="_blank" href="https://bestwebsoft.com/documentation/how-to-install-a-wordpress-product/how-to-install-a-wordpress-plugin/"><?php esc_html_e( 'How to install WordPress plugin from your admin Dashboard (ZIP archive)', 'bestwebsoft' ); ?></a>
[512] Fix | Delete
</p>
[513] Fix | Delete
<p>
[514] Fix | Delete
<strong><?php esc_html_e( 'Get Started', 'bestwebsoft' ); ?></strong>
[515] Fix | Delete
<br>
[516] Fix | Delete
<a target="_blank" href="https://bestwebsoft.com/documentation/"><?php esc_html_e( 'Documentation', 'bestwebsoft' ); ?></a>
[517] Fix | Delete
<br>
[518] Fix | Delete
<a target="_blank" href="https://www.youtube.com/user/bestwebsoft"><?php esc_html_e( 'Video Instructions', 'bestwebsoft' ); ?></a>
[519] Fix | Delete
<br>
[520] Fix | Delete
<a target="_blank" href="https://support.bestwebsoft.com"><?php esc_html_e( 'Knowledge Base', 'bestwebsoft' ); ?></a>
[521] Fix | Delete
</p>
[522] Fix | Delete
<p>
[523] Fix | Delete
<strong><?php esc_html_e( 'Licenses & Domains', 'bestwebsoft' ); ?></strong>
[524] Fix | Delete
<br>
[525] Fix | Delete
<?php
[526] Fix | Delete
printf(
[527] Fix | Delete
'Manage your license(-s) and change domain names using the %s at BestWebSoft.',
[528] Fix | Delete
'<a target="_blank" href="https://bestwebsoft.com/client-area">' . esc_html__( 'Client Area', 'bestwebsoft' ) . '</a>'
[529] Fix | Delete
);
[530] Fix | Delete
?>
[531] Fix | Delete
</p>
[532] Fix | Delete
<p><a href="<?php echo esc_url( self_admin_url( $current_page ) ); ?>" target="_parent"><?php esc_html_e( 'Return to BestWebSoft Panel', 'bestwebsoft' ); ?></a></p>
[533] Fix | Delete
<?php
[534] Fix | Delete
} else {
[535] Fix | Delete
$category_href = $current_page;
[536] Fix | Delete
if ( 'all' !== $plugin_category ) {
[537] Fix | Delete
$category_href .= '&category=' . $plugin_category;
[538] Fix | Delete
}
[539] Fix | Delete
?>
[540] Fix | Delete
<ul class="subsubsub">
[541] Fix | Delete
<li>
[542] Fix | Delete
<a
[543] Fix | Delete
<?php
[544] Fix | Delete
if ( ! isset( $_GET['sub'] ) ) {
[545] Fix | Delete
echo 'class="current" ';
[546] Fix | Delete
}
[547] Fix | Delete
?>
[548] Fix | Delete
href="<?php echo esc_url( self_admin_url( $category_href ) ); ?>"><?php esc_html_e( 'All', 'bestwebsoft' ); ?></a>
[549] Fix | Delete
</li> |
[550] Fix | Delete
<li>
[551] Fix | Delete
<a
[552] Fix | Delete
<?php
[553] Fix | Delete
if ( isset( $_GET['sub'] ) && 'installed' === sanitize_text_field( wp_unslash( $_GET['sub'] ) ) ) {
[554] Fix | Delete
echo 'class="current" ';
[555] Fix | Delete
}
[556] Fix | Delete
?>
[557] Fix | Delete
href="<?php echo esc_url( self_admin_url( $category_href . '&sub=installed' ) ); ?>"><?php esc_html_e( 'Installed', 'bestwebsoft' ); ?></a>
[558] Fix | Delete
</li> |
[559] Fix | Delete
<li>
[560] Fix | Delete
<a
[561] Fix | Delete
<?php
[562] Fix | Delete
if ( isset( $_GET['sub'] ) && 'not_installed' === sanitize_text_field( wp_unslash( $_GET['sub'] ) ) ) {
[563] Fix | Delete
echo 'class="current" ';
[564] Fix | Delete
}
[565] Fix | Delete
?>
[566] Fix | Delete
href="<?php echo esc_url( self_admin_url( $category_href . '&sub=not_installed' ) ); ?>"><?php esc_html_e( 'Not Installed', 'bestwebsoft' ); ?></a>
[567] Fix | Delete
</li>
[568] Fix | Delete
</ul>
[569] Fix | Delete
<div class="clear"></div>
[570] Fix | Delete
<div class="bws-filter-top">
[571] Fix | Delete
<h2>
[572] Fix | Delete
<span class="bws-toggle-indicator"></span>
[573] Fix | Delete
<?php esc_html_e( 'Filter results', 'bestwebsoft' ); ?>
[574] Fix | Delete
</h2>
[575] Fix | Delete
<div class="bws-filter-top-inside">
[576] Fix | Delete
<div class="bws-filter-title"><?php esc_html_e( 'Category', 'bestwebsoft' ); ?></div>
[577] Fix | Delete
<ul class="bws-category">
[578] Fix | Delete
<li>
[579] Fix | Delete
<?php $sub_in_url = ( isset( $_GET['sub'] ) && in_array( sanitize_text_field( wp_unslash( $_GET['sub'] ) ), array( 'installed', 'not_installed' ) ) ) ? '&sub=' . sanitize_text_field( wp_unslash( $_GET['sub'] ) ) : ''; ?>
[580] Fix | Delete
<a
[581] Fix | Delete
<?php
[582] Fix | Delete
if ( 'all' === $plugin_category ) {
[583] Fix | Delete
echo ' class="bws-active"';
[584] Fix | Delete
}
[585] Fix | Delete
?>
[586] Fix | Delete
href="<?php echo esc_url( self_admin_url( $current_page . $sub_in_url ) ); ?>"><?php esc_html_e( 'All', 'bestwebsoft' ); ?>
[587] Fix | Delete
<span>(<?php echo count( $bws_plugins ); ?>)</span>
[588] Fix | Delete
</a>
[589] Fix | Delete
</li>
[590] Fix | Delete
<?php foreach ( $bws_plugins_category as $category_key => $category_value ) { ?>
[591] Fix | Delete
<li>
[592] Fix | Delete
<a
[593] Fix | Delete
<?php
[594] Fix | Delete
if ( $category_key === $plugin_category ) {
[595] Fix | Delete
echo ' class="bws-active"';
[596] Fix | Delete
}
[597] Fix | Delete
?>
[598] Fix | Delete
href="<?php echo esc_url( self_admin_url( $current_page . $sub_in_url . '&category=' . $category_key ) ); ?>"><?php echo esc_html( $category_value['name'] ); ?>
[599] Fix | Delete
<span>(<?php echo absint( $category_value['count'] ); ?>)</span>
[600] Fix | Delete
</a>
[601] Fix | Delete
</li>
[602] Fix | Delete
<?php } ?>
[603] Fix | Delete
</ul>
[604] Fix | Delete
</div>
[605] Fix | Delete
</div>
[606] Fix | Delete
<div class="bws-products">
[607] Fix | Delete
<?php
[608] Fix | Delete
$nothing_found = true;
[609] Fix | Delete
foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
[610] Fix | Delete
[611] Fix | Delete
if ( 'all' !== $plugin_category && isset( $bws_plugins_category[ $plugin_category ] ) && ! in_array( $plugin_category, $value_plugin['category'] ) ) {
[612] Fix | Delete
continue;
[613] Fix | Delete
}
[614] Fix | Delete
[615] Fix | Delete
$key_plugin_explode = explode( '/', $key_plugin );
[616] Fix | Delete
if ( in_array( $key_plugin_explode[0], array( 'car-rental', 'contact-form-multi', 'custom-admin-page', 'adsense-plugin', 'zendesk-help-center', 'bws-adsense' ) ) ) {
[617] Fix | Delete
$icon = isset( $value_plugin['icon'] ) ? $value_plugin['icon'] : '//ps.w.org/' . $key_plugin_explode[0] . '/assets/icon-256x256.png';
[618] Fix | Delete
} else {
[619] Fix | Delete
$icon = isset( $value_plugin['icon'] ) ? $value_plugin['icon'] : '//ps.w.org/' . $key_plugin_explode[0] . '/assets/icon-256x256.gif';
[620] Fix | Delete
}
[621] Fix | Delete
[622] Fix | Delete
$is_pro_isset = isset( $value_plugin['pro_version'] );
[623] Fix | Delete
$is_installed = array_key_exists( $key_plugin, $all_plugins );
[624] Fix | Delete
$is_active = in_array( $key_plugin, $active_plugins ) || isset( $sitewide_active_plugins[ $key_plugin ] );
[625] Fix | Delete
[626] Fix | Delete
$is_pro_installed = $is_pro_active = false;
[627] Fix | Delete
if ( $is_pro_isset ) {
[628] Fix | Delete
$is_pro_installed = array_key_exists( $value_plugin['pro_version'], $all_plugins );
[629] Fix | Delete
$is_pro_active = in_array( $value_plugin['pro_version'], $active_plugins ) || isset( $sitewide_active_plugins[ $value_plugin['pro_version'] ] );
[630] Fix | Delete
}
[631] Fix | Delete
[632] Fix | Delete
if ( ( isset( $_GET['sub'] ) && 'installed' === sanitize_text_field( wp_unslash( $_GET['sub'] ) ) && ! $is_pro_installed && ! $is_installed ) ||
[633] Fix | Delete
( isset( $_GET['sub'] ) && 'not_installed' === sanitize_text_field( wp_unslash( $_GET['sub'] ) ) && ( $is_pro_installed || $is_installed ) ) ) {
[634] Fix | Delete
continue;
[635] Fix | Delete
}
[636] Fix | Delete
[637] Fix | Delete
if ( is_multisite() ) {
[638] Fix | Delete
$link_attr = isset( $value_plugin['install_url'] ) ? 'href="' . esc_url( $value_plugin['install_url'] ) . '" target="_blank"' : 'href="' . esc_url( network_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"';
[639] Fix | Delete
} else {
[640] Fix | Delete
$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"';
[641] Fix | Delete
}
[642] Fix | Delete
[643] Fix | Delete
$nothing_found = false;
[644] Fix | Delete
?>
[645] Fix | Delete
<div class="bws_product_box
[646] Fix | Delete
<?php
[647] Fix | Delete
if ( $is_active || $is_pro_active ) {
[648] Fix | Delete
echo esc_attr( ' bws_product_active' );
[649] Fix | Delete
}
[650] Fix | Delete
?>
[651] Fix | Delete
">
[652] Fix | Delete
<div class="bws_product_image">
[653] Fix | Delete
<a <?php echo wp_kses_data( $link_attr ); ?>><img src="<?php echo esc_url( $icon ); ?>"/></a>
[654] Fix | Delete
</div>
[655] Fix | Delete
<div class="bws_product_content">
[656] Fix | Delete
<div class="bws_product_title"><a <?php echo wp_kses_data( $link_attr ); ?>><?php echo esc_html( $value_plugin['name'] ); ?></a></div>
[657] Fix | Delete
<div class="bws-version">
[658] Fix | Delete
<?php
[659] Fix | Delete
if ( $is_pro_installed ) {
[660] Fix | Delete
echo '<span';
[661] Fix | Delete
if ( ! empty( $value_plugin['expired'] ) || ! empty( $value_plugin['update_availible'] ) ) {
[662] Fix | Delete
echo ' class="bws-update-available"';
[663] Fix | Delete
}
[664] Fix | Delete
echo '>v ' . esc_attr( $all_plugins[ $value_plugin['pro_version'] ]['Version'] ) . '</span>';
[665] Fix | Delete
} elseif ( $is_installed ) {
[666] Fix | Delete
echo '<span';
[667] Fix | Delete
if ( ! empty( $value_plugin['expired'] ) || ! empty( $value_plugin['update_availible'] ) ) {
[668] Fix | Delete
echo ' class="bws-update-available"';
[669] Fix | Delete
}
[670] Fix | Delete
echo '>v ' . esc_attr( $all_plugins[ $key_plugin ]['Version'] ) . '</span>';
[671] Fix | Delete
} else {
[672] Fix | Delete
echo '<span>' . esc_html__( 'Not installed', 'bestwebsoft' ) . '</span>';
[673] Fix | Delete
}
[674] Fix | Delete
[675] Fix | Delete
if ( ! empty( $value_plugin['expired'] ) ) {
[676] Fix | Delete
echo ' - <a class="bws-update-now" href="https://support.bestwebsoft.com/hc/en-us/articles/202356359" target="_blank">' . esc_html__( 'Renew to get updates', 'bestwebsoft' ) . '</a>';
[677] Fix | Delete
} elseif ( ! empty( $value_plugin['update_availible'] ) ) {
[678] Fix | Delete
$r = $update_availible_all->response[ $value_plugin['update_availible'] ];
[679] Fix | Delete
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( esc_html__( 'Update to v %s', 'bestwebsoft' ), esc_attr( $r->new_version ) ) . '">' . sprintf( esc_html__( 'Update to v %s', 'bestwebsoft' ), esc_html( $r->new_version ) ) . '</a>';
[680] Fix | Delete
}
[681] Fix | Delete
?>
[682] Fix | Delete
</div>
[683] Fix | Delete
<div class="bws_product_description">
[684] Fix | Delete
<?php echo esc_html( strlen( $value_plugin['description'] ) > 100 ? mb_substr( $value_plugin['description'], 0, 100 ) . '...' : $value_plugin['description'] ); ?>
[685] Fix | Delete
</div>
[686] Fix | Delete
<div class="bws_product_links">
[687] Fix | Delete
<?php
[688] Fix | Delete
if ( $is_active || $is_pro_active ) {
[689] Fix | Delete
if ( $is_pro_isset ) {
[690] Fix | Delete
if ( ! $is_pro_installed ) {
[691] Fix | Delete
if ( ! empty( $plugins_array ) && array_key_exists( $value_plugin['pro_version'], $plugins_array ) ) {
[692] Fix | Delete
?>
[693] Fix | Delete
<form method="post" action="">
[694] Fix | Delete
<input type="submit" class="button button-secondary" value="<?php esc_html_e( 'Get Pro', 'bestwebsoft' ); ?>" />
[695] Fix | Delete
<input type="hidden" name="bws_plugin_action_submit" value="submit" />
[696] Fix | Delete
<input type="hidden" name="bws_install_plugin" value="<?php echo esc_attr( $value_plugin['pro_version'] ); ?>" />
[697] Fix | Delete
<?php wp_nonce_field( plugin_basename( __FILE__ ), 'bws_license_install_nonce_name' ); ?>
[698] Fix | Delete
</form>
[699] Fix | Delete
<?php } else { ?>
[700] Fix | Delete
<a class="button button-secondary bws_upgrade_button" href="<?php echo esc_url( $bws_plugins[ $key_plugin ]['purchase'] ); ?>" target="_blank"><?php esc_html_e( 'Upgrade to Pro', 'bestwebsoft' ); ?></a>
[701] Fix | Delete
<?php
[702] Fix | Delete
}
[703] Fix | Delete
}
[704] Fix | Delete
} else {
[705] Fix | Delete
?>
[706] Fix | Delete
<a class="bws_donate" href="https://bestwebsoft.com/donate/" target="_blank"><?php esc_html_e( 'Donate', 'bestwebsoft' ); ?></a> <span>|</span>
[707] Fix | Delete
<?php
[708] Fix | Delete
}
[709] Fix | Delete
[710] Fix | Delete
if ( $is_pro_active ) {
[711] Fix | Delete
?>
[712] Fix | Delete
<a class="bws_settings" href="<?php echo esc_url( self_admin_url( $bws_plugins[ $key_plugin ]['pro_settings'] ) ); ?>"><?php esc_html_e( 'Settings', 'bestwebsoft' ); ?></a>
[713] Fix | Delete
<?php } else { ?>
[714] Fix | Delete
<a class="bws_settings" href="<?php echo esc_url( self_admin_url( $bws_plugins[ $key_plugin ]['settings'] ) ); ?>"><?php esc_html_e( 'Settings', 'bestwebsoft' ); ?></a>
[715] Fix | Delete
<?php
[716] Fix | Delete
}
[717] Fix | Delete
} else {
[718] Fix | Delete
if ( $is_pro_installed ) {
[719] Fix | Delete
?>
[720] Fix | Delete
<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 esc_html_e( 'Activate this plugin', 'bestwebsoft' ); ?>"><?php esc_html_e( 'Activate', 'bestwebsoft' ); ?></a>
[721] Fix | Delete
<?php } elseif ( ! empty( $plugins_array ) && isset( $value_plugin['pro_version'] ) && array_key_exists( $value_plugin['pro_version'], $plugins_array ) ) { ?>
[722] Fix | Delete
<form method="post" action="">
[723] Fix | Delete
<input type="submit" class="button button-secondary" value="<?php esc_html_e( 'Get Pro', 'bestwebsoft' ); ?>" />
[724] Fix | Delete
<input type="hidden" name="bws_plugin_action_submit" value="submit" />
[725] Fix | Delete
<input type="hidden" name="bws_install_plugin" value="<?php echo esc_url( $value_plugin['pro_version'] ); ?>" />
[726] Fix | Delete
<?php wp_nonce_field( plugin_basename( __FILE__ ), 'bws_license_install_nonce_name' ); ?>
[727] Fix | Delete
</form>
[728] Fix | Delete
<?php } elseif ( $is_installed ) { ?>
[729] Fix | Delete
<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 esc_html_e( 'Activate this plugin', 'bestwebsoft' ); ?>"><?php esc_html_e( 'Activate', 'bestwebsoft' ); ?></a>
[730] Fix | Delete
<?php
[731] Fix | Delete
} else {
[732] Fix | Delete
$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' );
[733] Fix | Delete
?>
[734] Fix | Delete
<a class="button button-secondary" href="<?php echo esc_url( $install_url ); ?>" title="<?php esc_html_e( 'Install this plugin', 'bestwebsoft' ); ?>" target="_blank"><?php esc_html_e( 'Install Now', 'bestwebsoft' ); ?></a>
[735] Fix | Delete
<?php
[736] Fix | Delete
}
[737] Fix | Delete
}
[738] Fix | Delete
?>
[739] Fix | Delete
</div>
[740] Fix | Delete
</div>
[741] Fix | Delete
<div class="clear"></div>
[742] Fix | Delete
</div>
[743] Fix | Delete
<?php
[744] Fix | Delete
}
[745] Fix | Delete
if ( $nothing_found ) {
[746] Fix | Delete
?>
[747] Fix | Delete
<p class="description"><?php esc_html_e( 'Nothing found. Try another criteria.', 'bestwebsoft' ); ?></p>
[748] Fix | Delete
<?php } ?>
[749] Fix | Delete
</div>
[750] Fix | Delete
<div id="bws-filter-wrapper">
[751] Fix | Delete
<div class="bws-filter">
[752] Fix | Delete
<div class="bws-filter-title"><?php esc_html_e( 'Category', 'bestwebsoft' ); ?></div>
[753] Fix | Delete
<ul class="bws-category">
[754] Fix | Delete
<li>
[755] Fix | Delete
<?php $sub_in_url = ( isset( $_GET['sub'] ) && in_array( sanitize_text_field( wp_unslash( $_GET['sub'] ) ), array( 'installed', 'not_installed' ) ) ) ? '&sub=' . sanitize_text_field( wp_unslash( $_GET['sub'] ) ) : ''; ?>
[756] Fix | Delete
<a
[757] Fix | Delete
<?php
[758] Fix | Delete
if ( 'all' === $plugin_category ) {
[759] Fix | Delete
echo ' class="bws-active"';
[760] Fix | Delete
}
[761] Fix | Delete
?>
[762] Fix | Delete
href="<?php echo esc_url( self_admin_url( $current_page . $sub_in_url ) ); ?>"><?php esc_html_e( 'All', 'bestwebsoft' ); ?>
[763] Fix | Delete
<span>(<?php echo count( $bws_plugins ); ?>)</span>
[764] Fix | Delete
</a>
[765] Fix | Delete
</li>
[766] Fix | Delete
<?php foreach ( $bws_plugins_category as $category_key => $category_value ) { ?>
[767] Fix | Delete
<li>
[768] Fix | Delete
<a
[769] Fix | Delete
<?php
[770] Fix | Delete
if ( $category_key === $plugin_category ) {
[771] Fix | Delete
echo ' class="bws-active"';
[772] Fix | Delete
}
[773] Fix | Delete
?>
[774] Fix | Delete
href="<?php echo esc_url( self_admin_url( $current_page . $sub_in_url . '&category=' . $category_key ) ); ?>"><?php echo esc_html( $category_value['name'] ); ?>
[775] Fix | Delete
<span>(<?php echo absint( $category_value['count'] ); ?>)</span>
[776] Fix | Delete
</a>
[777] Fix | Delete
</li>
[778] Fix | Delete
<?php } ?>
[779] Fix | Delete
</ul>
[780] Fix | Delete
</div>
[781] Fix | Delete
</div><!-- #bws-filter-wrapper -->
[782] Fix | Delete
<div class="clear"></div>
[783] Fix | Delete
<?php
[784] Fix | Delete
}
[785] Fix | Delete
} elseif ( 'bws_themes' === $page || 'themes' === $tab ) {
[786] Fix | Delete
require dirname( __FILE__ ) . '/product_list.php';
[787] Fix | Delete
?>
[788] Fix | Delete
<h1><?php esc_html_e( 'Themes', 'bestwebsoft' ); ?></h1>
[789] Fix | Delete
<div id="availablethemes" class="bws-availablethemes">
[790] Fix | Delete
<div class="theme-browser content-filterable rendered">
[791] Fix | Delete
<div class="themes wp-clearfix">
[792] Fix | Delete
<?php
[793] Fix | Delete
foreach ( $themes as $key => $theme ) {
[794] Fix | Delete
$installed_theme = wp_get_theme( $theme->slug );
[795] Fix | Delete
?>
[796] Fix | Delete
<div class="theme" tabindex="0">
[797] Fix | Delete
<div class="theme-screenshot">
[798] Fix | Delete
<img src="<?php echo esc_url( bws_menu_url( 'icons/themes/' ) . $theme->slug . '.png' ); ?>" alt="" />
[799] Fix | Delete
</div>
[800] Fix | Delete
<div class="theme-author"><?php printf( esc_html__( 'By %s', 'bestwebsoft' ), 'BestWebSoft' ); ?></div>
[801] Fix | Delete
<h3 class="theme-name"><?php echo esc_html( $theme->name ); ?></h3>
[802] Fix | Delete
<div class="theme-actions">
[803] Fix | Delete
<a class="button button-secondary preview install-theme-preview" href="<?php echo esc_url( $theme->href ); ?>" target="_blank"><?php esc_html_e( 'Learn More', 'bestwebsoft' ); ?></a>
[804] Fix | Delete
</div>
[805] Fix | Delete
<?php
[806] Fix | Delete
if ( $installed_theme->exists() ) {
[807] Fix | Delete
if ( $wp_version < '4.6' ) {
[808] Fix | Delete
?>
[809] Fix | Delete
<div class="theme-installed"><?php esc_html_e( 'Already Installed', 'bestwebsoft' ); ?></div>
[810] Fix | Delete
<?php } else { ?>
[811] Fix | Delete
<div class="notice notice-success notice-alt inline"><p><?php esc_html_e( 'Installed', 'bestwebsoft' ); ?></p></div>
[812] Fix | Delete
<?php
[813] Fix | Delete
}
[814] Fix | Delete
}
[815] Fix | Delete
?>
[816] Fix | Delete
</div>
[817] Fix | Delete
<?php } ?>
[818] Fix | Delete
<br class="clear" />
[819] Fix | Delete
</div>
[820] Fix | Delete
</div>
[821] Fix | Delete
<p><a class="bws_browse_link" href="https://bestwebsoft.com/products/wordpress/themes/" target="_blank"><?php esc_html_e( 'Browse More WordPress Themes', 'bestwebsoft' ); ?> <span class="dashicons dashicons-arrow-right-alt2"></span></a></p>
[822] Fix | Delete
</div>
[823] Fix | Delete
<?php } elseif ( 'bws_system_status' === $page || 'system-status' === $tab ) { ?>
[824] Fix | Delete
<h1><?php esc_html_e( 'System status', 'bestwebsoft' ); ?></h1>
[825] Fix | Delete
<div class="updated fade notice is-dismissible inline"
[826] Fix | Delete
<?php
[827] Fix | Delete
if ( ! ( isset( $_REQUEST['bwsmn_form_submit'] ) || isset( $_REQUEST['bwsmn_form_submit_custom_email'] ) ) || '' !== $error ) {
[828] Fix | Delete
echo 'style="display:none"';
[829] Fix | Delete
}
[830] Fix | Delete
?>
[831] Fix | Delete
><p><strong><?php echo esc_html( $message ); ?></strong></p></div>
[832] Fix | Delete
<div class="error"
[833] Fix | Delete
<?php
[834] Fix | Delete
if ( '' === $error ) {
[835] Fix | Delete
echo 'style="display:none"';
[836] Fix | Delete
}
[837] Fix | Delete
?>
[838] Fix | Delete
><p><strong><?php echo esc_html( $error ); ?></strong></p></div>
[839] Fix | Delete
<form method="post" action="">
[840] Fix | Delete
<p>
[841] Fix | Delete
<input type="hidden" name="bwsmn_form_submit" value="submit" />
[842] Fix | Delete
<input type="submit" class="button-primary" value="<?php esc_html_e( 'Send to support', 'bestwebsoft' ); ?>" />
[843] Fix | Delete
<?php wp_nonce_field( plugin_basename( __FILE__ ), 'bwsmn_nonce_submit' ); ?>
[844] Fix | Delete
</p>
[845] Fix | Delete
</form>
[846] Fix | Delete
<form method="post" action="">
[847] Fix | Delete
<p>
[848] Fix | Delete
<input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" />
[849] Fix | Delete
<input type="submit" class="button" value="<?php esc_html_e( 'Send to custom email &#187;', 'bestwebsoft' ); ?>" />
[850] Fix | Delete
<input type="text" maxlength="250" value="" name="bwsmn_form_email" />
[851] Fix | Delete
<?php wp_nonce_field( plugin_basename( __FILE__ ), 'bwsmn_nonce_submit_custom_email' ); ?>
[852] Fix | Delete
</p>
[853] Fix | Delete
</form>
[854] Fix | Delete
<?php foreach ( $system_info as $info ) { ?>
[855] Fix | Delete
<table class="widefat bws-system-info" cellspacing="0">
[856] Fix | Delete
<thead>
[857] Fix | Delete
<tr>
[858] Fix | Delete
<th colspan="2">
[859] Fix | Delete
<strong>
[860] Fix | Delete
<?php
[861] Fix | Delete
echo esc_html( $info['name'] );
[862] Fix | Delete
if ( isset( $info['count'] ) ) {
[863] Fix | Delete
echo ' (' . intval( $info['count'] ) . ')';
[864] Fix | Delete
}
[865] Fix | Delete
?>
[866] Fix | Delete
</strong>
[867] Fix | Delete
</th>
[868] Fix | Delete
</tr>
[869] Fix | Delete
</thead>
[870] Fix | Delete
<tbody>
[871] Fix | Delete
<?php foreach ( $info['data'] as $key => $value ) { ?>
[872] Fix | Delete
<tr>
[873] Fix | Delete
<td scope="row"><?php echo esc_attr( $key ); ?></td>
[874] Fix | Delete
<td scope="row"><?php echo esc_html( $value ); ?></td>
[875] Fix | Delete
</tr>
[876] Fix | Delete
<?php } ?>
[877] Fix | Delete
</tbody>
[878] Fix | Delete
</table>
[879] Fix | Delete
<?php
[880] Fix | Delete
}
[881] Fix | Delete
}
[882] Fix | Delete
?>
[883] Fix | Delete
</div>
[884] Fix | Delete
</div>
[885] Fix | Delete
<?php
[886] Fix | Delete
}
[887] Fix | Delete
}
[888] Fix | Delete
[889] Fix | Delete
if ( ! function_exists( 'bws_get_banner_array' ) ) {
[890] Fix | Delete
/**
[891] Fix | Delete
* Get banner array
[892] Fix | Delete
*/
[893] Fix | Delete
function bws_get_banner_array() {
[894] Fix | Delete
global $bstwbsftwppdtplgns_banner_array;
[895] Fix | Delete
$bstwbsftwppdtplgns_banner_array = array(
[896] Fix | Delete
array( 'gglstpvrfctn_hide_banner_on_plugin_page', 'bws-google-2-step-verification/bws-google-2-step-verification.php', '1.0.0' ),
[897] Fix | Delete
array( 'sclbttns_hide_banner_on_plugin_page', 'social-buttons-pack/social-buttons-pack.php', '1.1.0' ),
[898] Fix | Delete
array( 'tmsht_hide_banner_on_plugin_page', 'timesheet/timesheet.php', '0.1.3' ),
[899] Fix | Delete
array( 'pgntn_hide_banner_on_plugin_page', 'pagination/pagination.php', '1.0.6' ),
[900] Fix | Delete
array( 'crrntl_hide_banner_on_plugin_page', 'car-rental/car-rental.php', '1.0.0' ),
[901] Fix | Delete
array( 'lnkdn_hide_banner_on_plugin_page', 'bws-linkedin/bws-linkedin.php', '1.0.1' ),
[902] Fix | Delete
array( 'pntrst_hide_banner_on_plugin_page', 'bws-pinterest/bws-pinterest.php', '1.0.1' ),
[903] Fix | Delete
array( 'zndskhc_hide_banner_on_plugin_page', 'zendesk-help-center/zendesk-help-center.php', '1.0.0' ),
[904] Fix | Delete
array( 'gglcptch_hide_banner_on_plugin_page', 'google-captcha/google-captcha.php', '1.18' ),
[905] Fix | Delete
array( 'mltlngg_hide_banner_on_plugin_page', 'multilanguage/multilanguage.php', '1.1.1' ),
[906] Fix | Delete
array( 'adsns_hide_banner_on_plugin_page', 'bws-adsense/bws-adsense.php', '1.36' ),
[907] Fix | Delete
array( 'vstrsnln_hide_banner_on_plugin_page', 'visitors-online/visitors-online.php', '0.2' ),
[908] Fix | Delete
array( 'cstmsrch_hide_banner_on_plugin_page', 'custom-search-plugin/custom-search-plugin.php', '1.28' ),
[909] Fix | Delete
array( 'prtfl_hide_banner_on_plugin_page', 'portfolio/portfolio.php', '2.33' ),
[910] Fix | Delete
array( 'rlt_hide_banner_on_plugin_page', 'realty/realty.php', '1.0.0' ),
[911] Fix | Delete
array( 'prmbr_hide_banner_on_plugin_page', 'promobar/promobar.php', '1.0.0' ),
[912] Fix | Delete
array( 'gglnltcs_hide_banner_on_plugin_page', 'bws-google-analytics/bws-google-analytics.php', '1.6.2' ),
[913] Fix | Delete
array( 'htccss_hide_banner_on_plugin_page', 'htaccess/htaccess.php', '1.6.3' ),
[914] Fix | Delete
array( 'sbscrbr_hide_banner_on_plugin_page', 'subscriber/subscriber.php', '1.1.8' ),
[915] Fix | Delete
array( 'lmtttmpts_hide_banner_on_plugin_page', 'limit-attempts/limit-attempts.php', '1.0.2' ),
[916] Fix | Delete
array( 'sndr_hide_banner_on_plugin_page', 'sender/sender.php', '0.5' ),
[917] Fix | Delete
array( 'srrl_hide_banner_on_plugin_page', 'user-role/user-role.php', '1.4' ),
[918] Fix | Delete
array( 'pdtr_hide_banner_on_plugin_page', 'updater/updater.php', '1.12' ),
[919] Fix | Delete
array( 'cntctfrmtdb_hide_banner_on_plugin_page', 'contact-form-to-db/contact_form_to_db.php', '1.2' ),
[920] Fix | Delete
array( 'cntctfrmmlt_hide_banner_on_plugin_page', 'contact-form-multi/contact-form-multi.php', '1.0.7' ),
[921] Fix | Delete
array( 'gglmps_hide_banner_on_plugin_page', 'bws-google-maps/bws-google-maps.php', '1.2' ),
[922] Fix | Delete
array( 'fcbkbttn_hide_banner_on_plugin_page', 'facebook-button-plugin/facebook-button-plugin.php', '2.29' ),
[923] Fix | Delete
array( 'twttr_hide_banner_on_plugin_page', 'twitter-plugin/twitter.php', '2.34' ),
[924] Fix | Delete
array( 'pdfprnt_hide_banner_on_plugin_page', 'pdf-print/pdf-print.php', '1.7.1' ),
[925] Fix | Delete
array( 'gglstmp_hide_banner_on_plugin_page', 'google-sitemap-plugin/google-sitemap-plugin.php', '2.8.4' ),
[926] Fix | Delete
array( 'cntctfrmpr_for_ctfrmtdb_hide_banner_on_plugin_page', 'contact-form-pro/contact_form_pro.php', '1.14' ),
[927] Fix | Delete
array( 'cntctfrm_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.47' ),
[928] Fix | Delete
array( 'cptch_hide_banner_on_plugin_page', 'captcha-bws/captcha-bws.php', '3.8.4' ),
[929] Fix | Delete
array( 'gllr_hide_banner_on_plugin_page', 'gallery-plugin/gallery-plugin.php', '3.9.1' ),
[930] Fix | Delete
array( 'cntctfrm_for_ctfrmtdb_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.62' ),
[931] Fix | Delete
array( 'bwscrrntl_hide_banner_on_plugin_page', 'bws-car-rental/bws-car-rental.php', '0.0.1' ),
[932] Fix | Delete
array( 'rtng_hide_banner_on_plugin_page', 'rating-bws/rating-bws.php', '1.0.0' ),
[933] Fix | Delete
array( 'prflxtrflds_hide_banner_on_plugin_page', 'profile-extra-fields/profile-extra-fields.php', '1.1.3' ),
[934] Fix | Delete
array( 'psttcsv_hide_banner_on_plugin_page', 'post-to-csv/post-to-csv.php', '1.3.4' ),
[935] Fix | Delete
array( 'cstmdmnpg_hide_banner_on_plugin_page', 'custom-admin-page/custom-admin-page.php', '1.0.0' ),
[936] Fix | Delete
);
[937] Fix | Delete
}
[938] Fix | Delete
}
[939] Fix | Delete
[940] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function