Beispiel #1
0
        public static TagImg Main(string name)
        {
            var size = Urls.GetSize(Urls.MainSys(name));
            var tag  = new TagImg().Src(Urls.Main(name)).Alt("");

            if (size.HasValue)
            {
                tag.Size(size.Value.Width, size.Value.Height);
            }
            return(tag);
        }
Beispiel #2
0
        public static TagBuilder Common(string name)
        {
            var image = HtmlControls.Image(Urls.Common(name), name);
            var size  = Urls.GetSize(Urls.CommonSys(name));

            if (size.HasValue)
            {
                image.Size(size.Value.Width, size.Value.Height);
            }
            return(image);
        }
Beispiel #3
0
        public static TagImg ClassRoom(string classRoomTC)
        {
            var image = H.Img(Urls.ClassRoom(classRoomTC));
            var size  = Urls.GetSize(Urls.ClassRoomSys(classRoomTC));

            if (size.HasValue)
            {
                image.Size(size.Value.Width, size.Value.Height);
            }
            return(image);
        }
Beispiel #4
0
        public static TagImg NewsSmall(News news)
        {
            var newsSmall = "News/Small/" + news.SmallImage;
            var image     = Image(newsSmall).Alt(news.Title);
            var size      = Urls.GetSize(Urls.SysRoot + Urls.ImageFolder + newsSmall);

            if (size.HasValue)
            {
                image.Size(size.Value.Width, size.Value.Height);
            }
            return(image);
        }