PluginProbe
Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms / 3.4.0
Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms v3.4.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 / suggestterms.php

suggestterms.php in Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms 3.4.0, at inc/suggestterms.php

777 lines 42.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class SimpleTags_SuggestTerms
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 // Javascript
27 add_action('admin_enqueue_scripts', [__CLASS__, 'admin_enqueue_scripts'], 11);
28
29 }
30
31 /**
32 * Init somes JS and CSS need for this feature
33 *
34 * @return void
35 * @author Olatechpro
36 */
37 public static function admin_enqueue_scripts()
38 {
39
40 // add JS for manage click tags
41 if (isset($_GET['page']) && $_GET['page'] == 'st_suggestterms') {
42 wp_enqueue_style('st-taxonomies-css');
43 }
44 }
45
46 public static function set_screen($status, $option, $value)
47 {
48 return $value;
49 }
50
51 /** Singleton instance */
52 public static function get_instance()
53 {
54 if (!isset(self::$instance)) {
55 self::$instance = new self();
56 }
57
58 return self::$instance;
59 }
60
61 /**
62 * Add WP admin menu for Tags
63 *
64 * @return void
65 * @author Olatechpro
66 */
67 public function admin_menu()
68 {
69 $hook = add_submenu_page(
70 self::MENU_SLUG,
71 __('Suggest Terms', 'simple-tags'),
72 __('Suggest Terms', 'simple-tags'),
73 'simple_tags',
74 'st_suggestterms',
75 [
76 $this,
77 'page_manage_suggestterms',
78 ]
79 );
80
81 if (taxopress_is_screen_main_page()) {
82 add_action("load-$hook", [$this, 'screen_option']);
83 }
84 }
85
86 /**
87 * Screen options
88 */
89 public function screen_option()
90 {
91
92 $option = 'per_page';
93 $args = [
94 'label' => __('Number of items per page', 'simple-tags'),
95 'default' => 20,
96 'option' => 'st_suggestterms_per_page'
97 ];
98
99 add_screen_option($option, $args);
100
101 $this->terms_table = new SuggestTerms_List();
102 }
103
104 /**
105 * Method for build the page HTML manage tags
106 *
107 * @return void
108 * @author Olatechpro
109 */
110 public function page_manage_suggestterms()
111 {
112 // Default order
113 if (!isset($_GET['order'])) {
114 $_GET['order'] = 'name-asc';
115 }
116
117 settings_errors(__CLASS__);
118
119 if (!isset($_GET['add'])) {
120 //all tax
121 ?>
122 <div class="wrap st_wrap st-manage-taxonomies-page">
123
124 <div id="">
125 <h1 class="wp-heading-inline"><?php _e('Suggest Terms', 'simple-tags'); ?></h1>
126 <a href="<?php echo esc_url(admin_url('admin.php?page=st_suggestterms&add=new_item')); ?>"
127 class="page-title-action"><?php esc_html_e('Add New', 'simple-tags'); ?></a>
128
129 <div class="taxopress-description">
130 <?php esc_html_e('This feature helps when you\'re writing content. "Suggest Terms" can show a metabox where you can browse all your existing terms. "Suggest Terms" can also analyze your content and find new ideas for terms.',
131 'simple-tags'); ?>
132 </div>
133
134
135 <?php
136 if (isset($_REQUEST['s']) && $search = esc_attr(wp_unslash($_REQUEST['s']))) {
137 /* translators: %s: search keywords */
138 printf(' <span class="subtitle">' . __('Search results for &#8220;%s&#8221;',
139 'simple-tags') . '</span>', $search);
140 }
141 ?>
142 <?php
143
144 //the terms table instance
145 $this->terms_table->prepare_items();
146 ?>
147
148
149 <hr class="wp-header-end">
150 <div id="ajax-response"></div>
151 <form class="search-form wp-clearfix st-taxonomies-search-form" method="get">
152 <?php $this->terms_table->search_box(__('Search Suggest Terms', 'simple-tags'), 'term'); ?>
153 </form>
154 <div class="clear"></div>
155
156 <div id="col-container" class="wp-clearfix">
157
158 <div class="col-wrap">
159 <form action="<?php echo add_query_arg('', '') ?>" method="post">
160 <?php $this->terms_table->display(); //Display the table ?>
161 </form>
162 <div class="form-wrap edit-term-notes">
163 <p><?php __('Description here.', 'simple-tags') ?></p>
164 </div>
165 </div>
166
167
168 </div>
169
170
171 </div>
172 <?php } else {
173 if ($_GET['add'] == 'new_item') {
174 //add/edit taxonomy
175 $this->taxopress_manage_suggestterms();
176 echo '<div>';
177 }
178 } ?>
179
180
181 <?php SimpleTags_Admin::printAdminFooter(); ?>
182 </div>
183 <?php
184 }
185
186
187 /**
188 * Create our settings page output.
189 *
190 * @internal
191 */
192 public function taxopress_manage_suggestterms()
193 {
194
195 $tab = (!empty($_GET) && !empty($_GET['action']) && 'edit' == $_GET['action']) ? 'edit' : 'new';
196 $tab_class = 'taxopress-' . $tab;
197 $current = null;
198
199 ?>
200
201 <div class="wrap <?php echo esc_attr($tab_class); ?>">
202
203 <?php
204
205 $suggestterms = taxopress_get_suggestterm_data();
206 $suggestterm_edit = false;
207 $suggestterm_limit = false;
208
209 if ('edit' === $tab) {
210
211
212 $selected_suggestterm = taxopress_get_current_suggestterm();
213
214 if ($selected_suggestterm && array_key_exists($selected_suggestterm, $suggestterms)) {
215 $current = $suggestterms[$selected_suggestterm];
216 $suggestterm_edit = true;
217 }
218
219 }
220
221
222 if (!isset($current['title']) && count($suggestterms) > 0 && apply_filters('taxopress_suggestterms_create_limit',
223 true)) {
224 $suggestterm_limit = true;
225 }
226
227
228 $ui = new taxopress_admin_ui();
229 ?>
230
231
232 <div class="wrap <?php echo esc_attr($tab_class); ?>">
233 <h1><?php echo __('Manage Suggest Terms', 'simple-tags'); ?></h1>
234 <div class="wp-clearfix"></div>
235
236 <form method="post" action="">
237
238
239 <div class="tagcloudui st-tabbed">
240
241
242 <div class="suggestterms-postbox-container">
243 <div id="poststuff">
244 <div class="taxopress-section postbox">
245 <div class="postbox-header">
246 <h2 class="hndle ui-sortable-handle">
247 <?php
248 if ($suggestterm_edit) {
249 $active_tab = (isset($current['active_tab']) && !empty(trim($current['active_tab']))) ? $current['active_tab'] : 'suggestterm_general';
250 echo esc_html__('Edit Suggest Terms', 'simple-tags');
251 echo '<input type="hidden" name="edited_suggestterm" value="' . $current['ID'] . '" />';
252 echo '<input type="hidden" name="taxopress_suggestterm[ID]" value="' . $current['ID'] . '" />';
253 echo '<input type="hidden" name="taxopress_suggestterm[active_tab]" class="taxopress-active-subtab" value="' . $active_tab . '" />';
254 } else {
255 $active_tab = 'suggestterm_general';
256 echo '<input type="hidden" name="taxopress_suggestterm[active_tab]" class="taxopress-active-subtab" value="" />';
257 echo esc_html__('Add new Suggest Terms', 'simple-tags');
258 }
259 ?>
260 </h2>
261 </div>
262 <div class="inside">
263 <div class="main">
264
265
266 <?php if ($suggestterm_limit) {
267 echo '<div class="st-taxonomy-content"><div class="taxopress-warning upgrade-pro">
268 <p>
269
270 <h2 style="margin-bottom: 5px;">' . __('To create more Suggest Terms, please upgrade to TaxoPress Pro.',
271 'simple-tags') . '</h2>
272 ' . __('With TaxoPress Pro, you can create unlimited Suggest Terms. You can create Suggest Terms for any taxonomy.',
273 'simple-tags') . '
274
275 </p>
276 </div></div>';
277
278 } else {
279 ?>
280
281
282 <ul class="taxopress-tab">
283 <li class="suggestterm_general_tab <?php echo $active_tab === 'suggestterm_general' ? 'active' : ''; ?>"
284 data-content="suggestterm_general">
285 <a href="#suggestterm_general"><span><?php esc_html_e('General',
286 'simple-tags'); ?></span></a>
287 </li>
288
289 <li class="suggestterm_local_tab <?php echo $active_tab === 'suggestterm_local' ? 'active' : ''; ?>"
290 data-content="suggestterm_local">
291 <a href="#suggestterm_local"><span><?php esc_html_e('Show Existing Terms',
292 'simple-tags'); ?></span></a>
293 </li>
294
295 <li class="suggestterm_external_tab <?php echo $active_tab === 'suggestterm_external' ? 'active' : ''; ?>"
296 data-content="suggestterm_external">
297 <a href="#suggestterm_external"><span><?php esc_html_e('Suggest Terms',
298 'simple-tags'); ?></span></a>
299 </li>
300
301 </ul>
302
303 <div class="st-taxonomy-content taxopress-tab-content">
304
305
306 <table class="form-table taxopress-table suggestterm_general"
307 style="<?php echo $active_tab === 'suggestterm_general' ? '' : 'display:none;'; ?>">
308 <?php
309 echo $ui->get_tr_start();
310
311
312 echo $ui->get_th_start();
313 echo $ui->get_label('title', esc_html__('Title',
314 'simple-tags')) . $ui->get_required_span();
315 echo $ui->get_th_end() . $ui->get_td_start();
316
317 echo $ui->get_text_input([
318 'namearray' => 'taxopress_suggestterm',
319 'name' => 'title',
320 'textvalue' => isset($current['title']) ? esc_attr($current['title']) : '',
321 'maxlength' => '32',
322 'helptext' => '',
323 'required' => true,
324 'placeholder' => false,
325 'wrap' => false,
326 ]);
327
328
329 $options = [];
330 foreach (get_all_taxopress_public_taxonomies() as $_taxonomy) {
331 $_taxonomy = $_taxonomy->name;
332 $tax = get_taxonomy($_taxonomy);
333 if (empty($tax->labels->name)) {
334 continue;
335 }
336 if ($tax->name === 'post_tag') {
337 $options[] = [
338 'attr' => $tax->name,
339 'text' => $tax->labels->name,
340 'default' => 'true',
341 ];
342 } else {
343 $options[] = [
344 'attr' => $tax->name,
345 'text' => $tax->labels->name,
346 ];
347 }
348 }
349
350 $select = [
351 'options' => $options,
352 ];
353 $selected = isset($current) ? taxopress_disp_boolean($current['taxonomy']) : '';
354 $select['selected'] = !empty($selected) ? $current['taxonomy'] : '';
355 echo $ui->get_select_checkbox_input_main([
356 'namearray' => 'taxopress_suggestterm',
357 'name' => 'taxonomy',
358 'class' => 'st-post-taxonomy-select',
359 'labeltext' => esc_html__('Default Taxonomy', 'simple-tags'),
360 'required' => true,
361 'selections' => $select,
362 ]);
363
364
365 /**
366 * Filters the arguments for post types to list for taxonomy association.
367 *
368 *
369 * @param array $value Array of default arguments.
370 */
371 $args = apply_filters('taxopress_attach_post_types_to_taxonomy',
372 ['public' => true]);
373
374 // 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.
375 if (!is_array($args)) {
376 $args = ['public' => true];
377 }
378 $output = 'objects'; // Or objects.
379
380 /**
381 * Filters the results returned to display for available post types for taxonomy.
382 *
383 * @param array $value Array of post type objects.
384 * @param array $args Array of arguments for the post type query.
385 * @param string $output The output type we want for the results.
386 */
387 $post_types = apply_filters('taxopress_get_post_types_for_taxonomies',
388 get_post_types($args, $output), $args, $output);
389
390 $term_auto_locations = [];
391 foreach ($post_types as $post_type) {
392 $term_auto_locations[$post_type->name] = $post_type->label;
393 }
394
395 echo '<tr valign="top"><th scope="row"><label>' . esc_html__('Post Types',
396 'simple-tags') . '</label> </th><td>
397 <table class="visbile-table">';
398 foreach ($term_auto_locations as $key => $value) {
399
400
401 echo '<tr valign="top"><th scope="row"><label for="' . $key . '">' . $value . '</label></th><td>';
402
403 echo $ui->get_check_input([
404 'checkvalue' => $key,
405 'checked' => (!empty($current['post_types']) && is_array($current['post_types']) && in_array($key,
406 $current['post_types'], true)) ? 'true' : 'false',
407 'name' => $key,
408 'namearray' => 'post_types',
409 'textvalue' => $key,
410 'labeltext' => "",
411 'wrap' => false,
412 ]);
413
414 echo '</td></tr>';
415
416
417 }
418 echo '</table></td></tr>';
419
420
421 echo $ui->get_td_end() . $ui->get_tr_end();
422 ?>
423 </table>
424
425
426 <table class="form-table taxopress-table suggestterm_local"
427 style="<?php echo $active_tab === 'suggestterm_local' ? '' : 'display:none;'; ?>">
428
429 <tr valign="top"><td style="padding-left: 0;" colspan="2"><?php echo esc_html__('This feature shows a metabox where you can browse all your existing terms.', 'simple-tags'); ?></td></tr>
430
431 <?php
432
433 $select = [
434 'options' => [
435 [
436 'attr' => '0',
437 'text' => esc_attr__('False', 'simple-tags'),
438 'default' => 'true',
439 ],
440 [
441 'attr' => '1',
442 'text' => esc_attr__('True', 'simple-tags'),
443 ],
444 ],
445 ];
446 $selected = (isset($current) && isset($current['disable_local'])) ? taxopress_disp_boolean($current['disable_local']) : '';
447 $select['selected'] = !empty($selected) ? $current['disable_local'] : '';
448 echo $ui->get_select_checkbox_input([
449 'namearray' => 'taxopress_suggestterm',
450 'name' => 'disable_local',
451 'labeltext' => esc_html__('Disable "Show existing terms" feature',
452 'simple-tags'),
453 'selections' => $select,
454 ]);
455
456 if (!isset($current)) {
457 $maximum_terms = 100;
458 } else {
459 $maximum_terms = isset($current['number']) ? esc_attr($current['number']) : '0';
460 }
461
462 echo $ui->get_number_input([
463 'namearray' => 'taxopress_suggestterm',
464 'name' => 'number',
465 'textvalue' => $maximum_terms,
466 'labeltext' => esc_html__('Maximum terms', 'simple-tags'),
467 'helptext' => 'Set (0) for no limit.',
468 'min' => '0',
469 'required' => true,
470 ]);
471
472
473 $select = [
474 'options' => [
475 [
476 'attr' => 'name',
477 'text' => esc_attr__('Name', 'simple-tags')
478 ],
479 [
480 'attr' => 'count',
481 'text' => esc_attr__('Counter', 'simple-tags'),
482 'default' => 'true'
483 ],
484 [
485 'attr' => 'random',
486 'text' => esc_attr__('Random', 'simple-tags')
487 ],
488 ],
489 ];
490 $selected = isset($current) ? taxopress_disp_boolean($current['orderby']) : '';
491 $select['selected'] = !empty($selected) ? $current['orderby'] : '';
492 echo $ui->get_select_checkbox_input_main([
493 'namearray' => 'taxopress_suggestterm',
494 'name' => 'orderby',
495 'labeltext' => esc_html__('Method for choosing terms',
496 'simple-tags'),
497 'selections' => $select,
498 ]);
499
500
501 $select = [
502 'options' => [
503 [
504 'attr' => 'asc',
505 'text' => esc_attr__('Ascending', 'simple-tags')
506 ],
507 [
508 'attr' => 'desc',
509 'text' => esc_attr__('Descending', 'simple-tags'),
510 'default' => 'true'
511 ],
512 ],
513 ];
514 $selected = isset($current) ? taxopress_disp_boolean($current['order']) : '';
515 $select['selected'] = !empty($selected) ? $current['order'] : '';
516 echo $ui->get_select_checkbox_input_main([
517 'namearray' => 'taxopress_suggestterm',
518 'name' => 'order',
519 'labeltext' => esc_html__('Ordering for choosing terms',
520 'simple-tags'),
521 'selections' => $select,
522 ]);
523
524
525 ?>
526 </table>
527
528
529 <table class="form-table taxopress-table suggestterm_external"
530 style="<?php echo $active_tab === 'suggestterm_external' ? '' : 'display:none;'; ?>">
531
532
533 <tr class="suggestterm_external_description" valign="top"><td style="padding-left: 0;" colspan="2"><?php echo esc_html__('This feature can analyze your content and find new ideas for terms.', 'simple-tags'); ?></td></tr>
534
535 <?php
536
537
538 $select = [
539 'options' => [
540 [
541 'attr' => '0',
542 'text' => esc_attr__('False', 'simple-tags'),
543 'default' => 'true',
544 ],
545 [
546 'attr' => '1',
547 'text' => esc_attr__('True', 'simple-tags'),
548 ],
549 ],
550 ];
551 $selected = (isset($current) && isset($current['suggest_term_use_local'])) ? taxopress_disp_boolean($current['suggest_term_use_local']) : '';
552 $select['selected'] = !empty($selected) ? $current['suggest_term_use_local'] : '';
553 echo $ui->get_select_checkbox_input([
554 'namearray' => 'taxopress_suggestterm',
555 'name' => 'suggest_term_use_local',
556 'class' => 'suggest_term_use_local',
557 'labeltext' => esc_html__('Suggest existing terms on your site',
558 'simple-tags'),
559 'selections' => $select,
560 ]);
561
562
563 $select = [
564 'options' => [
565 [
566 'attr' => '0',
567 'text' => esc_attr__('False', 'simple-tags'),
568 'default' => 'true',
569 ],
570 [
571 'attr' => '1',
572 'text' => esc_attr__('True', 'simple-tags'),
573 ],
574 ],
575 ];
576 $selected = (isset($current) && isset($current['suggest_term_use_dandelion'])) ? taxopress_disp_boolean($current['suggest_term_use_dandelion']) : '';
577 $select['selected'] = !empty($selected) ? $current['suggest_term_use_dandelion'] : '';
578 echo $ui->get_select_checkbox_input([
579 'namearray' => 'taxopress_suggestterm',
580 'name' => 'suggest_term_use_dandelion',
581 'class' => 'suggest_term_use_dandelion',
582 'labeltext' => esc_html__('Suggest new terms from the Dandelion service',
583 'simple-tags'),
584 'selections' => $select,
585 ]);
586
587 echo $ui->get_text_input([
588 'namearray' => 'taxopress_suggestterm',
589 'name' => 'terms_datatxt_access_token',
590 'class' => 'terms_datatxt_access_token',
591 'textvalue' => isset($current['terms_datatxt_access_token']) ? esc_attr($current['terms_datatxt_access_token']) : '',
592 'labeltext' => esc_html__('Dandelion API token', 'simple-tags'),
593 'helptext' => __('You need an API key to use Dandelion to suggest terms. <br /> <a href="https://taxopress.com/docs/dandelion-api/">Click here for documentation.</a>',
594 'simple-tags'),
595 'required' => false,
596 ]);
597
598 if (!isset($current)) {
599 $terms_datatxt_min_confidence = '0.6';
600 } else {
601 $terms_datatxt_min_confidence = isset($current['terms_datatxt_min_confidence']) ? esc_attr($current['terms_datatxt_min_confidence']) : '0';
602 }
603
604 echo $ui->get_number_input([
605 'namearray' => 'taxopress_suggestterm',
606 'name' => 'terms_datatxt_min_confidence',
607 'class' => 'terms_datatxt_min_confidence',
608 'textvalue' => $terms_datatxt_min_confidence,
609 'labeltext' => esc_html__('Dandelion API confidence value',
610 'simple-tags'),
611 'helptext' => __('Choose a value between 0 and 1. A high value such as 0.8 will provide a few, accurate suggestions. A low value such as 0.2 will produce more suggestions, but they may be less accurate.',
612 'simple-tags'),
613 'min' => '0',
614 'max' => '1',
615 'other_attr' => 'step=".1"',
616 'required' => false,
617 ]);
618
619
620 $select = [
621 'options' => [
622 [
623 'attr' => '0',
624 'text' => esc_attr__('False', 'simple-tags'),
625 'default' => 'true',
626 ],
627 [
628 'attr' => '1',
629 'text' => esc_attr__('True', 'simple-tags'),
630 ],
631 ],
632 ];
633 $selected = (isset($current) && isset($current['suggest_term_use_opencalais'])) ? taxopress_disp_boolean($current['suggest_term_use_opencalais']) : '';
634 $select['selected'] = !empty($selected) ? $current['suggest_term_use_opencalais'] : '';
635 echo $ui->get_select_checkbox_input([
636 'namearray' => 'taxopress_suggestterm',
637 'name' => 'suggest_term_use_opencalais',
638 'class' => 'suggest_term_use_opencalais',
639 'labeltext' => esc_html__('Suggest new terms from the Open Calais service',
640 'simple-tags'),
641 'selections' => $select,
642 ]);
643
644 echo $ui->get_text_input([
645 'namearray' => 'taxopress_suggestterm',
646 'name' => 'terms_opencalais_key',
647 'class' => 'terms_opencalais_key',
648 'textvalue' => isset($current['terms_opencalais_key']) ? esc_attr($current['terms_opencalais_key']) : '',
649 'labeltext' => esc_html__('OpenCalais API Key', 'simple-tags'),
650 'helptext' => __('You need an API key to use OpenCalais to suggest terms. <br /> <a href="https://taxopress.com/docs/opencalais/">Click here for documentation.</a>',
651 'simple-tags'),
652 'required' => false,
653 ]);
654
655
656 ?>
657
658 </table>
659
660
661 </div>
662
663
664 <?php }//end new fields
665 ?>
666
667
668 <div class="clear"></div>
669
670
671 </div>
672 </div>
673 </div>
674
675
676 <?php if ($suggestterm_limit) { ?>
677
678 <div class="pp-version-notice-bold-purple" style="margin-left:0px;">
679 <div class="pp-version-notice-bold-purple-message">You're using TaxoPress Free.
680 The Pro version has more features and support.
681 </div>
682 <div class="pp-version-notice-bold-purple-button"><a
683 href="https://taxopress.com/pro" target="_blank">Upgrade to Pro</a>
684 </div>
685 </div>
686
687 <?php } ?>
688 <?php
689 /**
690 * Fires after the default fieldsets on the taxonomy screen.
691 *
692 * @param taxopress_admin_ui $ui Admin UI instance.
693 */
694 do_action('taxopress_taxonomy_after_fieldsets', $ui);
695 ?>
696
697 </div>
698 </div>
699
700
701 </div>
702
703 <div class="taxopress-right-sidebar">
704 <div class="taxopress-right-sidebar-wrapper" style="min-height: 205px;">
705
706
707 <?php
708 if (!$suggestterm_limit) { ?>
709 <p class="submit">
710
711 <?php
712 wp_nonce_field('taxopress_addedit_suggestterm_nonce_action',
713 'taxopress_addedit_suggestterm_nonce_field');
714 if (!empty($_GET) && !empty($_GET['action']) && 'edit' === $_GET['action']) { ?>
715 <input type="submit"
716 class="button-primary taxopress-taxonomy-submit taxopress-suggestterm-submit"
717 name="suggestterm_submit"
718 value="<?php echo esc_attr(esc_attr__('Save Suggest Terms',
719 'simple-tags')); ?>"/>
720 <?php
721 } else { ?>
722 <input type="submit"
723 class="button-primary taxopress-taxonomy-submit taxopress-suggestterm-submit"
724 name="suggestterm_submit"
725 value="<?php echo esc_attr(esc_attr__('Add Suggest Terms',
726 'simple-tags')); ?>"/>
727 <?php } ?>
728
729
730 <input type="hidden" name="cpt_tax_status" id="cpt_tax_status"
731 value="<?php echo esc_attr($tab); ?>"/>
732 </p>
733
734 <?php
735 }
736 ?>
737
738 </div>
739
740 </div>
741
742 <div class="clear"></div>
743
744
745 </form>
746
747 </div><!-- End .wrap -->
748
749 <div class="clear"></div>
750
751 <?php # Modal Windows;
752 ?>
753 <div class="remodal" data-remodal-id="taxopress-modal-alert"
754 data-remodal-options="hashTracking: false, closeOnOutsideClick: false">
755 <div class=""
756 style="color:red;"><?php echo __('Please complete the following required fields to save your changes:',
757 'simple-tags'); ?></div>
758 <div id="taxopress-modal-alert-content"></div>
759 <br>
760 <button data-remodal-action="cancel" class="remodal-cancel"><?php echo __('Okay',
761 'simple-tags'); ?></button>
762 </div>
763
764 <div class="remodal" data-remodal-id="taxopress-modal-confirm"
765 data-remodal-options="hashTracking: false, closeOnOutsideClick: false">
766 <div id="taxopress-modal-confirm-content"></div>
767 <br>
768 <button data-remodal-action="cancel" class="remodal-cancel"><?php echo __('No', 'simple-tags'); ?></button>
769 <button data-remodal-action="confirm"
770 class="remodal-confirm"><?php echo __('Yes', 'simple-tags'); ?></button>
771 </div>
772
773 <?php
774 }
775
776 }
777