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


PHP Shopp::_em方法代码示例

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


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

示例1: heading

    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 
    }
开发者ID:forthrobot,项目名称:inuvik,代码行数:20,代码来源:Welcome.php

示例2: sprintf

        $_[] = 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 
    }
开发者ID:forthrobot,项目名称:inuvik,代码行数:31,代码来源:update.php


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