PluginProbe
Easy Invoice – Invoice Generator, PDF Quotes & Payments / 2.4.0
Easy Invoice – Invoice Generator, PDF Quotes & Payments v2.4.0
2.4.0 2.4.1 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.0 2.1.21 2.1.20 2.1.19 2.1.18 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.2 All 57 releases
easy-invoice / templates / document / css-panel.php

css-panel.php in Easy Invoice – Invoice Generator, PDF Quotes & Payments 2.4.0, at templates/document/css-panel.php

40 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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' ); ?>">&times;</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