HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/coventrydemolition/2026-01-28/new/inc-template-home.asp
<%
' (SS,14/8/14) Bootstrap version
' (SS,28/11/14) added call to sub CustomShowHolidayNotice
' (SS,2/3/15) improvement news section, to only show up to a certain a point to avoid getting too long. Added a link to More News.
' (SS,5/5/16) carousel improvements, including breaking down to separate ShowHomeCarouselItem routine
' (SS,24/05/22) removed top covid notice
' (SS,09/10/25) added closing down sales banner
' (SS,17/11/25) replaced banner-closing-down-sale.jpg with banner-closing-down-sale-v2.jpg, November changed to December
' (SS,28/01/26) new closed banner, removed feature products and reviews, added CIRC category images and links to new site

' (SS,5/5/16) added following class to store temporary values used by this unit/module, currently just carousel count
Class TemplateHome
  Private FCarouselCount
  
  Private Sub Class_Initialize()
    FCarouselCount = 0
  End Sub
  
  Private Sub Class_Terminate()
  End Sub  
  
  Public Property Get IsFirstCarousel()
    IsFirstCarousel = FCarouselCount = 1
  End Property
  
  Public Sub IncCarouselCount
    FCarouselCount = FCarouselCount + 1
  End Sub
  
End Class

Dim oTemplateHome

Sub ShowPage_home
  Set oTemplateHome = New TemplateHome ' (SS,5/5/16)

  ' (SS,6/1/21) added lockdown / coronavirus / open message just before main banner
  
%>
  <div class="row">

    <%
    ShowClosureBanner
    %>
        
    <div class="container">
      <div class="row">
        <div class="col-lg-6 col-md-6 col-sm-6 col-adjust-left">
<%=GetWebText("HOME")%>
        </div>
        <div class="col-lg-6 col-md-6 col-sm-6 col-adjust-right">
          <div class="panel panel-default" style="margin-top: 10px; margin-bottom: 0px">
            <div class="panel-heading"><big><b>Why Choose Coventry Demolition?</b></big></div>
            <div class="panel-body" style="padding-top: 5px; padding-bottom: 5px">
              <ul class="usp2">
  <li>Established 1985</li>
  <li>High quality products at trade prices</li>
  <li>High levels of customer service</li>  
  <li>30 day return policy<sup>*</sup></li>
  <li>Overnight courier shipping available</li>
  <li>Great customer reviews</li>
              </ul>
              <hr style="margin-bottom: 5px" />
              <div style="margin-left: 20px">
                <small>
                <sup>*</sup> Only applies to door knobs & hardware.
                </small>
              </div>              
            </div>
          </div>
        </div>            
      </div>
    </div>

    <div class="container">
      <div class="row">
        <div class="col-lg-6 col-md-6 col-sm-6 col-adjust-right">
          <div class="visit-other-site-section-1">
            <h3>Cast iron radiators, valves&nbsp;&amp;&nbsp;accessories</h3>
            <a class="btn btn-lg btn-primary btn-strong btn-section" target="_blank" href="https://www.castironradiatorcentre.co.uk" role="button">Visit Cast Iron Radiator Centre <i class="glyphicon glyphicon-chevron-right"></i></a>
          </div>         
        </div>
        <div class="col-lg-6 col-md-6 col-sm-6 col-adjust-right">
          <div class="visit-other-site-section-2">
            <h3>Door knobs, keyhole covers &amp;&nbsp;ironmongery</h3>
            <a class="btn btn-lg btn-primary btn-strong btn-section" target="_blank" href="https://www.vintagedoorknobs.co.uk" role="button">Visit Vintage Door Knob Centre <i class="glyphicon glyphicon-chevron-right"></i></a>
          </div>   
        </div>
      </div>  
      
      <hr style="margin-bottom: 0px" />   

		</div>
              
<%CustomShowHolidayNotice "H", 0%>
              
<%

' ShowHighlights
' ShowNewsAndReviews
' (SS,27/1/26) replaced above with following
  ShowHighlightsSpecial

%>

<%=GetWebText("HomeFooter")%>

  </div> <!-- row -->
  
