Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="side-sortables" class="metabox-holder" style="float:left; padding:5px;">
- <div class="postbox">
- <h3 class="hndle"><span><?php echo $value['name']; ?></span></h3>
- <div class="inside" style="padding:0 10px;">
- <div class="taxonomydiv">
- <ul id="taxonomy-category-tabs" class="taxonomy-tabs add-menu-item-tabs">
- <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>
- <li<?php echo ( 'popular' == $current_tab ? ' class="tabs"' : '' ); ?>><a href="<?php echo $users_tab; ?>" class="nav-tab-link">Most Used</a></li>
- </ul>
- <div id="<?php echo $id; ?>-all" class="tabs-panel <?php echo ( 'all' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?>">
- <ul class="categorychecklist form-no-clear">
- <?php
- wp_list_categories(
- array(
- 'admin' => $id,
- 'selected_cats' => $selected,
- 'options_name' => $options_name,
- 'hide_empty' => 0,
- 'title_li' => '',
- 'disabled' => ( 'all' == $current_tab ? false : true ),
- 'walker' => $walker
- )
- );
- ?>
- </ul>
- </div>
- <div id="<?php echo $id; ?>-popular" class="tabs-panel <?php echo ( 'popular' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?>">
- <ul class="categorychecklist form-no-clear">
- <?php
- wp_list_categories(
- array(
- 'admin' => $id,
- 'selected_cats' => $selected,
- 'options_name' => $options_name,
- 'hide_empty' => 0,
- 'title_li' => '',
- 'orderby' => 'count',
- 'order' => 'DESC',
- 'disabled' => ( 'popular' == $current_tab ? false : true ),
- 'walker' => $walker
- )
- );
- ?>
- </ul>
- </div>
- </div>
- <p style="padding-left:10px;"><strong><?php echo count( $selected ); ?></strong> <?php echo ( count( $selected ) > 1 || count( $selected ) == 0 ) ? 'categories' : 'category'; ?> selected</p>
- </div>
- </div>
- </div>
- <?php
- endforeach;
Add Comment
Please, Sign In to add comment