PluginProbe
Tag Groups is the Advanced Way to Display Your Taxonomy Terms / trunk
Tag Groups is the Advanced Way to Display Your Taxonomy Terms vtrunk
2.2.2 2.2.1 2.2.0 trunk 1.40.0 1.40.2 1.41.0 1.42.1 1.43.0 1.43.1 1.43.10 1.43.10.1 1.43.2 1.43.3 1.43.4 1.43.5 1.43.6 1.43.7 1.43.9 1.44.0 1.44.1 1.44.3 1.44.3.1 2.0.0 2.0.1 All 36 releases
tag-groups / views / admin / settings_taxonomies.view.php

settings_taxonomies.view.php in Tag Groups is the Advanced Way to Display Your Taxonomy Terms trunk, at views/admin/settings_taxonomies.view.php

58 lines 4.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div class="tg_settings_tabs_content">
2 <p><?php _e('Choose the taxonomies for which you want to use Tag Groups:', 'tag-groups') ?></p>
3
4 <div class="chatty-mango-help-container chatty-mango-help-container-taxonomies" style="display:none;">
5 <p><?php _e("The default texonomy is <b>Tags (post_tag)</b>. Please note that the tag clouds might not work with all taxonomies and that some taxonomies listed here may not be accessible in the admin backend. If you don't understand what is going on here, just leave the default.", 'tag-groups') ?></p>
6 <p><?php _e("<b>Please deselect taxonomies that you don't use. Using several taxonomies for the same post type or hierarchical taxonomies (like categories) is experimental and not supported.</b>", 'tag-groups') ?></p>
7 <p><?php _e('To see the post type, hover your mouse over the option.', 'tag-groups') ?></p>
8 <p><?php _e('If you use a custom taxonomy, make sure that the attribute "Public" is set to "true" and "Hierarchical" to "false".', 'tag-groups') ?></p>
9 </div>
10 <div class="chatty-mango-settings-container">
11 <form method="POST" action="<?php /* phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized */ echo isset($_SERVER['REQUEST_URI']) ? esc_url(wp_unslash($_SERVER['REQUEST_URI'])) : ''; ?>">
12 <?php echo wp_nonce_field('tag-groups-taxonomy', 'tag-groups-taxonomy-nonce', true, false); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
13 <ul>
14 <p><input id="tg_advanced_options_checkbox" type="checkbox" value=1 autocomplete="off" />
15 <label for="tg_advanced_options_checkbox"><?php _e('Show hierarchical taxonomies. Not all Tag Groups features will work with these taxonomies.', 'tag-groups') ?></label></p>
16 <script>
17 jQuery(document).ready(function() {
18 jQuery("#tg_advanced_options_checkbox").on('change', function() {
19 if (jQuery("#tg_advanced_options_checkbox").is(":checked")) {
20 jQuery(".tg_advanced_options_items").slideDown();
21 } else {
22 jQuery(".tg_advanced_options_items").slideUp();
23 }
24 });
25 });
26 </script>
27 <p>&nbsp;</p>
28 <?php foreach ($public_taxonomies as $taxonomy) : ?>
29 <li<?php if (is_taxonomy_hierarchical($taxonomy)) :
30 ?> class="tg_advanced_options_items" style="display:none;" <?php
31 endif; ?>>
32 <input type="checkbox" name="taxonomies[]" autocomplete="off" id="<?php echo esc_attr($taxonomy) ?>" value="<?php echo esc_attr($taxonomy) ?>" <?php if (in_array($taxonomy, $enabled_taxonomies)) :
33 ?> checked />&nbsp;<a href="<?php echo esc_url(TagGroups_Taxonomy::get_tag_group_admin_url($taxonomy)) ?>" title="<?php _e('go to tag group administration', 'tag-groups') ?>"><span class="dashicons dashicons-index-card tg_no_underline"></span></a>
34 <?php else : ?>
35 />&nbsp;<span class="dashicons dashicons-index-card tg_no_underline tg_faded"></span>
36 <?php endif; ?>
37 <label for="<?php echo esc_attr($taxonomy) ?>" class="tg_unhide_trigger">
38 <?php echo esc_html(TagGroups_Taxonomy::get_name_from_slug($taxonomy)) ?> (<?php echo esc_html($taxonomy) ?>)
39 </label>
40 </li>
41 <?php endforeach; ?>
42 </ul>
43 <script>
44 jQuery(document).ready(function() {
45 jQuery(".tg_unhide_trigger").on('mouseover', function() {
46 jQuery(this).find("span").show();
47 });
48 jQuery(".tg_unhide_trigger").on('mouseout', function() {
49 jQuery(this).find("span").hide();
50 });
51 });
52 </script>
53 <input type="hidden" name="tg_action" value="taxonomy">
54 <input class="button-primary" type="submit" name="Save" value="<?php _e('Save Taxonomies', 'tag-groups') ?>" id="submitbutton" />
55 </form>
56 </div>
57 </div>
58