Files
mccans-theme/footer.php
2025-05-20 14:15:03 -07:00

23 lines
1.1 KiB
PHP

<?php
// This file should close out the <body> tag and will be used by WordPress
// at the end of each page render. Make sure your handlebars template includes
// the helper {{#wp-footer}} otherwise you should call wp_footer() here in the
// php file.
echo site()->render("footer", [
"menu" => site()->renderMenu("footer-nav"),
"locations" => site()->getPosts(["type" => "location", "posts_per_page" => 99], ["title", "url"]),
"tagline" => get_field("tagline", "options"),
"address" => get_field("address", "options"),
"city" => get_field("city", "options"),
"state" => get_field("state", "options"),
"contact_email" => get_field("contact_email", "options"),
"contact_phone" => get_field("contact_phone", "options"),
"year" => date("Y"),
"facebook_url" => get_field("facebook_url", "options"),
"twitter_url" => get_field("twitter_url", "options"),
"linkedin_url" => get_field("linkedin_url", "options"),
"youtube_url" => get_field("youtube_url", "options"),
"instagram_url" => get_field("instagram_url", "options"),
]);