Ejemplo n.º 1
0
 /**
  * Echo the invoice terms
  * @param  integer $id
  * @return string
  */
 function si_invoice_terms($id = 0)
 {
     if (!$id) {
         $id = get_the_ID();
     }
     echo apply_filters('si_invoice_terms', si_get_invoice_terms($id), $id);
 }
Ejemplo n.º 2
0
						<div id="doc_notes">
							<h2><?php 
    _e('Notes', 'sprout-invoices');
    ?>
</h2>
							<?php 
    si_invoice_notes();
    ?>
						</div><!-- #doc_notes -->
						
						<?php 
}
?>

						<?php 
if (strlen(si_get_invoice_terms()) > 1) {
    ?>
						<?php 
    do_action('si_document_terms');
    ?>
						<div id="doc_terms">
							<h2><?php 
    _e('Terms', 'sprout-invoices');
    ?>
</h2>
							<?php 
    si_invoice_terms();
    ?>
						</div><!-- #doc_terms -->
						
						<?php 
Ejemplo n.º 3
0
 /**
  * Echo the invoice terms
  * @param  integer $id 
  * @return string      
  */
 function si_invoice_terms($id = 0)
 {
     if (!$id) {
         global $post;
         $id = $post->ID;
     }
     echo apply_filters('si_invoice_terms', si_get_invoice_terms($id), $id);
 }