Support: +45 2210 2043 Hovednummer: +45 2210 2040

Blog Posts

Error parsing template "Designs/Dwsimple/ItemPublisher/List/Blogs.cshtml"
Line 137: (136:8) - The "aside" element was not closed.  All elements must be either self-closing or have a matching end tag.

1 @using System.Text.RegularExpressions 2 @using System.Web 3 4 5 @functions{ 6 public class WrapMethods 7 { 8 //Gets the contrasting color 9 public static string getContrastYIQ(string hexcolor) 10 { 11 if (hexcolor != "") 12 { 13 hexcolor = Regex.Replace(hexcolor, "[^0-9a-zA-Z]+", ""); 14 15 int r = Convert.ToByte(hexcolor.Substring(0, 2), 16); 16 int g = Convert.ToByte(hexcolor.Substring(2, 2), 16); 17 int b = Convert.ToByte(hexcolor.Substring(4, 2), 16); 18 int yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000; 19 20 if (yiq >= 128) 21 { 22 return "black"; 23 } 24 else 25 { 26 return "white"; 27 } 28 } 29 else 30 { 31 return "black"; 32 } 33 } 34 35 36 //Truncate text 37 public static string Truncate (string value, int count, bool strip=true) 38 { 39 if (strip == true){ 40 value = StripHtmlTagByCharArray(value); 41 } 42 43 if (value.Length > count) 44 { 45 value = value.Substring(0, count - 1) + "..."; 46 } 47 48 return value; 49 } 50 51 52 //Strip text from HTML 53 public static string StripHtmlTagByCharArray(string htmlString) 54 { 55 char[] array = new char[htmlString.Length]; 56 int arrayIndex = 0; 57 bool inside = false; 58 59 for (int i = 0; i < htmlString.Length; i++) 60 { 61 char let = htmlString[i]; 62 if (let == '<') 63 { 64 inside = true; 65 continue; 66 } 67 if (let == '>') 68 { 69 inside = false; 70 continue; 71 } 72 if (!inside) 73 { 74 array[arrayIndex] = let; 75 arrayIndex++; 76 } 77 } 78 return new string(array, 0, arrayIndex); 79 } 80 81 //Make the correct count of columns 82 public static string ColumnMaker(int Col, string ScreenSize) 83 { 84 string Columns = ""; 85 86 switch (Col) 87 { 88 case 1: 89 Columns = "col-"+ScreenSize+"-12"; 90 break; 91 92 case 2: 93 Columns = "col-"+ScreenSize+"-6"; 94 break; 95 96 case 3: 97 Columns = "col-"+ScreenSize+"-4"; 98 break; 99 100 case 4: 101 Columns = "col-"+ScreenSize+"-3"; 102 break; 103 104 default: 105 Columns = "col-"+ScreenSize+"-3"; 106 break; 107 } 108 109 return Columns; 110 } 111 112 113 private string Custom(string firstoption, string secondoption) 114 { 115 if (firstoption == "custom") 116 { 117 return secondoption; 118 } 119 else 120 { 121 return firstoption; 122 } 123 } 124 } 125 } 126 127 <section id="blog-section" > 128 <div class="container"> 129 <div class="row"> 130 <div class="col-lg-12"> 131 <div class="row"> 132 <div class="col-lg-4 col-md-6"> 133 @if (GetBoolean("ItemPublisher:Items.Any")) 134 { 135 foreach (LoopItem i in GetLoop("ItemPublisher:Items.List")) 136 { 137 <aside> 138 <img src="@i.GetValue("ItemPublisher:Item.News_Image.Value")" alt="@i.GetValue("ItemPublisher:Item.Titel.Value")" class="img-responsive" /> 139 <div class="content-title"> 140 <div class="text-center"> 141 <h3><a href="@i.GetValue("ItemPublisher:Item.Url")" name="@i.GetValue("ItemPublisher:Item.Field.Id")" title="@i.GetValue("ItemPublisher:Item.Titel.Value")">@i.GetValue("ItemPublisher:Item.Titel.Value")</a></h3> 142 </div> 143 </div> 144 <div class="content-footer"> 145 <img class="user-small-img" src="https://lh3.googleusercontent.com/-uwagl9sPHag/WM7WQa00ynI/AAAAAAAADtA/hio87ZnTpakcchDXNrKc_wlkHEcpH6vMwCJoC/w140-h148-p-rw/profile-pic.jpg"> 146 <span style="font-size: 16px;color: #fff;">Sumit Kumar</span> 147 <span class="pull-right"> 148 <i class="fas fa-calendar-alt" style="color: #003366 !important; width:15px;height:15px;"></i><span>@i.GetValue("ItemPublisher:Item.ActiveFrom")</span></li> 149 </span> 150 <div class="user-ditels"> 151 <div class="user-img"><img src="https://lh3.googleusercontent.com/-uwagl9sPHag/WM7WQa00ynI/AAAAAAAADtA/hio87ZnTpakcchDXNrKc_wlkHEcpH6vMwCJoC/w140-h148-p-rw/profile-pic.jpg" class="img-responsive"></div> 152 <span class="user-full-ditels"> 153 <h3>Sumit Kumar</h3> 154 <p>Web & Graphics Disigner</p> 155 </span> 156 <div class="social-icon"> 157 <a href="#"><i class="fa fa-facebook" data-toggle="tooltip" data-placement="bottom" title="Facebook"></i></a> 158 <a href="#"><i class="fa fa-twitter" data-toggle="tooltip" data-placement="bottom" title="Twitter"></i></a> 159 <a href="#"><i class="fa fa-google-plus" data-toggle="tooltip" data-placement="bottom" title="Google Plus"></i></a> 160 <a href="#"><i class="fa fa-youtube" data-toggle="tooltip" data-placement="bottom" title="Youtube"></i></a> 161 <a href="#"><i class="fa fa-github" data-toggle="tooltip" data-placement="bottom" title="Github"></i></a> 162 </div> 163 </div> 164 </div> 165 </div> 166 </aside> 167 } 168 } 169 </div> 170 </div> 171 </div> 172 </div> 173 </div> 174 </section> 175 176 if (GetInteger("ItemPublisher:Items.Paging.TotalPages") > 1) 177 { 178 var hasPrevPage = GetInteger("ItemPublisher:Items.Paging.CurrentPage") > 1; 179 var hasNextPage = GetInteger("ItemPublisher:Items.Paging.CurrentPage") < GetInteger("ItemPublisher:Items.Paging.TotalPages"); 180 181 <ul class="pagination"> 182 <li class='@(hasPrevPage ? "" : "disabled")'> 183 @if (hasPrevPage) 184 { 185 <a href='@System.Web.HttpUtility.HtmlEncode(GetValue("ItemPublisher:Items.Paging.PrevPage"))'>@Translate("PreviousPage", "&laquo;")</a> 186 } 187 else 188 { 189 <span>@Translate("PreviousPage", "&laquo;")</span> 190 } 191 </li> 192 193 @foreach (var p in GetLoop("ItemPublisher:Items.Paging.Pages")) 194 { 195 var isCurrent = p.GetBoolean("ItemPublisher:Items.Paging.Pages.Page.IsCurrent"); 196 <li class='@(isCurrent ? "active" : "")'> 197 @if (isCurrent) 198 { 199 <span>@p.GetValue("ItemPublisher:Items.Paging.Pages.Page.Number")</span> 200 } 201 else 202 { 203 <a href='@System.Web.HttpUtility.HtmlEncode(p.GetValue("ItemPublisher:Items.Paging.Pages.Page.Url"))'>@p.GetValue("ItemPublisher:Items.Paging.Pages.Page.Number")</a> 204 } 205 </li> 206 } 207 208 <li class='@(hasNextPage ? "" : "disabled")'> 209 @if (hasNextPage) 210 { 211 <a href='@System.Web.HttpUtility.HtmlEncode(GetValue("ItemPublisher:Items.Paging.NextPage"))'>@Translate("NextPage", "&raquo;")</a> 212 } 213 else { 214 <span>@Translate("NextPage", "&raquo;")</span> 215 } 216 </li> 217 </ul> 218 } 219 } 220 </section> 221 </div>
/Files/Images/CC_Ny_Feb17_logo_hvid_korrigeret.png

© 2020 Clever Choice

Sociale Medier

Cookie- og Privatlivspolitik

 

Adresse: 
Industrivej 44 C,2
4000 Roskilde

Bank: Nykredit
CVR: 36055944

Børsen har udnævnt Clever Choice som Gazelle virksomhed

 

Clever Choice er blevet SKI-leverandør

              

Find os her: 

 

This website uses cookies to track your behavior and to improve your experience on the site

You can always delete saved cookies by visiting the advanced settings of your browser

Do not accept cookies Only accept functional cookies Accept all cookies