die('We\'re sorry, but you can not directly access this file.');
}
?>
<divclass="health-check-body">
<h2>
<?phpesc_html_e('Screenshots','health-check');?>
</h2>
<divclass="notice notice-warning inline">
<p>
<?phpesc_html_e('This is a beta-feature, and some inconsistencies in screenshots is to be expected, please keep that, and the fact that your pages may show sensitive information in mind when sharing screenshots.','health-check');?>
</p>
</div>
<p>
<?php
printf(
/* translators: %s: The label of the "Take screenshot" button. */
esc_html__('To take a screenshot for sharing with support users, you may click the %s button, found at the top of every page, and they will be stored securely on your site until you wish to share them.','health-check'),
sprintf(
'<strong>%s</strong>',
esc_html_x('Take Screenshot','Description of the button label','health-check')
)
);
?>
</p>
<divclass="health-check-screenshots">
<?php
$screenshots=get_posts(
array(
'post_type'=>'health-check-images',
'posts_per_page'=>-1,
)
);
if(!$screenshots){
echo'<p><em>'.esc_html__('You have not taken any screenshots, return here when you have to view them.','health-check').'</em></p>';