| 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><a title="<?php _e('Hide Controls', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button button button-small e2pdf-hide-controls"> |
| 9 |
<i class="dashicons dashicons-text"></i> |
| 10 |
</a> |
| 11 |
<a title="<?php _e('Hide/Show Hidden Elements', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button button button-small e2pdf-hidden-elements e2pdf-inactive"> |
| 12 |
<i class="dashicons dashicons-visibility"></i> |
| 13 |
</a> |
| 14 |
</li> |
| 15 |
<li> |
| 16 |
<a title="<?php _e('New Page', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button button button-small e2pdf-add-page"> |
| 17 |
<i class="dashicons dashicons-welcome-add-page"></i> |
| 18 |
</a> |
| 19 |
</li><li> |
| 20 |
<!-- undo --> |
| 21 |
<a title="<?php _e('Undo', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='undo'> |
| 22 |
<i class="dashicons dashicons-undo"></i> |
| 23 |
</a><a title="<?php _e('Redo', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='redo'> |
| 24 |
<i class="dashicons dashicons-redo"></i> |
| 25 |
</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 |
<i class="dashicons dashicons-editor-removeformatting"></i> |
| 27 |
</a> |
| 28 |
</li><li> |
| 29 |
<div class="e2pdf-wysiwyg-color"> |
| 30 |
<a title="<?php _e('Color', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button button button-small e2pdf-apply-wysiwyg-color"> |
| 31 |
<i class="dashicons dashicons-editor-textcolor"></i> |
| 32 |
</a> |
| 33 |
<div class="e2pdf-colorpicker-wr"> |
| 34 |
<input data-command='color' type="text" id="e2pdf-wysiwyg-font-color" class="e2pdf-color-picker e2pdf-color-picker-load" value=""> |
| 35 |
</div> |
| 36 |
</div><a title="<?php _e('Bold', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='bold'> |
| 37 |
<i class="dashicons dashicons-editor-bold"></i> |
| 38 |
</a><a title="<?php _e('Italic', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='italic'> |
| 39 |
<i class="dashicons dashicons-editor-italic"></i> |
| 40 |
</a><a title="<?php _e('Underline', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='underline'> |
| 41 |
<i class="dashicons dashicons-editor-underline"></i> |
| 42 |
</a><a title="<?php _e('Strike Through', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='strikeThrough'> |
| 43 |
<i class="dashicons dashicons-editor-strikethrough"></i> |
| 44 |
</a> |
| 45 |
|
| 46 |
</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'> |
| 47 |
<i class="dashicons dashicons-editor-alignleft"></i> |
| 48 |
</a><a title="<?php _e('Align Center', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='justifyCenter'> |
| 49 |
<i class="dashicons dashicons-editor-aligncenter"></i> |
| 50 |
</a><a title="<?php _e('Align Right', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='justifyRight'> |
| 51 |
<i class="dashicons dashicons-editor-alignright"></i> |
| 52 |
</a> |
| 53 |
</li><li> |
| 54 |
<!-- UL --> |
| 55 |
<a title="<?php _e('Unordered List', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='insertUnorderedList'> |
| 56 |
<i class="dashicons dashicons-editor-ul"></i> |
| 57 |
</a><a title="<?php _e('Ordered List', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='insertOrderedList'> |
| 58 |
<i class="dashicons dashicons-editor-ol"></i> |
| 59 |
</a> |
| 60 |
</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'> |
| 61 |
<span>H1</span> |
| 62 |
</a><a title="<?php _e('Heading H2', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='H2'> |
| 63 |
<span>H2</span> |
| 64 |
</a> |
| 65 |
</li><li><a title="<?php _e('Link', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='createlink'> |
| 66 |
<i class="dashicons dashicons-admin-links"></i> |
| 67 |
</a><a title="<?php _e('Unlink', 'e2pdf'); ?>" href="javascript:void(0);" class="ed_button e2pdf-apply-wysiwyg button button-small" data-command='unlink'> |
| 68 |
<i class="dashicons dashicons-editor-unlink"></i> |
| 69 |
</a> |
| 70 |
</li> |
| 71 |
<li> |
| 72 |
<label><?php _e('Font size', 'e2pdf'); ?>:</label> |
| 73 |
<?php |
| 74 |
$this->render('field', 'select', array( |
| 75 |
'field' => array( |
| 76 |
'id' => 'e2pdf-wysiwyg-fontsize', |
| 77 |
'data-command' => 'font-size' |
| 78 |
), |
| 79 |
'value' => '', |
| 80 |
'empty' => '-', |
| 81 |
'options' => $this->controller->get_font_sizes(), |
| 82 |
)); |
| 83 |
?> |
| 84 |
</li><li> |
| 85 |
<label><?php _e('Font', 'e2pdf'); ?>:</label> |
| 86 |
<?php |
| 87 |
$this->render('field', 'select', array( |
| 88 |
'field' => array( |
| 89 |
'id' => 'e2pdf-wysiwyg-font', |
| 90 |
'data-command' => 'font' |
| 91 |
), |
| 92 |
'value' => '', |
| 93 |
'empty' => '-', |
| 94 |
'options' => $this->controller->get_fonts(true), |
| 95 |
)); |
| 96 |
?> |
| 97 |
</li> |
| 98 |
</ul> |
| 99 |
</div> |
| 100 |
|