protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     TopStudioPanel          = (TopStudioPanel)LoadControl(TopStudioPanel.Location);
     MetaKeywords.Content    = Resource.MetaKeywords;
     MetaDescription.Content = Resource.MetaDescription.HtmlEncode();
 }
Пример #2
0
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     TopStudioPanel            = (TopStudioPanel)LoadControl(TopStudioPanel.Location);
     MetaKeywords.Content      = Resource.MetaKeywords;
     MetaDescription.Content   = Resource.MetaDescription.HtmlEncode();
     MetaDescriptionOG.Content = Resource.MetaDescription.HtmlEncode();
     MetaTitleOG.Content       = (String.IsNullOrEmpty(Page.Title) ? Resource.MainPageTitle : Page.Title).HtmlEncode();
     CanonicalURLOG.Content    = HttpContext.Current.Request.Url.Scheme + "://" + Request.GetUrlRewriter().Host;
     MetaImageOG.Content       = WebImageSupplier.GetAbsoluteWebPath("logo/fb_icon_325x325.jpg");
 }
Пример #3
0
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     TopStudioPanel            = (TopStudioPanel)LoadControl(TopStudioPanel.Location);
     MetaKeywords.Content      = Resource.MetaKeywords;
     MetaDescription.Content   = Resource.MetaDescription.HtmlEncode();
     MetaDescriptionOG.Content = Resource.MetaDescription.HtmlEncode();
     MetaTitleOG.Content       = (String.IsNullOrEmpty(Page.Title) ? Resource.MainPageTitle : Page.Title).HtmlEncode();
     CanonicalURLOG.Content    = HttpContext.Current.Request.Url.Scheme + "://" + HttpContext.Current.Request.Url.Host;
     MetaImageOG.Content       = SetupInfo.MetaImageURL;
 }
Пример #4
0
        public static void AdjustTopNavigator(TopStudioPanel topNavPanel, PersonalPart part, Guid currentItem)
        {
            topNavPanel.DisableProductNavigation = true;
            topNavPanel.DisableSearch            = true;
            topNavPanel.DisableUserInfo          = true;
            topNavPanel.DisableVideo             = true;

            //items
            //foreach (var itemId in PersonalItems)
            //{
            //    var webItem = WebItemManager.Instance[itemId];
            //topNavPanel.NavigationItems.Add(
            //    new NavigationItem
            //        {
            //            Name = webItem.Name,
            //            URL = VirtualPathUtility.ToAbsolute(webItem.StartURL),
            //            Selected = currentItem.Equals(webItem.ID) || (part == PersonalPart.Default && isFirst)
            //        });
            //}

            ////backup
            //topNavPanel.NavigationItems.Add(
            //    new NavigationItem
            //        {
            //            Name = Resources.Resource.Backup,
            //            URL = GetPartUrl(PersonalPart.Backup),
            //            Selected = (part == PersonalPart.Backup),
            //            RightAlign = true
            //        });

            ////settings
            //topNavPanel.NavigationItems.Add(
            //    new NavigationItem
            //        {
            //            Name = Resources.Resource.Administration,
            //            URL = GetPartUrl(PersonalPart.Settings),
            //            Selected = (part == PersonalPart.Settings),
            //            RightAlign = true
            //        });

            ////profile
            //topNavPanel.NavigationItems.Add(
            //    new NavigationItem
            //        {
            //            Name = Resources.Resource.Profile,
            //            URL = GetPartUrl(PersonalPart.Profile),
            //            Selected = (part == PersonalPart.Profile),
            //            RightAlign = true
            //        });
        }
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     TopStudioPanel = (TopStudioPanel)LoadControl(TopStudioPanel.Location);
 }
Пример #6
0
 public static void AdjustTopNavigator(TopStudioPanel topNavPanel, PersonalPart part)
 {
     AdjustTopNavigator(topNavPanel, part, Guid.Empty);
 }