本文整理汇总了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'), '»');
?>
示例2: wptouch_should_show_activation_nag
function wptouch_should_show_activation_nag()
{
return wptouch_should_show_license_nag();
}
示例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> | BraveNewCloud: <strong class="orange"><?php
_e('Offline', 'wptouch-pro');
?>
</strong>
<?php
} else {
?>
<?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;
}
示例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;
}
示例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');
}
}
示例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
}