<%

  ' (SS,5/5/16) destroy the object created at the start
  Set oTemplateHome = Nothing
End Sub

' (SS,27/1/25) separated here, no longer used
Sub ShowNewsAndReviews
%>
    <div class="container">  
      <div class="row">
        <div class="col-lg-6 col-md-6">
           <div class="panel panel-default">
            <div class="panel-heading">Latest News</div>
            <div class="panel-body">
<%
  ' (SS,2/3/15) added following to get the news before the <!--END OF LATEST NEWS--> point
  ' also added link to moew news
  Dim LNews, LPos
  LNews = GetWebText("News")
  LPos = InStr(LNews, "<!--END OF LATEST NEWS-->")
  If LPos > 0 Then
    LNews = Mid(LNews, 1, LPos - 1) 
  End If
  Response.Write LNews
%> 
              <div id="latest-news-footer">
                <a href="<%=GetPageLink("news")%>">More News</a>
              </div>
              <div class="clear"></div>
    
            </div>
          </div>        
        </div>

         <div class="col-lg-6 col-md-6">
           <div class="panel panel-default">
            <div class="panel-heading">Latest Reviews</div>
            <div class="panel-body">
<% ShowRecentReviewsV2 5 %>
            </div>
          </div>
        </div>     
      </div>
      
    </div>
<%
End Sub    


' (SS,5/5/16)
Sub ShowHomeCarouselStart
End Sub

' if empty then not used e.g. no caption or button show
Sub ShowHomeCarouselItemOld(AOption, AImageFile, AURL, AImageCaption, AButtonCaption)
  Dim LActive
  oTemplateHome.IncCarouselCount
  If oTemplateHome.IsFirstCarousel Then
    LActive = "active "
  Else
    LActive = ""
  End If
%>  
            <div class="item <%=LActive%>itp-carousel">
              <img src="banner/<%=AImageFile%>" alt="<%=AImageCaption%>">
              <div class="carousel-caption">
                <h3><%=AImageCaption%></h3>  
                <a class="btn btn-lg btn-primary btn-strong" href="<%=AURL%>" role="button"><%=AButtonCaption%></a>
              </div>    
            </div>            
<%  
End Sub

' if empty then not used e.g. no caption or button show
Sub ShowHomeCarouselItem(AImageFile, AURL, AImageCaption, AButtonCaption)
  Dim LActive, LGlyphArrow
  oTemplateHome.IncCarouselCount
  If oTemplateHome.IsFirstCarousel Then
    LActive = "active "
  Else
    LActive = ""
  End If
  
  If Left(AURL, 7) = "http://" Or Left(AURL, 8) = "https://" Then
    LGlyphArrow = " <i class=""glyphicon glyphicon-chevron-right""></i>"
  Else
    LGlyphArrow = ""
  End If

%>  
              <div class="item <%=LActive%>itp-carousel">
                <a href="<%=AURL%>">
                  <img src="banner/<%=AImageFile%>" alt="<%=AImageCaption%>">
                </a>            
                <div class="carousel-caption">
<%If AImageCaption <> "" Then%>                   
                  <a href="<%=AURL%>">
                    <h3><%=AImageCaption%></h3>
                  </a>
<%End If%>                  
<%If AButtonCaption <> "" Then%>
                  <a class="btn btn-lg btn-primary btn-strong btn-carousel hidden-xs" href="<%=AURL%>" role="button"><%=AButtonCaption + LGlyphArrow%></a>
<%End If%>
                </div>
              </div>            
<%  
End Sub

' if empty then not used e.g. no caption or button show
' (SS,27/1/26) version 2 for special banner
Sub ShowHomeCarouselItemV2_old(AImageFile, AURL, AButton1Caption, AURL1, AButton2Caption, AURL2)
  Dim LActive
  oTemplateHome.IncCarouselCount
  If oTemplateHome.IsFirstCarousel Then
    LActive = "active "
  Else
    LActive = ""
  End If

%>  
              <div class="item <%=LActive%>itp-carousel">
                <a href="<%=AURL%>">
                  <img style="border-radius: 10px;" src="banner/<%=AImageFile%>">         
                </a>    
                <div class="carousel-caption">                 
