<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY copy   "&#169;">
]>

<xsl:stylesheet version="3.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:ou="http://omniupdate.com/XSL/Variables"
	xmlns:fn="http://omniupdate.com/XSL/Functions"
	xmlns:ouc="http://omniupdate.com/XSL/Variables"
	xmlns="http://www.w3.org/1999/xhtml"
	exclude-result-prefixes="ou xsl xs fn ouc"
	expand-text="yes">

	<xsl:import href="common.xsl"/>

	<xsl:template name="common-layout">
 			<xsl:call-template name="common-header" /> 
			<xsl:call-template name="page-content" />
 			<xsl:call-template name="common-footer" /> 
	</xsl:template>

	<xsl:template name="page-content">	
		<xsl:variable name="iframe-link" select="iframe-video/ouc:div[@label='iframe-video-link']" />
										
		<xsl:variable name="vid">
			<xsl:analyze-string select="$iframe-link" regex="(((https://)?)((http://)?)(www\.)?((youtube\.com/)|(youtu\.be)|(youtube))(.+=)(.+))">
				<xsl:matching-substring>http://www.youtube.com/embed/<xsl:value-of select="regex-group(12)"/></xsl:matching-substring>
				<xsl:non-matching-substring>
					<xsl:copy-of select="."/>
				</xsl:non-matching-substring>
			</xsl:analyze-string>
		</xsl:variable>
		<div id="HomeSlider" class="carousel slide innerPageSlider" data-ride="carousel">
            <div class="carousel-inner" role="region" aria-label="Marquee Image Slider">
                <div class="carousel-item active">
					
					
					
					
					<!-- J.R. 3/27/2019 -->
					<!-- header-image -->
					
					
					<xsl:choose>
						
					<xsl:when test="banner-items/banner-1/ouc:div[@label='banner-image-1'] = ''">
						
						<!-- <xsl:apply-templates select="ou:multiedit-props-field('banner-image-1')" /> -->
						<!-- <img src="/_resources/images/slide-img3.jpg" alt="Winthrop University - Scholars Walk" class="w-100"/>
					<xsl:apply-templates select="ouc:div[@label = 'inner-banner']" /> -->
						<img src="/_resources/images/slide-img6.jpg" alt="Winthrop University - Entrance" class="w-100"/>
					<xsl:apply-templates select="ouc:div[@label = 'inner-banner']" />
						
						</xsl:when>
						
						<xsl:otherwise>
							<img src="{banner-items/banner-1/ouc:div[@label='banner-image-1']}" alt="{banner-items/banner-1/ouc:div[@label='banner-image-alt-1']}" class="w-100"/>
					<xsl:apply-templates select="ouc:div[@label = 'inner-banner']" />
							
							
							
						</xsl:otherwise>
																						
         <!-- <xsl:otherwise>
					
					<img src="{banner-items/banner-1/ouc:div[@label='banner-image-1']}" alt="{banner-items/banner-1/ouc:div[@label='banner-image-alt-1']}" class="w-100"/>
					<xsl:apply-templates select="ouc:div[@label = 'inner-banner']" />
					
					 </xsl:otherwise>-->
       </xsl:choose>
                <!-- End J.R. 3/27/2019 -->
					
					
				</div>
            </div>
        </div>
		<div class="container card-container general">
            <nav class="nav-breadcrumb" aria-label="breadcrumb">
            	<ol class="breadcrumb">
					<xsl:call-template name="breadcrumb" />
				</ol>
			</nav>
			<div class="row top-pad set-flex-dir">
				
				<xsl:choose>
					
					<xsl:when test="ou:pcf-param('display-right-content') = 'display'">
						<div class="col-lg-9 col-md-8 col-sm-6">
							<div role="main" id="main" class="text-block">
								<xsl:if test="not(ou:pcf-param('heading')='')">
    <h1><xsl:value-of select="ou:pcf-param('heading')" /></h1>
</xsl:if>
<xsl:if test="ou:pcf-param('heading')=''">

</xsl:if>

<!-- <h1><xsl:value-of select="ou:pcf-param('heading')" /></h1> -->
								
								<div id="message"><p>
																Love Where You’re Going!<br />
																 
																 Winthrop's Admissions Team is working hard to provide you with options to learn more about Life as an Eagle. Please check our <a  href="/admissions/visit-the-campus.aspx" title="Visit Page">Visit Page</a> to sign up for one of our Virtual Admissions Experiences.<br /><br />
																 
