<?php } ?> </h1> <?php echo $page['content']; ?> </div> <?php if ($page['requires_confirmation'] == "true") { ?> <form class="confirmation" action="index.php" method="post"> <label for="agree">I Have read and agree with this content</label> <input type="checkbox" <?php if (user_has_confirmed(pirate_auth_current_user('id'), $page['id']) == "true") { ?> checked disabled<?php } ?> id="agree" class="toggle_hidden" data-toggle="#agree_btn"/> <br/> <input name="page_id" value="<?php echo $page['id']; ?> " type="hidden"/> <button type="submit" name="confirm_page" class="btn btn-primary hidden" id="agree_btn">Done</button> </form> <?php } ?>
?> </a></td> <td><?php echo pirate_auth_get_user_by_id($page['author_id'])['first_name'] . " " . pirate_auth_get_user_by_id($page['author_id'])['last_name']; ?> </td> <td><?php echo $page['date_created']; ?> </td> <td class="hidden-xs"><?php echo $page['requires_confirmation']; ?> </td> <td class="hidden-xs"><?php echo user_has_confirmed(pirate_auth_current_user('id'), $page['id']); ?> </td> <td><?php echo get_latest_page_version($spage['id']); ?> </td> </tr> <?php } } ?> </table>