<%If AButton1Caption <> "" Then%>
                  <a class="btn btn-lg btn-primary btn-strong btn-carousel hidden-xs" href="<%=AURL1%>" role="button"><%=AButton1Caption%></a>
<%End If%>
&nbsp;&nbsp;&nbsp;
<%If AButton2Caption <> "" Then%>
                  <a class="btn btn-lg btn-primary btn-strong btn-carousel hidden-xs" href="<%=AURL2%>" role="button"><%=AButton2Caption%></a>
<%End If%>

                </div>
              </div>            
<%  
End Sub

' if empty then not used e.g. no caption or button show
' (SS,27/1/26) version 2 for special banner, with split image URL (help from Gemini 3)
Sub ShowHomeCarouselItemV2(AImageFile, AURL, AButton1Caption, AURL1, AButton2Caption, AURL2)
  Dim LActive
  oTemplateHome.IncCarouselCount
  If oTemplateHome.IsFirstCarousel Then
    LActive = "active "
  Else
    LActive = ""
  End If
%>  
              <div class="item <%=LActive%>itp-carousel">
                <div class="image-split-container">
                  <img style="border-radius:10px" src="banner/<%=AImageFile%>" alt="reclamation yard" class="img-responsive">
                  <a href="https://www.castironradiatorcentre.co.uk" class="split-link link-left" title="Go to Left Link"></a>
                  <a href="https://www.vintagedoorknobs.co.uk" class="split-link link-right" title="Go to Right Link"></a>
                </div>
                
                <div class="carousel-caption">                 
<%If AButton1Caption <> "" Then%>
                  <a class="btn btn-lg btn-primary btn-strong btn-carousel hidden-xs" href="<%=AURL1%>" role="button"><%=AButton1Caption%></a>
<%End If%>
&nbsp;&nbsp;&nbsp;
<%If AButton2Caption <> "" Then%>
                  <a class="btn btn-lg btn-primary btn-strong btn-carousel hidden-xs" href="<%=AURL2%>" role="button"><%=AButton2Caption%></a>
<%End If%>

                </div>
              </div>            
<%  
End Sub




Sub ShowHomeCarouselEnd
End Sub

' (SS,9/10/25) called from inc-template-contact.asp
Sub ShowClosingDownSaleBanner
 
%>

  <div class="row">
    <div class="container-no" style="margin-top: 0px"> 
    
      <div class="col-md-12" style="margin-bottom: 10px">
      
        <div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="4000">       
          <div class="carousel-inner">  
<%
  Set oTemplateHome = New TemplateHome
  ShowHomeCarouselStart
  ShowHomeCarouselItem "banner-closing-down-sale-v2.jpg", "", "", ""
  ShowHomeCarouselEnd
  Set oTemplateHome = Nothing 
%>
          </div>
          <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
          <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
        </div><!-- /.carousel -->        

      </div><!-- col -->
            
    </div><!-- container --> 
  </div> <!-- row --> 
<%
End Sub

