| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) { |
| 3 |
die('Access denied.'); |
| 4 |
} |
| 5 |
?> |
| 6 |
<div id="taxonomy-category" class="categorydiv e2pdf-tabs-panel"> |
| 7 |
|
| 8 |
<ul id="e2pdf-tabs" class="category-tabs e2pdf-tabs"> |
| 9 |
<li class="active"><a data-tab="e2pdf-template-style" href="javascript:void(0);"><?php _e('Style', 'e2pdf'); ?></a></li> |
| 10 |
<li><a data-tab="e2pdf-template-template" href="javascript:void(0);"><?php _e('Template', 'e2pdf'); ?></a></li> |
| 11 |
<li><a data-tab="e2pdf-template-pdf" href="javascript:void(0);"><?php _e('Pdf', 'e2pdf'); ?></a></li> |
| 12 |
</ul> |
| 13 |
|
| 14 |
|
| 15 |
<div class="e2pdf-rel"> |
| 16 |
<?php if (!get_option('e2pdf_email') && $this->helper->get('license')->get('type') == 'FREE') { ?> |
| 17 |
<div class="e2pdf-email-lock e2pdf-ib"> |
| 18 |
<div id="e2pdf-email"> |
| 19 |
<div class="e2pdf-form-loader e2pdf-hidden-loader"><span class="spinner"></span></div> |
| 20 |
<p class="post-attributes-label-wrapper"> |
| 21 |
<label><?php _e('Enter your E-mail to unlock this features', 'e2pdf'); ?>:</label> |
| 22 |
</p> |
| 23 |
<p class="post-attributes-label-wrapper"> |
| 24 |
<?php |
| 25 |
$this->render('field', 'text', array( |
| 26 |
'field' => array( |
| 27 |
'name' => 'email', |
| 28 |
'placeholder' => __('E-mail', 'e2pdf'), |
| 29 |
), |
| 30 |
'value' => '', |
| 31 |
)); |
| 32 |
?> |
| 33 |
</p> |
| 34 |
<p class="post-attributes-label-wrapper"> |
| 35 |
<input form-id="e2pdf-email" action="e2pdf_email" type="button" class="e2pdf-submit-form button-primary button-small" value="<?php _e('Unlock', 'e2pdf'); ?>"> |
| 36 |
</p> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
<?php } ?> |
| 40 |
|
| 41 |
<div id="e2pdf-template-style" class="tabs-panel e2pdf-rel"> |
| 42 |
<div class="e2pdf-options-panel"> |
| 43 |
<p class="post-attributes-label-wrapper"> |
| 44 |
<label><?php _e('Global Font', 'e2pdf'); ?>:</label> |
| 45 |
<div class="e2pdf-grid"> |
| 46 |
<div class="e2pdf-ib e2pdf-w70 e2pdf-pr5"> |
| 47 |
<?php |
| 48 |
$this->render('field', 'select', array( |
| 49 |
'field' => array( |
| 50 |
'id' => 'e2pdf-font', |
| 51 |
'name' => 'font', |
| 52 |
'class' => 'e2pdf-settings-style-change' |
| 53 |
), |
| 54 |
'value' => $this->view->template->get('font') && array_search($this->view->template->get('font'), $this->get_fonts()) ? $this->view->template->get('font') : 'Noto Sans', |
| 55 |
'options' => $this->get_fonts(true), |
| 56 |
)); |
| 57 |
?> |
| 58 |
</div><div class="e2pdf-ib e2pdf-w30 e2pdf-pl5"> |
| 59 |
<?php |
| 60 |
$this->render('field', 'select', array( |
| 61 |
'field' => array( |
| 62 |
'id' => 'e2pdf-font-size', |
| 63 |
'name' => 'font_size', |
| 64 |
'class' => 'e2pdf-settings-style-change' |
| 65 |
), |
| 66 |
'value' => $this->view->template->get('font_size') ? $this->view->template->get('font_size') : '14', |
| 67 |
'options' => $this->get_font_sizes(), |
| 68 |
)); |
| 69 |
?> |
| 70 |
</div> |
| 71 |
</div> |
| 72 |
</p> |
| 73 |
<p class="post-attributes-label-wrapper"> |
| 74 |
<div class="e2pdf-grid"> |
| 75 |
<div class="e2pdf-ib e2pdf-w50 e2pdf-pr5"> |
| 76 |
<label><?php _e('Line Height', 'e2pdf'); ?>:</label> |
| 77 |
<?php |
| 78 |
$this->render('field', 'select', array( |
| 79 |
'field' => array( |
| 80 |
'id' => 'e2pdf-line-height', |
| 81 |
'name' => 'line_height', |
| 82 |
'class' => 'e2pdf-settings-style-change' |
| 83 |
), |
| 84 |
'value' => $this->view->template->get('line_height') ? $this->view->template->get('line_height') : '14', |
| 85 |
'options' => $this->get_line_heights(), |
| 86 |
)); |
| 87 |
?> |
| 88 |
</div> |
| 89 |
</div> |
| 90 |
</p> |
| 91 |
|
| 92 |
<p class="post-attributes-label-wrapper"> |
| 93 |
<div class="e2pdf-ib e2pdf-w100"> |
| 94 |
<div> |
| 95 |
<label><?php _e('Font Color', 'e2pdf'); ?>:</label> |
| 96 |
</div> |
| 97 |
<div class="e2pdf-colorpicker-wr"> |
| 98 |
<?php |
| 99 |
$this->render('field', 'text', array( |
| 100 |
'field' => array( |
| 101 |
'id' => 'e2pdf-font-color', |
| 102 |
'name' => 'font_color', |
| 103 |
'class' => 'e2pdf-color-picker e2pdf-color-picker-load e2pdf-settings-style-change', |
| 104 |
'data-default' => '#000000', |
| 105 |
), |
| 106 |
'value' => $this->view->template->get('font_color') ? $this->view->template->get('font_color') : '#000000', |
| 107 |
)); |
| 108 |
?> |
| 109 |
</div> |
| 110 |
</div> |
| 111 |
</p> |
| 112 |
|
| 113 |
</div> |
| 114 |
</div> |
| 115 |
|
| 116 |
|
| 117 |
<div id="e2pdf-template-template" class="tabs-panel e2pdf-template-template e2pdf-rel" style="display: none;" > |
| 118 |
<div class="e2pdf-options-panel"> |
| 119 |
<p class="post-attributes-label-wrapper"> |
| 120 |
<label> |
| 121 |
<?php _e('Dataset Title', 'e2pdf'); ?>: |
| 122 |
</label> |
| 123 |
<?php |
| 124 |
$this->render('field', 'text', array( |
| 125 |
'field' => array( |
| 126 |
'name' => 'dataset_title', |
| 127 |
'placeholder' => __('Dataset Title', 'e2pdf'), |
| 128 |
'class' => 'e2pdf-settings-template-change' |
| 129 |
), |
| 130 |
'value' => $this->view->template->get('dataset_title'), |
| 131 |
)); |
| 132 |
?> |
| 133 |
</p> |
| 134 |
<p class="post-attributes-label-wrapper"> |
| 135 |
<label> |
| 136 |
<?php _e('Button Title', 'e2pdf'); ?>: |
| 137 |
</label> |
| 138 |
<?php |
| 139 |
$this->render('field', 'text', array( |
| 140 |
'field' => array( |
| 141 |
'name' => 'button_title', |
| 142 |
'placeholder' => __('Button Title', 'e2pdf'), |
| 143 |
'class' => 'e2pdf-settings-template-change' |
| 144 |
), |
| 145 |
'value' => $this->view->template->get('button_title'), |
| 146 |
)); |
| 147 |
?> |
| 148 |
</p> |
| 149 |
|
| 150 |
<p class="post-attributes-label-wrapper"> |
| 151 |
<label> |
| 152 |
<?php _e('Format', 'e2pdf'); ?>: |
| 153 |
</label> |
| 154 |
<?php |
| 155 |
$this->render('field', 'select', array( |
| 156 |
'field' => array( |
| 157 |
'name' => 'format', |
| 158 |
'class' => 'e2pdf-settings-template-change' |
| 159 |
), |
| 160 |
'value' => $this->view->template->get('format'), |
| 161 |
'options' => array( |
| 162 |
'pdf' => 'PDF', |
| 163 |
), |
| 164 |
)); |
| 165 |
?> |
| 166 |
</p> |
| 167 |
|
| 168 |
<p class="post-attributes-label-wrapper"> |
| 169 |
<?php |
| 170 |
$this->render('field', 'checkbox', array( |
| 171 |
'field' => array( |
| 172 |
'name' => 'inline', |
| 173 |
'placeholder' => __('Inline', 'e2pdf'), |
| 174 |
'class' => 'e2pdf-settings-template-change' |
| 175 |
), |
| 176 |
'value' => $this->view->template->get('inline'), |
| 177 |
'checkbox_value' => 1, |
| 178 |
'default_value' => 0, |
| 179 |
)); |
| 180 |
?> |
| 181 |
</p> |
| 182 |
<p class="post-attributes-label-wrapper"> |
| 183 |
<?php |
| 184 |
$this->render('field', 'checkbox', array( |
| 185 |
'field' => array( |
| 186 |
'name' => 'auto', |
| 187 |
'placeholder' => __('Auto download', 'e2pdf'), |
| 188 |
'class' => 'e2pdf-settings-template-change' |
| 189 |
), |
| 190 |
'value' => $this->view->template->get('auto'), |
| 191 |
'checkbox_value' => 1, |
| 192 |
'default_value' => 0, |
| 193 |
)); |
| 194 |
?> |
| 195 |
</p> |
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
</div> |
| 200 |
</div> |
| 201 |
|
| 202 |
|
| 203 |
<div id="e2pdf-template-pdf" class="tabs-panel e2pdf-template-pdf" style="display: none;" > |
| 204 |
<div class="e2pdf-options-panel"> |
| 205 |
<p class="post-attributes-label-wrapper"> |
| 206 |
<label> |
| 207 |
<?php _e('PDF Name', 'e2pdf'); ?>: |
| 208 |
</label> |
| 209 |
<?php |
| 210 |
$this->render('field', 'text', array( |
| 211 |
'field' => array( |
| 212 |
'name' => 'name', |
| 213 |
'placeholder' => __('PDF Name', 'e2pdf'), |
| 214 |
'class' => 'e2pdf-settings-template-change' |
| 215 |
), |
| 216 |
'value' => $this->view->template->get('name') |
| 217 |
)); |
| 218 |
?> |
| 219 |
</p> |
| 220 |
<p class="post-attributes-label-wrapper"> |
| 221 |
<label> |
| 222 |
<?php _e('Password', 'e2pdf'); ?>: |
| 223 |
</label> |
| 224 |
<?php |
| 225 |
$this->render('field', 'text', array( |
| 226 |
'field' => array( |
| 227 |
'name' => 'password', |
| 228 |
'placeholder' => __('Password', 'e2pdf'), |
| 229 |
'class' => 'e2pdf-settings-template-change' |
| 230 |
), |
| 231 |
'value' => $this->view->template->get('password'), |
| 232 |
)); |
| 233 |
?> |
| 234 |
</p> |
| 235 |
|
| 236 |
<p class="post-attributes-label-wrapper"> |
| 237 |
<label> |
| 238 |
<?php _e('Flatten', 'e2pdf'); ?>: |
| 239 |
</label> |
| 240 |
<?php |
| 241 |
$this->render('field', 'select', array( |
| 242 |
'field' => array( |
| 243 |
'name' => 'flatten', |
| 244 |
'class' => 'e2pdf-settings-template-change' |
| 245 |
), |
| 246 |
'value' => $this->view->template->get('flatten'), |
| 247 |
'options' => array( |
| 248 |
'0' => 'No', |
| 249 |
'1' => 'Yes', |
| 250 |
'2' => 'Full', |
| 251 |
), |
| 252 |
)); |
| 253 |
?> |
| 254 |
</p> |
| 255 |
|
| 256 |
<p class="post-attributes-label-wrapper"> |
| 257 |
<?php |
| 258 |
$this->render('field', 'checkbox', array( |
| 259 |
'field' => array( |
| 260 |
'name' => 'appearance', |
| 261 |
'placeholder' => __('Generate appearance', 'e2pdf'), |
| 262 |
'class' => 'e2pdf-settings-template-change' |
| 263 |
), |
| 264 |
'value' => $this->view->template->get('appearance'), |
| 265 |
'checkbox_value' => 1, |
| 266 |
'default_value' => 0, |
| 267 |
)); |
| 268 |
?> |
| 269 |
</p> |
| 270 |
|
| 271 |
<p class="post-attributes-label-wrapper"> |
| 272 |
<label> |
| 273 |
<?php _e('Compression', 'e2pdf'); ?>: |
| 274 |
</label> |
| 275 |
<?php |
| 276 |
$this->render('field', 'select', array( |
| 277 |
'field' => array( |
| 278 |
'id' => 'e2pdf-compression', |
| 279 |
'name' => 'compression', |
| 280 |
'class' => 'e2pdf-settings-template-change' |
| 281 |
), |
| 282 |
'value' => $this->view->template->get('compression') ? $this->view->template->get('compression') : '-1', |
| 283 |
'options' => array( |
| 284 |
'-1' => __('Default', 'e2pdf'), |
| 285 |
'0' => '0', |
| 286 |
'1' => '1', |
| 287 |
'2' => '2', |
| 288 |
'3' => '3', |
| 289 |
'4' => '4', |
| 290 |
'5' => '5', |
| 291 |
'6' => '6', |
| 292 |
'7' => '7', |
| 293 |
'8' => '8', |
| 294 |
'9' => '9', |
| 295 |
), |
| 296 |
)); |
| 297 |
?> |
| 298 |
</p> |
| 299 |
</div> |
| 300 |
</div> |
| 301 |
</div> |
| 302 |
|
| 303 |
|
| 304 |
</div> |
| 305 |
|