當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。