1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" |
---|
2 | xmlns:metal="http://xml.zope.org/namespaces/metal" |
---|
3 | xmlns:tal="http://xml.zope.org/namespaces/tal" |
---|
4 | lang="en-US" |
---|
5 | metal:use-macro="here/prefs_main_template/macros/master" |
---|
6 | i18n:domain="qPloneGoogleSitemaps"> |
---|
7 | <body> |
---|
8 | <div metal:fill-slot="prefs_configlet_content" |
---|
9 | tal:define="errors python:request.get('errors', {}); |
---|
10 | view here/@@sitemap_settings; |
---|
11 | here_url context/@@plone_context_state/object_url; |
---|
12 | portal context/@@plone_portal_state/portal; |
---|
13 | template_id template/getId;"> |
---|
14 | |
---|
15 | <div class="documentEditable"> |
---|
16 | <div id="edit-bar"> |
---|
17 | <ul class="contentViews" id="content-views"> |
---|
18 | <li class=""> |
---|
19 | <a href="" |
---|
20 | tal:attributes="href string: ${context/absolute_url}/prefs_gsm_overview" |
---|
21 | i18n:translate="label_properties">Overview</a> |
---|
22 | </li> |
---|
23 | |
---|
24 | <li class="selected"> |
---|
25 | <a href="" |
---|
26 | tal:attributes="href string: ${context/absolute_url}/${template/id}" |
---|
27 | i18n:translate="label_properties">Verification</a> |
---|
28 | </li> |
---|
29 | |
---|
30 | <li class=""> |
---|
31 | <a href="" |
---|
32 | tal:attributes="href string: ${context/absolute_url}/prefs_gsm_settings"> |
---|
33 | Settings</a> |
---|
34 | </li> |
---|
35 | |
---|
36 | </ul> |
---|
37 | <div class="contentActions"> </div> |
---|
38 | </div> |
---|
39 | <div id="content" class="documentContent"> |
---|
40 | <h1 i18n:translate="heading_plonegooglesitemaps">Plone Google Sitemaps</h1> |
---|
41 | <a href="" |
---|
42 | class="link-parent" |
---|
43 | tal:attributes="href string: $portal_url/plone_control_panel" |
---|
44 | i18n:translate="label_up_to_plone_setup"> |
---|
45 | Up to Plone Setup |
---|
46 | </a> |
---|
47 | |
---|
48 | <form action="manage_addFile" method="post" enctype="multipart/form-data" |
---|
49 | tal:define="vfiles view/getVerificationFiles; |
---|
50 | user_id context/plone_portal_state/member; |
---|
51 | step1 python:test(vfiles, 'discreet', ''); |
---|
52 | step2 python:test(not vfiles, 'discreet', '')" |
---|
53 | tal:attributes="action string:$here_url/$template_id"> |
---|
54 | <ol> |
---|
55 | <li tal:attributes="class step1"> |
---|
56 | Go to <a href="" |
---|
57 | tal:attributes="href string: https://www.google.com/webmasters/verification/verification?siteUrl=${portal/absolute_url}&hl=en" |
---|
58 | tal:omit-tag="step1"> |
---|
59 | site verification page</a> and login if necessary. If <strong>Verification status</strong> is <i>Not Verified</i>, from <strong>Verification method</strong> selection box choose <i>Upload an HTML file</i> and download generated file to you system. |
---|
60 | </li> |
---|
61 | <li tal:attributes="class step1">Select verification file: |
---|
62 | <p><input name="verification_file" id="verify_filename" type="file"></p> |
---|
63 | </li> |
---|
64 | <li tal:attributes="class step1">Comment: |
---|
65 | <p><input type="text" value="" tal:attributes="value user_id" name='comment'/> |
---|
66 | <input name="form.button.CreateFile" id="create_file" type="submit" value="Upload verification file to the site"/> |
---|
67 | <input type="hidden" name="form.submitted" value="1" /></p> |
---|
68 | </li> |
---|
69 | <li class="discreet" |
---|
70 | tal:attributes="class step2">Go to <a href="" |
---|
71 | tal:attributes="href string: https://www.google.com/webmasters/verification/verification?siteUrl=${portal/absolute_url}&hl=en" |
---|
72 | tal:omit-tag="step2"> |
---|
73 | site verification page</a> and press "Check Status" button. |
---|
74 | </li> |
---|
75 | <li class="discreet" |
---|
76 | tal:attributes="class step2" |
---|
77 | tal:condition="vfiles"> |
---|
78 | <strong>Existing verification files:</strong> |
---|
79 | <ul><li tal:repeat="vf vfiles"> |
---|
80 | <a tal:attributes="href string: ${vf/id}" tal:content="vf/id"></a> |
---|
81 | <span tal:replace="string: (${vf/title})">comment to verification file</span> |
---|
82 | <a tal:attributes="href string: ${context/absolute_url}/@@deleteGSMVerificationFile?id=${vf/id}; class string:delete">Delete</a> |
---|
83 | </li></ul> |
---|
84 | </li> |
---|
85 | </ol> |
---|
86 | </form> |
---|
87 | </div> |
---|
88 | </div> |
---|
89 | </div> |
---|
90 | </body> |
---|
91 | </html> |
---|