current progress

This commit is contained in:
prospect
2023-12-26 22:56:58 -05:00
commit 7843c7b084
99 changed files with 42808 additions and 0 deletions

61
page.php Normal file
View File

@@ -0,0 +1,61 @@
<!-- Get Header -->
<?php
get_header(); ?>
<section class="h-full overflow-scroll no-scrollbar bg-white pt-16 pb-[65px]">
<?php $pages = get_pages_as_array();
foreach ($pages as $page) {
$pageID = $page['page']->ID;
$pageTitle = $page['page']->post_title;
$pageSlug = $page['page']->post_name;
$pageBG = $page['page']->post_name . '.png';
$pageBootstrapIcon = get_field('bootstrap_icon', $page['page']->ID);
if (is_page($pageSlug)) { ?>
<?php get_template_part('/templates/partials/page_header'); ?>
<div class="my-4 px-4 text-center">
<h2 class="font-medium underline uppercase">Overview</h2>
</div>
<!-- Page Editor Content -->
<div class="prose max-w-7xl mx-auto">
<?php the_content(); ?>
</div>
<?php get_template_part('/templates/top-level/' . $pageSlug); ?>
<?php get_template_part('/templates/partials/subcategory_cards'); ?>
<?php }
foreach ($page['subpages'] as $subpage) {
$pageID = $subpage->ID;
$pageTitle = $subpage->post_title;
$pageSlug = $subpage->post_name;
$pageBG = $subpage->post_name . '.png';
$pageBootstrapIcon = get_field('bootstrap_icon', $subpage->ID);
if (is_page($pageSlug)) {
get_template_part('/templates/partials/page_header');
get_template_part('/templates/internal/' . $pageSlug); ?>
<!-- Page Editor Content -->
<div class="prose max-w-7xl mx-auto">
<?php the_content(); ?>
</div>
<?php }
}
}
?>
</section>
<?php get_footer();