Beispiel #1
0
        /// <summary>
        /// The theme account path.
        /// </summary>
        /// <param name="model">
        /// The model.
        /// </param>
        /// <param name="viewName">
        /// The view name.
        /// </param>
        /// <returns>
        /// The <see cref="string"/>.
        /// </returns>
        public static string ThemeAccountPath(this IMasterModel model, string viewName)
        {
            const string Path = "{0}Views/Account/{1}.cshtml";

            return(string.Format(Path, PathHelper.GetThemePath(model.Theme), viewName));
        }
 /// <summary>
 /// Adds Starter Kit Asset CSS file.
 /// </summary>
 /// <param name="html">
 /// The html.
 /// </param>
 /// <param name="theme">
 /// The current theme.
 /// </param>
 /// <param name="fileName">
 /// The file name.
 /// </param>
 /// <returns>
 /// The <see cref="HtmlHelper"/>.
 /// </returns>
 public static HtmlHelper RequiresPackageJs(this HtmlHelper html, string theme, string fileName)
 {
     return(html.RequiresJs(string.Format("{0}Assets/js/{1}", PathHelper.GetThemePath(theme), fileName)));
 }
Beispiel #3
0
 /// <summary>
 /// Adds Starter Kit Asset CSS file.
 /// </summary>
 /// <param name="html">
 /// The html.
 /// </param>
 /// <param name="model">
 /// The model.
 /// </param>
 /// <param name="fileName">
 /// The file name.
 /// </param>
 /// <returns>
 /// The <see cref="HtmlHelper"/>.
 /// </returns>
 public static HtmlHelper RequiresPackageCss(this HtmlHelper html, IMasterModel model, string fileName)
 {
     return(html.RequiresCss(string.Format("{0}Assets/css/{1}", PathHelper.GetThemePath(model), fileName)));
 }