function fr_list_chapters() { fr_list_comics(); echo '<div class="theList">'; $temp = fr_available_chapters(); if (!empty($temp)) { foreach ($temp as $key => $value) { echo '<div class="chapter"><b>' . $value . '</b><div style="float:right; color:#43c8f0;"><a href="' . fr_get_href(fr_selected_comic(), $value) . '">Read</a></div></div>'; } } else { echo "No chapters available."; } echo '</div>'; }
<?php fr_get_header(); ?> <?php fr_list_comics(); ?> <?php fr_get_footer();