using System; using System.Data; using System.Collections; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using CMS.UIControls; using CMS.ExtendedControls; public partial class CMSMasterPages_LiveSite_LiveTabsHeader : CMSLiveMasterPage { /// /// Tabs control. /// public override UITabs Tabs { get { return tabControlElem; } } /// /// 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; } } /// /// Left tabs panel. /// public override Panel PanelLeft { get { return pnlLeft; } } /// /// Right tabs panel. /// public override Panel PanelRight { get { return pnlRight; } } /// /// Tab master page doesn't hide page title. /// public override bool TabMode { get { return false; } } /// /// Panel containig title. /// public override Panel PanelTitle { get { return pnlTitle; } } /// /// Frame resizer. /// public override CMSUserControl FrameResizer { get { return frmResizer; } } protected override void OnInit(EventArgs e) { base.OnInit(e); if (Page is CMSPage) { } } protected void Page_Load(object sender, EventArgs e) { // Hide actions panel if no actions are present and DisplayActionsPanel is false if (!DisplayActionsPanel) { if ((actionsElem.Actions == null) || (actionsElem.Actions.Length == 0)) { pnlActions.Visible = false; } } } }