• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP wptouch_should_show_license_nag函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中wptouch_should_show_license_nag函数的典型用法代码示例。如果您正苦于以下问题:PHP wptouch_should_show_license_nag函数的具体用法?PHP wptouch_should_show_license_nag怎么用?PHP wptouch_should_show_license_nag使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了wptouch_should_show_license_nag函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: _e

			<div class="alert-wrap">
				<div class="alert">
					<?php 
    _e('Your WPtouch Pro license has expired. Renew now at a discount to continue receiving product updates and support.', 'wptouch-pro');
    ?>
					<a href="http://www.wptouch.com/renew/?utm_campaign=renew-in-product&utm_medium=web&utm_source=wptouch" target="_blank" class="btn btn-small btn-warning"><?php 
    _e('Renew Now', 'wptouch-pro');
    ?>
</a>
				</div>
			</div>
		<?php 
} else {
    ?>
			<?php 
    if (wptouch_should_show_license_nag() && $_GET['page'] != 'wptouch-admin-license') {
        ?>
				<div class="alert-wrap">
					<div class="alert">
				  		<?php 
        echo sprintf(__('This copy of %s is currently unlicensed!', 'wptouch-pro'), 'WPtouch Pro');
        ?>
				  		<?php 
        if (wptouch_should_show_activation_nag()) {
            ?>
				  			<a href="<?php 
            echo wptouch_get_license_activation_url();
            ?>
" class="btn btn-small btn-warning"><?php 
            echo sprintf(__('Add a license %s', 'wptouch-pro'), '&raquo;');
            ?>
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:31,代码来源:admin-render.php


示例2: wptouch_should_show_activation_nag

function wptouch_should_show_activation_nag()
{
    return wptouch_should_show_license_nag();
}
开发者ID:sumwander,项目名称:unyil,代码行数:4,代码来源:globals.php


示例3: sprintf

		</h3>
	</div><!-- touchboard-news -->
</div><!-- over-right-side -->

<div id="touchboard-left" class="overview-box-appearance">
	<!--
	<h3>
		<?php 
echo sprintf(__("What's New in %s", 'wptouch-pro'), WPTOUCH_VERSION);
?>
		<span>
			<?php 
if (!defined('WPTOUCH_IS_FREE')) {
    ?>
				<?php 
    if (wptouch_should_show_license_nag()) {
        ?>
					<?php 
        _e('License', 'wptouch-pro');
        ?>
: <strong class="orange"><?php 
        _e('Unlicensed', 'wptouch-pro');
        ?>
</strong> &nbsp;|&nbsp; BraveNewCloud: <strong class="orange"><?php 
        _e('Offline', 'wptouch-pro');
        ?>
</strong>
				<?php 
    } else {
        ?>
					<?php 
开发者ID:sydneyDAD,项目名称:cardguys.com,代码行数:31,代码来源:touchboard.php


示例4: wptouch_admin_panel_get_classes

function wptouch_admin_panel_get_classes($classes = false)
{
    if ($classes) {
        if (is_array($classes)) {
            $final_classes = $classes;
        } else {
            $final_classes = array($classes);
        }
    } else {
        $final_classes = array();
    }
    global $wptouch_pro;
    $final_classes[] = 'wplocale-' . $wptouch_pro->locale;
    if (wptouch_should_show_license_nag()) {
        $final_classes[] = 'unlicensed';
    } else {
        $final_classes[] = 'licensed';
    }
    if (defined('WPTOUCH_IS_FREE')) {
        $final_classes[] = 'wptouch-free';
    } else {
        $final_classes[] = 'wptouch-not-free';
    }
    return $final_classes;
}
开发者ID:sb-xs,项目名称:que-pour-elle,代码行数:25,代码来源:admin-load.php


示例5: wptouch_admin_panel_get_classes

function wptouch_admin_panel_get_classes($classes = false)
{
    if ($classes) {
        if (is_array($classes)) {
            $final_classes = $classes;
        } else {
            $final_classes = array($classes);
        }
    } else {
        $final_classes = array();
    }
    global $wptouch_pro;
    $final_classes[] = 'wplocale-' . $wptouch_pro->locale;
    if (wptouch_should_show_license_nag()) {
        $final_classes[] = 'unlicensed';
    } else {
        $final_classes[] = 'licensed';
    }
    if (defined('WPTOUCH_IS_FREE')) {
        $final_classes[] = 'wptouch-free';
    } else {
        $final_classes[] = 'wptouch-not-free';
    }
    if ($wptouch_pro->cache_smash->is_cache_plugin_detected() && !$wptouch_pro->cache_smash->is_cache_configured()) {
        $final_classes[] = 'cache-not-configured';
    }
    return $final_classes;
}
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:28,代码来源:admin-load.php


示例6: wptouch_add_pro_notifications

function wptouch_add_pro_notifications()
{
    global $wptouch_pro;
    // Check if licensed
    if (WPTOUCH_SIMULATE_ALL || !wptouch_has_license()) {
        if (wptouch_show_renewal_notice()) {
            $wptouch_pro->add_notification(__('License Expired', 'wptouch-pro'), __('Your product license has expired. Renew now to continue to receive feature and security updates.', 'wptouch-pro'), 'error', 'http://www.wptouch.com/renew/?utm_campaign=renew-notification&utm_medium=web&utm_source=wptouch');
        } else {
            if (wptouch_should_show_license_nag()) {
                $wptouch_pro->add_notification(__('License Missing', 'wptouch-pro'), __('This installation of WPtouch Pro is currently unlicensed.', 'wptouch-pro'), 'error', wptouch_admin_url('admin.php?page=wptouch-admin-license'));
            }
        }
    }
    // Plugin upgrade available
    $version = wptouch_is_upgrade_available();
    if (WPTOUCH_SIMULATE_ALL || $version) {
        if (!wptouch_has_license()) {
            if (wptouch_show_renewal_notice()) {
                $wptouch_pro->add_notification(sprintf(__('WPtouch Pro %s', 'wptouch-pro'), $version), __('A new version of WPtouch Pro is available. Renew your license to re-enable product updates.', 'wptouch-pro'), 'upgrade', 'http://www.wptouch.com/renew/');
            } else {
                if (wptouch_should_show_license_nag()) {
                    $wptouch_pro->add_notification(sprintf(__('WPtouch Pro %s', 'wptouch-pro'), $version), __('A new version of WPtouch Pro is available. Please activate or purchase a license to enable product updates.', 'wptouch-pro'), 'upgrade', 'http://www.wptouch.com/pricing/');
                }
            }
        } else {
            $wptouch_pro->add_notification(sprintf(__('WPtouch Pro %s', 'wptouch-pro'), $version), __('A new version of WPtouch Pro is available.', 'wptouch-pro'), 'upgrade', is_multisite() ? network_admin_url('plugins.php?plugin_status=upgrade') : wptouch_admin_url('plugins.php?plugin_status=upgrade'));
        }
    }
    // Theme upgrade available
    $available_themes = $wptouch_pro->get_available_themes(true);
    foreach ($available_themes as $name => $theme) {
        if (isset($theme->upgrade_available) && $theme->upgrade_available) {
            $wptouch_pro->add_notification(__('Theme Update Available', 'wptouch-pro'), __('One or more updates are available for your installed themes.', 'wptouch-pro'), 'upgrade', admin_url('admin.php?page=wptouch-admin-themes-and-addons'));
            break;
        }
    }
    // Add-on upgrade available
    $available_addons = $wptouch_pro->get_available_addons(true);
    foreach ($available_addons as $name => $addons) {
        if (isset($addons->upgrade_available) && $addons->upgrade_available) {
            $wptouch_pro->add_notification(__('Extension Update Available', 'wptouch-pro'), __('One or more updates are available for your installed extensions.', 'wptouch-pro'), 'upgrade', admin_url('admin.php?page=wptouch-admin-themes-and-addons'));
            break;
        }
    }
    // Error
    if (WPTOUCH_SIMULATE_ALL || function_exists('wptouch_init')) {
        $wptouch_pro->add_notification('WPtouch 1.x', __('WPtouch Pro 3 cannot co-exist with WPtouch 1.x. Disable it first in the WordPress Plugins settings.', 'wptouch-pro'), 'error', 'https://support.wptouch.com/support/solutions/articles/5000525434-known-incompatibilities');
    }
    // Error
    if (WPTOUCH_SIMULATE_ALL || defined('WPTOUCH_PRO_MIN_BACKUP_FILES')) {
        $wptouch_pro->add_notification('WPtouch 2.x', __('WPtouch Pro 3 cannot co-exist with WPtouch Pro 2.x. Disable it first in the WordPress Plugins settings.', 'wptouch-pro'), 'error', 'https://support.wptouch.com/support/solutions/articles/5000525434-known-incompatibilities');
    }
}
开发者ID:satoshishimazaki,项目名称:mknowhere,代码行数:53,代码来源:professional.php


示例7: wptouch_the_addon_title

            ?>
						<h4><?php 
            wptouch_the_addon_title();
            ?>
</h4>
						<span class="version"><?php 
            wptouch_the_addon_version();
            ?>
</span>
						<span class="update-version">
							<?php 
            echo sprintf(__('Upgrade to %s', 'wptouch-pro'), wptouch_cloud_addon_get_update_version());
            ?>
						</span>
						<?php 
            if (!wptouch_should_show_license_nag() && !wptouch_can_cloud_install(true)) {
                ?>
							<a class="button download extension" href="<?php 
                wptouch_the_addon_download_url();
                ?>
">
								<?php 
                _e('Download', 'wptouch-pro');
                ?>
							</a>
						<?php 
            }
            ?>
					</li>
				<?php 
        }
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:31,代码来源:updates-available.php



注:本文中的wptouch_should_show_license_nag函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP wptouch_the_post函数代码示例发布时间:2022-05-23
下一篇:
PHP wptouch_should_load_rtl函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap