<%@ Page language="C#" Inherits="Microsoft.SharePoint.Publishing.PublishingLayoutPage,Microsoft.SharePoint.Publishing,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %>
<%-- SharePoint Register tags --%>
<%@ Register Tagprefix="SharePointWebControls" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="PublishingNavigation" Namespace="Microsoft.SharePoint.Publishing.Navigation" Assembly="Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Taxonomy" Namespace="Microsoft.SharePoint.Taxonomy" Assembly="Microsoft.SharePoint.Taxonomy, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%-- SharePoint Register tags --%>

<asp:Content ContentPlaceholderID="PlaceHolderAdditionalPageHead" runat="server">
	<style type="text/css">
        .ms-srch-item-path{ display:none; }
        #sideNavBox { display: none; }
        #contentBox { margin-left: 10px !important; }
    </style>

	<SharePointWebControls:CssRegistration ID="CssRegistration1" name="<% $SPUrl:~sitecollection/Style Library/~language/Themable/Core Styles/pagelayouts15.css %>" runat="server"/>
	<PublishingWebControls:EditModePanel ID="EditModePanel1" runat="server">
		<!-- Styles for edit mode only-->
		<SharePointWebControls:CssRegistration ID="CssRegistration2" name="<% $SPUrl:~sitecollection/Style Library/~language/Themable/Core Styles/editmode15.css %>" After="<% $SPUrl:~sitecollection/Style Library/~language/Themable/Core Styles/pagelayouts15.css %>" runat="server"/>

		<style type="text/css">
			#contentBox { margin-left: 0 !important; margin-right:0 !important;}
		</style>
		<script type="text/javascript">
			document.documentElement.className += ' wt-editmode ';
		</script> 
	</PublishingWebControls:EditModePanel>
		<!-- moved from wizdoms masterpage-->
		<!-- Wizdom Custom CSS -->
		<!-- moved to powershell -->

		<!-- Wizdom Custom Scripts -->
		<!-- moved to globalResource.js -->
    <!-- end moved from wizdoms masterpage-->
    <script type="text/template" id="pageColumns">
        <%-- 
			Dont change position!
			Its index based in script that iterates through the values in scriptloader.js
			Always add to the bottom if needed
		--%>
        <div name="Title"><SharePointWebControls:FieldValue FieldName="Title" runat="server" /></div>
        <div name="PublishingContact"><SharePointWebControls:FieldValue FieldName="PublishingContact" runat="server" /></div>
        <div name="W365_HidePageInfo"><SharePointWebControls:FieldValue FieldName="W365_HidePageInfo" runat="server" /></div>
        <div name="W365_Author"><SharePointWebControls:FieldValue FieldName="W365_Author" runat="server" /></div>
        <div name="W365_DepartmentContact"><SharePointWebControls:FieldValue FieldName="W365_DepartmentContact" runat="server" /></div>
        <div name="W365_UseDepartmentContact"><SharePointWebControls:FieldValue FieldName="W365_UseDepartmentContact" runat="server" /></div>
        <div name="W365_HidePageContact"><SharePointWebControls:FieldValue FieldName="W365_HidePageContact" runat="server" /></div>
        <div name="W365_HideRelatedDocuments"><SharePointWebControls:FieldValue FieldName="W365_HideRelatedDocuments" runat="server" /></div>
        <div name="W365_HideRelatedNews"><SharePointWebControls:FieldValue FieldName="W365_HideRelatedNews" runat="server" /></div>
        <div name="W365_HideRelatedPages"><SharePointWebControls:FieldValue FieldName="W365_HideRelatedPages" runat="server" /></div>
        <div name="W365_HideRelatedPeople"><SharePointWebControls:FieldValue FieldName="W365_HideRelatedPeople" runat="server" /></div>
		<div name="W365_HideLeftMenu"><SharePointWebControls:FieldValue FieldName="W365_HideLeftMenu" runat="server" /></div>
		<div name="W365_HideBreadCrumb"><SharePointWebControls:FieldValue FieldName="W365_HideBreadCrumb" runat="server" /></div>
		<div name="pageType">webpartPage</div>
        <div name="W365_EnableSocial">false</div>
        <div name="w365_PageModified"><SharePointWebControls:DateTimeField FieldName="Modified" runat="server" ControlMode="Display" /></div>
        <div name="w365_PageEditor"><SharePointWebControls:FieldValue FieldName="Editor" runat="server" /></div>
        <div name="W365_NewsDate"><SharePointWebControls:DateTimeField FieldName="W365_NewsDate" runat="server" ControlMode="Display" /></div>
        <div name="W365_RelatedTopic"><SharePointWebControls:FieldValue FieldName="W365_RelatedTopic" runat="server" /></div>
        <div name="W365_Language"><SharePointWebControls:FieldValue FieldName="W365_Language" runat="server" /></div>
        <div name="W365_Departments"><SharePointWebControls:FieldValue FieldName="W365_Departments" runat="server" /></div>
        <div name="W365_Locations"><SharePointWebControls:FieldValue FieldName="W365_Locations" runat="server" /></div>
        <div name="W365_Modul">W365</div>
        <div name="W365_InstanceId"><SharePointWebControls:FieldValue FieldName="W365_InstanceId" runat="server" /></div>
		<div name="W365_EnableMachineTranslation"><SharePointWebControls:FieldValue FieldName="W365_EnableMachineTranslation" runat="server" /></div>
    </script>
