| 1 |
<?php |
| 2 |
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- view template receives variables via extract(); prefixing is impractical. |
| 3 |
|
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
$post_id = get_the_ID(); |
| 8 |
$est_reading_text = ! empty( get_post_meta( $post_id, '_betterdocs_est_reading_text', true ) ) ? get_post_meta( $post_id, '_betterdocs_est_reading_text', true ) : ''; |
| 9 |
?> |
| 10 |
<div class="est-reading-box-wrapper"> |
| 11 |
<p>You can add estimated reading time to this documentation so visitors can know how much time they need to read this.</p> |
| 12 |
<div class="est-reading-box-outer-wrapper"> |
| 13 |
<input name="estimated_reading_text" class="ert-text-field-class" value="<?php echo esc_attr( $est_reading_text ); ?>" placeholder="<?php echo esc_html__( 'Add Reading Time:⌛ Min', 'betterdocs' ); ?>"/> |
| 14 |
</div> |
| 15 |
</div> |
| 16 |
|