本文整理汇总了PHP中si_e函数的典型用法代码示例。如果您正苦于以下问题:PHP si_e函数的具体用法?PHP si_e怎么用?PHP si_e使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了si_e函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: load_html_templates
public static function load_html_templates()
{
ob_start();
?>
<span class="button" id="load_html_templates"><?php
self::_e('Load HTML Templates');
?>
</span>
<script type="text/javascript">
//<![CDATA[
jQuery("#load_html_templates").on('click', function(event) {
event.preventDefault();
jQuery("#load_html_templates").html(si_js_object.inline_spinner);
if( confirm( '<?php
si_e('Are you sure? This will delete any customized notifications and replace them with the default HTML templates.');
?>
' ) ) {
jQuery.post( ajaxurl, { action: 'si_load_html_templates' },
function( data ) {
jQuery("#load_html_templates").removeClass('button');
jQuery("#load_html_templates").html('<?php
si_e('All done');
?>
');
jQuery('[name="si_notification_format"]').val('HTML');
}
);
}
});
//]]>
</script>
<?php
return ob_get_clean();
}
示例2: sa_formatted_money
sa_formatted_money($subtotal, $doc_id);
?>
</td>
</tr>
<?php
}
?>
<tr class="total" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;"><td class="alignleft" width="80%" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: right; border-bottom-color: #333; border-bottom-width: 2px; border-bottom-style: solid; font-weight: 700; margin: 0; padding: 5px 0;" align="left" valign="top"><?php
si_e('Total');
?>
</td>
<td class="alignright" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: right; border-bottom-color: #333; border-bottom-width: 2px; border-bottom-style: solid; font-weight: 700; margin: 0; padding: 5px 0;" align="right" valign="top"><?php
sa_formatted_money($total, $doc_id);
?>
</td>
<?php
if ($due) {
?>
<tr class="total" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;"><td class="alignright" width="80%" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: right; font-weight: 700; margin: 0; padding: 5px 0;" align="right" valign="top"><?php
si_e('Total Due');
?>
</td>
<td class="alignright" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: right; font-weight: 700; margin: 0; padding: 5px 0;" align="right" valign="top"><?php
sa_formatted_money($due, $doc_id);
?>
</td>
</tr>
<?php
}
?>
</table>
示例3: sa_admin_fields
<div id="send_doc_options_wrap" class="admin_fields clearfix">
<?php
sa_admin_fields($fields, 'send_metabox');
?>
<div id="quick_send_option" class="form-group">
<span class="label_wrap"> </span>
<div class="input_wrap">
<a href="javascript:void(0)" class="button" id="send_doc_notification"><?php
si_e('Send Estimate');
?>
</a> <span class="helptip" title="<?php
si_e("Make sure to save all information before sending your estimate.");
?>
"></span>
</div>
</div>
</div>
示例4: wpautop
<?php
echo wpautop($r_post->post_content);
?>
<?php
}
?>
</dd>
<?php
}
?>
</dl>
<div id="private_note_wrap">
<p>
<textarea id="private_note" name="private_note" class="clearfix"></textarea>
<a href="javascript:void(0)" id="save_private_note" class="button" data-post-id="<?php
the_ID();
?>
" data-nonce="<?php
echo wp_create_nonce(SI_Internal_Records::NONCE);
?>
"><?php
si_e('Save');
?>
</a> <span class="helptip" title="<?php
si_e("These private notes will be added to the history.");
?>
"></span>
</p>
</div>
示例5: si_e
<?php
}
?>
</div>
<div id="edit-slug-box" class="clearfix">
<b><?php
si_e('Permalink');
?>
</b>
<span id="permalink-select" tabindex="-1"><?php
echo get_permalink($id);
?>
</span>
<span id="view-post-btn"><a href="<?php
echo get_permalink($id);
?>
" class="button button-small"><?php
si_e('View Estimate');
?>
</a></span>
<?php
if (apply_filters('show_upgrade_messaging', true)) {
printf(si__('<span class="helptip" title="Upgrade for Private URLs"></span>'), si_get_purchase_link());
}
?>
</div>
</div>
示例6: array
<?php
$editor_settings = array('media_buttons' => false, 'textarea_rows' => 4, 'theme_styles' => false);
?>
<h3><?php
si_e('Terms');
?>
<span class="helptip" title="<?php
si_e("Terms will be shown on the estimate.");
?>
"></span></h3>
<?php
wp_editor_styleless($terms, 'estimate_terms', $editor_settings);
?>
<h3><?php
si_e('Notes');
?>
<span class="helptip" title="<?php
si_e("These notes will be shown on the estimate.");
?>
"></span></h3>
<?php
wp_editor_styleless($notes, 'estimate_notes', $editor_settings);
示例7: get_attached_media
?>
<?php
}
?>
</dl>
</div>
<?php
$media = get_attached_media('');
?>
<?php
if (!empty($media)) {
?>
<p>
<h3><?php
si_e('Attachments');
?>
</h3>
<ul>
<?php
foreach ($media as $id => $mpost) {
?>
<?php
$img = wp_get_attachment_image_src($id, 'thumbnail', true);
?>
<li><a href="<?php
echo wp_get_attachment_url($id);
?>
" target="_blank" class="attachment_url"><img src="<?php
echo esc_url($img[0]);
?>
示例8: get_post_time
echo get_post_time(get_option('date_format'), false, $estimate_id);
?>
</dt>
<dd><?php
printf('<a href="%s">%s</a>', get_edit_post_link($estimate_id), get_the_title($estimate_id));
?>
</dd>
<?php
}
?>
</dl>
<?php
} else {
?>
<em><?php
si_e('No estimates');
?>
</em>
<?php
}
?>
</p>
<div class="clear"></div>
</div><!-- #minor-publishing -->
<div id="major-publishing-actions">
<?php
do_action('post_submitbox_start');
?>
<div id="delete-action">
<?php
示例9: display_table
public static function display_table()
{
add_thickbox();
//Create an instance of our package class...
$wp_list_table = new SI_Payments_Table();
//Fetch, prepare, sort, and filter our data...
$wp_list_table->prepare_items();
?>
<script type="text/javascript">
jQuery(document).ready(function($){
jQuery(".si_void_payment").on('click', function(event) {
event.preventDefault();
var $void_button = $( this ),
void_payment_id = $void_button.attr( 'ref' ),
notes_form = $( '#transaction_data_' + void_payment_id ).val();
$void_button.html("<?php
si_e('Working...');
?>
");
$.post( ajaxurl, { action: 'si_void_payment', payment_id: void_payment_id, notes: notes_form, void_payment_nonce: '<?php
echo wp_create_nonce(SI_Controller::NONCE);
?>
' },
function( data ) {
self.parent.tb_remove();
$('#void_link_'+void_payment_id).closest('tr').fadeOut('slow');
}
);
});
jQuery(".si_attempt_capture").on('click', function(event) {
event.preventDefault();
if( confirm( '<?php
si_e('Are you sure? This will force a capture attempt on this payment.');
?>
' ) ) {
var $capture_link = $( this ),
capture_payment_id = $capture_link.attr( 'ref' );
$capture_link.html('<?php
si_e('Working...');
?>
');
$.post( ajaxurl, { action: 'si_manually_capture_payment', payment_id: capture_payment_id, capture_payment_nonce: '<?php
echo wp_create_nonce(SI_Payment_Processors::AJAX_NONCE);
?>
' },
function( data ) {
window.location = window.location.pathname + "?post_type=sa_invoice&page=sprout-apps/invoice_payments&s=" + escape( capture_payment_id );
}
);
}
});
jQuery(".si_mark_complete").on('click', function(event) {
event.preventDefault();
if( confirm( '<?php
si_e('Are you sure? This will mark the payment as complete.');
?>
' ) ) {
var $complete_link = $( this ),
complete_payment_id = $complete_link.attr( 'ref' );
$complete_link.html('<?php
si_e('Working...');
?>
');
$.post( ajaxurl, { action: 'si_mark_payment_complete', payment_id: complete_payment_id, complete_payment_nonce: '<?php
echo wp_create_nonce(SI_Payment_Processors::AJAX_NONCE);
?>
' },
function( data ) {
window.location = window.location.pathname + "?post_type=sa_invoice&page=sprout-apps/invoice_payments&s=" + escape( complete_payment_id );
}
);
}
});
});
</script>
<div class="wrap">
<h2>
<?php
si_e('Invoice Payments');
?>
</h2>
<?php
$wp_list_table->views();
?>
<form id="payments-filter" method="get">
<input type="hidden" name="page" value="<?php
echo esc_attr($_REQUEST['page']);
?>
" />
<?php
$wp_list_table->search_box(self::__('Search'), 'payment_id');
?>
<?php
$wp_list_table->display();
?>
</form>
</div>
<?php
//.........这里部分代码省略.........
示例10: si_e
<?php
if (apply_filters('show_upgrade_messaging', true)) {
?>
<div id="deposit">
<b title="Upgrade Sprout Invoices to enable deposits." class="helptip"><?php
si_e('Deposit Due');
?>
</b>
<input type="number" name="deposit" min="0" max="0" step="any" disabled="disabled">
</div>
<?php
} elseif (floatval($total - $total_payments) > 0.0 || $status == 'auto-draft' || $status == 'temp') {
?>
<div id="deposit">
<b title="Set the amount due for the next payment—the amount due will be used if blank" class="helptip"><?php
si_e('Deposit Due');
?>
</b>
<input type="number" name="deposit" value="<?php
echo (double) $deposit;
?>
" min="0" max="<?php
echo floatval($total - $total_payments);
?>
" step="any">
</div>
<?php
}
?>
</div>
示例11: column_total
function column_total($item)
{
$payment = SI_Payment::get_instance($item->ID);
$invoice_id = $payment->get_invoice_id();
if ($invoice_id) {
$invoice = SI_Invoice::get_instance($invoice_id);
if (is_a($invoice, 'SI_Invoice')) {
echo '<strong>' . si__('Payment Total') . ':</strong> ' . sa_get_formatted_money($payment->get_amount()) . '<br/>';
echo '<em>' . si__('Invoice Balance') . ': ' . sa_get_formatted_money($invoice->get_balance(), $invoice->get_id()) . '</em><br/>';
echo '<em>' . si__('Invoice Total') . ': ' . sa_get_formatted_money($invoice->get_total(), $invoice->get_id()) . '</em>';
} else {
si_e('No invoice found');
}
} else {
printf(si__('No invoice associated with this payment.'));
}
}
示例12: sa_admin_fields
<div id="project_fields" class="admin_fields clearfix">
<?php
sa_admin_fields($fields);
?>
</div>
<h3><?php
si_e('Project Brief');
?>
<span class="helptip" title="<?php
si_e("General project brief.");
?>
"></span></h3>
<?php
$editor_settings = array('media_buttons' => false, 'textarea_rows' => 4, 'theme_styles' => false);
wp_editor_styleless($project->get_content(), 'content', $editor_settings);
示例13: display_table
public static function display_table()
{
add_thickbox();
//Create an instance of our package class...
$wp_list_table = new SI_Records_Table();
//Fetch, prepare, sort, and filter our data...
$wp_list_table->prepare_items();
?>
<script type="text/javascript">
jQuery(document).ready(function($){
jQuery(".show_record_detail").live('click', function(e) {
e.preventDefault();
var record_id = $(this).parent().attr("id");
$('#'+record_id).remove();
$('#record_detail_'+record_id).toggle();
});
});
</script>
<div class="wrap">
<h2>
<?php
si_e('Sprout Invoices Records');
?>
</h2>
<?php
self::maybe_purge_records();
?>
<form id="records-filter" method="get">
<input type="hidden" name="page" value="<?php
echo esc_attr($_REQUEST['page']);
?>
" />
<?php
$wp_list_table->display();
?>
</form>
</div>
<?php
}
示例14: do_action
<div class="clear"></div>
</div><!-- #minor-publishing -->
<div id="major-publishing-actions">
<?php
do_action('post_submitbox_start');
?>
<div id="delete-action">
<span id="notification_type_disabled_wrap">
<input type="checkbox" id="notification_type_disabled" name="notification_type_disabled" value="TRUE" <?php
checked('TRUE', $disabled);
?>
/> <?php
si_e('Disabled');
?>
</span>
<?php
if (current_user_can('delete_post', $post->ID)) {
?>
<a class="submitdelete deletion" href="<?php
echo get_delete_post_link($post->ID, null, true);
?>
"><?php
self::_e('Delete');
?>
</a><?php
}
?>
示例15: sa_form_fields
<!-- User Creation Form -->
<div id="user_creation_modal" style="display:none;">
<div id="user_create_form" class="clearfix">
<?php
sa_form_fields($fields, 'user');
?>
</div>
<p>
<a href="javascript:void(0)" id="create_user" class="button button-large button-primary"><?php
si_e('Create user');
?>
</a>
</p>
</div>