Exemplo n.º 1
0
    public function heading()
    {
        $display_version = ShoppVersion::release();
        Shopp::_em('
# Welcome to Shopp %s

Thank you for using Shopp! E-commerce just got a little easier and more secure. Enjoy!', $display_version);
        ?>

		<div class="shopp-badge"><div class="logo">Shopp</div><span class="version"><?php 
        printf(__('Version %s'), $display_version);
        ?>
</span></div>

		<?php 
        $this->tabs(array('shopp-welcome' => __('What&#8217;s New'), 'shopp-credits' => __('Credits')));
        ?>

		<?php 
    }
Exemplo n.º 2
0
        $_[] = sprintf(__('The Shopp installation on %1$s has been upgraded to %2$s and requires a database upgrade. Please login to %1$s and perform the upgrade by deactivating and reactivating the Shopp plugin.', 'Shopp'), $homeurl, ShoppVersion::release());
        $message = apply_filters('shopp_upgrade_notice_message', join("\n", $_));
        if (Shopp::email($message)) {
            shopp_debug('A Shopp upgrade notification was sent.');
        }
        Shopp::_em('### Upgrade Notice Sent

An upgrade notice has been sent to the site administrator.');
        ?>
		<?php 
    } else {
        ?>

			<div class="error"><?php 
        Shopp::_em('### Contact Your Site Administrator

You will need to notify a site administrator to perform the upgrade.');
        ?>
			</div>
			<div class="alignright">
			<a href="<?php 
        echo wp_nonce_url(add_query_arg('_shopp_upgrade_notice', true), 'shopp_upgrade_notice');
        ?>
" class="button-primary"><span class="shoppui-envelope-alt">&nbsp;</span> <?php 
        Shopp::_e('Send Upgrade Notice');
        ?>
</a>
			</div>

	<?php 
    }