本文整理匯總了PHP中Shopp::_jse方法的典型用法代碼示例。如果您正苦於以下問題:PHP Shopp::_jse方法的具體用法?PHP Shopp::_jse怎麽用?PHP Shopp::_jse使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Shopp
的用法示例。
在下文中一共展示了Shopp::_jse方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: jQuery
jQuery(document).ready( function($) {
var m = {
none:<?php
Shopp::_jse('Select some discounts!', 'Shopp');
?>
,
enable:<?php
Shopp::_jse('Are you sure you want to enable the selected discounts?', 'Shopp');
?>
,
disable:<?php
Shopp::_jse('Are you sure you want to disable the selected discounts?', 'Shopp');
?>
,
delete:<?php
Shopp::_jse('Are you sure you want to delete the selected discounts?', 'Shopp');
?>
},form = $('#discounts');
columns.init(pagenow);
$('#selectall').change(function() {
form.find('th input').each( function () {
var $this = $(this),checked = $(this).attr('checked');
$this.attr('checked',!checked);
});
});
$('#actions').change(function () {
var $this = $(this),action = $this.val();
if (form.find('input.selected:checked').size() == 0) { alert(m.none); return $this.val(''); }
示例2: _e
?>
" size="30" tabindex="1" autocomplete="off" />
</div>
<div class="inside">
<?php
if ('' != get_option('permalink_structure') && !empty($Product->id)) {
?>
<div id="edit-slug-box"><strong><?php
_e('Permalink', 'Shopp');
?>
:</strong>
<span id="sample-permalink"><?php
echo $permalink;
?>
<span id="editable-slug" title=<?php
Shopp::_jse('Click to edit this part of the permalink', 'Shopp');
?>
><?php
echo esc_attr($Product->slug);
?>
</span><span id="editable-slug-full"><?php
echo esc_attr($Product->slug);
?>
</span><?php
echo user_trailingslashit("");
?>
</span>
<span id="edit-slug-buttons">
<button type="button" class="edit button"><?php
_e('Edit', 'Shopp');
?>
示例3: _jse
/**
* @deprecated Use Shopp::_jse()
**/
function _jse($text, $domain = 'default')
{
Shopp::_jse($text, $domain);
}