' (SS,28/1/26) old version moved here
Sub ShowBannerOld
%>
    <div class="container-no" style="margin-top: -10px"> 
      <div class="col-md-12" style="margin-bottom: 0px">
      
        <div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="4000">       
          <div class="carousel-inner">  

          <%
            ShowHomeCarouselStart
            ' ShowHomeCarouselItem AOption, AImageFile, AURL, AImageCaption, AButtonCaption ' if empty then not used e.g. no caption or button show
            ' ShowHomeCarouselItem "", "banner-mqw_trad_4c_760_01_montage_v2.jpg", "products.asp?cat=Cast+Iron+Radiators&amp;subcat=Traditional+Column", "Traditional&nbsp;column cast&nbsp;iron&nbsp;radiators", "View traditional column radiators"
            
            'ShowHomeCarouselItem "banner-new-website.jpg", "", "Welcome to Coventry Demolition Company", "About us"            
            'ShowHomeCarouselItem "banner-new-website.jpg", "", "", ""
            
            'ShowHomeCarouselItem "banner-closing-down-sale-v2.jpg", "", "", ""
            
           ' ShowHomeCarouselItem "banner-yard-closed-1.jpg", "", "", ""
            
            ShowHomeCarouselItemV2 "banner-yard-closed-v2.jpg", "https://www.castironradiatorcentre.co.uk", "Shop Cast Iron Radiators", "https://www.castironradiatorcentre.co.uk", "Shop Vintage Door Knobs", "https://www.vintagedoorknobs.co.uk"
            
            
            
            ' (SS,9/10/25) removed following replaced with above new banner image
         '   ShowHomeCarouselItem "banner-yard1.jpg", "products.asp?search=&cmd=search", "Reclaimed period &amp; reproduction building materials", "View products"
            'ShowHomeCarouselItem "banner-radiators-4.jpg", "https://www.castironradiatorcentre.co.uk", "Cast iron radiators, valves &amp; accessories", "Visit Cast Iron Radiator Centre"
            'ShowHomeCarouselItem "banner-door-hardware-2.jpg", "https://www.vintagedoorknobs.co.uk", "Vintage door knobs, keyhole covers &amp; ironmongery", "Visit Vintage Door Knob Centre"
            'ShowHomeCarouselItem "banner-bricks-v2.jpg", "products.asp?cat=Reclaimed+Products&amp;subcat=Bricks", "Reclaimed bricks", "View reclaimed bricks"
            'ShowHomeCarouselItem "banner-roofing-v2.jpg", "products.asp?cat=Reclaimed+Products&amp;subcat=Roofing", "Reclaimed roofing materials", "View reclaimed roofing products"
            'ShowHomeCarouselItem "banner-flooring.jpg", "products.asp?cat=Solid+Wood+Flooring", "Flooring", "View flooring"
            'ShowHomeCarouselItem "banner-doors.jpg", "products.asp?cat=Cottage+Doors", "Cottage doors", "View cottage doors"
            'ShowHomeCarouselItem "banner-assorted-1.jpg", "products.asp?cat=+Home+%26+Garden+Products", "Assorted&nbsp;reclaimed home&nbsp;&amp;&nbsp;garden&nbsp;products", "View home &amp; garden products"
            'ShowHomeCarouselItem "banner-assorted-2.jpg", "products.asp?cat=+Home+%26+Garden+Products", "Assorted&nbsp;reclaimed home&nbsp;&amp;&nbsp;garden&nbsp;products", "View home &amp; garden products"

            ShowHomeCarouselEnd
            
          %>
          
          </div>

          <!--
          <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
          <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
          -->
        </div><!-- /.carousel -->        

      </div><!-- col -->
            
    </div><!-- container --> 
<%
End Sub

' (SS,28/1/26) added here to allow place on other pages too
Sub ShowClosureBanner

  Dim LMarginTop, LMarginBottom

  If IsHomePage Then  
    LMarginTop = "-10px"
    LMarginBottom = "0px"
  Else  
    LMarginTop = "-10px"
    LMarginBottom = "20px"
  End If
  
  If Not IsHomePage Then
  %>
  <div class="row">
  <%
  End If

%>
    <div class="container-no" style="margin-top: <%=LMarginTop%>"> 
    
      <div class="col-md-12" style="margin-bottom: <%=LMarginBottom%>">
      
        <div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="4000">       
          <div class="carousel-inner">  
<%
  Set oTemplateHome = New TemplateHome
  ShowHomeCarouselStart
  ShowHomeCarouselItemV2 "banner-yard-closed-v2.jpg", "https://www.castironradiatorcentre.co.uk", "Shop Cast Iron Radiators", "https://www.castironradiatorcentre.co.uk", "Shop Vintage Door Knobs", "https://www.vintagedoorknobs.co.uk"
  ShowHomeCarouselEnd
  Set oTemplateHome = Nothing 
%>
          </div>
          <!--
          <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
          <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
          -->
        </div><!-- /.carousel -->        

      </div><!-- col -->
            
    </div><!-- container --> 
<%

  If Not IsHomePage Then
  %>
  </div> <!-- row -->
  <%
  End If
End Sub

%>