... |
... |
@@ -2,7 +2,6 @@ |
2 |
2 |
|
3 |
3 |
[[image:white.webp||data-xwiki-image-style-alignment="end" height="263" style="border:1px solid #cccccc; margin-bottom:15px; margin-left:20px" width="460"]] |
4 |
4 |
|
5 |
|
- |
6 |
6 |
This is a **Pro-White Wikipedia** project aiming to unite the scattered White lone wolves into an anonymous force of reckoning in today’s culture and information war. |
7 |
7 |
|
8 |
8 |
== What sets this apart from sites like Metapedia? == |
... |
... |
@@ -16,73 +16,7 @@ |
16 |
16 |
|
17 |
17 |
[[Here>>path:/bin/view/Start/]] is a good place to begin if you want to know more about the project. |
18 |
18 |
|
19 |
|
-{{velocity}} |
20 |
|
-#set($hql = "select doc.fullName, lower(att.filename), att.filename from XWikiDocument as doc, XWikiAttachment as att where doc.id = att.docId and (lower(att.filename) like :e1 or lower(att.filename) like :e2 or lower(att.filename) like :e3 or lower(att.filename) like :e4 or lower(att.filename) like :e5 or lower(att.filename) like :e6 or lower(att.filename) like :e7)") |
21 |
21 |
|
22 |
|
-#set($q = $services.query.hql($hql)) |
23 |
|
-#set($q = $q.bindValue('e1','%.mp4')) |
24 |
|
-#set($q = $q.bindValue('e2','%.avi')) |
25 |
|
-#set($q = $q.bindValue('e3','%.mov')) |
26 |
|
-#set($q = $q.bindValue('e4','%.wmv')) |
27 |
|
-#set($q = $q.bindValue('e5','%.flv')) |
28 |
|
-#set($q = $q.bindValue('e6','%.webm')) |
29 |
|
-#set($q = $q.bindValue('e7','%.mkv')) |
30 |
|
-#set($rows = $q.execute()) |
31 |
|
- |
32 |
|
-#if($rows && $rows.size() > 0) |
33 |
|
- #set($today = $datetool.get('yyyy-MM-dd')) |
34 |
|
- #set($index = $mathtool.abs($today.hashCode()) % $rows.size()) |
35 |
|
- #set($row = $rows.get($index)) |
36 |
|
- |
37 |
|
- #set($docName = $row.get(0)) |
38 |
|
- #set($lname = $row.get(1)) |
39 |
|
- #set($fname = $row.get(2)) |
40 |
|
- |
41 |
|
- #set($doc = $xwiki.getDocument($docName)) |
42 |
|
- #set($title = $doc.getDisplayTitle()) |
43 |
|
- #set($pageURL = $xwiki.getURL($docName)) |
44 |
|
- #set($attURL = $doc.getAttachmentURL($fname)) |
45 |
|
- #set($dlURL = $xwiki.getURL($docName, 'download', "filename=$escapetool.url($fname)")) |
46 |
|
- |
47 |
|
- #set($videoType = 'video/mp4') |
48 |
|
- #if($lname.endsWith('.webm')) |
49 |
|
- #set($videoType = 'video/webm') |
50 |
|
- #elseif($lname.endsWith('.avi')) |
51 |
|
- #set($videoType = 'video/x-msvideo') |
52 |
|
- #elseif($lname.endsWith('.mov')) |
53 |
|
- #set($videoType = 'video/quicktime') |
54 |
|
- #end |
55 |
|
- |
56 |
|
- ## Render actual HTML |
57 |
|
- {{html wiki="false" clean="false"}} |
58 |
|
- <div class="daily-video-container" style="margin:20px 0;padding:20px;border:1px solid #ddd;border-radius:8px;background-color:#f9f9f9;"> |
59 |
|
- <h3 style="margin-top:0;color:#333;">Today's Featured Video</h3> |
60 |
|
- <div class="video-info" style="margin-bottom:15px;"> |
61 |
|
- <strong>From:</strong> <a href="${pageURL}">${title}</a><br/> |
62 |
|
- <strong>File:</strong> ${escapetool.xml($fname)}<br/> |
63 |
|
- <small style="color:#666;">Video changes daily</small> |
64 |
|
- </div> |
65 |
|
- <video width="100%" height="auto" controls preload="metadata" style="max-width:600px;border-radius:4px;"> |
66 |
|
- <source src="${attURL}" type="${videoType}"/> |
67 |
|
- <p>Your browser doesn't support HTML5 video. <a href="${dlURL}">Download the video</a> instead.</p> |
68 |
|
- </video> |
69 |
|
- <div style="margin-top:10px;text-align:center;"> |
70 |
|
- <small style="color:#888;">Found ${rows.size()} total videos • <a href="${dlURL}" download="${escapetool.xml($fname)}">Download</a></small> |
71 |
|
- </div> |
72 |
|
- </div> |
73 |
|
- {{/html}} |
74 |
|
-#else |
75 |
|
- {{html wiki="false" clean="false"}} |
76 |
|
- <div style="margin:20px 0;padding:20px;border:1px solid #ffa500;border-radius:8px;background-color:#fff3cd;color:#856404;"> |
77 |
|
- <h3 style="margin-top:0;">No Videos Found</h3> |
78 |
|
- <p>No video files were found in your XWiki site. Upload videos to any page to see them featured here.</p> |
79 |
|
- </div> |
80 |
|
- {{/html}} |
81 |
|
-#end |
82 |
|
-{{/velocity}} |
83 |
|
- |
84 |
|
- |
85 |
|
- |
86 |
86 |
== Announcements == |
87 |
87 |
|
88 |
88 |
{{include reference="Announcements.WebHome"/}} |