comparison Chaptcha del blog/ContentViewSingleItem.ascx @ 46:cc0496faa8b0

Captcha del blog de sitefinity
author Nelo@Win7x64.cpe.telecentro.net.ar
date Fri, 13 May 2011 17:56:58 -0300
parents
children
comparison
equal deleted inserted replaced
45:2edc705aae0a 46:cc0496faa8b0
1 <%@ Control Language="C#" %>
2 <%@ Register Assembly="Telerik.Cms.Engine" Namespace="Telerik.Cms.Engine.WebControls" TagPrefix="sfWeb" %>
3 <%@ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Web.UI.SpamProtection" TagPrefix="sfWeb" %>
4 <%@ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Cms.Web.UI" TagPrefix="sfWeb" %>
5 <%@ Register Assembly="Telerik.Blogs" Namespace="Telerik.Blogs.WebControls" TagPrefix="sfWeb" %>
6
7 <telerik:CssFileLink ID="CssFileLink1" EmbeddedFileName="Telerik.Blogs.Resources.ControlTemplates.Frontend.blogsCommonLayout.css" FileName="" Media="screen" runat="server" />
8 <telerik:JsFileLink id="jsLink" runat="server" ScriptType="jQuery" />
9
10 <asp:PlaceHolder ID="trackbackScript" runat="server">
11
12 </asp:PlaceHolder>
13
14 <div class="sf_singlePost">
15 <p class="sf_back">
16 <asp:HyperLink ID="backToList1" Text="<%$Resources:GoBack %>" runat="server"></asp:HyperLink>
17 </p>
18 <h1 class="sf_postTitle">
19 <asp:Literal ID="Title" runat="server"></asp:Literal>
20 </h1>
21 <p class="sf_postAuthor">
22 <asp:Literal ID="Literal3" runat="server" Text="<%$Resources:Author %>"></asp:Literal>
23 <asp:HyperLink ID="postedBy" runat="server">
24 <asp:Literal ID="Author" runat="server"></asp:Literal>
25 </asp:HyperLink>
26 </p>
27 <p class="sf_postDate">
28 <telerik:DateTimeLiteral runat="server" ID="Publication_Date" DateFormatString="D"></telerik:DateTimeLiteral>
29 </p>
30 <asp:Panel ID="pnlContent" runat="server" CssClass="sf_postContent">
31 <asp:Literal ID="content" runat="server"></asp:Literal>
32 </asp:Panel>
33 <p class="sf_postCategory">
34 <asp:Literal ID="CategoryLiteral" runat="server" Text="<%$Resources:Category %>" />: <asp:HyperLink ID="Category" runat="server" />
35 </p>
36 <p class="sf_postTags">
37
38 <asp:Repeater ID="Tags" runat="server">
39 <HeaderTemplate>
40 <asp:Literal ID="TagsLiteral" runat="server" Text="<%$Resources:Tags %>" />
41 </HeaderTemplate>
42 <ItemTemplate>
43 <asp:HyperLink ID="tagLink" runat="server" />
44 </ItemTemplate>
45 </asp:Repeater>
46 </p>
47
48 <asp:Repeater ID="Bookmarks" runat="server">
49 <HeaderTemplate><ul class="sf_socialBookmarks"></HeaderTemplate>
50 <ItemTemplate>
51 <li>
52 <asp:HyperLink ID="BookmarkLink" runat="server">
53 <asp:Image ID="BookmarkImage" runat="server" />
54 </asp:HyperLink>
55 </li>
56 </ItemTemplate>
57 <FooterTemplate></ul></FooterTemplate>
58 </asp:Repeater>
59
60 </div>
61 <div class="sf_postComments">
62 <sfWeb:BlogCommentsList ID="commentsList" runat="server" CssClass="sf_commentsList" ValidationGroup="commentInfo">
63 <LayoutTemplate>
64 <asp:Repeater ID="commentsRepeater" runat="Server">
65 <HeaderTemplate>
66 <asp:PlaceHolder runat="server" ID="headerHolder">
67 <h2 class="sf_comments">
68 <asp:Literal ID="Literal1" runat="server" Text="<%$Resources:Comments %>" />
69 &nbsp;<asp:Literal ID="commentsCount" runat="server"></asp:Literal>
70 </h2>
71 </asp:PlaceHolder>
72 <ul class="sf_commentListing">
73 </HeaderTemplate>
74 <ItemTemplate>
75 <!-- comment goes here -->
76 <sfWeb:CommentItem Id="anonCommentContainer" runat="server" CssClass="sf_anonymousComment" >
77
78 <Template>
79 <p class="sf_commentAuthor">
80 <strong>
81 <asp:HyperLink ID="webSiteLink" runat="server" Visible="false" rel="nofollow"></asp:HyperLink>
82 <asp:Literal runat="Server" ID="authorName" Visible="false"></asp:Literal>
83 </strong>
84 <%--<abbr class="date" id="commentDate" runat="server" > </abbr>--%>
85 <telerik:DateTimeLiteral ID="commentDateLiteral" runat="server" DateFormatString="" />
86 </p>
87 <asp:Label ID="text" runat="server"></asp:Label>
88 </Template>
89
90 </sfWeb:CommentItem>
91
92 <sfWeb:CommentItem Id="authorCommentContainer" runat="server" CssClass="sf_authorComment">
93 <Template>
94 <p class="sf_commentAuthor">
95 <strong>
96 <asp:HyperLink ID="webSiteLink" runat="server" Visible="false" rel="nofollow"></asp:HyperLink>
97 <asp:Literal runat="Server" ID="authorName" Visible="false" ></asp:Literal>
98 </strong>
99 <%--<abbr class="date" id="commentDate" runat="server"> </abbr>--%>
100 <telerik:DateTimeLiteral ID="commentDateLiteral" runat="server" DateFormatString="" />
101 </p>
102 <asp:Label ID="text" runat="server"></asp:Label>
103 </Template>
104
105 </sfWeb:CommentItem>
106
107 </ItemTemplate>
108 <FooterTemplate>
109 </ul>
110 </FooterTemplate>
111 </asp:Repeater>
112 <asp:PlaceHolder ID="moderationHolder" runat="server" Visible="false">
113 <p class="sf_commentMessage">
114 <asp:Literal ID="Literal2" runat="server" Text="<%$Resources:CommentMessageModeration %>"></asp:Literal>
115 </p>
116 </asp:PlaceHolder>
117
118 <fieldset class="sf_postNewComment">
119 <legend>Post a comment!</legend>
120 <ol>
121 <li>
122 <asp:Label ID="Label2" runat="Server" Text="<%$Resources:Name %>" AssociatedControlID="authorTxt"></asp:Label>
123 <asp:TextBox ID="authorTxt" runat="server" size="30"></asp:TextBox>
124 <asp:RequiredFieldValidator runat="server" ID="authorVal" ControlToValidate="authorTxt"
125 ErrorMessage="<%$Resources:NameEmpty %>" Display="dynamic"
126 CssClass="sf_commentsValidator"></asp:RequiredFieldValidator>
127
128 </li>
129 <li>
130 <asp:Label ID="Label3" runat="Server" Text="<%$Resources:Email %>" AssociatedControlID="emailTxt"></asp:Label>
131 <asp:TextBox ID="emailTxt" runat="server" size="30"></asp:TextBox>
132 <asp:RegularExpressionValidator runat="server" ID="emailVal" ControlToValidate="emailTxt"
133 ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ErrorMessage="<%$Resources:InvalidEmail %>"
134 Display="dynamic" CssClass="sf_commentsValidator"></asp:RegularExpressionValidator>
135 </li>
136 <li>
137 <asp:Label ID="Label4" runat="Server" Text="<%$Resources:WebSite %>" AssociatedControlID="webSiteTxt"></asp:Label>
138 <asp:TextBox ID="webSiteTxt" runat="server" size="30"></asp:TextBox>
139 </li>
140 <li class="texarea-wrapper">
141 <asp:Label ID="Label1" runat="Server" Text="<%$Resources:Comment %>" AssociatedControlID="commentTxt"></asp:Label>
142 <div>
143 <a href="#" class="formattingOptionsToggleBtn" onclick='if($(this).parent().hasClass("formattingOptions")){$(this).parent().removeClass("formattingOptions");$(this).text("Formatting options");}else{$(this).parent().addClass("formattingOptions");$(this).text("Hide formatting options"); } return false;'>Formatting options</a>
144 <telerik:RadEditor
145 runat="server"
146 ID="commentTxt"
147 ToolsFile="~/Sitefinity/ControlTemplates/Blogs/ToolsFile.xml"
148 EnableEmbeddedSkins="True"
149 Skin="Default"
150 Width="100%"
151 EditModes="Design">
152 </telerik:RadEditor>
153 </div>
154 <asp:RequiredFieldValidator runat="server" ID="contentVal"
155 ControlToValidate="commentTxt"
156 ErrorMessage="<%$Resources:CommentEmpty %>"
157 Display="dynamic"
158 ValidationGroup="commentInfo"
159 CssClass="sf_commentsValidator">
160 <strong>Message text is required</strong>
161 </asp:RequiredFieldValidator>
162 </li>
163 <li>
164 <sfWeb:SpamProtector id="spamProtector" runat="server" cssclass="commentsValidator hide"
165 EnableCaptcha="true" CaptchaFontWarp="High" CaptchaBackgroundNoise="High" CaptchaLineNoise="High"
166 enableautobotdiscovery="true" enablehiddentextboxstrategy="true"
167 hiddentextboxerrormessage="Hidden TextBox has some text in it!" hiddentextboxlabel="Do not fill this textbox!"
168 hiddentextboxlabelcssclass="hide" hiddentextboxinputcssclass="hide" enablemintimeoutstrategy="true"
169 mintimeout="2" mintimeouterrormessage="Submission too fast!" />
170 <asp:Button ID="submitBtn" runat="server" Text="<%$Resources:PostThisComment %>"
171 CssClass="sf_commentSubmit" />
172 </li>
173 </ol>
174 </fieldset>
175
176 </LayoutTemplate>
177 </sfWeb:BlogCommentsList>
178 </div>