/si', $template, $match)) { foreach ($match as $value) { $needle='body id="'.$value.'"'; $replace='body id="mem_portal"'; $template=str_replace($needle, $replace, $template); } } } // NEWS elseif ($match[0]=="news") { include(ADMIN_PATH.'/site_includes/build_news.php'); } elseif ($match[0]=="hp-latest-news") { include(ADMIN_PATH.'/site_includes/build_hp_latest_news.php'); // NEWSLETTER } elseif ($match[0]=="newsletter") { include(ADMIN_PATH.'/site_includes/build_newsletter.php'); } elseif ($match[0]=="newsletter-subscribe") { include(ADMIN_PATH.'/site_includes/build_newsletter_subscribe.php'); } elseif ($match[0]=="newsletter_unsubscribe") { include(ADMIN_PATH.'/site_includes/build_newsletter_unsubscribe.php'); // CASE STUDIES } elseif ($match[0]=="case-studies") { include(ADMIN_PATH.'/site_includes/build_case_studies.php'); // CLIENTS } elseif ($match[0]=="client-list") { include(ADMIN_PATH.'/site_includes/build_client_list.php'); // PRODUCTS & SERVICES (OLD MODULE) } elseif ($match[0]=="products-services-list") { include(ADMIN_PATH.'/site_includes/build_products_list.php'); } elseif ($match[0]=="products-services-details") { include(ADMIN_PATH.'/site_includes/build_product_details.php'); // PRODUCTS } elseif ($match[0]=="hp-products") { include(ADMIN_PATH.'/site_includes/build_hp_products.php'); } elseif ($match[0]=="products") { include(ADMIN_PATH.'/site_includes/build_products.php'); } elseif ($match[0]=="product-enquiry-form") { include(ADMIN_PATH.'/site_includes/form_products_enquiry.php'); // SERVICES } elseif ($match[0]=="hp-services") { include(ADMIN_PATH.'/site_includes/build_hp_services.php'); } elseif ($match[0]=="hp-services-list") { include(ADMIN_PATH.'/site_includes/build_hp_services_list.php'); } elseif ($match[0]=="services") { include(ADMIN_PATH.'/site_includes/build_services.php'); } elseif ($match[0]=="service-enquiry-form") { include(ADMIN_PATH.'/site_includes/form_services_enquiry.php'); // HIRE PRODUCTS } elseif ($match[0]=="hp-hire-products") { include(ADMIN_PATH.'/site_includes/build_hp_hire_products.php'); } elseif ($match[0]=="hire-products") { include(ADMIN_PATH.'/site_includes/build_hire_products.php'); } elseif ($match[0]=="hire-product-enquiry-form") { include(ADMIN_PATH.'/site_includes/form_hire_products_enquiry.php'); // PROGRAMMES } elseif ($match[0]=="hp-programmes") { include(ADMIN_PATH.'/site_includes/build_hp_programmes.php'); } elseif ($match[0]=="programmes") { include(ADMIN_PATH.'/site_includes/build_programmes.php'); } elseif ($match[0]=="programme-enquiry-form") { include(ADMIN_PATH.'/site_includes/form_programmes_enquiry.php'); // EVENTS } elseif ($match[0]=="events") { include(ADMIN_PATH.'/site_includes/build_events.php'); } elseif ($match[0]=="featured-events") { include(ADMIN_PATH.'/site_includes/build_featured_events.php'); // STAFF / MEET THE TEAM } elseif ($match[0]=="staff") { include(ADMIN_PATH.'/site_includes/build_staff.php'); // NEW VERSION } elseif ($match[0]=="staff-list") { include(ADMIN_PATH.'/site_includes/build_staff_list.php'); // LEGACY VERSION } elseif ($match[0]=="staff-profile") { include(ADMIN_PATH.'/site_includes/build_staff_details.php'); // LEGACY VERSION // SUPPORTERS } elseif ($match[0]=="supporters") { include(ADMIN_PATH.'/site_includes/build_supporters.php'); // PARTNERS } elseif ($match[0]=="partners") { include(ADMIN_PATH.'/site_includes/build_partners.php'); } elseif ($match[0]=="featured-partners") { include(ADMIN_PATH.'/site_includes/build_featured_partners.php'); // AGENTS } elseif ($match[0]=="featured-agents") { include(ADMIN_PATH.'/site_includes/build_featured_agents.php'); } elseif ($match[0]=="agents-list") { include(ADMIN_PATH.'/site_includes/build_agents_list.php'); } elseif ($match[0]=="agent-details") { include(ADMIN_PATH.'/site_includes/build_agent_details.php'); // // PRODUCTS & SERVICES // } elseif ($match[0]=="products-services-list") { // include(ADMIN_PATH.'/site_includes/build_products_list.php'); // } elseif ($match[0]=="products-services-details") { // include(ADMIN_PATH.'/site_includes/build_product_details.php'); // } elseif ($match[0]=="hp-services") { // include(ADMIN_PATH.'/site_includes/build_hp_services.php'); } elseif ($match[0]=="services-enquiry-form") { include(ADMIN_PATH.'/site_includes/form_products_enquiry.php'); // CLIENTS } elseif ($match[0]=="hp-client-logos") { include(ADMIN_PATH.'/site_includes/build_hp_clients.php'); // CASE STUDIES } elseif ($match[0]=="case-studies") { include(ADMIN_PATH.'/site_includes/build_case_studies.php'); // DOCUMENTS } elseif ($match[0]=="documents") { include(ADMIN_PATH.'/site_includes/build_documents.php'); // REVIEWS } elseif ($match[0]=="homepage-reviews") { include(ADMIN_PATH.'/site_includes/build_hp_reviews.php'); // SET LOCATION } elseif ($match[0]=="set-location") { include(ADMIN_PATH.'/site_includes/form_set_location.php'); // E-COMMERCE } elseif ($match[0]=="browse-store") { include(ADMIN_PATH.'/site_includes/build_store_browse.php'); } elseif ($match[0]=="store-item") { include(ADMIN_PATH.'/site_includes/build_store_item.php'); } elseif ($match[0]=="featured-books") { include(ADMIN_PATH.'/site_includes/build_featured_books.php'); } elseif ($match[0]=="imprints") { include(ADMIN_PATH.'/site_includes/build_imprints.php'); } elseif ($match[0]=="store-categories") { include(ADMIN_PATH.'/site_includes/build_store_categories.php'); } elseif ($match[0]=="store-imprints-list") { include(ADMIN_PATH.'/site_includes/build_store_imprints_list.php'); } elseif ($match[0]=="store-authors") { include(ADMIN_PATH.'/site_includes/build_store_authors.php'); } elseif ($match[0]=="store-illustrators") { include(ADMIN_PATH.'/site_includes/build_store_illustrators.php'); } elseif ($match[0]=="store-photographers") { include(ADMIN_PATH.'/site_includes/build_store_photographers.php'); // ROOMS } elseif ($match[0]=="rooms") { include(ADMIN_PATH.'/site_includes/build_rooms.php'); } elseif ($match[0]=="rooms-list") { include(ADMIN_PATH.'/site_includes/build_rooms_list.php'); } elseif ($match[0]=="room-details") { include(ADMIN_PATH.'/site_includes/build_rooms_details.php'); // SELF CATERING } elseif ($match[0]=="self-catering") { include(ADMIN_PATH.'/site_includes/build_self_catering.php'); } elseif ($match[0]=="apartments-list") { include(ADMIN_PATH.'/site_includes/build_apartments_list.php'); } elseif ($match[0]=="apartment-details") { include(ADMIN_PATH.'/site_includes/build_apartments_details.php'); // SUPERCONTROL } elseif ($match[0]=="supercontrol-html") { include(ADMIN_PATH.'/site_includes/build_supercontrol_html.php'); // CLIENT SPECIFIC INCLUDES // PEROOSH } elseif ($match[0]=="client-logos") { include(ADMIN_PATH.'/site_includes/build_client_logos.php'); } elseif ($match[0]=="clients-stacked") { include(ADMIN_PATH.'/site_includes/build_clients_stacked.php'); } elseif ($match[0]=="peroosh-rate-card") { include(ADMIN_PATH.'/site_includes/peroosh_rate_card.php'); } elseif ($match[0]=="feather-cyclone") { include(ADMIN_PATH.'/site_includes/build_feather_cyclone.php'); // 5x50 } elseif ($match[0]=="challenge-countdown") { include(ADMIN_PATH.'/site_includes/build_hp_challenge_countdown.php'); } elseif ($match[0]=="charity-statistics") { include(ADMIN_PATH.'/site_includes/build_hp_charity_statistics.php'); } elseif ($match[0]=="challenges") { include(ADMIN_PATH.'/site_includes/build_challenges.php'); } elseif ($match[0]=="mem-tracker") { include(ADMIN_PATH.'/site_includes/build_mem_tracker.php'); } elseif ($match[0]=="mem-all-tracker-activity") { include(ADMIN_PATH.'/site_includes/build_mem_all_tracker_activity.php'); } elseif ($match[0]=="mem-add-tracker-activity") { include(ADMIN_PATH.'/site_includes/build_mem_add_tracker_activity.php'); } elseif ($match[0]=="mem-edit-tracker-activity") { include(ADMIN_PATH.'/site_includes/build_mem_edit_tracker_activity.php'); } elseif ($match[0]=="challenge-registration") { include(ADMIN_PATH.'/site_includes/build_challenge_registration.php'); } elseif ($match[0]=="mem-challenges") { include(ADMIN_PATH.'/site_includes/build_mem_challenges.php'); } elseif ($match[0]=="mem-team") { include(ADMIN_PATH.'/site_includes/build_mem_team.php'); } elseif ($match[0]=="mem-manage-team") { include(ADMIN_PATH.'/site_includes/build_mem_manage_team.php'); } elseif ($match[0]=="mem-browse-teams") { include(ADMIN_PATH.'/site_includes/build_mem_browse_teams.php'); } elseif ($match[0]=="teams") { include(ADMIN_PATH.'/site_includes/build_teams.php'); } elseif ($match[0]=="mem-historic-activity") { include(ADMIN_PATH.'/site_includes/build_mem_historic_activity.php'); // BRIDGE 2 BUSINESS } elseif ($match[0]=="featured-hero") { include(ADMIN_PATH.'/site_includes/build_featured_hero.php'); } elseif ($match[0]=="featured-mentors") { include(ADMIN_PATH.'/site_includes/build_featured_mentors.php'); } elseif ($match[0]=="mentors") { include(ADMIN_PATH.'/site_includes/build_mentors.php'); } elseif ($match[0]=="heroes") { include(ADMIN_PATH.'/site_includes/build_heroes.php'); } elseif ($match[0]=="mem-blogs") { include(ADMIN_PATH.'/site_includes/build_mem_blogs.php'); // CVI SCOTLAND } elseif ($match[0]=="latest-cvi-updates") { include(ADMIN_PATH.'/site_includes/build_hp_cvi_updates.php'); // RECRUITMENT CITY } elseif ($match[0]=="rc-jobs-list") { include(ADMIN_PATH.'/site_includes/build_rc_jobs_list.php'); } elseif ($match[0]=="rc-job-details") { include(ADMIN_PATH.'/site_includes/build_rc_job_details.php'); // SEVEN STEPS RECRUITMENT } elseif ($match[0]=="ssr-application") { include(ADMIN_PATH.'/site_includes/build_ssr_application.php'); } elseif ($match[0]=="ssr-refer-friend") { include(ADMIN_PATH.'/site_includes/build_ssr_refer_friend.php'); // SPFL TRUST } elseif ($match[0]=="hp-tours-map") { include(ADMIN_PATH.'/site_includes/build_hp_tours_map.php'); } elseif ($match[0]=="hp-tours-list") { include(ADMIN_PATH.'/site_includes/build_hp_tours_list.php'); } elseif ($match[0]=="hp-tours-stories") { include(ADMIN_PATH.'/site_includes/build_hp_tours_stories.php'); } elseif ($match[0]=="tours") { include(ADMIN_PATH.'/site_includes/build_tours.php'); } elseif ($match[0]=="stories") { include(ADMIN_PATH.'/site_includes/build_stories.php'); } elseif ($match[0]=="hp-spfl-social") { include(ADMIN_PATH.'/site_includes/build_hp_spfl_social.php'); // THINK DIFFERENT SPEAKERS } elseif ($match[0]=="featured-speakers") { include(ADMIN_PATH.'/site_includes/build_featured_speakers.php'); } elseif ($match[0]=="speaker-list") { include(ADMIN_PATH.'/site_includes/build_speakers_list.php'); } elseif ($match[0]=="speaker-details") { include(ADMIN_PATH.'/site_includes/build_speaker_details.php'); } elseif ($match[0]=="speaker-booking-form") { include(ADMIN_PATH.'/site_includes/build_speaker_booking_form.php'); } elseif ($match[0]=="speaker-application-form") { include(ADMIN_PATH.'/site_includes/build_speaker_application.php'); // TREEHIVE } elseif ($match[0]=="items-map") { include(ADMIN_PATH.'/site_includes/build_items_map.php'); } elseif ($match[0]=="share-categories") { include(ADMIN_PATH.'/site_includes/build_share_categories.php'); } elseif ($match[0]=="browse-items") { include(ADMIN_PATH.'/site_includes/build_browse_items.php'); } elseif ($match[0]=="item-search-form") { include(ADMIN_PATH.'/site_includes/form_item_search.php'); } elseif ($match[0]=="form-mem-item") { include(ADMIN_PATH.'/site_includes/form_mem_item.php'); } elseif ($match[0]=="mem-items") { include(ADMIN_PATH.'/site_includes/build_mem_items.php'); // WALK THE CAMINO } elseif ($match[0]=="travel-tours") { include(ADMIN_PATH.'/site_includes/build_travel_tours.php'); } elseif ($match[0]=="travel-tour-enquiry-form") { include(ADMIN_PATH.'/site_includes/form_travel_tour_enquiry.php'); // YOUNG ENTERPRISE SCOTLAND } elseif ($match[0]=="competitions") { include(ADMIN_PATH.'/site_includes/build_competitions.php'); } elseif ($match[0]=="vote-confirmation") { include(ADMIN_PATH.'/site_includes/build_vote_confirmation.php'); } elseif ($match[0]=="faqs") { include(ADMIN_PATH.'/site_includes/build_faqs.php'); } elseif ($match[0]=="copyright-year") { $replace="{".$match[0]."}"; $template=str_replace($replace, "© ".date('Y'), $template); } elseif ($match[0]=="powered") { $replace="{".$match[0]."}"; $template=str_replace($replace, "Powered by Peroosh", $template); } // PAGE SPECIFIC VALUES elseif ($match[0]=="page-title") { $replace="{".$match[0]."}"; $template=str_replace($replace, "{PAGE-TITLE}", $template); } elseif ($match[0]=="meta-title") { $replace="{".$match[0]."}"; $template=str_replace($replace, "{PAGE-TITLE}", $template); } // if ($match[0]=="PAGE-TITLE") { $replace="{".$match[0]."}"; $template=str_replace($replace, $page['title'], $template); } } $template=str_replace("