current progress
This commit is contained in:
61
page.php
Normal file
61
page.php
Normal 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();
|
Reference in New Issue
Block a user