| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) { |
| 3 |
die('Access denied.'); |
| 4 |
} |
| 5 |
?> |
| 6 |
<div id="e2pdf-build-top-panel" class="e2pdf-build-top-panel"> |
| 7 |
<ul class="e2pdf-panel-options"> |
| 8 |
<li> |
| 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"> |
| 10 |
<i class="dashicons dashicons-visibility"></i> |
| 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> |
| 18 |
</li> |
| 19 |
<li> |
| 20 |
<a title="<?php _e('New Page', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button button button-small e2pdf-add-page"> |
| 21 |
<i class="dashicons dashicons-welcome-add-page"></i> |
| 22 |
</a> |
| 23 |
</li><li> |
| 24 |
<a title="<?php _e('Undo Changes', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button button button-small e2pdf-undo e2pdf-inactive"> |
| 25 |
<i class="dashicons dashicons-undo"></i> |
| 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'> |
| 29 |
<i class="dashicons dashicons-editor-removeformatting"></i> |
| 30 |
</a> |
| 31 |
</li><li> |
| 32 |
<div class="e2pdf-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"> |
| 34 |
<i class="dashicons dashicons-editor-textcolor"></i> |
| 35 |
</a> |
| 36 |
<div class="e2pdf-colorpicker-wr"> |
| 37 |
<input data-command='color' type="text" class="e2pdf-apply-wysiwyg-change e2pdf-wysiwyg-font-color e2pdf-color-picker e2pdf-color-picker-load" value=""> |
| 38 |
</div> |
| 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'> |
| 40 |
<i class="dashicons dashicons-editor-bold"></i> |
| 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'> |
| 42 |
<i class="dashicons dashicons-editor-italic"></i> |
| 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'> |
| 44 |
<i class="dashicons dashicons-editor-underline"></i> |
| 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'> |
| 46 |
<i class="dashicons dashicons-editor-strikethrough"></i> |
| 47 |
</a> |
| 48 |
|
| 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'> |
| 50 |
<i class="dashicons dashicons-editor-alignleft"></i> |
| 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'> |
| 52 |
<i class="dashicons dashicons-editor-aligncenter"></i> |
| 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'> |
| 54 |
<i class="dashicons dashicons-editor-alignright"></i> |
| 55 |
</a> |
| 56 |
</li><li> |
| 57 |
<!-- UL --> |
| 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'> |
| 59 |
<i class="dashicons dashicons-editor-ul"></i> |
| 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'> |
| 61 |
<i class="dashicons dashicons-editor-ol"></i> |
| 62 |
</a> |
| 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 |
| 67 |
</a> |
| 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'> |
| 69 |
<i class="dashicons dashicons-admin-links"></i> |
| 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'> |
| 71 |
<i class="dashicons dashicons-editor-unlink"></i> |
| 72 |
</a> |
| 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> |
| 78 |
<li> |
| 79 |
<label><?php _e('Font', 'e2pdf'); ?>:</label> |
| 80 |
<?php |
| 81 |
$this->render('field', 'select', array( |
| 82 |
'field' => array( |
| 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', |
| 98 |
'data-command' => 'font-size' |
| 99 |
), |
| 100 |
'value' => '', |
| 101 |
'empty' => '-', |
| 102 |
'options' => $this->controller->get_font_sizes(), |
| 103 |
)); |
| 104 |
?> |
| 105 |
<label><?php _e('Line Height', 'e2pdf'); ?>:</label> |
| 106 |
<?php |
| 107 |
$this->render('field', 'select', array( |
| 108 |
'field' => array( |
| 109 |
'class' => 'e2pdf-apply-wysiwyg-change e2pdf-apply-wysiwyg-selection e2pdf-wysiwyg-lineheight e2pdf-inactive', |
| 110 |
'disabled' => 'disabled', |
| 111 |
'data-command' => 'line-height' |
| 112 |
), |
| 113 |
'value' => '', |
| 114 |
'empty' => '-', |
| 115 |
'options' => $this->controller->get_line_heights(), |
| 116 |
)); |
| 117 |
?> |
| 118 |
</li> |
| 119 |
</ul> |
| 120 |
</div> |