本文整理汇总了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);
}