Guest User

Untitled

a guest
Jun 24th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. <div id="side-sortables" class="metabox-holder" style="float:left; padding:5px;">
  2. <div class="postbox">
  3. <h3 class="hndle"><span><?php echo $value['name']; ?></span></h3>
  4.  
  5. <div class="inside" style="padding:0 10px;">
  6. <div class="taxonomydiv">
  7. <ul id="taxonomy-category-tabs" class="taxonomy-tabs add-menu-item-tabs">
  8. <li<?php echo ( 'all' == $current_tab ? ' class="tabs"' : '' ); ?>><a href="<?php echo add_query_arg( $id . '-tab', 'all', $roles_tab ); ?>" class="nav-tab-link">View All</a></li>
  9. <li<?php echo ( 'popular' == $current_tab ? ' class="tabs"' : '' ); ?>><a href="<?php echo $users_tab; ?>" class="nav-tab-link">Most Used</a></li>
  10. </ul>
  11. <div id="<?php echo $id; ?>-all" class="tabs-panel <?php echo ( 'all' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?>">
  12. <ul class="categorychecklist form-no-clear">
  13. <?php
  14. wp_list_categories(
  15. array(
  16. 'admin' => $id,
  17. 'selected_cats' => $selected,
  18. 'options_name' => $options_name,
  19. 'hide_empty' => 0,
  20. 'title_li' => '',
  21. 'disabled' => ( 'all' == $current_tab ? false : true ),
  22. 'walker' => $walker
  23. )
  24. );
  25. ?>
  26. </ul>
  27. </div>
  28. <div id="<?php echo $id; ?>-popular" class="tabs-panel <?php echo ( 'popular' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?>">
  29. <ul class="categorychecklist form-no-clear">
  30. <?php
  31. wp_list_categories(
  32. array(
  33. 'admin' => $id,
  34. 'selected_cats' => $selected,
  35. 'options_name' => $options_name,
  36. 'hide_empty' => 0,
  37. 'title_li' => '',
  38. 'orderby' => 'count',
  39. 'order' => 'DESC',
  40. 'disabled' => ( 'popular' == $current_tab ? false : true ),
  41. 'walker' => $walker
  42. )
  43. );
  44. ?>
  45. </ul>
  46. </div>
  47. </div>
  48.  
  49. <p style="padding-left:10px;"><strong><?php echo count( $selected ); ?></strong> <?php echo ( count( $selected ) > 1 || count( $selected ) == 0 ) ? 'categories' : 'category'; ?> selected</p>
  50.  
  51. </div>
  52. </div>
  53. </div>
  54. <?php
  55. endforeach;
Add Comment
Please, Sign In to add comment