/**
  * Show the estimate history, including the submission fields
  *
  * @param WP_Post $post
  * @param array   $metabox
  * @return
  */
 public static function show_submission_history_view($post, $metabox)
 {
     if ($post->post_status == 'auto-draft') {
         printf('<p>%s</p>', __('No history available.', 'sprout-invoices'));
         return;
     }
     $estimate = SI_Estimate::get_instance($post->ID);
     self::load_view('admin/meta-boxes/estimates/history-premium', array('id' => $post->ID, 'post' => $post, 'estimate' => $estimate, 'history' => si_doc_history_records($post->ID, false), 'submission_fields' => $estimate->get_submission_fields()), false);
 }
Ejemplo n.º 2
0
								</li>
							<?php 
}
?>
						</ul>
					</aside>
				</div><!-- #footer_wrap -->

		</div><!-- #outer_doc_wrap -->
		
		<div id="doc_history">
			<?php 
do_action('si_document_history');
?>
			<?php 
foreach (si_doc_history_records() as $item_id => $data) {
    ?>
				<dt>
					<span class="history_status <?php 
    echo esc_attr($data['status_type']);
    ?>
"><?php 
    echo esc_html($data['type']);
    ?>
</span><br/>
					<span class="history_date"><?php 
    echo date(get_option('date_format') . ' @ ' . get_option('time_format'), strtotime($data['post_date']));
    ?>
</span>
				</dt>