"; $LISTING_BACK_HTML = "

"; $MAXIMUM_FEED_WAITING_TIME=5; $TEST_MODE = 0; $sqlhost="db120a.pair.com"; $sqldatabase = "cityserver1_belfastdirectory"; $database = $sqldatabase; $sqlusername = "1035171_22_w"; $sqlpassword = "WFJxvtBQ"; $websiteTableName = strtolower($CITY)."website"; $categoryTableName = strtolower($CITY)."category"; $RAQUO_IMAGE = $GRAPHICS_DIRECTORY_URL."/raquo.gif"; $BLOCKY_ARROW_IMAGE = $GRAPHICS_DIRECTORY_URL."/blocky_arrow.gif"; $PRIMARY_COLOUR="#ffcc00"; $PRIMARY_COLOUR_BORDER="#000099"; $SECONDARY_COLOUR="#f4f4f4"; $SECONDARY_COLOUR_BORDER="#eeeeee"; $SUBHEADINGS_COLOUR="#ff9933"; // Overrides ======================================================== //------------------ $adsenseLinkUnit = ' '; //------------------ // 3. Replace $leftMenu with: $leftMenu = ' .
'.$adsenseLinkUnit.' '."
\"city \"directory\" \"hotels\" "; $menu = $leftMenu; $leftColumn = $menu; if ($city) { $changeCityLink = ''; } //---------------- $banner=''; $skyscraper=''; $mpu=''; $banner=''; $skyscraper=''; $headerBanner= $banner; //---------------- //=================================================================================================================== // Tab changing functionality $onTabLeft = ''; $onTabBackground = 'http://www.belfastdirectory.co.uk/graphics/curved-box-yellow-middle.gif'; $onTabRight = ''; $offTabLeft = ''; $offTabBackground = 'http://www.belfastdirectory.co.uk/graphics/curved-box-blue-middle.gif'; $offTabRight = ''; $clear=''; $arrayOfPossibleTabs = array("home", "shopping", "restaurants", "pubs", "hotels", "forums", "reviews", "directory", "business"); foreach($arrayOfPossibleTabs as $possibleTab) { if($tab==$possibleTab) { $tabsLeft["$tab"] = $onTabLeft; $tabsBackground["$tab"] = $onTabBackground; $tabsRight["$tab"] = $onTabRight; } else { $tabsLeft["$possibleTab"] = $offTabLeft; $tabsBackground["$possibleTab"] = $offTabBackground; $tabsRight["$possibleTab"] = $offTabRight; } } // end foreach $googleSearchBox = '
Custom Search
'; //================================================================================= // 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 = '
Custom Search
'; //================================================================================= $adsenseHorizontalLinkUnit=' '; $header='
'.$CITY.' logo '.$headerBanner.'
'.$tabsLeft["home"].' Home '.$tabsRight["home"].' '.$clear.' '.$tabsLeft["shopping"].' Shopping '.$tabsRight["shopping"].' '.$clear.' '.$tabsLeft["restaurants"].' Restaurants '.$tabsRight["restaurants"].' '.$clear.' '.$tabsLeft["pubs"].' Pubs '.$tabsRight["pubs"].' '.$clear.' '.$tabsLeft["hotels"].' Hotels '.$tabsRight["hotels"].' '.$clear.' '.$tabsLeft["reviews"].' Reviews '.$tabsRight["reviews"].' '.$clear.' '.$tabsLeft["directory"].' Directory '.$tabsRight["directory"].' '.$clear.' '.$tabsLeft["business"].' Business Finder '.$tabsRight["business"].'  
'.$googleSearchBox.'
'.$adsenseHorizontalLinkUnit.'
'; if($tab=="home") { $linkToTandC = " | Terms & Conditions / Privacy Policy "; } $adsenseFooter=' '; $footer='
'.$adsenseFooter.'

 
Belfast Directory | About us | Directory | Reviews | Shopping | Business | Hotels '.$linkToTandC.'
  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 = '
