| @@ -4,15 +4,18 @@ | ||
| 4 | 4 | } |
| 5 | 5 | ?> |
| 6 | 6 | <div id="e2pdf-build-top-panel" class="e2pdf-build-top-panel"> |
| 7 | 7 | <ul class="e2pdf-panel-options"> |
| 8 | - | |
| 9 | - <li><a title="<?php _e('Hide Controls', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button button button-small e2pdf-hide-controls"> | |
| 10 | - <i class="dashicons dashicons-text"></i> | |
| 11 | - </a> | |
| 8 | + <li> | |
| 12 | 9 | <a title="<?php _e('Hide/Show Hidden Elements', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button button button-small e2pdf-hidden-elements e2pdf-inactive"> |
| 13 | 10 | <i class="dashicons dashicons-visibility"></i> |
| 14 | 11 | </a> |
| 12 | + <a title="<?php _e('Lock/Unlock Locked Elements', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button button button-small e2pdf-locked-elements e2pdf-inactive"> | |
| 13 | + <i class="dashicons dashicons-unlock"></i> | |
| 14 | + </a> | |
| 15 | + <a title="<?php _e('Enable/Disable WYSIWYG Editor', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button button button-small e2pdf-wysiwyg-source e2pdf-inactive"> | |
| 16 | + <i class="dashicons dashicons-html"></i> | |
| 17 | + </a> | |
| 15 | 18 | </li> |
| 16 | 19 | <li> |
| 17 | 20 | <a title="<?php _e('New Page', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button button button-small e2pdf-add-page"> |
| 18 | 21 | <i class="dashicons dashicons-welcome-add-page"></i> |
| @@ -17,65 +20,82 @@ | ||
| 17 | 20 | <a title="<?php _e('New Page', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button button button-small e2pdf-add-page"> |
| 18 | 21 | <i class="dashicons dashicons-welcome-add-page"></i> |
| 19 | 22 | </a> |
| 20 | 23 | </li><li> |
| 21 | - <!-- undo --> | |
| 22 | - <a title="<?php _e('Undo', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='undo'> | |
| 24 | + <a title="<?php _e('Undo Changes', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button button button-small e2pdf-undo e2pdf-inactive"> | |
| 23 | 25 | <i class="dashicons dashicons-undo"></i> |
| 24 | - </a><a title="<?php _e('Redo', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='redo'> | |
| 25 | - <i class="dashicons dashicons-redo"></i> | |
| 26 | - </a><a title="<?php _e('Clear Style', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='clear'> | |
| 26 | + </a> | |
| 27 | + </li><li> | |
| 28 | + <a title="<?php _e('Clear Style', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg e2pdf-apply-wysiwyg-selection button button-small e2pdf-inactive" data-command='clear'> | |
| 27 | 29 | <i class="dashicons dashicons-editor-removeformatting"></i> |
| 28 | 30 | </a> |
| 29 | 31 | </li><li> |
| 30 | 32 | <div class="e2pdf-wysiwyg-color"> |
| 31 | - <a title="<?php _e('Color', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button button button-small e2pdf-apply-wysiwyg-color"> | |
| 33 | + <a title="<?php _e('Color', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button button button-small e2pdf-apply-wysiwyg e2pdf-apply-wysiwyg-color e2pdf-apply-wysiwyg-selection e2pdf-inactive"> | |
| 32 | 34 | <i class="dashicons dashicons-editor-textcolor"></i> |
| 33 | 35 | </a> |
| 34 | 36 | <div class="e2pdf-colorpicker-wr"> |
| 35 | - <input data-command='color' type="text" id="e2pdf-wysiwyg-font-color" class="e2pdf-color-picker e2pdf-color-picker-load" value=""> | |
| 37 | + <input data-command='color' type="text" class="e2pdf-apply-wysiwyg-change e2pdf-wysiwyg-font-color e2pdf-color-picker e2pdf-color-picker-load" value=""> | |
| 36 | 38 | </div> |
| 37 | - </div><a title="<?php _e('Bold', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='bold'> | |
| 39 | + </div><a title="<?php _e('Bold', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg e2pdf-apply-wysiwyg-selection button button-small e2pdf-inactive" data-command='bold'> | |
| 38 | 40 | <i class="dashicons dashicons-editor-bold"></i> |
| 39 | - </a><a title="<?php _e('Italic', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='italic'> | |
| 41 | + </a><a title="<?php _e('Italic', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg e2pdf-apply-wysiwyg-selection button button-small e2pdf-inactive" data-command='italic'> | |
| 40 | 42 | <i class="dashicons dashicons-editor-italic"></i> |
| 41 | - </a><a title="<?php _e('Underline', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='underline'> | |
| 43 | + </a><a title="<?php _e('Underline', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg e2pdf-apply-wysiwyg-selection button button-small e2pdf-inactive" data-command='underline'> | |
| 42 | 44 | <i class="dashicons dashicons-editor-underline"></i> |
| 43 | - </a><a title="<?php _e('Strike Through', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='strikeThrough'> | |
| 45 | + </a><a title="<?php _e('Strike Through', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg e2pdf-apply-wysiwyg-selection button button-small e2pdf-inactive" data-command='strikeThrough'> | |
| 44 | 46 | <i class="dashicons dashicons-editor-strikethrough"></i> |
| 45 | 47 | </a> |
| 46 | 48 | |
| 47 | - </li><li><a title="<?php _e('Align Left', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='justifyLeft'> | |
| 49 | + </li><li><a title="<?php _e('Align Left', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small e2pdf-inactive" data-command='justifyLeft'> | |
| 48 | 50 | <i class="dashicons dashicons-editor-alignleft"></i> |
| 49 | - </a><a title="<?php _e('Align Center', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='justifyCenter'> | |
| 51 | + </a><a title="<?php _e('Align Center', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small e2pdf-inactive" data-command='justifyCenter'> | |
| 50 | 52 | <i class="dashicons dashicons-editor-aligncenter"></i> |
| 51 | - </a><a title="<?php _e('Align Right', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='justifyRight'> | |
| 53 | + </a><a title="<?php _e('Align Right', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small e2pdf-inactive" data-command='justifyRight'> | |
| 52 | 54 | <i class="dashicons dashicons-editor-alignright"></i> |
| 53 | 55 | </a> |
| 54 | 56 | </li><li> |
| 55 | 57 | <!-- UL --> |
| 56 | - <a title="<?php _e('Unordered List', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='insertUnorderedList'> | |
| 58 | + <a title="<?php _e('Unordered List', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small e2pdf-inactive" data-command='insertUnorderedList'> | |
| 57 | 59 | <i class="dashicons dashicons-editor-ul"></i> |
| 58 | - </a><a title="<?php _e('Ordered List', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='insertOrderedList'> | |
| 60 | + </a><a title="<?php _e('Ordered List', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small e2pdf-inactive" data-command='insertOrderedList'> | |
| 59 | 61 | <i class="dashicons dashicons-editor-ol"></i> |
| 60 | 62 | </a> |
| 61 | - </li><li><a title="<?php _e('Heading H1', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='H1'> | |
| 62 | - <span>H1</span> | |
| 63 | - </a><a title="<?php _e('Heading H2', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='H2'> | |
| 64 | - <span>H2</span> | |
| 63 | + </li><li><a title="<?php _e('Heading H1', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg e2pdf-apply-wysiwyg-selection button button-small e2pdf-inactive" data-command='H1'> | |
| 64 | + <i class="dashicons dashicons-heading"></i>1 | |
| 65 | + </a><a title="<?php _e('Heading H2', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg e2pdf-apply-wysiwyg-selection button button-small e2pdf-inactive" data-command='H2'> | |
| 66 | + <i class="dashicons dashicons-heading"></i>2 | |
| 65 | 67 | </a> |
| 66 | - </li><li><a title="<?php _e('Link', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='createlink'> | |
| 68 | + </li><li><a title="<?php _e('Link', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small e2pdf-inactive" data-command='createlink'> | |
| 67 | 69 | <i class="dashicons dashicons-admin-links"></i> |
| 68 | - </a><a title="<?php _e('Unlink', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='unlink'> | |
| 70 | + </a><a title="<?php _e('Unlink', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg e2pdf-apply-wysiwyg-selection button button-small e2pdf-inactive" data-command='unlink'> | |
| 69 | 71 | <i class="dashicons dashicons-editor-unlink"></i> |
| 70 | 72 | </a> |
| 71 | 73 | </li> |
| 74 | + <li><a title="<?php _e('Table', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button button button-small e2pdf-apply-wysiwyg e2pdf-wysiwyg-table e2pdf-inactive"> | |
| 75 | + <i class="dashicons dashicons-editor-table"></i> | |
| 76 | + </a><div class="e2pdf-wysiwyg-table-grid e2pdf-hide"></div> | |
| 77 | + </li> | |
| 72 | 78 | <li> |
| 73 | - <label><?php _e('Font size', 'e2pdf'); ?>:</label> | |
| 79 | + <label><?php _e('Font', 'e2pdf'); ?>:</label> | |
| 74 | 80 | <?php |
| 75 | 81 | $this->render('field', 'select', array( |
| 76 | 82 | 'field' => array( |
| 77 | - 'id' => 'e2pdf-wysiwyg-fontsize', | |
| 83 | + 'class' => 'e2pdf-apply-wysiwyg-change e2pdf-apply-wysiwyg-selection e2pdf-wysiwyg-font e2pdf-inactive', | |
| 84 | + 'data-command' => 'font', | |
| 85 | + 'disabled' => 'disabled', | |
| 86 | + ), | |
| 87 | + 'value' => '', | |
| 88 | + 'empty' => '-', | |
| 89 | + 'options' => $this->controller->get_fonts(true), | |
| 90 | + )); | |
| 91 | + ?> | |
| 92 | + <label><?php _e('Font Size', 'e2pdf'); ?>:</label> | |
| 93 | + <?php | |
| 94 | + $this->render('field', 'select', array( | |
| 95 | + 'field' => array( | |
| 96 | + 'class' => 'e2pdf-apply-wysiwyg-change e2pdf-apply-wysiwyg-selection e2pdf-wysiwyg-fontsize e2pdf-inactive', | |
| 97 | + 'disabled' => 'disabled', | |
| 78 | 98 | 'data-command' => 'font-size' |
| 79 | 99 | ), |
| 80 | 100 | 'value' => '', |
| 81 | 101 | 'empty' => '-', |
| @@ -81,20 +101,20 @@ | ||
| 81 | 101 | 'empty' => '-', |
| 82 | 102 | 'options' => $this->controller->get_font_sizes(), |
| 83 | 103 | )); |
| 84 | 104 | ?> |
| 85 | - </li><li> | |
| 86 | - <label><?php _e('Font', 'e2pdf'); ?>:</label> | |
| 105 | + <label><?php _e('Line Height', 'e2pdf'); ?>:</label> | |
| 87 | 106 | <?php |
| 88 | 107 | $this->render('field', 'select', array( |
| 89 | 108 | 'field' => array( |
| 90 | - 'id' => 'e2pdf-wysiwyg-font', | |
| 91 | - 'data-command' => 'font' | |
| 109 | + 'class' => 'e2pdf-apply-wysiwyg-change e2pdf-apply-wysiwyg-selection e2pdf-wysiwyg-lineheight e2pdf-inactive', | |
| 110 | + 'disabled' => 'disabled', | |
| 111 | + 'data-command' => 'line-height' | |
| 92 | 112 | ), |
| 93 | 113 | 'value' => '', |
| 94 | 114 | 'empty' => '-', |
| 95 | - 'options' => $this->controller->get_fonts(true), | |
| 115 | + 'options' => $this->controller->get_line_heights(), | |
| 96 | 116 | )); |
| 97 | 117 | ?> |
| 98 | 118 | </li> |
| 99 | - | |
| 100 | -</div> | |
| 119 | + </ul> | |
| 120 | +</div> | |