Want a one on one meeting or have any questions? There are three ways you can contact us:<br />
Phone: 803/323-2191<br />
Email: <a href="mailto:Admissions@winthrop.edu" title="Admissions@winthrop.edu">Admissions@winthrop.edu</a><br />
<!--Virtual Chat: <a href="https://apply.winthrop.edu/portal/counselorchat" title="to register" target="_blank">Click here to register</a>  <br /><br />-->

For updates, announcements and special messages from Admissions, please follow us on <a target="_blank" href="https://www.instagram.com/winthropadmissions/" title="instagram">Instagram -  @winthropadmissions </a>
																
																 
																 </p>
								</div>
								
								
								<script type="text/javascript" src="/_resources/js/special-message.js"></script>
								
								<xsl:apply-templates select="ouc:div[@label = 'page-content']" />
								
								<p></p>
								<!-- J.R. 3/28/2019 -->
<!-- <a class="button btn" title="Apply Now" href="{general-info/ouc:div[@label='apply-now-link']}"><xsl:value-of select="general-info/ouc:div[@label='apply-now-label']" /><img class="arrow-icon img-fluid" src="/_resources/images/Button_Arrow_Icon.png" alt="Button Arrow" /></a>-->
								<!-- END J.R. 3/28/2019 -->
							</div>
							<xsl:choose><xsl:when test="ou:pcf-param('display-video-content') = 'display'">
								<div class="col-lg-9 col-sm-12 video-martopbtm no-padding">
									<div class="embed-responsive h-100 embed-responsive-16by9">
										<iframe class="embed-responsive-item" src="{$vid}" allowfullscreen=""></iframe>
									</div>
								</div>
						   </xsl:when></xsl:choose>
							
						<div class="sm-hide-box-content">
							<!-- <xsl:if test="ou:pcf-param('display-menu2') = 'display'">
									<xsl:apply-templates select="ouc:div[@label = 'side-menu2']" />
							</xsl:if>
							<xsl:if test="ou:pcf-param('display-menu3') = 'display'">
									<xsl:apply-templates select="ouc:div[@label = 'side-menu3']" />
							</xsl:if> -->
						</div>
						</div>
					</xsl:when>
						
					<xsl:otherwise>
					</xsl:otherwise> 
					
				</xsl:choose>
				
				
 				<xsl:if test="ou:pcf-param('display-menu1') = 'display' or ou:pcf-param('display-menu2') = 'display' or ou:pcf-param('display-menu3') = 'display'" > 
					<div class="col-lg-3 col-md-4 col-sm-6 padding-lrt">
						<xsl:if test="ou:pcf-param('display-menu1') = 'display'">
  							<xsl:call-template name="navigation" /> 
						</xsl:if>
						<div class="xs-hide-box-content">
							<!-- <xsl:call-template name="sidebar-content" />
							<xsl:if test="ou:pcf-param('sidebar-region') = 'display'"> -->
								
								<!-- J.R. edit 3/27/2019 -->
								
								
								<!-- End J.R. edit 3/27/2019 -->
								
							<!-- </xsl:if> -->
							<xsl:if test="ou:pcf-param('display-menu2') = 'display'">
								<xsl:apply-templates select="ouc:div[@label = 'related-links']" />
									<!-- <xsl:apply-templates select="ouc:div[@label = 'side-menu2']" /> -->
							</xsl:if>
							<xsl:if test="ou:pcf-param('display-menu3') = 'display'">
								<xsl:apply-templates select="ouc:div[@label = 'contact']" />
									<!-- <xsl:apply-templates select="ouc:div[@label = 'side-menu3']" /> -->
								<!-- <xsl:call-template name="sidebar-content" /> -->
							</xsl:if>
						</div>
					</div>
 				</xsl:if>
				
			</div> 
		</div>
	</xsl:template>
	
<!-- 	<xsl:template name="common-footer">
		<xsl:call-template name="unparsed-include-file">
			<xsl:with-param name="path">/_resources/includes/footer.inc</xsl:with-param>
		</xsl:call-template>
	</xsl:template> -->

	<xsl:template name="common-header">
		<xsl:call-template name="unparsed-include-file">
				<xsl:with-param name="path">/_resources/includes/header.inc</xsl:with-param> 
		</xsl:call-template>
	</xsl:template>
</xsl:stylesheet>