Custom Search
'; if($searchFormId && $searchDestination) { return($googleSearchWhite); } else { return(false); } } if($googleSearchBox) { $googleSearchWhite = returnGoogleSearchWhite($googleSearchBox, $SITE_URL); } ?> ","
  • ", $body); $body = str_replace("
  • ","", $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("  ", "", $body); } // Extra tweak to get rid of all the
    's in certain pages if($fileName=="local" || $tab=="a-z") { $body = str_replace("
    \r\n\t\t
    ", "", $body); $body = str_replace("offers", "", $body); $body = str_replace("listings", "", $body); $body = str_replace("
    ", "", $body); } if($fileName=="reviews") { $body = str_replace("
    ", "", $body); $body = str_replace("H3>", "H1>", $body); $body = str_replace("reviews", "", $body); } $body = str_replace("
    ", "", $body); $body = str_replace(" style=\"font-size:10pt;\"", "", $body); $body = str_replace(" style=\"color:#000000; text-decoration:none\"", "", $body); // Replace ad colour with Bootstrap's default $adsenseCentralColumn = str_replace("000099", "337ab7", $adsenseCentralColumn); if($youAreHere) { $breadcrumb = $youAreHere; $breadcrumb = str_replace("", "", $breadcrumb); $breadcrumb = str_replace("", "", $breadcrumb); $breadcrumb = str_replace("", "", $breadcrumb); # $breadcrumb=" #
    $breadcrumb
    # "; # Home > Businesses > Southbank
    // 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

    "; $body = str_replace("","\n", $body); if($fileName=="reviews") { $body = str_replace("","
    $labelledAdsenseCentralColumn
    ", $body); } elseif($fileName=="local") { $self = $_SERVER["PHP_SELF"]; if(preg_match("/pubs/",$self) ) { $body = str_replace("","
    $pubsSectionAdvert
    ", $body); } elseif(preg_match("/restaurants/",$self) ) { $body = str_replace("","
    $restaurantsSectionAdvert
    ", $body); } else { $body = str_replace("","
    $labelledAdsenseCentralColumn
    ", $body); } } elseif($fileName=="info") { # $body = str_replace("","
    $labelledAdsenseCentralColumn
    ", $body); $body = str_replace("","
    $labelledAdsenseCentralColumn
    ", $body); } else { $body = str_replace("","
    $labelledAdsenseCentralColumn
    ", $body); } //----------------------------------------------------------------------------- // Code to insert adsenseCentralColumnUnderneath #$adsenseCentralColumnUnderneath = "
    $adsenseCentralColumnUnderneath
    "; $adsenseCentralColumnUnderneath ='
    Advertisements
    '.$adsenseCentralColumnUnderneath.'
    '; #if($fileName=="reviews") # { # $body = str_replace("","$adsenseCentralColumnUnderneath", $body); # } #elseif($fileName=="info") # { # $body = str_replace("","\n$adsenseCentralColumnUnderneath", $body); # } #elseif(preg_match("//", $body)) if(preg_match("//", $body)) { $body = str_replace("","\n$adsenseCentralColumnUnderneath", $body); } // street, local, a-z etc have the Te comments #elseif(preg_match("//", $body)) # { # $body = str_replace("","\n$adsenseCentralColumnUnderneath", $body); # } //----------------------------------------------------------------------------- //========================================================================================== if($bodyTagAttributes) { $bodyTagAttributes = " ".$bodyTagAttributes; } if($metaDescriptionTag) { $metaDescriptionTag = ''; } if($metaKeywordsTag) { $metaKeywordsTag = ''; } // Breadcrumb $resHeader = str_replace("", "$youAreHere", $resHeader); //============================================================================================================================== //============================================================================================================================== //============================================================================================================================== # ?> <? if ($titleTag) { echo($titleTag); } else { echo($pageName); } ?> >