<?php/** * Admin View: Page - Status Logs */if(!defined('ABSPATH')){exit;}?><?phpif($logs):?><divid="log-viewer-select"><divclass="alignleft"><h2><?phpechoesc_html($viewed_log);?><?phpif(!empty($handle)):?><aclass="page-title-action"href="<?phpechoesc_url(wp_nonce_url(add_query_arg(array('handle'=>$handle),admin_url('admin.php?page=wc-status&tab=logs')),'remove_log'));?>"class="button"><?phpesc_html_e('Delete log','woocommerce');?></a><?phpendif;?></h2></div><divclass="alignright"><formaction="<?phpechoadmin_url('admin.php?page=wc-status&tab=logs');?>"method="post"><selectname="log_file"><?phpforeach($logsas$log_key=>$log_file):?><optionvalue="<?phpechoesc_attr($log_key);?>"<?phpselected(sanitize_title($viewed_log),$log_key);?>><?phpechoesc_html($log_file);?> (<?phpechodate_i18n(get_option('date_format').' '.get_option('time_format'),filemtime(WC_LOG_DIR.$log_file));?>)</option><?phpendforeach;?></select><inputtype="submit"class="button"value="<?phpesc_attr_e('View','woocommerce');?>"/></form></div><divclass="clear"></div></div><divid="log-viewer"><pre><?phpechoesc_html(file_get_contents(WC_LOG_DIR.$viewed_log));?></pre></div><?phpelse:?><divclass="updated woocommerce-message inline"><p><?php_e('There are currently no logs to view.','woocommerce');?></p></div><?phpendif;?>