本文整理汇总了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’s New'), 'shopp-credits' => __('Credits')));
?>
<?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"> </span> <?php
Shopp::_e('Send Upgrade Notice');
?>
</a>
</div>
<?php
}