using System; using System.Web.UI.WebControls; using CMS.ExtendedControls; using CMS.UIControls; public partial class CMSMasterPages_LiveSite_SimplePage : CMSLiveMasterPage { #region "Properties" /// /// PageTitle control. /// public override PageTitle Title { get { return titleElem; } } /// /// HeaderActions control. /// public override HeaderActions HeaderActions { get { if (base.HeaderActions != null) { return base.HeaderActions; } return actionsElem; } } /// /// Body panel. /// public override Panel PanelBody { get { return pnlBody; } } /// /// Prepared for specifying the additional HEAD elements. /// public override Literal HeadElements { get { return ltlHeadElements; } set { ltlHeadElements = value; } } /// /// Body element control /// public override System.Web.UI.HtmlControls.HtmlGenericControl Body { get { return bodyElem; } } /// /// Gets the labels container. /// public override PlaceHolder PlaceholderLabels { get { return plcLabels; } } #endregion #region "Methods" protected void Page_Init(object sender, EventArgs e) { PageStatusContainer = plcStatus; bodyElem.Attributes["class"] = mBodyClass; } protected void Page_Load(object sender, EventArgs e) { // Display panel with additional controls place holder if required if (DisplayControlsPanel) { pnlAdditionalControls.Visible = true; } } protected override void Render(System.Web.UI.HtmlTextWriter writer) { // Hide actions panel if no actions are present and DisplayActionsPanel is false if (!DisplayActionsPanel) { if (!actionsElem.Visible && (plcActions.Controls.Count == 0)) { pnlActions.Visible = false; } } base.Render(writer); } #endregion }