<div class="inside"> <div id="taxonomy-category" class="categorydiv"> <ul id="branches-tags-tabs" class="category-tabs"> <li id="branches-tab" class="tabs"><a id="branches-link" href="#branches" onclick="return false;"><?php _e('Branches', 'revisr'); ?> </a></li> <li id="tags-tab" class="hide-if-no-js"><a id="tags-link" href="#tags" onclick="return false;"><?php _e('Tags', 'revisr'); ?> </a></li> </ul> <div id="branches" class="tabs-panel" style="display: block;"> <table id="branches_table" class="widefat"> <?php $output = $git->get_branches(); if (is_array($output)) { foreach ($output as $key => $value) { $branch = substr($value, 2); if (substr($value, 0, 1) === "*") { echo "<tr><td><strong>{$branch}</strong></td><td width='70'><a class='button disabled branch-btn' onclick='preventDefault()' href='#'>Checked Out</a></td></tr>"; } else { echo "<tr><td>{$branch}</td><td width='70'><a class='button branch-btn' href='" . get_admin_url() . "admin-post.php?action=process_checkout&branch={$branch}'>Checkout</a></td></tr>"; } } } ?> </table> </div> <div id="tags" class="tabs-panel" style="display: none;"> <ul id="tags-list">