';
//=================================================================================
// The value for the cx hidden form field
$googleCx="partner-pub-2055987721779242:2n0017rxpa8";
// NB $googleCx must be set! ie was ISO-8859-1 changed to
$googleSearchBoxBlack = '
All material (C) '.date("Y").' Belfast Directory. All rights reserved. The contents of the Belfast Directory website is provided in good faith but we cannot be held responsible for inaccuracies, omissions or visitors\' comments.
';
$footer='
';
$rightColumn='
Advertisements
';
$adsenseCentralColumn300='
';
$adsenseCentralColumn='
';
// Reverted to 300 pix version on 20/4/15 to fit new greay ad box for temp responsive site
$adsenseCentralColumn = $adsenseCentralColumn300;
$googleSearchResults = '
';
//================================================================================================
// Autogenerate white search box if we have an existing black one
function returnGoogleSearchWhite($googleSearchBlack, $SITE_URL)
{
$searchDestination = '';
$searchFormId='';
//
$googleSearchBlackComponents = explode('cx" value="partner-pub-2055987721779242:', $googleSearchBlack);
$searchFormIdAndCrap = $googleSearchBlackComponents[1];
$searchFormIdAndCrapComponents = explode('"', $searchFormIdAndCrap);
$searchFormId = $searchFormIdAndCrapComponents[0];
$searchDestination = "$SITE_URL/search/";
$googleSearchWhite = '
","", $body);
// cookie code by https://www.codeply.com/p/XfNkaBlD4j
//-----
#$cookieConsentJS = '';
// No longer needed - now on UPD45 and using Google's CMP
$cookieConsentJS = '';
// Disable cookieConsent on legal notices as cookies are not set on those pages and they may be read duing cookie consent
if($legal)
{
$cookieConsentJS="";
}
//-----
if($SITE_TITLE=="London Online")
{
// Even though LO has extra stuff, we can add it or make any exceptions here and still give LO the latest CSE template update.
// We will already have the most up-to-date CSE network STYLESHEET_URL from components.inc.php however LO has extra classes
// So we need to insert extra HTML in the $STYLESHEET_URL (which should just be a URL without HTML) so that 2 stylesheets can be
// called. Here is what it would look like before we alter it
// $STYLESHEET_URL = $SITE_URL."/css/21.10.css";
// Here is what the HTML it will get slotted into looks like:
//
$additionalStylesheetLinks .= '';
if($contextMenu)
{
$leftColumn = $contextMenu;
}
else{
$leftColumn = $defaultLeftColumn;
}
}
//================================================
// Tweak to tidy up the awful front page HTML
if($tab=="home")
{
$body = str_replace("", ">", $body);
# $body = str_replace("valign=\"top\"", "", $body);
$body = str_replace("valign=", "data-a=", $body);
$body = str_replace("width=", "data-w=", $body);
$body = str_replace("border=", "data-b=", $body);
$body = str_replace("bgcolor", "data-g", $body);
$body = str_replace("colspan", "data-c", $body);
$body = str_replace("cellspacing", "data-s", $body);
$body = str_replace("cellpadding", "data-p", $body);
$body = str_replace("
// Make it shorter
$breadcrumb = str_replace("You are here:", "", $breadcrumb);
$breadcrumb = str_replace("You are here:", "", $breadcrumb);
$breadcrumb = str_replace($SITE_TITLE, "Home", $breadcrumb);
$breadcrumbDiv = '
'.$breadcrumb.'
';
}
//======================================================================================================================================
// New additions for bootstrap template
#$googleSearchWhite=''; // $googleSearchBox
if($footerExtras)
{
$footerExtras = "
$footerExtras
";
}
// Stop it saying UK UK
if(!$COUNTRY || $COUNTRY=="UK")
{
$COUNTRY2 = "the";
}
//====================================================================================================
//====================================================================================================
//====================================================================================================
//====================================================================================================
// Now we include components.config.inc.php
// Why here? Because we can't do it before as some of the vars set above get slotted into the vars in components.config.inc.php. Wouldn't want to do it after as below is basically where the real template preparation begins
// Forming the path this way makes it relative to this file, not the main extensionless file
include(dirname(__FILE__)."/components.config.inc.php");
//====================================================================================================
//====================================================================================================
//====================================================================================================
//==========================================================================================
//-------
//Code to switch off ads on certain pages
if($switchOffAds)
{
$rightColumn="";
$adsenseCentralColumn="";
$googlePageLevelAds="";
}
//-------
$labelledAdsenseCentralColumn ='
Advertisements
'.$adsenseCentralColumn.'
';
#$labelledAdsenseCentralColumn = '
Advertisements
'.$adsenseCentralColumn;
$pubsSectionAdvert = "
\n\nWhy not add a review of your favourite pub...\n\n
";
$restaurantsSectionAdvert = "
\n\nWhy not add a review of your favourite restaurant...\n\n