当前位置: 首页>>代码示例>>PHP>>正文


PHP Shopp::_emi方法代码示例

本文整理汇总了PHP中Shopp::_emi方法的典型用法代码示例。如果您正苦于以下问题:PHP Shopp::_emi方法的具体用法?PHP Shopp::_emi怎么用?PHP Shopp::_emi使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Shopp的用法示例。


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

示例1:

<div id="welcome" class="wrap about-wrap">
	<div class="icon32"></div>
	<h1><?php 
Shopp::_emi('Shopp Database **Update Required**');
?>
</h1>

	<?php 
Shopp::_em('Shopp has been updated! Now the database needs updated to keep things humming along nice and smooth.

To protect your database, the storefront has been switched to maintenance mode until the database update is completed.');
?>

	<?php 
if (current_user_can('activate_plugins')) {
    ?>

		<div class="warning"><p><?php 
    Shopp::_em('**IMPORTANT**

			Be sure to backup your database to prevent a loss of data! Backup now and come back later when you are ready to update. [How do I backup?](%s)', ShoppSupport::DOCS . 'getting-started/upgrading/');
    ?>
</p></div>

		<?php 
    Shopp::_em('The update process should only take a moment. Keep calm and don\'t panic. You did a backup right?');
    ?>
		<?php 
    $upgrade = wp_nonce_url(add_query_arg(array('action' => 'shopp-upgrade'), admin_url('admin.php')), 'shopp-upgrade');
    ?>
		<p><a href="<?php 
开发者ID:forthrobot,项目名称:inuvik,代码行数:31,代码来源:update.php

示例2: earlyupdates

 public static function earlyupdates()
 {
     $updates = shopp_setting('updates');
     $core = isset($updates->response[SHOPP_PLUGINFILE]) ? $updates->response[SHOPP_PLUGINFILE] : false;
     $addons = isset($updates->response[SHOPP_PLUGINFILE . '/addons']) ? $updates->response[SHOPP_PLUGINFILE . '/addons'] : false;
     if (!$core && !$addons) {
         return false;
     }
     $plugin_name = 'Shopp';
     $plugin_slug = strtolower($plugin_name);
     $store_url = ShoppSupport::STORE;
     $account_url = "{$store_url}/account/";
     $updates = array();
     if (!empty($core) && isset($core->new_version) && version_compare($core->new_version, ShoppVersion::release(), '>')) {
         $details_url = admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_slug . '&core=' . $core->new_version . '&TB_iframe=true&width=600&height=800');
         $updates[] = Shopp::_mi('%2$s Shopp %1$s is available %3$s from shopplugin.com now.', $core->new_version, '<a href="' . $details_url . '" class="thickbox" title="' . esc_attr($plugin_name) . '">', '</a>');
     }
     if (!empty($addons)) {
         // Addon update messages
         $addonupdates = array();
         foreach ((array) $addons as $addon) {
             $addonupdates[] = $addon->name . ' ' . $addon->new_version;
         }
         if (count($addons) > 1) {
             $last = array_pop($addonupdates);
             $updates[] = Shopp::_mi('Add-on updates are available for %s &amp; %s.', join(', ', $addonupdates), $last);
         } elseif (count($addons) == 1) {
             $updates[] = Shopp::_mi('An add-on update is available for %s.', $addonupdates[0]);
         }
     }
     if (is_network_admin() || !is_multisite()) {
         $wp_list_table = _get_list_table('WP_Plugins_List_Table');
         echo '<tr class="plugin-update-tr"><th colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange"><div class="update-message">';
         Shopp::_emi('You&apos;re missing out on important updates! %1$s &nbsp; %2$s Buy a Shopp Support Key! %3$s', empty($updates) ? '' : join(' ', $updates), '<a href="' . ShoppSupport::STORE . '" class="button button-primary">', '</a>');
         echo '<style type="text/css">#shopp th,#shopp td{border-bottom:0;}</style>';
         echo '</div></td></tr>';
     }
     return true;
 }
开发者ID:forthrobot,项目名称:inuvik,代码行数:39,代码来源:Support.php

示例3:

<div id="welcome" class="wrap shopp">
	<div class="icon32"></div>
	<h2><?php 
Shopp::_emi('Shopp Database **Upgrade Required**');
?>
</h2>

	<?php 
Shopp::_em('Shopp has been updated!

Before you can use the new version of Shopp, your database needs to be upgraded.

Your storefront has been switched to maintenance mode until the database upgrade is completed.');
?>

	<?php 
if (current_user_can('activate_plugins')) {
    ?>

		<div class="error"><p><?php 
    Shopp::_em('**IMPORTANT:** Be sure to backup your database to prevent a loss of data! [How do I backup?](%s)', ShoppSupport::DOCS . 'getting-started/upgrading/');
    ?>
</p></div>

		<?php 
    Shopp::_em('To upgrade, you simply need to reactivate Shopp:

- Click the **Continue&hellip;** button below to deactivate Shopp
- In the WordPress **Plugins** manager, click the **Activate** link for Shopp to reactivate and upgrade the Shopp database');
    ?>
		<?php 
开发者ID:BlessySoftwares,项目名称:anvelocom,代码行数:31,代码来源:reactivate.php


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