| 1 |
<div style="float:left;"> |
| 2 |
<h2><?php _e('Active Taxonomies', 'tag-groups') ?></h2> |
| 3 |
<table class="widefat fixed striped"> |
| 4 |
<?php foreach ($taxonomy_infos as $taxonomy_info) : ?> |
| 5 |
<tr> |
| 6 |
<td> |
| 7 |
<div class="tg_admin_accordion"> |
| 8 |
<h4><span title="<?php _e('Click for more information', 'tag-groups') ?>"><?php echo esc_html($taxonomy_info['name']) ?> (<?php echo esc_html($taxonomy_info['slug']) ?>)</span></h4> |
| 9 |
<div style="display:none;"> |
| 10 |
<?php if ($group_count < 100 && $taxonomy_info['term_count'] < 10000) : ?> |
| 11 |
<h4><?php _e('Group Statistics', 'tag-groups') ?> |
| 12 |
<?php if (TagGroups_WPML::get_current_language()) : ?> |
| 13 |
(<?php _e('for the selected language', 'tag-groups') ?>) |
| 14 |
<?php endif; ?> |
| 15 |
</h4> |
| 16 |
<?php echo wp_kses_post($taxonomy_info['info_html']) ?> |
| 17 |
<?php else : ?> |
| 18 |
<?php echo wp_kses_post(sprintf('This taxonomy has %d tags in %d groups.', $taxonomy_info['term_count'], $group_count)); ?> |
| 19 |
<?php endif; ?> |
| 20 |
</div> |
| 21 |
</td> |
| 22 |
<td style="max-width:300px;"> |
| 23 |
<span class="dashicons dashicons-arrow-right-alt tg_no_underline"></span> <a href="<?php echo esc_url($taxonomy_info['tag_group_admin']) ?>"><?php _e('go to tag group administration', 'tag-groups') ?></a> |
| 24 |
</td> |
| 25 |
</tr> |
| 26 |
<?php endforeach; ?> |
| 27 |
</table> |
| 28 |
</div> |
| 29 |
|
| 30 |
<!-- begin Tag Groups plugin --> |
| 31 |
<script> |
| 32 |
jQuery(document).ready(function() { |
| 33 |
var icons = { |
| 34 |
header: "dashicons dashicons-arrow-right", |
| 35 |
activeHeader: "dashicons dashicons-arrow-down" |
| 36 |
}; |
| 37 |
jQuery( ".tg_admin_accordion" ).accordion({ |
| 38 |
icons:icons, |
| 39 |
collapsible: true, |
| 40 |
active: false, |
| 41 |
heightStyle: "content" |
| 42 |
}); |
| 43 |
}); |
| 44 |
</script> |
| 45 |
<!-- end Tag Groups plugin --> |
| 46 |
|