本文整理汇总了PHP中bws_plugin_banner函数的典型用法代码示例。如果您正苦于以下问题:PHP bws_plugin_banner函数的具体用法?PHP bws_plugin_banner怎么用?PHP bws_plugin_banner使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bws_plugin_banner函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: gglstmp_plugin_banner
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');
}
}
示例2: gllr_admin_notices
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');
}
}
}
示例3: gglcptch_plugin_banner
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');
}
}
示例4: lmtttmpts_plugin_banner
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');
}
}
示例5: cptch_plugin_banner
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
}
}
示例6: gglcptch_plugin_banner
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');
}
}
示例7: cstmsrch_admin_notices
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');
}
}
示例8: sbscrbr_show_notices
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');
}
}
示例9: gglstmp_plugin_banner
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');
}
}
示例10: vstrsnln_plugin_banner
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');
}
}
}
示例11: gglnltcs_show_notices
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');
}
}
示例12: cptch_plugin_banner
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');
}
}
示例13: cptch_plugin_banner
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');
}
}
示例14: mltlngg_plugin_banner
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');
}
}
示例15: gllr_admin_notices
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']);
}