| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) { |
| 3 |
die('Access denied.'); |
| 4 |
} |
| 5 |
?> |
| 6 |
<div id="submitbox" class="submitbox e2pdf-submitbox"> |
| 7 |
<div id="minor-publishing"> |
| 8 |
<div id="misc-shortcodes-actions"> |
| 9 |
<div class="misc-pub-section"> |
| 10 |
<div class="e2pdf-rel e2pdf-closed"> |
| 11 |
<a href="javascript:void(0);" class="e2pdf-link e2pdf-hidden-dropdown button e2pdf-w100 e2pdf-center <?php if ($this->get->get('action') !== 'edit') { ?>disabled<?php } ?>" <?php if ($this->get->get('action') !== 'edit') { ?>disabled="disabled"<?php } ?>><?php _e('Shortcodes', 'e2pdf') ?> <span class="toggle-indicator" aria-hidden="true"></span></a> |
| 12 |
<div class="e2pdf-hidden-dropdown-content"> |
| 13 |
<?php if ($this->get->get('action') === 'edit') { ?> |
| 14 |
<div class="misc-pub-section misc-pub-e2pdf-shortcode"> |
| 15 |
<input placeholder="<?php _e('Shortcode', 'e2pdf') ?>" class="e2pdf-center e2pdf-copy-field" type="text" readonly="readonly" value='[e2pdf-attachment id="<?php echo $this->view->template->get('ID'); ?>"]'> |
| 16 |
</div> |
| 17 |
<div class="misc-pub-section misc-pub-e2pdf-shortcode"> |
| 18 |
<input placeholder="<?php _e('Shortcode', 'e2pdf') ?>" class="e2pdf-center e2pdf-copy-field" type="text" readonly="readonly" value='[e2pdf-download id="<?php echo $this->view->template->get('ID'); ?>"]'> |
| 19 |
</div> |
| 20 |
<div class="misc-pub-section misc-pub-e2pdf-shortcode"> |
| 21 |
<input placeholder="<?php _e('Shortcode', 'e2pdf') ?>" class="e2pdf-center e2pdf-copy-field" type="text" readonly="readonly" value='[e2pdf-save id="<?php echo $this->view->template->get('ID'); ?>"]'> |
| 22 |
</div> |
| 23 |
<div class="misc-pub-section misc-pub-e2pdf-shortcode"> |
| 24 |
<input placeholder="<?php _e('Shortcode', 'e2pdf') ?>" class="e2pdf-center e2pdf-copy-field" type="text" readonly="readonly" value='[e2pdf-view id="<?php echo $this->view->template->get('ID'); ?>"]'> |
| 25 |
</div> |
| 26 |
<?php } ?> |
| 27 |
</div> |
| 28 |
</div> |
| 29 |
</div> |
| 30 |
</div> |
| 31 |
<div id="minor-publishing-actions"> |
| 32 |
|
| 33 |
<div class="e2pdf-grid"> |
| 34 |
<div class="e2pdf-ib e2pdf-w50 e2pdf-pr5 e2pdf-align-left"> |
| 35 |
<a class="e2pdf-link e2pdf-modal" data-modal="tpl-options" href="javascript:void(0);"> |
| 36 |
<?php _e('Options', 'e2pdf'); ?> <i class="dashicons dashicons-admin-generic"></i> |
| 37 |
</a> |
| 38 |
</div><div class="e2pdf-ib e2pdf-w50 e2pdf-pl5"> |
| 39 |
<div id="preview-action"> |
| 40 |
<a form-id="e2pdf_build_form" target="_blank" href="<?php echo $this->helper->get_url(array('page' => 'e2pdf-templates', 'action' => 'preview')); ?>" class="preview button e2pdf-submit-form e2pdf-link"><?php _e('Preview', 'e2pdf'); ?></a> |
| 41 |
</div> |
| 42 |
<div class="clear"></div> |
| 43 |
</div> |
| 44 |
</div> |
| 45 |
</div> |
| 46 |
|
| 47 |
<div class="misc-pub-section"> |
| 48 |
<div class="e2pdf-grid"> |
| 49 |
<div class="e2pdf-ib e2pdf-w50 e2pdf-pr5 e2pdf-align-left"> |
| 50 |
<?php if ($this->view->template->get('pdf')) { ?> |
| 51 |
<a class="e2pdf-link" title="<?php _e('Download Original PDF', 'e2pdf') ?>" target="_blank" href="<?php echo $this->helper->get_upload_url('pdf/' . $this->view->template->get('pdf') . '/' . $this->view->template->get('pdf') . '.pdf') ?>"><i class="dashicons dashicons-download"></i></a> |
| 52 |
<a class="e2pdf-link e2pdf-modal" data-modal="pdf-reupload" title="<?php _e('Replace PDF', 'e2pdf') ?>" target="_blank" href="javascript:void(0);"><i class="dashicons dashicons-upload"></i></a> |
| 53 |
<?php } ?> |
| 54 |
</div><div class="e2pdf-ib e2pdf-w50 e2pdf-pl5"> |
| 55 |
<div id="view-action"> |
| 56 |
<a <?php if ($this->get->get('action') !== 'edit') { ?>disabled="disabled"<?php } ?> target="_blank" href="<?php echo $this->helper->get_url(array('page' => 'e2pdf-templates', 'action' => 'view', 'id' => $this->view->template->get('ID'))); ?>" class="preview button e2pdf-link"><?php _e('View Saved', 'e2pdf'); ?></a> |
| 57 |
</div> |
| 58 |
<div class="clear"></div> |
| 59 |
</div> |
| 60 |
</div> |
| 61 |
</div> |
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
<div id="misc-activation-actions"> |
| 66 |
<div class="misc-pub-section misc-pub-e2pdf-activation"> |
| 67 |
<label for="e2pdf-post-activation"><?php _e('Activation', 'e2pdf'); ?>:</label> |
| 68 |
<span id="e2pdf-post-activation"> |
| 69 |
<?php if ($this->view->template->get('activated')) { ?> |
| 70 |
<a class="e2pdf-color-green e2pdf-deactivate-template e2pdf-link" data-id="<?php echo $this->view->template->get('ID'); ?>" href="javascript:void(0);"><?php _e('Activated', 'e2pdf'); ?></a> |
| 71 |
<?php } else { ?> |
| 72 |
<a class="e2pdf-color-red e2pdf-activate-template e2pdf-link" <?php if ($this->get->get('action') !== 'edit') { ?>disabled="disabled"<?php } ?> data-id="<?php echo $this->view->template->get('ID'); ?>" href="javascript:void(0);"><?php _e('Not Activated', 'e2pdf'); ?></a> |
| 73 |
<?php } ?></span> |
| 74 |
</div> |
| 75 |
</div> |
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
<?php if (get_option('e2pdf_debug') === '1') { ?> |
| 80 |
<hr> |
| 81 |
<div class="misc-pub-section"> |
| 82 |
<div class="e2pdf-grid"> |
| 83 |
<div class="e2pdf-ib e2pdf-w100"> |
| 84 |
<div id="convert-action"> |
| 85 |
<a form-id="e2pdf_build_form" target="_blank" href="<?php echo $this->helper->get_url(array('page' => 'e2pdf-templates', 'action' => 'convert', 'type' => 'php')); ?>" class="e2pdf-submit-form e2pdf-link"><?php _e('PHP', 'e2pdf'); ?></a> |
| 86 |
</div> |
| 87 |
<div class="clear"></div> |
| 88 |
</div> |
| 89 |
</div> |
| 90 |
</div> |
| 91 |
<?php } ?> |
| 92 |
|
| 93 |
<div class="clear"></div> |
| 94 |
</div> |
| 95 |
<div id="major-publishing-actions"> |
| 96 |
<?php if ($this->get->get('action') === 'edit') { ?> |
| 97 |
<div id="delete-action"> |
| 98 |
<a href="<?php echo $this->helper->get_url(array('page' => 'e2pdf-templates', 'action' => 'trash', 'id' => $this->view->template->get('ID'))); ?>" class="submitdelete deletion"><?php _e('Move to Trash', 'e2pdf'); ?></a> |
| 99 |
</div> |
| 100 |
<?php } ?> |
| 101 |
<div id="publishing-action" class="e2pdf-onload"> |
| 102 |
<span class="spinner"></span> |
| 103 |
<input form-id="e2pdf_build_form" action="e2pdf_save_form" type="button" value="<?php $this->get->get('action') === 'edit' ? _e('Update', 'e2pdf') : _e('Save', 'e2pdf'); ?>" class="e2pdf-submit-form button-primary button-large disabled" id="e2pdf_submit_side_top"> |
| 104 |
</div> |
| 105 |
<div class="clear"></div> |
| 106 |
</div> |
| 107 |
</div> |
| 108 |
|