Error compiling template "/Designs/lyspunkt/subpage/Paragraph/_Instagram.cshtml"
Line 17: The type or namespace name 'social' does not exist in the namespace 'eela' (are you missing an assembly reference?)
Line 41: The name 'Instagram' does not exist in the current context

1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 using System; 13 using System.Collections.Generic; 14 using System.Linq; 15 16 #line 1 "d:\websites\lyspunkt.dk\application\files\Templates\Designs\lyspunkt\subpage\Paragraph\_Instagram.cshtml" 17 using eela.social; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_ce511191e27344a5b7ff257b5f9b8233 : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 24 25 #line hidden 26 27 public RazorEngine_ce511191e27344a5b7ff257b5f9b8233() { 28 } 29 30 public override void Execute() { 31 WriteLiteral("\r\n"); 32 33 34 #line 3 "d:\websites\lyspunkt.dk\application\files\Templates\Designs\lyspunkt\subpage\Paragraph\_Instagram.cshtml" 35 36 var title = GetString("Item.Title"); 37 var subtitle = GetString("Item.Subtitle"); 38 var count = GetString("Item.Count"); 39 40 int instCount = int.TryParse(count, out instCount) ? instCount : int.MaxValue; 41 var media = Instagram.GetRecentMedia().Take(instCount); 42 43 44 #line default 45 #line hidden 46 WriteLiteral("\r\n\r\n<section"); 47 48 WriteLiteral(" class=\"instagram\""); 49 50 WriteLiteral(">\r\n <div"); 51 52 WriteLiteral(" class=\"grid\""); 53 54 WriteLiteral(">\r\n <div"); 55 56 WriteLiteral(" class=\"title\""); 57 58 WriteLiteral(">\r\n <div"); 59 60 WriteLiteral(" class=\"h1\""); 61 62 WriteLiteral(">"); 63 64 65 #line 15 "d:\websites\lyspunkt.dk\application\files\Templates\Designs\lyspunkt\subpage\Paragraph\_Instagram.cshtml" 66 Write(title); 67 68 69 #line default 70 #line hidden 71 WriteLiteral("</div>\r\n <div"); 72 73 WriteLiteral(" class=\"insta-desc\""); 74 75 WriteLiteral(">\r\n"); 76 77 WriteLiteral(" "); 78 79 80 #line 17 "d:\websites\lyspunkt.dk\application\files\Templates\Designs\lyspunkt\subpage\Paragraph\_Instagram.cshtml" 81 Write(subtitle); 82 83 84 #line default 85 #line hidden 86 WriteLiteral("\r\n </div>\r\n </div>\r\n\r\n"); 87 88 89 #line 21 "d:\websites\lyspunkt.dk\application\files\Templates\Designs\lyspunkt\subpage\Paragraph\_Instagram.cshtml" 90 91 92 #line default 93 #line hidden 94 95 #line 21 "d:\websites\lyspunkt.dk\application\files\Templates\Designs\lyspunkt\subpage\Paragraph\_Instagram.cshtml" 96 foreach (var item in media) 97 { 98 string nLink = item.Link; 99 string nUsername = item.UserName; 100 string nCaption = item.Caption; 101 102 var trimCount = 160; 103 if (!string.IsNullOrEmpty(nCaption) && nCaption.Length > trimCount) 104 { 105 nCaption = nCaption.Substring(0, trimCount - 1) + "..."; 106 } 107 string nImgSrc = item.ImageUrl; 108 109 110 111 112 #line default 113 #line hidden 114 WriteLiteral(" <a"); 115 116 WriteAttribute("href", Tuple.Create(" href=\"", 1001), Tuple.Create("\"", 1014) 117 118 #line 35 "d:\websites\lyspunkt.dk\application\files\Templates\Designs\lyspunkt\subpage\Paragraph\_Instagram.cshtml" 119 , Tuple.Create(Tuple.Create("", 1008), Tuple.Create<System.Object, System.Int32>(nLink 120 121 #line default 122 #line hidden 123 , 1008), false) 124 ); 125 126 WriteLiteral("\r\n target=\"_blank\""); 127 128 WriteLiteral("\r\n class=\"grid-item c-1 sm wow fadeIn\""); 129 130 WriteLiteral("\r\n style=\"visibility: visible; animation-name: fadeIn;\""); 131 132 WriteLiteral(">\r\n\r\n <div"); 133 134 WriteLiteral(" class=\"boxes\""); 135 136 WriteLiteral(">\r\n <figure>\r\n <img"); 137 138 WriteAttribute("src", Tuple.Create(" src=\"", 1268), Tuple.Create("\"", 1282) 139 140 #line 42 "d:\websites\lyspunkt.dk\application\files\Templates\Designs\lyspunkt\subpage\Paragraph\_Instagram.cshtml" 141 , Tuple.Create(Tuple.Create("", 1274), Tuple.Create<System.Object, System.Int32>(nImgSrc 142 143 #line default 144 #line hidden 145 , 1274), false) 146 ); 147 148 WriteLiteral(">\r\n <figcaption>\r\n <div"); 149 150 WriteLiteral(" class=\"central\""); 151 152 WriteLiteral(">\r\n <p><strong>"); 153 154 WriteLiteral("@lyspunkt.dk</strong></p>\r\n <p>"); 155 156 157 #line 46 "d:\websites\lyspunkt.dk\application\files\Templates\Designs\lyspunkt\subpage\Paragraph\_Instagram.cshtml" 158 Write(nCaption); 159 160 161 #line default 162 #line hidden 163 WriteLiteral("</p>\r\n </div>\r\n <span"); 164 165 WriteLiteral(" class=\"social\""); 166 167 WriteLiteral(">\r\n <span><i"); 168 169 WriteLiteral(" class=\"fa fa-heart-o\""); 170 171 WriteLiteral("></i> "); 172 173 174 #line 49 "d:\websites\lyspunkt.dk\application\files\Templates\Designs\lyspunkt\subpage\Paragraph\_Instagram.cshtml" 175 Write(item.Likes); 176 177 178 #line default 179 #line hidden 180 WriteLiteral("</span>\r\n <span><i"); 181 182 WriteLiteral(" class=\"fa fa-comment-o\""); 183 184 WriteLiteral("></i> "); 185 186 187 #line 50 "d:\websites\lyspunkt.dk\application\files\Templates\Designs\lyspunkt\subpage\Paragraph\_Instagram.cshtml" 188 Write(item.Comments); 189 190 191 #line default 192 #line hidden 193 WriteLiteral("</span>\r\n </span>\r\n </figcaptio" + 194 "n>\r\n </figure>\r\n </div>\r\n </a>\r\n"); 195 196 197 #line 56 "d:\websites\lyspunkt.dk\application\files\Templates\Designs\lyspunkt\subpage\Paragraph\_Instagram.cshtml" 198 } 199 200 201 #line default 202 #line hidden 203 WriteLiteral("\r\n </div>\r\n</section>"); 204 205 } 206 } 207 } 208

