<?php ################################### $asdados = list_all_pages(); $topages = $asdados['array']; $control = $asdados['url_controle']; ##################################### ?> <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> <div id="page-wrapper"> <div class="row"> <div class="col-md-12"> <h1 style="float:left">Tratamentos <small>Listar tratamentos</small></h1> <a class="floatButton btn btn-success btn-lg" href="<?php echo map_url(); ?> novo"> Adicionar novo tratamento </a> </div> <div class="col-md-12"></div> <div class="col-md-12"> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th width="45" class="center">ID</th> <th>Título</th> <th width="100">Data</th> <th width="100">Status</th>
foreach ($all_pages as $thats_all) { $the_page_id = $thats_all->ID; if (is_page($the_page_id)) { $addclass = ' class="current_page"'; } else { $addclass = ''; } $output .= '<li' . $addclass . '><a href="' . get_permalink($thats_all->ID) . '" title="' . $thats_all->post_title . '"><span>' . $thats_all->post_title . '</span></a></li>'; } return $output; } ?> <ul> <?php if (is_home()) { $addclass = ' class="current_page"'; } else { $addclass = ''; } echo "<li" . $addclass . "><a href='" . get_option('home') . "' title='Home'><span>Home</span></a></li>"; echo list_all_pages(); ?> </ul> <div class="cleared"></div> </div> <!-- Closes Nav --> <div class="topcurvewhite"></div> <div id="main">