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_help.view.php

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

52 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div id="tg_setting_help_search">
2 <div class="tg-settings-search-area">
3 <label for="tg_setting_help_search_field"></label><input id="tg_setting_help_search_field" placeholder="<?php _e('Search for settings', 'tag-groups') ?>" autocomplete="off" title="<?php _e('Search for setting pages. Type a space to show all settings.', 'tag-groups') ?>">
4 </div>
5 <div id="tg_setting_help_search_results" style="display:none;">
6 <h2><?php _e('Search Results', 'tag-groups') ?></h2>
7 <div class="chatty-mango-settings-columns tg_setting_help_search_results_inner">
8 <h4 id="tg_setting_help_nothing_found" style="display:none"><?php _e('Nothing found', 'tag-groups') ?></h4>
9 <?php foreach ($topics as $tab => $atts) :
10 $keywords = strtolower(implode(',', $atts['keywords'])) . ',' . strtolower($atts['title']) . ',' . $tab;
11 ?>
12 <div id="tg_topic_' . $tab . '" class="tg_settings_topic" data-keywords="<?php echo esc_attr($keywords) ?>">
13 <h4><span class="dashicons dashicons-arrow-right-alt tg_no_underline"></span>&nbsp; <a href="<?php echo esc_url(admin_url('admin.php?page=' . esc_attr($atts['page']) . '&active-tab=' . esc_attr($tab))) ?>"><?php echo esc_html($atts['title']) ?></a></h4>
14 </div>
15 <?php endforeach; ?>
16 </div>
17 </div>
18 </div>
19 <script>
20 var searchText = "";
21 jQuery(document).ready(function(){
22 jQuery("#tg_setting_help_search_field").on('keyup', function(){
23 searchText = jQuery("#tg_setting_help_search_field").val().toLowerCase();
24 if (searchText.length === 0) {
25 jQuery("#tg_setting_help_search_results").slideUp();
26 } else {
27 if (jQuery("#tg_setting_help_search_results").css("display") === "none") {
28 jQuery("#tg_setting_help_search_results").slideDown();
29 }
30 if (searchText==="' . __( 'all', 'tag-groups') . '" || searchText==="*" || searchText===" ") {
31 jQuery(".tg_settings_topic").removeClass("tg_hide");
32 } else {
33 jQuery(".tg_settings_topic")
34 .addClass("tg_hide")
35 .filter(function(index){
36 var keywords = jQuery(this).attr("data-keywords");
37 return keywords.indexOf(searchText) > -1;
38 })
39 .removeClass("tg_hide");
40 }
41 if (jQuery(".tg_settings_topic:not(.tg_hide)").length === 0 ){
42 jQuery("#tg_setting_help_nothing_found").slideDown();
43 } else {
44 jQuery("#tg_setting_help_nothing_found").slideUp();
45 }
46 jQuery(".tg_settings_topic.tg_hide").slideUp();
47 jQuery(".tg_settings_topic:not(.tg_hide)").slideDown();
48 }
49 });
50 });
51 </script>
52