</asp:Content>

<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    <SharePointWebControls:FieldValue ID="FieldValue1" FieldName="Title" runat="server"/>
</asp:Content>

<asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
	<SharePointWebControls:FieldValue ID="FieldValue2" FieldName="Title" runat="server" />
</asp:Content>

<asp:Content ContentPlaceHolderId="PlaceHolderTitleBreadcrumb" runat="server">
    <SharePointWebControls:ListSiteMapPath ID="ListSiteMapPath1" runat="server" SiteMapProviders="CurrentNavigationSwitchableProvider" RenderCurrentNodeAsLink="false" PathSeparator="" CssClass="s4-breadcrumb" NodeStyle-CssClass="s4-breadcrumbNode" CurrentNodeStyle-CssClass="s4-breadcrumbCurrentNode" RootNodeStyle-CssClass="s4-breadcrumbRootNode" NodeImageOffsetX=0 NodeImageOffsetY=289 NodeImageWidth=16 NodeImageHeight=16 NodeImageUrl="/_layouts/15/images/fgimg.png?rev=23" HideInteriorRootNodes="true" SkipLinkText="" />
</asp:Content>

<asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
    <SharePointWebControls:ProjectProperty ID="ProjectProperty1" Property="Description" runat="server" />
</asp:Content>

<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <div class="wt-2column-news-archive wt-newsArchivePage" id="wizdomPageLayout">
        <div class="container-fluid">
            <div class="row">
                <div class="col-xs-12 col-sm-3 col-md-2 wt-2column-t1-td1">
                    <div class="wt-webpartzone wt-webpartzone-var1 shadowWebpart"><WebPartPages:WebPartZone runat="server" AllowPersonalization="true" ID="wt3columnsleftvar1" FrameType="TitleBarOnly" Title="Left variant 1" Orientation="Vertical"></WebPartPages:WebPartZone>
                    </div>
                    <div class="wt-webpartzone wt-webpartzone-var2 shadowWebpart"><WebPartPages:WebPartZone runat="server" AllowPersonalization="true" ID="wt3columnsleftvar2" FrameType="TitleBarOnly" Title="Left variant 2" Orientation="Vertical"></WebPartPages:WebPartZone>
                    </div>
                    <div class="wt-webpartzone wt-webpartzone-var3 shadowWebpart"><WebPartPages:WebPartZone runat="server" AllowPersonalization="true" ID="wt3columnsleftvar3" FrameType="TitleBarOnly" Title="Left variant 3" Orientation="Vertical"></WebPartPages:WebPartZone>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-9 col-md-10 wt-2column-t1-td2">
					<!-- Wizdom Pagesettings -->
                    <PublishingWebControls:EditModePanel ID="EditModePanel2" runat="server" PageDisplayMode="Edit">
                        <div id="instanceIdWrapper" style="display:none">
                            <SharePointWebControls:TextField ID="InstanceId" runat="server" FieldName="W365_InstanceId"></SharePointWebControls:TextField>
                        </div>
                        <div class="bootstrap-wrapper" ng-controller="wizdomPageSettings">
                            <div id="wizsettingsctrl" class="wt-controlpanel panel-group" role="tablist" aria-multiselectable="true">
                                <div class="panel panel-default">
                                    <div class="panel-heading" role="tab" id="headingOne">
                                        <h4 class="panel-title">
                                            <a class="collapsed" ng-click="panels[0].isOpen = !panels[0].isOpen" data-toggle="collapse" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                                                <div class="wt-controlpanel-item-title">
                                                    <span class="ms-Icon ms-Icon--Settings editPanelTopAlignment" aria-hidden="true"></span>
                                                    <span>{{"General" | translate}}</span>
                                                    <i class="pull-right ms-Icon editPanelTopAlignment" ng-class="{'ms-Icon--ChevronDown': panels[0].isOpen, 
														  'ms-Icon--ChevronRight': !panels[0].isOpen}"></i>
                                                </div>
                                            </a>
                                        </h4>
                                    </div>
                                    <div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
                                        <div class="panel-body">
                                            <ul class="ul-reset">
                                                <li ng-hide="disabledPageInfo"><SharepointWebControls:BooleanField ID="BooleanField1" runat="server" FieldName="W365_HidePageInfo" /></li>
                                                <li ng-if="disabledPageInfo" class="ms-status-yellow" style="padding-left: 10px;">{{"Hide page information is disabled" | translate}}</li>
												<li id="wt-hidebreadcrumb"><SharePointWebControls:BooleanField ID="W365_HideBreadCrumb_BooleanField" runat="server" FieldName="W365_HideBreadCrumb" /></li>
												<li ng-show="machineTranslationEnabled && localMachineTranslationEnabled" id="wt-enablemachinetranslation"><SharePointWebControls:BooleanField ID="W365_EnableMachineTranslation_BooleanField" runat="server" FieldName="W365_EnableMachineTranslation" /></li>
                                                <li ng-hide="disabledPageInfo" id="wt-author"><SharepointWebControls:UserField ID="W365_Author_Field" runat="server" FieldName="W365_Author" /></li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </PublishingWebControls:EditModePanel>
                    <!-- End Wizdom Pagesettings -->
					<div class="wt-page-translation" wizdom365-pagetranslation ui="true"></div>
                    <div id="pageinfo_plc" class="wt-pagecontrol" wizdom365-pageinfo></div>
                    <div class="wt-webpartzone wt-webpartzone-var3 shadowWebpart"><WebPartPages:WebPartZone runat="server" AllowPersonalization="true" ID="wt3columnscentervar1" FrameType="TitleBarOnly" Title="Center variant 1" Orientation="Vertical"></WebPartPages:WebPartZone>
                    </div>
                    <div class="wt-webpartzone wt-webpartzone-var1 shadowWebpart"><WebPartPages:WebPartZone runat="server" AllowPersonalization="true" ID="wt3columnscentervar2" FrameType="TitleBarOnly" Title="Center variant 2" Orientation="Vertical"></WebPartPages:WebPartZone>
                    </div>
                    <div class="wt-webpartzone wt-webpartzone-var2 shadowWebpart"><WebPartPages:WebPartZone runat="server" AllowPersonalization="true" ID="wt3columnscentervar3" FrameType="TitleBarOnly" Title="Center variant 3" Orientation="Vertical"></WebPartPages:WebPartZone>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <PublishingWebControls:EditModePanel ID="SpellCheckEditModePanel" runat="server">
         <script type="text/javascript">
            window.addEventListener ? 
            window.addEventListener("load",runAfterLoad,false) : 
            window.attachEvent && window.attachEvent("onload",runAfterLoad);
            function runAfterLoad() {
                function wizdomExcludeFromSpellcheck(divId)
                {
                    try {
                        var a = document.getElementById(divId);
                        var b = a.getElementsByTagName('input');
                        for (var i = 0; i < b.length; i++)
                        {
                            b[i].setAttribute("excludeFromSpellCheck", "true");
                        }

                        var c = a.getElementsByTagName('textarea');
                        for (var i = 0; i < c.length; i++)
                        {
                            c[i].setAttribute("excludeFromSpellCheck", "true");
                        }
                    }
                    catch(error) {

                    }
                }

                wizdomExcludeFromSpellcheck("wizsettingsctrl");
                wizdomExcludeFromSpellcheck("helppanelCntdiv");

                if (!wizdomPageColumns.pageInstanceId) {
                    var instanceIdInput = $("#instanceIdWrapper").find("input");
                    var spPageContextInfo = window["_spPageContextInfo"];
                    if (instanceIdInput && spPageContextInfo) {
                        instanceIdInput[0].value = spPageContextInfo.pageItemId + spPageContextInfo.pageListId;
                    }
                }
            }
        </script>
    </PublishingWebControls:EditModePanel>
</asp:Content>