0 Votes

Changes for page Home

Last modified by Ryan C on 2025/09/09 09:38

From version 48.1
edited by Ryan C
on 2025/09/04 05:35
Change comment: There is no comment for this version
To version 51.1
edited by Ryan C
on 2025/09/09 09:38
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -3,13 +3,6 @@
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 5  
6 -
7 -
8 -
9 -
10 -
11 -
12 -
13 13  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.
14 14  
15 15  == What sets this apart from sites like Metapedia? ==
... ... @@ -23,21 +23,75 @@
23 23  
24 24  [[Here>>path:/bin/view/Start/]] is a good place to begin if you want to know more about the project.
25 25  
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)")
26 26  
27 -== Announcements ==
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())
28 28  
29 -{{include reference="Announcements.WebHome"/}}
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))
30 30  
31 -== Disclaimer ==
37 + #set($docName = $row.get(0))
38 + #set($lname = $row.get(1))
39 + #set($fname = $row.get(2))
32 32  
33 -{{box cssClass="info"}}
34 -**The views expressed on this site are those of individual authors and do not necessarily reflect the positions of affiliated organizations.**
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)"))
35 35  
36 -This site critically examines racial dynamics — including the often-overlooked issue of **anti-White racism**.
37 -It discusses stereotypes, myths, and harmful narratives that contribute to marginalization.
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
38 38  
39 -**Note:** Examples of offensive language and racial slurs may appear to illustrate dehumanizing narratives.
40 -These are included **for educational and critical purposes**, not to perpetuate or endorse them.
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}}
41 41  
42 -**Contact:** [admin@thewhitearchive.org](mailto:admin@thewhitearchive.org)
43 -{{/box}}
84 +
85 +
86 +== Announcements ==
87 +
88 +{{include reference="Announcements.WebHome"/}}
89 +
90 +== ==