﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:include href="GenericTemplates/BoxLayout.xslt"/>
    <xsl:include href="SelectedGoalTitle.xslt"/>
    
    <xsl:template match ="/">
        <xsl:variable name ="TemplatePathURL" select ="normalize-space(Features/TemplateURL)"></xsl:variable>
        <div id="divLifeSpaceFeatures">
            <div id="divLifeSpaceFeatures_Content">
                <xsl:call-template name="LifeSpaceMenus"></xsl:call-template>
                
                <xsl:call-template name="LifeSpaceFollowedCommunities"></xsl:call-template>
            </div>
        </div>
    </xsl:template>

    <xsl:template name="LifeSpaceMenus">
        <div id="divLifeSpaceMenus" style="margin-top:5px;margin-bottom:20px">
            <xsl:call-template name="BoxLayout">
                <xsl:with-param name="Title_TopLeft" >
                    <xsl:text>My Goals</xsl:text>
                </xsl:with-param>
                <xsl:with-param name="Title_TopLeft_Link" >
                    <xsl:text></xsl:text>
                </xsl:with-param>
                <xsl:with-param name="Title_TopRight">
                    <xsl:text></xsl:text>
                </xsl:with-param>
                <xsl:with-param name="Content_LeftMargin">
                    <xsl:text>5</xsl:text>
                </xsl:with-param>
                <xsl:with-param name="Content">
                    <xsl:value-of select="Features/LifeSpaceMenus/Html" disable-output-escaping ="yes"/>
                </xsl:with-param>
            </xsl:call-template>
        </div>
        
    </xsl:template>
    
    <xsl:template name="LifeSpaceFollowedCommunities">
        <div id="divLifeSpaceFollowedCommunities" style="margin-top:5px;margin-bottom:20px">
            <xsl:call-template name="BoxLayout">
                <xsl:with-param name="Title_TopLeft" >
                    <xsl:text>My Communities</xsl:text>
                </xsl:with-param>
                <xsl:with-param name="Title_TopLeft_Link" >
                    <xsl:text></xsl:text>
                </xsl:with-param>
                <xsl:with-param name="Title_TopRight">
                    <xsl:text></xsl:text>
                </xsl:with-param>
                <xsl:with-param name="Content_LeftMargin">
                    <xsl:text>5</xsl:text>
                </xsl:with-param>
                <xsl:with-param name="Content">
                    <xsl:value-of select="Features/FollowedCommunities/Html" disable-output-escaping ="yes"/>
                </xsl:with-param>
            </xsl:call-template>
        </div>
    </xsl:template>
    
</xsl:stylesheet>
