| 1 |
<?php |
| 2 |
/** |
| 3 |
* Per-document CSS editor, shown to administrators only. |
| 4 |
* |
| 5 |
* Receives: $document_type, $additional_css |
| 6 |
* |
| 7 |
* @package Easy_Invoice |
| 8 |
* @subpackage Templates |
| 9 |
*/ |
| 10 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
exit; |
| 13 |
} |
| 14 |
?> |
| 15 |
<div id="css-panel" class="ei-css-panel" hidden> |
| 16 |
<div class="ei-css-panel__header"> |
| 17 |
<h3><?php esc_html_e( 'Additional CSS', 'easy-invoice' ); ?></h3> |
| 18 |
<button type="button" id="close-css-panel" class="ei-css-panel__close" aria-label="<?php esc_attr_e( 'Close', 'easy-invoice' ); ?>">×</button> |
| 19 |
</div> |
| 20 |
<div class="ei-css-panel__body"> |
| 21 |
<label for="additional-css-textarea"> |
| 22 |
<?php |
| 23 |
echo esc_html( |
| 24 |
'quote' === $document_type |
| 25 |
? __( 'CSS applied to this quote only:', 'easy-invoice' ) |
| 26 |
: __( 'CSS applied to this invoice only:', 'easy-invoice' ) |
| 27 |
); |
| 28 |
?> |
| 29 |
</label> |
| 30 |
<textarea id="additional-css-textarea" spellcheck="false" placeholder=".template-standard { font-family: Georgia, serif; }"><?php echo esc_textarea( $additional_css ); ?></textarea> |
| 31 |
<div class="ei-css-panel__actions"> |
| 32 |
<button type="button" id="save-css-btn" class="ei-btn ei-btn--accept"><?php esc_html_e( 'Save CSS', 'easy-invoice' ); ?></button> |
| 33 |
<button type="button" id="preview-css-btn" class="ei-btn"><?php esc_html_e( 'Preview', 'easy-invoice' ); ?></button> |
| 34 |
<button type="button" id="clear-css-btn" class="ei-btn ei-btn--decline"><?php esc_html_e( 'Clear', 'easy-invoice' ); ?></button> |
| 35 |
</div> |
| 36 |
<div id="css-status" class="ei-css-panel__status" hidden></div> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
<div id="css-overlay" class="ei-css-overlay" hidden></div> |
| 40 |
|