starting technical seo

This commit is contained in:
prospect
2024-01-17 05:40:00 -05:00
parent d0c3923e4c
commit 0bf417dcab
111 changed files with 322 additions and 280 deletions

View File

@@ -174,7 +174,7 @@ $tribalCouncils = [
<div class="relative flex items-center space-x-2">
<?php if ($tribalCouncil['logo']) : ?>
<img class="tribal-council-logo object-cover" src="<?php echo get_template_directory_uri() . '/assets/images/logos/tribal-councils/new/' . $tribalCouncil['logo'] . '.png' ?>" alt="Tribal Council Logo">
<img class="tribal-council-logo object-cover" src="<?php echo get_template_directory_uri() . '/assets/images/logos/tribal-councils/' . $tribalCouncil['logo'] . '.png' ?>" alt="Tribal Council Logo">
<?php endif; ?>
<h3 class="font-bold"><?= $tribalCouncil['name'] ?></h3>

View File

@@ -9,7 +9,7 @@ $pageSlug = $page->post_name;
if ($page->post_parent !== 0) {
$parent_page = $pages[$page->post_parent]['page'];
$pageBG = $parent_page->post_name . '.png';
$pageBG = 'internal/' . $page->post_name . '.png';
} else {
$pageBG = $page->post_name . '.png';
}

View File

@@ -1,47 +0,0 @@
<!-- Quick Links Section -->
<?php
require(get_theme_file_path('/includes/front-end/menu_data.php'));
$current_slug = get_post_field('post_name', get_post());
$subcategories = getSubcategoriesBySlug($menuData, $current_slug);
if (count($subcategories) > 0) { ?>
<?php
foreach ($subcategories as $subcategory) {
$content = $subcategory['description'] ?? $subcategory['title']
?>
<div class="px-2">
<ul role="list" class="max-w-7xl mx-auto text-blue-500 bg-white border-blue-500 border py-4 mb-4 rounded-md">
<li class="accordion">
<div class="flex px-2 rounded-md justify-between">
<div class="gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold flex items-center align-middle">
<p><?php echo $subcategory['title']; ?></p>
</div>
<button class="accordion-toggle">
<i class="fas fa-chevron-down items-center ml-auto rounded-md bg-gray-900 px-2.5 py-2 text-white ring-1 ring-inset ring-gray-700" aria-hidden="true"></i>
<i class="fas fa-times items-center ml-auto rounded-md bg-gray-900 px-3 py-2 text-white ring-1 ring-inset ring-gray-700" aria-hidden="true"></i>
</button>
</div>
<ul class="accordion-content space-y-2">
<li class="p-2">
<a href="<?php echo get_site_url() . '/' . $current_slug . '/' . $subcategory['slug'] ?>" class="flex space-x-2 items-center"><i class="bi-caret-right-fill"></i>
<p><?php echo $content ?></p>
</a>
</li>
</ul>
</li>
</ul>
</div>
<?php }
}

View File

@@ -9,7 +9,7 @@ $subpages = getSubpagesForSlug($pages, $current_slug);
if (count($subpages) > 0) { ?>
<!-- Sub Level Pages Section -->
<div class="p-4 lg:h-full">
<div class="py-4 px-2 lg:h-full">
<ul class="grid grid-cols-1 lg:grid-cols-2 gap-2 lg:h-full place-items-stretch">
<?php
foreach ($subpages as $subpage) {
@@ -18,11 +18,12 @@ if (count($subpages) > 0) { ?>
?>
<li class="category-cards flex rounded-md shadow-md relative overflow-hidden w-full" style="background-image: url('<?php echo get_template_directory_uri(); ?>/assets/images/bgs/<?php echo $subpage->post_name ?>.png');">
<a class="w-full py-8 px-8 space-y-2 lg:flex lg:flex-col lg:items-center lg:justify-center" href="<?php echo get_site_url() . '/' . $pages[$subpage->post_parent]['page']->post_name . '/' . $subpage->post_name ?>">
<li class="category-cards flex rounded-md shadow-md relative overflow-hidden w-full" style="background-image: url('<?php echo get_template_directory_uri(); ?>/assets/images/bgs/internal/<?php echo $subpage->post_name ?>.png');">
<a class="relative w-full py-8 px-4 space-y-2 lg:flex lg:flex-col lg:items-center lg:justify-center" href="<?php echo get_site_url() . '/' . $pages[$subpage->post_parent]['page']->post_name . '/' . $subpage->post_name ?>">
<h2 class="font-bold uppercase"><?php echo $subpage->post_title ?></h2>
<div class="bg-white inset-0 h-full flex items-center absolute bg-opacity-60 rounded-md py-2 px-4 lg:px-8">
<h2 class="font-bold uppercase"><?php echo $subpage->post_title ?></h2>
</div>
<?php if (get_field('description', $pageID) != '') { ?>
<p class="lg:text-center"><?php echo get_field('description', $pageID); ?></p>