PluginProbe
Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms / 3.6.0
Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms v3.6.0
3.53.0 3.52.0 3.51.0 3.50.0 3.45.0 3.38.0 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.40.0 3.40.1 3.41.0 3.42.0 3.43.0 3.44.0 3.5.0 3.5.1 3.5.2 3.5.3 3.6.0 3.6.1 3.6.2 All 177 releases
simple-tags / inc / post-tags.php

post-tags.php in Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms 3.6.0, at inc/post-tags.php

738 lines 39.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class SimpleTags_Post_Tags
4 {
5
6 const MENU_SLUG = 'st_options';
7
8 // class instance
9 static $instance;
10
11 // WP_List_Table object
12 public $terms_table;
13
14 /**
15 * Constructor
16 *
17 * @return void
18 * @author Olatechpro
19 */
20 public function __construct()
21 {
22
23 add_filter('set-screen-option', [__CLASS__, 'set_screen'], 10, 3);
24 // Admin menu
25 add_action('admin_menu', [$this, 'admin_menu']);
26
27 // Javascript
28 add_action('admin_enqueue_scripts', [__CLASS__, 'admin_enqueue_scripts'], 11);
29
30 }
31
32 /**
33 * Init somes JS and CSS need for this feature
34 *
35 * @return void
36 * @author Olatechpro
37 */
38 public static function admin_enqueue_scripts()
39 {
40
41 // add JS for manage click tags
42 if (isset($_GET['page']) && $_GET['page'] == 'st_post_tags') {
43 wp_enqueue_style('st-taxonomies-css');
44 }
45 }
46
47 public static function set_screen($status, $option, $value)
48 {
49 return $value;
50 }
51
52 /** Singleton instance */
53 public static function get_instance()
54 {
55 if (!isset(self::$instance)) {
56 self::$instance = new self();
57 }
58
59 return self::$instance;
60 }
61
62 /**
63 * Add WP admin menu for Tags
64 *
65 * @return void
66 * @author Olatechpro
67 */
68 public function admin_menu()
69 {
70 $hook = add_submenu_page(
71 self::MENU_SLUG,
72 esc_html__('Terms for Current Post', 'simple-tags'),
73 esc_html__('Current Post', 'simple-tags'),
74 'simple_tags',
75 'st_post_tags',
76 [
77 $this,
78 'page_manage_posttags',
79 ]
80 );
81
82 if (taxopress_is_screen_main_page()) {
83 add_action("load-$hook", [$this, 'screen_option']);
84 }
85 }
86
87 /**
88 * Screen options
89 */
90 public function screen_option()
91 {
92
93 $option = 'per_page';
94 $args = [
95 'label' => esc_html__('Number of items per page', 'simple-tags'),
96 'default' => 20,
97 'option' => 'st_post_tags_per_page'
98 ];
99
100 add_screen_option($option, $args);
101
102 $this->terms_table = new PostTags_List();
103 }
104
105 /**
106 * Method for build the page HTML manage tags
107 *
108 * @return void
109 * @author Olatechpro
110 */
111 public function page_manage_posttags()
112 {
113 // Default order
114 if (!isset($_GET['order'])) {
115 $_GET['order'] = 'name-asc';
116 }
117
118 settings_errors(__CLASS__);
119
120 if (!isset($_GET['add'])) {
121 //all tax
122 ?>
123 <div class="wrap st_wrap st-manage-taxonomies-page">
124
125 <div id="">
126 <h1 class="wp-heading-inline"><?php _e('Terms for Current Post', 'simple-tags'); ?></h1>
127 <a href="<?php echo esc_url(admin_url('admin.php?page=st_post_tags&add=new_item')); ?>"
128 class="page-title-action"><?php esc_html_e('Add New', 'simple-tags'); ?></a>
129
130 <div class="taxopress-description"><?php _e('This feature allows you create a customizable display of all the terms assigned to the current post.', 'simple-tags'); ?></div>
131
132
133 <?php
134 if (isset($_REQUEST['s']) && $search = sanitize_text_field(wp_unslash($_REQUEST['s']))) {
135 /* translators: %s: search keywords */
136 printf(' <span class="subtitle">' . esc_html__('Search results for &#8220;%s&#8221;', 'simple-tags') . '</span>', esc_html($search));
137 }
138 ?>
139 <?php
140
141 //the terms table instance
142 $this->terms_table->prepare_items();
143 ?>
144
145
146 <hr class="wp-header-end">
147 <div id="ajax-response"></div>
148 <form class="search-form wp-clearfix st-taxonomies-search-form" method="get">
149 <?php $this->terms_table->search_box(esc_html__('Search Terms for Current Post', 'simple-tags'), 'term'); ?>
150 </form>
151 <div class="clear"></div>
152
153 <div id="col-container" class="wp-clearfix">
154
155 <div class="col-wrap">
156 <form action="<?php echo esc_url(add_query_arg('', '')); ?>" method="post">
157 <?php $this->terms_table->display(); //Display the table ?>
158 </form>
159 <div class="form-wrap edit-term-notes">
160 <p><?php esc_html__('Description here.', 'simple-tags') ?></p>
161 </div>
162 </div>
163
164
165 </div>
166
167
168 </div>
169 <?php } else {
170 if ($_GET['add'] == 'new_item') {
171 //add/edit taxonomy
172 $this->taxopress_manage_posttags();
173 echo '<div>';
174 }
175 } ?>
176
177
178 <?php SimpleTags_Admin::printAdminFooter(); ?>
179 </div>
180 <?php
181 }
182
183
184 /**
185 * Create our settings page output.
186 *
187 * @internal
188 */
189 public function taxopress_manage_posttags()
190 {
191
192 $tab = (!empty($_GET) && !empty($_GET['action']) && 'edit' == $_GET['action']) ? 'edit' : 'new';
193 $tab_class = 'taxopress-' . $tab;
194 $current = null;
195
196 ?>
197
198 <div class="wrap <?php echo esc_attr($tab_class); ?>">
199
200 <?php
201
202 $posttags = taxopress_get_posttags_data();
203 $post_tags_edit = false;
204 $post_tags_limit = false;
205
206 if ('edit' === $tab) {
207
208
209 $selected_posttags = taxopress_get_current_posttags();
210
211 if ($selected_posttags && array_key_exists($selected_posttags, $posttags)) {
212 $current = $posttags[$selected_posttags];
213 $post_tags_edit = true;
214 }
215
216 }
217
218
219 if (!isset($current['title']) && count($posttags) > 0 && apply_filters('taxopress_post_tags_create_limit',
220 true)) {
221 $post_tags_limit = true;
222 }
223
224
225 $ui = new taxopress_admin_ui();
226 ?>
227
228
229 <div class="wrap <?php echo esc_attr($tab_class); ?>">
230 <h1><?php echo esc_html__('Manage Terms for Current Post', 'simple-tags'); ?></h1>
231 <div class="wp-clearfix"></div>
232
233 <form method="post" action="">
234
235
236 <div class="tagcloudui st-tabbed">
237
238
239 <div class="posttags-postbox-container">
240 <div id="poststuff">
241 <div class="taxopress-section postbox">
242 <div class="postbox-header">
243 <h2 class="hndle ui-sortable-handle">
244 <?php
245 if ($post_tags_edit) {
246 $active_tab = ( isset($current['active_tab']) && !empty(trim($current['active_tab'])) ) ? $current['active_tab'] : 'posttags_general';
247 echo esc_html__('Edit Terms for Current Post', 'simple-tags');
248 echo '<input type="hidden" name="edited_posttags" value="' . esc_attr($current['ID']) . '" />';
249 echo '<input type="hidden" name="taxopress_post_tags[ID]" value="' . esc_attr($current['ID']) . '" />';
250 echo '<input type="hidden" name="taxopress_post_tags[active_tab]" class="taxopress-active-subtab" value="'.esc_attr($active_tab).'" />';
251 } else {
252 $active_tab = 'posttags_general';
253 echo '<input type="hidden" name="taxopress_post_tags[active_tab]" class="taxopress-active-subtab" value="" />';
254 echo esc_html__('Add new Terms for Current Post', 'simple-tags');
255 }
256 ?>
257 </h2>
258 </div>
259 <div class="inside">
260 <div class="main">
261
262
263 <?php if ($post_tags_limit) {
264 echo '<div class="taxopress-warning upgrade-pro">
265 <p>
266
267 <h2 style="margin-bottom: 5px;">' . esc_html__('To create more Terms for Current Post, please upgrade to TaxoPress Pro.',
268 'simple-tags') . '</h2>
269 ' . esc_html__('With TaxoPress Pro, you can create unlimited Terms for Current Post. You can create Terms for Current Post for any taxonomy and then display those Terms for Current Post anywhere on your site.',
270 'simple-tags') . '
271
272 </p>
273 </div>';
274
275 } else {
276 ?>
277
278
279 <ul class="taxopress-tab">
280 <li class="posttags_general_tab <?php echo $active_tab === 'posttags_general' ? 'active' : ''; ?>" data-content="posttags_general">
281 <a href="#posttags_general"><span><?php esc_html_e('General',
282 'simple-tags'); ?></span></a>
283 </li>
284
285 <li class="posttags_display_tab <?php echo $active_tab === 'posttags_display' ? 'active' : ''; ?>" data-content="posttags_display">
286 <a href="#posttags_display"><span><?php esc_html_e('Display',
287 'simple-tags'); ?></span></a>
288 </li>
289
290 <li class="posttags_options_tab <?php echo $active_tab === 'posttags_options' ? 'active' : ''; ?>" data-content="posttags_options">
291 <a href="#posttags_options"><span><?php esc_html_e('Options',
292 'simple-tags'); ?></span></a>
293 </li>
294
295 <li class="posttags_advanced_tab <?php echo $active_tab === 'posttags_advanced' ? 'active' : ''; ?>" data-content="posttags_advanced">
296 <a href="#posttags_advanced"><span><?php esc_html_e('Advanced',
297 'simple-tags'); ?></span></a>
298 </li>
299
300 </ul>
301
302 <div class="st-taxonomy-content taxopress-tab-content">
303
304
305 <table class="form-table taxopress-table posttags_general"
306 style="<?php echo $active_tab === 'posttags_general' ? '' : 'display:none;'; ?>">
307 <?php
308 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
309 echo $ui->get_tr_start();
310
311 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
312 echo $ui->get_th_start();
313 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
314 echo $ui->get_label('name', esc_html__('Title', 'simple-tags')) . $ui->get_required_span();
315 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
316 echo $ui->get_th_end() . $ui->get_td_start();
317
318 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
319 echo $ui->get_text_input([
320 'namearray' => 'taxopress_post_tags',
321 'name' => 'title',
322 'textvalue' => isset($current['title']) ? esc_attr($current['title']) : '',
323 'maxlength' => '32',
324 'helptext' => '',
325 'required' => true,
326 'placeholder' => false,
327 'wrap' => false,
328 ]);
329
330 $options = [];
331 $main_option = [];
332 $other_option = [];
333 foreach (get_all_taxopress_taxonomies() as $_taxonomy) {
334 $_taxonomy = $_taxonomy->name;
335 $tax = get_taxonomy($_taxonomy);
336 if (empty($tax->labels->name)) {
337 continue;
338 }
339 if ($tax->name === 'post_tag') {
340 $main_option[] = [
341 'attr' => $tax->name,
342 'text' => $tax->labels->name. ' ('.$tax->name.')',
343 'default' => 'true'
344 ];
345 } else {
346 $other_option[] = [
347 'attr' => $tax->name,
348 'text' => $tax->labels->name. ' ('.$tax->name.')'
349 ];
350 }
351 }
352 $options = array_merge($main_option, $other_option);
353
354 $select = [
355 'options' => $options,
356 ];
357 $selected = isset($current) ? taxopress_disp_boolean($current['taxonomy']) : '';
358 $select['selected'] = !empty($selected) ? $current['taxonomy'] : '';
359 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
360 echo $ui->get_select_checkbox_input_main([
361 'namearray' => 'taxopress_post_tags',
362 'name' => 'taxonomy',
363 'labeltext' => esc_html__('Taxonomy', 'simple-tags'),
364 'required' => true,
365 'selections' => $select, // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
366 ]);
367
368
369 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
370 echo $ui->get_td_end() . $ui->get_tr_end();
371 ?>
372 </table>
373
374
375
376
377 <table class="form-table taxopress-table posttags_display"
378 style="<?php echo $active_tab === 'posttags_display' ? '' : 'display:none;'; ?>">
379 <?php
380
381 /**
382 * Filters the arguments for post types to list for taxonomy association.
383 *
384 *
385 * @param array $value Array of default arguments.
386 */
387 $args = apply_filters('taxopress_attach_post_types_to_taxonomy',
388 ['public' => true]);
389
390 // If they don't return an array, fall back to the original default. Don't need to check for empty, because empty array is default for $args param in get_post_types anyway.
391 if (!is_array($args)) {
392 $args = ['public' => true];
393 }
394 $output = 'objects'; // Or objects.
395
396 /**
397 * Filters the results returned to display for available post types for taxonomy.
398 *
399 * @param array $value Array of post type objects.
400 * @param array $args Array of arguments for the post type query.
401 * @param string $output The output type we want for the results.
402 */
403 $post_types = apply_filters('taxopress_get_post_types_for_taxonomies',
404 get_post_types($args, $output), $args, $output);
405
406 $term_auto_locations = [
407 'homeonly' => esc_attr__('Homepage', 'simple-tags'),
408 'blogonly' => esc_attr__('Blog display', 'simple-tags'),
409 ];
410 foreach ($post_types as $post_type) {
411 $term_auto_locations[$post_type->name] = $post_type->label;
412 }
413
414 echo '<tr valign="top"><th scope="row"><label>' . esc_html__('Attempt to automatically display terms',
415 'simple-tags') . '</label><br /><small style=" color: #646970;">' . esc_html__('TaxoPress will attempt to automatically display terms in this content. It may not be successful for all post types and layouts.',
416 'simple-tags') . '</small></th><td>
417 <table class="visbile-table">';
418 foreach ($term_auto_locations as $key => $value) {
419
420
421 echo '<tr valign="top"><th scope="row"><label for="' . esc_attr($key) . '">' . esc_html($value) . '</label></th><td>';
422
423 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
424 echo $ui->get_check_input([
425 'checkvalue' => $key,
426 'checked' => (!empty($current['embedded']) && is_array($current['embedded']) && in_array($key,
427 $current['embedded'], true)) ? 'true' : 'false',
428 'name' => esc_attr($key),
429 'namearray' => 'embedded',
430 'textvalue' => esc_attr($key),
431 'labeltext' => "",
432 'wrap' => false,
433 ]);
434
435 echo '</td></tr>';
436
437 if ($key === 'blogonly') {
438 echo '<tr valign="top"><th style="padding: 0;" scope="row"><hr /></th><td style="padding: 0;"><hr /></td></tr>';
439 }
440
441
442 }
443 echo '</table></td></tr>';
444
445
446 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
447 echo $ui->get_number_input([
448 'namearray' => 'taxopress_post_tags',
449 'name' => 'number',
450 'textvalue' => isset($current['number']) ? esc_attr($current['number']) : '0',
451 'labeltext' => esc_html__('Maximum terms to display',
452 'simple-tags'),
453 'helptext' => esc_html__('You must set zero (0) to display all post tags.',
454 'simple-tags'),
455 'min' => '0',
456 'required' => true,
457 ]);
458
459 ?>
460 </table>
461
462
463 <table class="form-table taxopress-table posttags_options"
464 style="<?php echo $active_tab === 'posttags_options' ? '' : 'display:none;'; ?>">
465 <?php
466
467 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
468 echo $ui->get_text_input([
469 'namearray' => 'taxopress_post_tags',
470 'name' => 'separator',
471 'textvalue' => isset($current['separator']) ? esc_attr($current['separator']) : ', ',
472 'labeltext' => esc_html__('Post term separator string: ',
473 'simple-tags'),
474 'helptext' => '',
475 'required' => false,
476 ]);
477
478 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
479 echo $ui->get_text_input([
480 'namearray' => 'taxopress_post_tags',
481 'name' => 'before',
482 'textvalue' => isset($current['before']) ? esc_attr($current['before']) : 'Tags: ',
483 'labeltext' => esc_html__('Text to display before terms list',
484 'simple-tags'),
485 'helptext' => '',
486 'required' => false,
487 ]);
488
489 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
490 echo $ui->get_text_input([
491 'namearray' => 'taxopress_post_tags',
492 'name' => 'after',
493 'textvalue' => isset($current['after']) ? esc_attr($current['after']) : '<br />',
494 'labeltext' => esc_html__('Text to display after terms list',
495 'simple-tags'),
496 'helptext' => '',
497 'required' => false,
498 ]);
499
500 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
501 echo $ui->get_text_input([
502 'namearray' => 'taxopress_post_tags',
503 'name' => 'notagtext',
504 'textvalue' => isset($current['notagtext']) ? esc_attr($current['notagtext']) : 'No tags for this post.',
505 'labeltext' => esc_html__('Text to display if no terms found',
506 'simple-tags'),
507 'helptext' => '',
508 'required' => false,
509 ]);
510
511 $select = [
512 'options' => [
513 [
514 'attr' => '0',
515 'text' => esc_attr__('False', 'simple-tags'),
516 'default' => 'true',
517 ],
518 [
519 'attr' => '1',
520 'text' => esc_attr__('True', 'simple-tags'),
521 ],
522 ],
523 ];
524 $selected = (isset($current) && isset($current['hide_output'])) ? taxopress_disp_boolean($current['hide_output']) : '';
525 $select['selected'] = !empty($selected) ? $current['hide_output'] : '';
526 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
527 echo $ui->get_select_checkbox_input([
528 'namearray' => 'taxopress_post_tags',
529 'name' => 'hide_output',
530 'labeltext' => esc_html__('Hide display output if no terms ?',
531 'simple-tags'),
532 'selections' => $select, // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
533 ]);
534 ?>
535
536 </table>
537
538
539 <table class="form-table taxopress-table posttags_advanced"
540 style="<?php echo $active_tab === 'posttags_advanced' ? '' : 'display:none;'; ?>">
541 <?php
542
543
544 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
545 echo $ui->get_text_input([
546 'namearray' => 'taxopress_post_tags',
547 'name' => 'wrap_class',
548 'class' => '',
549 'textvalue' => isset($current['wrap_class']) ? esc_attr($current['wrap_class']) : '',
550 'labeltext' => esc_html__('Terms for Current Post div class', 'simple-tags'),
551 'helptext' => '',
552 'required' => false,
553 ]);
554
555 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
556 echo $ui->get_text_input([
557 'namearray' => 'taxopress_post_tags',
558 'name' => 'link_class',
559 'class' => '',
560 'textvalue' => isset($current['link_class']) ? esc_attr($current['link_class']) : '',
561 'labeltext' => esc_html__('Term link class', 'simple-tags'),
562 'helptext' => '',
563 'required' => false,
564 ]);
565
566 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
567 echo $ui->get_textarea_input([
568 'namearray' => 'taxopress_post_tags',
569 'name' => 'xformat',
570 'class' => 'st-full-width',
571 'rows' => '4',
572 'cols' => '40',
573 'textvalue' => isset($current['xformat']) ? esc_attr($current['xformat']) : esc_attr('<a href="%tag_link%" title="%tag_name%" %tag_rel%>%tag_name%</a>'),
574 'labeltext' => esc_html__('Term link format', 'simple-tags'),
575 'helptext' => sprintf(esc_html__('You can find markers and explanations %1sin the documentation%2s.', 'simple-tags'), '<a target="blank" href="https://taxopress.com/docs/format-terms-current-post/">', '</a>'),
576 'required' => false,
577 ]);
578
579 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
580 echo $ui->get_td_end() . $ui->get_tr_end();
581
582 ?>
583 </table>
584
585
586 </div>
587
588
589 <?php }//end new fields
590 ?>
591
592
593 <div class="clear"></div>
594
595
596 </div>
597 </div>
598 </div>
599
600
601 <?php if ($post_tags_limit) { ?>
602
603 <div class="pp-version-notice-bold-purple" style="margin-left:0px;">
604 <div class="pp-version-notice-bold-purple-message"><?php echo esc_html__('You\'re using TaxoPress Free.
605 The Pro version has more features and support.', 'simple-tags'); ?>
606 </div>
607 <div class="pp-version-notice-bold-purple-button"><a
608 href="https://taxopress.com/pro" target="_blank"><?php echo esc_html__('Upgrade to Pro', 'simple-tags'); ?></a>
609 </div>
610 </div>
611
612 <?php } ?>
613 <?php
614 /**
615 * Fires after the default fieldsets on the taxonomy screen.
616 *
617 * @param taxopress_admin_ui $ui Admin UI instance.
618 */
619 do_action('taxopress_taxonomy_after_fieldsets', $ui);
620 ?>
621
622 </div>
623 </div>
624
625
626 </div>
627
628 <div class="taxopress-right-sidebar">
629 <div class="taxopress-right-sidebar-wrapper" style="min-height: 205px;">
630
631
632 <?php
633 if (!$post_tags_limit){ ?>
634 <p class="submit">
635
636 <?php
637 wp_nonce_field('taxopress_addedit_posttags_nonce_action',
638 'taxopress_addedit_posttags_nonce_field');
639 if (!empty($_GET) && !empty($_GET['action']) && 'edit' === $_GET['action']) { ?>
640 <input type="submit" class="button-primary taxopress-taxonomy-submit taxopress-posttags-submit"
641 name="posttags_submit"
642 value="<?php echo esc_attr(esc_attr__('Save Terms for Current Post',
643 'simple-tags')); ?>"/>
644 <?php
645 } else { ?>
646 <input type="submit" class="button-primary taxopress-taxonomy-submit taxopress-posttags-submit"
647 name="posttags_submit"
648 value="<?php echo esc_attr(esc_attr__('Add Terms for Current Post',
649 'simple-tags')); ?>"/>
650 <?php } ?>
651
652 <input type="hidden" name="cpt_tax_status" id="cpt_tax_status"
653 value="<?php echo esc_attr($tab); ?>"/>
654 </p>
655
656 <?php if (!empty($current)) {
657 ?>
658 <p>
659 <?php echo '<div class="taxopress-warning" style="">' . esc_html__('Shortcode: ',
660 'simple-tags'); ?> &nbsp;
661 <textarea
662 style="resize: none;padding: 5px;">[taxopress_postterms id="<?php echo (int)$current['ID']; ?>"]</textarea>
663 </div>
664 </p>
665 <?php } ?>
666
667 <?php
668 }
669 ?>
670
671 </div>
672
673 <div class="taxopress-token-right-sidebar">
674 <div id="postbox-container-1" class="postbox-container">
675 <div class="meta-box-sortables">
676 <div class="postbox">
677 <div class="postbox-header">
678 <h3 class="hndle is-non-sortable">
679 <span><?php echo esc_html__('Terms for Current Post', 'simple-tags'); ?></span>
680 </h3>
681 </div>
682
683 <div class="inside">
684 <p><?php echo esc_html__('Here are the tokens you can use for Terms for Current Post format', 'simple-tags'); ?>:</p>
685 <ul>
686 <li><code>%tag_link%</code><?php echo esc_html__('The URL of the tag', 'simple-tags'); ?></li>
687 <li><code>%tag_name%</code><?php echo esc_html__('The name of the tag', 'simple-tags'); ?></li>
688 <li><code>%tag_rel% </code><?php echo esc_html__('This provides rel tag markup', 'simple-tags'); ?> (it creates <code>rel="tag"</code>)</li>
689 <li><code>%tag_feed%</code><?php echo esc_html__('Replaced by the RSS tag link', 'simple-tags'); ?></li>
690 <li><code>%tag_id%</code><?php echo esc_html__('Replaced by the tag ID', 'simple-tags'); ?></li>
691 <li><code>%tag_name_attribute%</code><?php echo esc_html__('Replaced by the tag’s name, formatted for attribute HTML', 'simple-tags'); ?></li>
692 <li><code>%tag_technorati%</code><?php echo esc_html__('Replaced by Technorati tag link', 'simple-tags'); ?></li>
693 <li><code>%tag_flickr%</code><?php echo esc_html__('Replaced by Flickr tag link', 'simple-tags'); ?></li>
694 <li><code>%tag_delicious%</code><?php echo esc_html__('Replaced by Del.ici.ous tag link', 'simple-tags'); ?></li>
695 </ul>
696 <p><?php echo esc_html__('You can also add HTML elements to the formatting.', 'simple-tags'); ?></p>
697 </div>
698 </div>
699 </div>
700 </div>
701 </div>
702
703 <?php do_action('taxopress_admin_after_sidebar'); ?>
704 </div>
705
706 <div class="clear"></div>
707
708
709
710 </form>
711
712 </div><!-- End .wrap -->
713
714 <div class="clear"></div>
715
716 <?php # Modal Windows; ?>
717 <div class="remodal" data-remodal-id="taxopress-modal-alert"
718 data-remodal-options="hashTracking: false, closeOnOutsideClick: false">
719 <div class="" style="color:red;"><?php echo esc_html__('Please complete the following required fields to save your changes:', 'simple-tags'); ?></div>
720 <div id="taxopress-modal-alert-content"></div>
721 <br>
722 <button data-remodal-action="cancel" class="remodal-cancel"><?php echo esc_html__('Okay', 'simple-tags'); ?></button>
723 </div>
724
725 <div class="remodal" data-remodal-id="taxopress-modal-confirm"
726 data-remodal-options="hashTracking: false, closeOnOutsideClick: false">
727 <div id="taxopress-modal-confirm-content"></div>
728 <br>
729 <button data-remodal-action="cancel" class="remodal-cancel"><?php echo esc_html__('No', 'simple-tags'); ?></button>
730 <button data-remodal-action="confirm"
731 class="remodal-confirm"><?php echo esc_html__('Yes', 'simple-tags'); ?></button>
732 </div>
733
734 <?php
735 }
736
737 }
738