function gglstmp_plugin_banner() { global $hook_suffix; if ('plugins.php' == $hook_suffix) { global $gglstmp_plugin_info; bws_plugin_banner($gglstmp_plugin_info, 'gglstmp', 'google-sitemap', '8fbb5d23fd00bdcb213d6c0985d16ec5', '83', '//ps.w.org/google-sitemap-plugin/assets/icon-128x128.png'); } }
function gllr_admin_notices() { global $hook_suffix, $gllr_plugin_info, $gllr_BWS_demo_data, $gllr_options; /* add error if templates were not found in the theme directory */ gllr_admin_error(); if ('plugins.php' == $hook_suffix || isset($_GET['page']) && $_GET['page'] == 'gallery-plugin.php') { if (empty($gllr_options)) { $gllr_options = get_option('gllr_options'); } if (!$gllr_BWS_demo_data) { gllr_include_demo_data(); } $gllr_BWS_demo_data->bws_handle_demo_notice($gllr_options['display_demo_notice']); if ('plugins.php' == $hook_suffix) { if (isset($gllr_options['first_install']) && strtotime('-1 week') > $gllr_options['first_install']) { bws_plugin_banner($gllr_plugin_info, 'gllr', 'gallery', '01a04166048e9416955ce1cbe9d5ca16', '79', '//ps.w.org/gallery-plugin/assets/icon-128x128.png'); } bws_plugin_banner_to_settings($gllr_plugin_info, 'gllr_options', 'gallery-plugin', 'admin.php?page=gallery-plugin.php', 'post-new.php?post_type=gallery', 'Gallery'); } else { bws_plugin_suggest_feature_banner($gllr_plugin_info, 'gllr_options', 'gallery-plugin'); } } }
function gglcptch_plugin_banner() { global $hook_suffix, $gglcptch_plugin_info, $gglcptch_options; if ('plugins.php' == $hook_suffix) { if (empty($gglcptch_options['public_key']) || empty($gglcptch_options['private_key'])) { ?> <div class="error"> <p> <?php printf('<strong>%s <a target="_blank" href="https://www.google.com/recaptcha/admin#list">%s</a> %s <a target="_blank" href="%s">%s</a>.</strong>', __('To use Google Captcha you must get the keys from', 'google-captcha'), __('here', 'google-captcha'), __('and enter them on the', 'google-captcha'), admin_url('/admin.php?page=google-captcha.php'), __('plugin setting page', 'google-captcha')); ?> </p> </div> <?php } if (isset($gglcptch_options['first_install']) && strtotime('-1 week') > $gglcptch_options['first_install']) { bws_plugin_banner($gglcptch_plugin_info, 'gglcptch', 'google-captcha', '676d9558f9786ab41d7de35335cf5c4d', '109', '//ps.w.org/google-captcha/assets/icon-128x128.png'); } bws_plugin_banner_to_settings($gglcptch_plugin_info, 'gglcptch_options', 'google-captcha', 'admin.php?page=google-captcha.php'); } }
function lmtttmpts_plugin_banner() { global $hook_suffix, $lmtttmpts_plugin_info; if ('plugins.php' == $hook_suffix) { bws_plugin_banner($lmtttmpts_plugin_info, 'lmtttmpts', 'limit-attempts', '33bc89079511cdfe28aeba317abfaf37', '140', '//ps.w.org/limit-attempts/assets/icon-128x128.png'); } }
function cptch_plugin_banner() { global $hook_suffix, $cptch_options, $cptch_plugin_info; $captcha_page = isset($_GET['page']) && 'captcha.php' == $_GET['page'] ? true : false; if (empty($cptch_options)) { $cptch_options = get_option('cptch_options'); } if ('plugins.php' == $hook_suffix) { if (isset($cptch_options['first_install']) && strtotime('-1 week') > $cptch_options['first_install']) { bws_plugin_banner($cptch_plugin_info, 'cptch', 'captcha', '345f1af66a47b233cd05bc55b2382ff0', '75', '//ps.w.org/captcha/assets/icon-128x128.png'); } bws_plugin_banner_to_settings($cptch_plugin_info, 'cptch_options', 'captcha', 'admin.php?page=captcha.php'); } if (($hook_suffix == 'plugins.php' || $captcha_page) && (!isset($cptch_options['display_notice_about_images']) || 1 == $cptch_options['display_notice_about_images'])) { if ($captcha_page) { $cptch_options['display_notice_about_images'] = 0; update_option('cptch_options', $cptch_options); $settings_link = 'Captcha'; } else { $settings_link = '<a href="' . admin_url('admin.php?page=captcha.php') . '">Captcha</a>'; } ?> <div class="update-nag"><?php echo sprintf(__('Try New %s: with Pictures Now!', 'captcha'), $settings_link); ?> </div> <?php } }
function gglcptch_plugin_banner() { global $hook_suffix, $gglcptch_plugin_info, $gglcptch_options; if ('plugins.php' == $hook_suffix) { if (isset($gglcptch_options['first_install']) && strtotime('-1 week') > $gglcptch_options['first_install']) { bws_plugin_banner($gglcptch_plugin_info, 'gglcptch', 'google-captcha', '676d9558f9786ab41d7de35335cf5c4d', '109', '//ps.w.org/google-captcha/assets/icon-128x128.png'); } bws_plugin_banner_to_settings($gglcptch_plugin_info, 'gglcptch_options', 'google-captcha', 'admin.php?page=google-captcha.php'); } }
function cstmsrch_admin_notices() { global $hook_suffix, $cstmsrch_plugin_info, $cstmsrch_options; if ('plugins.php' == $hook_suffix) { bws_plugin_banner($cstmsrch_plugin_info, 'cstmsrch', 'custom-search', '22f95b30aa812b6190a4a5a476b6b628', '214', '//ps.w.org/custom-search-plugin/assets/icon-128x128.png'); } }
function sbscrbr_show_notices() { global $hook_suffix; if ('plugins.php' == $hook_suffix) { global $sbscrbr_plugin_info; bws_plugin_banner($sbscrbr_plugin_info, 'sbscrbr', 'subscriber', '95812391951699cd5a64397cfb1b0557', '122', '//ps.w.org/subscriber/assets/icon-128x128.png'); } }
function gglstmp_plugin_banner() { global $hook_suffix; if ('plugins.php' == $hook_suffix) { global $gglstmp_plugin_info; if (!($gglstmp_settings = get_option('gglstmp_settings'))) { gglstmp_register_settings(); $gglstmp_settings = get_option('gglstmp_settings'); } if (isset($gglstmp_settings['first_install']) && strtotime('-1 week') > $gglstmp_settings['first_install']) { bws_plugin_banner($gglstmp_plugin_info, 'gglstmp', 'google-sitemap', '8fbb5d23fd00bdcb213d6c0985d16ec5', '83', '//ps.w.org/google-sitemap-plugin/assets/icon-128x128.png'); } bws_plugin_banner_to_settings($gglstmp_plugin_info, 'gglstmp_setting', 'google-sitemap-plugin', 'admin.php?page=google-sitemap-plugin.php'); } }
function vstrsnln_plugin_banner() { global $hook_suffix; if ('plugins.php' == $hook_suffix) { global $vstrsnln_plugin_info, $vstrsnln_options; if (isset($vstrsnln_options['first_install']) && strtotime('-1 week') > $vstrsnln_options['first_install']) { bws_plugin_banner($vstrsnln_plugin_info, 'vstrsnln', 'visitors-online', 'ac4699da21e7e6d6238f373bc0065912', '213', '//ps.w.org/visitors-online/assets/icon-128x128.png'); } if (!is_network_admin()) { bws_plugin_banner_to_settings($vstrsnln_plugin_info, 'vstrsnln_options', 'visitors-online', 'admin.php?page=visitors-online.php'); } } }
function gglnltcs_show_notices() { global $hook_suffix; if ('plugins.php' == $hook_suffix || isset($_REQUEST['page']) && 'bws_plugins' == $_REQUEST['page'] || isset($_REQUEST['page']) && 'bws-google-analytics.php' == $_REQUEST['page']) { ?> <noscript> <div class="error"> <p><?php _e('If you want Google Analytics by BestWebSoft plugin to work correctly, please enable JavaScript in your browser!', 'bws-google-analytics'); ?> </p> </div> </noscript><?php } if ('plugins.php' == $hook_suffix) { global $gglnltcs_plugin_info, $gglnltcs_options; if (empty($gglnltcs_options)) { $gglnltcs_options = get_option('gglnltcs_options'); } if (isset($gglnltcs_options['first_install']) && strtotime('-1 week') > $gglnltcs_options['first_install']) { bws_plugin_banner($gglnltcs_plugin_info, 'gglnltcs', 'bws-google-analytics', '938dae82c516792dea3980ff61a6af29', '125', '//ps.w.org/bws-google-analytics/assets/icon-128x128.png'); } bws_plugin_banner_to_settings($gglnltcs_plugin_info, 'gglnltcs_options', 'bws-google-analytics', 'admin.php?page=bws-google-analytics.php'); } }
function cptch_plugin_banner() { global $hook_suffix; if ('plugins.php' == $hook_suffix) { global $cptch_plugin_info; bws_plugin_banner($cptch_plugin_info, 'cptch', 'captcha', '345f1af66a47b233cd05bc55b2382ff0', '75', '//ps.w.org/captcha/assets/icon-128x128.png'); } }
function cptch_plugin_banner() { global $hook_suffix; if ('plugins.php' == $hook_suffix) { global $cptch_plugin_info, $cptch_options; if (isset($cptch_options['first_install']) && strtotime('-1 week') > $cptch_options['first_install']) { bws_plugin_banner($cptch_plugin_info, 'cptch', 'captcha', '345f1af66a47b233cd05bc55b2382ff0', '75', '//ps.w.org/captcha/assets/icon-128x128.png'); } bws_plugin_banner_to_settings($cptch_plugin_info, 'cptch_options', 'captcha', 'admin.php?page=captcha.php'); } }
function mltlngg_plugin_banner() { global $hook_suffix, $mltlngg_plugin_info, $mltlngg_options; if ('plugins.php' == $hook_suffix) { if (isset($mltlngg_options['first_install']) && strtotime('-1 week') > $mltlngg_options['first_install']) { bws_plugin_banner($mltlngg_plugin_info, 'mltlngg', 'multilanguage', '0419dafcc237fe35489c8db63c899a38', '143', '//ps.w.org/multilanguage/assets/icon-128x128.png'); } bws_plugin_banner_to_settings($mltlngg_plugin_info, 'mltlngg_options', 'multilanguage', 'admin.php?page=mltlngg_settings'); } if (isset($_GET['page']) && 'mltlngg_settings' == $_GET['page']) { bws_plugin_suggest_feature_banner($mltlngg_plugin_info, 'mltlngg_options', 'multilanguage'); } }
function gllr_admin_notices() { global $hook_suffix, $gllr_options; /* add error if templates were not found in the theme directory */ gllr_admin_error(); if ('plugins.php' == $hook_suffix) { global $gllr_plugin_info; if (isset($gllr_options['first_install']) && strtotime('-1 week') > $gllr_options['first_install']) { bws_plugin_banner($gllr_plugin_info, 'gllr', 'gallery', '01a04166048e9416955ce1cbe9d5ca16', '79', '//ps.w.org/gallery-plugin/assets/icon-128x128.png'); } bws_plugin_banner_to_settings($gllr_plugin_info, 'gllr_options', 'gallery-plugin', 'admin.php?page=gallery-plugin.php', 'post-new.php?post_type=gallery', 'Gallery'); } require_once plugin_dir_path(__FILE__) . 'inc/demo-data/demo-data-loader.php'; do_action('bws_display_demo_notice', $gllr_options['display_demo_notice']); }
function cntctfrmmlt_plugin_banner() { global $hook_suffix; if ('plugins.php' == $hook_suffix) { global $cntctfrmmlt_plugin_info, $wp_version; $cntctfrmmlt_options = get_option('cntctfrmmlt_options_main'); if (isset($cntctfrmmlt_options['first_install']) && strtotime('-1 week') > $cntctfrmmlt_options['first_install']) { bws_plugin_banner($cntctfrmmlt_plugin_info, 'cntctfrmmlt', 'contact-form-multi', '93536843024dbb3360bfa9d6d6a1d297', '123', '//ps.w.org/contact-form-multi/assets/icon-128x128.png'); } } }
function cntctfrm_plugin_banner() { global $hook_suffix; if ('plugins.php' == $hook_suffix || isset($_REQUEST['page']) && 'contact_form.php' == $_REQUEST['page']) { global $cntctfrm_plugin_info, $wp_version, $bstwbsftwppdtplgns_cookie_add, $bstwbsftwppdtplgns_banner_array; if ('plugins.php' == $hook_suffix) { bws_plugin_banner($cntctfrm_plugin_info, 'cntctfrm', 'contact-form', 'f575dc39cba54a9de88df346eed52101', '77', '//ps.w.org/contact-form-plugin/assets/icon-128x128.png'); } if (empty($bstwbsftwppdtplgns_banner_array)) { bws_get_banner_array(); } if (!function_exists('is_plugin_active')) { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } $all_plugins = get_plugins(); $this_banner_prefix = 'cntctfrm_for_ctfrmtdb'; $this_banner = 'cntctfrm_for_ctfrmtdb_hide_banner_on_plugin_page'; foreach ($bstwbsftwppdtplgns_banner_array as $key => $value) { if ($this_banner == $value[0]) { if (!isset($bstwbsftwppdtplgns_cookie_add)) { echo '<script type="text/javascript" src="' . plugins_url('/bws_menu/js/c_o_o_k_i_e.js', __FILE__) . '"></script>'; $bstwbsftwppdtplgns_cookie_add = true; } ?> <script type="text/javascript"> (function($) { $(document).ready( function() { var hide_message = $.cookie( '<?php echo $this_banner_prefix; ?> _hide_banner_on_plugin_page' ); if ( hide_message == "true" ) { $( ".<?php echo $this_banner_prefix; ?> _message" ).css( "display", "none" ); } else { $( ".<?php echo $this_banner_prefix; ?> _message" ).css( "display", "block" ); }; $( ".<?php echo $this_banner_prefix; ?> _close_icon" ).click( function() { $( ".<?php echo $this_banner_prefix; ?> _message" ).css( "display", "none" ); $.cookie( "<?php echo $this_banner_prefix; ?> _hide_banner_on_plugin_page", "true", { expires: 32 } ); }); }); })(jQuery); </script> <?php if (!array_key_exists('contact-form-to-db/contact_form_to_db.php', $all_plugins) && !array_key_exists('contact-form-to-db-pro/contact_form_to_db_pro.php', $all_plugins)) { ?> <div class="updated" style="padding: 0; margin: 0; border: none; background: none;"> <div class="cntctfrm_for_ctfrmtdb_message bws_banner_on_plugin_page" style="display: none;"> <img class="<?php echo $this_banner_prefix; ?> _close_icon close_icon" title="" src="<?php echo plugins_url('bws_menu/images/close_banner.png', __FILE__); ?> " alt=""/> <div class="icon"> <img title="" src="//ps.w.org/contact-form-to-db/assets/icon-128x128.png" alt="" /> </div> <div class="text"> <strong>Contact Form to DB</strong> <?php _e("allows to store your messages to the database.", 'contact_form'); ?> <br /> <span><?php _e("Manage messages that have been sent from your website.", 'contact_form'); ?> </span> </div> <div class="button_div"> <a class="button" target="_blank" href="http://bestwebsoft.com/products/contact-form-to-db/?k=6ebf0743736411607343ad391dc3b436&pn=77&v=<?php echo $cntctfrm_plugin_info["Version"]; ?> &wp_v=<?php echo $wp_version; ?> "><?php _e('Learn More', 'contact_form'); ?> </a> </div> </div> </div> <?php } break; } if (isset($all_plugins[$value[1]]) && $all_plugins[$value[1]]["Version"] >= $value[2] && is_plugin_active($value[1]) && !isset($_COOKIE[$value[0]])) { break; } } } }
function adsns_plugin_notice() { global $hook_suffix; if (!$this->adsns_adsense_api && !is_network_admin() && ($hook_suffix == 'index.php' || $hook_suffix == 'plugins.php')) { ob_start(); printf('<div class="error adsns_update_notice"><p><strong>%s</strong> %s</p></div>', __('Attention:', 'adsense-plugin'), sprintf(__('Google AdSense by BestWebSoft plugin was updated to use Google AdSense API, which is not compatible with the old settings. For further plugin usage, you will need to %s', 'adsense-plugin'), sprintf('<a href="admin.php?page=adsense-plugin.php">%s</a>', __('re-configure it.', 'adsense-plugin')))); echo ob_get_clean(); } if ('plugins.php' == $hook_suffix) { if (isset($this->adsns_options['first_install']) && strtotime('-1 week') > $this->adsns_options['first_install']) { bws_plugin_banner($this->adsns_plugin_info, 'adsns', 'google-adsense', '6057da63c4951b1a7b03296e54ed6d02', '80', '//ps.w.org/adsense-plugin/assets/icon-128x128.png'); } bws_plugin_banner_to_settings($this->adsns_plugin_info, 'adsns_settings', 'adsense-plugin', 'admin.php?page=adsense-plugin.php'); } }