/// <summary>
        /// Determines whether a toolbox section should be visible in the <see cref="ZoneEditor"/>.
        /// </summary>
        /// <param name="section">The section in question.</param>
        /// <param name="context">The filter context passed externally.</param>
        /// <returns><c>true</c> if it should be visible.</returns>
        public bool IsSectionVisible(IToolboxSection section, IToolboxFilterContext context)
        {
            if (section != null && context != null && section.Name == GridWidgetRegistrator.GridSectionName && section.Title == GridWidgetRegistrator.GridSectionTitle)
            {
                return(SystemManager.GetModule("Feather") != null && !(context.ContainerId == "LayoutToolboxContainer" && (context.MediaType == DesignMediaType.NewsletterCampaign || context.MediaType == DesignMediaType.NewsletterTemplate)));
            }

            return(true);
        }
Exemple #2
0
 /// <inheritdoc />
 public virtual bool IsSectionVisible(IToolboxSection section, IToolboxFilterContext context)
 {
     return(true);
 }