// Variables you can set before including:
// $page_title —
tag content
// $meta_desc — meta description
// $body_class — extra class on
// ============================================================
// Load ads.html content once
$ads_file = $_SERVER['DOCUMENT_ROOT'] . '/ads.html';
$ads_html = '';
if (file_exists($ads_file)) {
$ads_html = file_get_contents($ads_file);
}
// Extract a specific ad zone from ads.html
function get_ad_zone($ads_html, $zone_id) {
$pattern = '/