/** * Echo the estimate terms * @param integer $id * @return string */ function si_estimate_terms($id = 0) { if (!$id) { $id = get_the_ID(); } echo apply_filters('si_estimate_terms', si_get_estimate_terms($id), $id); }
<div id="doc_notes"> <h2><?php si_e('Notes'); ?> </h2> <?php si_estimate_notes(); ?> </div><!-- #doc_notes --> <?php } ?> <?php if (strlen(si_get_estimate_terms()) > 1) { ?> <?php do_action('si_document_terms'); ?> <div id="doc_terms"> <h2><?php si_e('Terms'); ?> </h2> <?php si_estimate_terms(); ?> </div><!-- #doc_terms -->
/** * Echo the estimate terms * @param integer $id * @return string */ function si_estimate_terms($id = 0) { if (!$id) { global $post; $id = $post->ID; } echo apply_filters('si_estimate_terms', si_get_estimate_terms($id), $id); }