1 @using eela.social 2 3 @{ 4 var title = GetString("Item.Title"); 5 var subtitle = GetString("Item.Subtitle"); 6 var count = GetString("Item.Count"); 7 8 int instCount = int.TryParse(count, out instCount) ? instCount : int.MaxValue; 9 var media = Instagram.GetRecentMedia().Take(instCount); 10 } 11 12 <section class="instagram"> 13 <div class="grid"> 14 <div class="title"> 15 <div class="h1">@title</div> 16 <div class="insta-desc"> 17 @subtitle 18 </div> 19 </div> 20 21 @foreach (var item in media) 22 { 23 string nLink = item.Link; 24 string nUsername = item.UserName; 25 string nCaption = item.Caption; 26 27 var trimCount = 160; 28 if (!string.IsNullOrEmpty(nCaption) && nCaption.Length > trimCount) 29 { 30 nCaption = nCaption.Substring(0, trimCount - 1) + "..."; 31 } 32 string nImgSrc = item.ImageUrl; 33 34 35 <a href="@nLink" 36 target="_blank" 37 class="grid-item c-1 sm wow fadeIn" 38 style="visibility: visible; animation-name: fadeIn;"> 39 40 <div class="boxes"> 41 <figure> 42 <img src="@nImgSrc"> 43 <figcaption> 44 <div class="central"> 45 <p><strong>@@lyspunkt.dk</strong></p> 46 <p>@nCaption</p> 47 </div> 48 <span class="social"> 49 <span><i class="fa fa-heart-o"></i> @item.Likes</span> 50 <span><i class="fa fa-comment-o"></i> @item.Comments</span> 51 </span> 52 </figcaption> 53 </figure> 54 </div> 55 </a> 56 } 57 58 </div> 59 </section>

Lyspunkt niels bohrs vej 33B 8660 skanderborg telefon 7020 1113 salg@lyspunkt.dk

todo: loading, please wait