<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.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"
				exclude-result-prefixes="ou xsl xs fn ouc">
	
	
	
	<xsl:import href="../_shared/template-matches.xsl" />
	<xsl:import href="../_shared/force-self-closing.xsl" />
	<xsl:import href="../_shared/variables.xsl" />
	<xsl:import href="../_shared/functions.xsl" />

	
	
	
<xsl:output method="html" version="4.0" encoding="UTF-8" indent="yes" />
<xsl:strip-space elements="*"/>
	

	
<!--

-->




<!--  	<xsl:output method="html" indent="no" encoding="UTF-8" include-content-type="no" omit-xml-declaration="yes"/> -->
<!-- 	<xsl:output method="xml" version="1.0" omit-xml-declaration="yes"/> -->

	<xsl:strip-space elements="*"/>

	<xsl:template match="/document">
		<xsl:choose>
			<xsl:when test="$ou:action = 'pub'">
				<xsl:call-template name="content" />
			</xsl:when>
			<xsl:otherwise>
				<xsl:call-template name="preview" />
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>

	<xsl:template name="common-headcode">
		<xsl:copy-of select="ou:include-file('/_resources/includes/headcode.inc')" />
	</xsl:template>

	<xsl:template name="preview">
		<html>
			<head>
				
				<title>Global Header PCF to Include</title>
				<xsl:if test="$ou:action != 'edt'">
					<xsl:call-template name="common-headcode" />
				</xsl:if>
				<xsl:if test="$ou:action = 'edt'">
					<xsl:copy-of select="ou:include-file('/_resources/includes/headcode.inc')"/>
				</xsl:if>

				<!-- Styles to improve user's editing experience in OUCampus -->
				<style>
					<xsl:if test="$ou:action != 'pub'">
						.footer  {{top:0 !important;}}

						.leftSideFooterArea   {{top:150px !important;}}

						.topRowFooterText {{font-size: .8em; font-style: normal;}}

						.bottomRowFooterText {{font-size: .8em; font-style: normal;}}
					</xsl:if>

					<xsl:if test="$ou:action = 'edt'">
						.secondaryRightSideFooterArea   {{top: 26px !important;}}
					</xsl:if>
				</style>

			</head>
			<body>
				<xsl:call-template name="content" />

				<xsl:if test="$ou:action = 'edt'">
					<xsl:copy-of select="ou:include-file('/_resources/includes/footcode.inc')"/>
				</xsl:if>
			</body>
		</html>
	</xsl:template>

	
<xsl:template name="content">

		
	<!-- <xsl:param name="path" select="$dirname" /> -->
	
	<!-- /var/staging/oucampus/winthrop/www/_resources/includes/z-props.pcf -->	
	<!-- <xsl:variable name="this-props-path" select="concat($ou:root, $ou:site, $path, $props-file)"/> -->	<!-- props-file is defined in vars xsl -->
		
		
		<footer class="footer">
        <div class="container container-fluid-width">
            <div class="row footer-text margin-lrt">
                <div class="col-md-6 contact-content no-padding">
                    <p class="contact-phone"><b>Winthrop: United in Excellence</b></p>
					<div class="footerAddress">
                    <p>701 Oakland Ave.</p>
                    <p>Rock Hill, SC 29733</p>
                    
						 </div>
                </div>
               
                        
                        <div class="contact-content col-6 col-md-6 col-sm-12 col-12 no-padding">
                            <p class="contact contact-phone">
                                <b>Contact Us</b>
                            </p>
							
							<p class="contact footer-nav-item-three">
								<b><a href="/president/" title="Office of the President" class="footer-link">Office of the President</a></b>
							</p>
							<p class="contact footer-nav-item-three">
114 Tillman Hall<br />
Rock Hill, SC 29733<br />
803/323-2225<br />
<a href="mailto:president@winthrop.edu" title="president@winthrop.edu" class="footer-link">president@winthrop.edu</a><br />						</p>
                        </div>
						
						
                 
				<!-- /var/staging/oucampus/winthrop/www/_resources/includes/z-props.pcf -->
				<!--<xsl:variable name="instagram" select="document($this-props-path)/document/ouc:properties[@label='config']/parameter[@name='instagram-link']" />
				<xsl:variable name="facebook" select="document($this-props-path)/document/ouc:properties[@label='config']/parameter[@name='facebook-link']" />
				<xsl:variable name="youtube" select="document($this-props-path)/document/ouc:properties[@label='config']/parameter[@name='youtube-link']" />-->
				
				
                <div class="col-md-12 no-padding">
                   <ul class="social-links">
                        <li>
                            <a target="_blank" href="https://www.facebook.com/Winthrop.University" title="facebook" class="social-icon facebook"></a>
                        </li>
                        <li>
                            <a target="_blank" href="https://instagram.com/winthropu" title="instagram" class="social-icon instagram"></a>
                        </li>
                        <li>
                            <a target="_blank" href="https://x.com/winthropu" title="X" class="social-icon twitter"></a>
                        </li>
                        <li>
                            <a target="_blank" href="https://www.youtube.com/user/WinthropUniversity" title="youtube" class="social-icon youtube"></a>
                        </li>
                        <li>
                            <a target="_blank" href="https://www.linkedin.com/edu/winthrop-university-19383" title="linkedin" class="social-icon linkedin"></a>
                        </li>
                    </ul>
					<!-- J.R. edit 3/28/2019 
					<div class="copyright">Copyright <a id="direct-edit" style="color: #9C9C9C; text-decoration: none;" href="^0" rel="nofollow">©</a> 2018</div>
                    -->
					<!-- End J.R. edit 3/28/2019 -->
					<xsl:variable name="currentDate" as="xs:date" select="current-date()"/>
					<div class="copyright">Copyright ©  <xsl:value-of select="year-from-date($currentDate)"/></div>
					<!-- <div class="copyright">Copyright © 2021</div> -->			
                </div>
            </div>
        </div>
    </footer>
</xsl:template>

<xsl:template match="ul[@class='topRowFooterText']">
	<ul class="topRowFooterText">
		<xsl:for-each select="li">
			<xsl:apply-templates select="current()"/>
		</xsl:for-each>

		<xsl:choose>
			<xsl:when test="$ou:action != 'pub'">
			<!--	<li class="last"><a href="#" class="secondaryFooterLinks">Last Updated #</a></li> -->
			</xsl:when>
			<xsl:otherwise>
			<!--	<li class="last"><span id="directedit"><xsl:text disable-output-escaping="yes">&amp;</xsl:text>nbsp;</span></li> -->
			</xsl:otherwise>
		</xsl:choose>
	</ul>
</xsl:template>

</xsl:stylesheet>
