Wiki source code of Videos

Last modified by XWikiGuest on 2026/06/21 23:50

Hide last authors
Slava_ MSE 1.1 1 {{velocity output="false"}}
2 #set ($displayDocExtra = false)
3
4 #set ($videoCards = [{
5 'title': $services.localization.render('help.videos.videoCard1.title'),
6 'topics': [
7 {
8 'url': 'https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/GettingStarted/',
9 'label': $services.localization.render('help.videos.videoCard1.topic1')
10 },
11 {
12 'url': 'https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/Navigate/',
13 'label': $services.localization.render('help.videos.videoCard1.topic2')
14 }
15 ],
16 'url': 'https://www.youtube.com/embed/p5g6aDGOqWY',
17 'duration': '4 min'
18 }, {
19 'title': $services.localization.render('help.videos.videoCard2.title'),
20 'topics': [
21 {
22 'url': 'https://extensions.xwiki.org/xwiki/bin/view/Extension/Flamingo%20Theme%20Application#HHowtoselectatheme',
23 'label': $services.localization.render('help.videos.videoCard2.topic1')
24 },
25 {
26 'url': 'https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/GettingStarted/ChangingTheLogoAndThePanels#HChangingyourwiki27spanels',
27 'label': $services.localization.render('help.videos.videoCard2.topic2')
28 },
29 {
30 'url': 'https://extensions.xwiki.org/xwiki/bin/view/Extension/Dashboard%20Macro#HAddinggadgets',
31 'label': $services.localization.render('help.videos.videoCard2.topic3')
32 }
33 ],
34 'url': 'https://www.youtube.com/embed/zX1Itoh3E68',
35 'duration': '5 min'
36 }, {
37 'title': $services.localization.render('help.videos.videoCard3.title'),
38 'topics': [
39 {
40 'url': 'https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/GettingStarted/CreatingAPage',
41 'label': $services.localization.render('help.videos.videoCard3.topic1')
42 },
43 {
44 'url': 'https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/GettingStarted/EditingAPage',
45 'label': $services.localization.render('help.videos.videoCard3.topic2')
46 },
47 {
48 'url': 'https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/KeyboardShortcuts#HViewMode',
49 'label': $services.localization.render('help.videos.videoCard3.topic3')
50 }
51 ],
52 'url': 'https://www.youtube.com/embed/onenEu21FIk',
53 'duration': '6 min'
54 }, {
55 'title': $services.localization.render('help.videos.videoCard4.title'),
56 'topics': [
57 {
58 'url': 'https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/Imports#HImportingOfficedocuments',
59 'label': $services.localization.render('help.videos.videoCard4.topic1')
60 },
61 {
62 'url': 'https://extensions.xwiki.org/xwiki/bin/view/Extension/TOC+Macro#HExample1:Simple',
63 'label': $services.localization.render('help.videos.videoCard4.topic2')
64 }
65 ],
66 'url': 'https://www.youtube.com/embed/csQVSRMVclM',
67 'duration': '4 min'
68 }, {
69 'title': $services.localization.render('help.videos.videoCard5.title'),
70 'topics': [
71 {
72 'url': 'https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/GettingStarted/CreatingABasicApp',
73 'label': $services.localization.render('help.videos.videoCard5.t
74
75
76 یکٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹکسٹک
77
78
79 #macro (helpVideoCard $data)
80 <div class="videoCard">
81 <iframe src="$data.url" allowfullscreen title="$escapetool.xml($data.title)" role='application'
82 aria-describedby="video_hint_$foreach.index" >
83 </iframe>
84 <span id="video_hint_$foreach.index" class="sr-only">
85 $escapetool.xml($services.localization.render('help.videos.hint'))
86 </span>
87 <div class="videoCard-body">
88 <div class="videoCard-title">
89 $escapetool.xml($data.title)
90 </div>
91 <ul>
92 #foreach ($topic in $data.topics)
93 <li>#if ($topic.url)
94 <a href="$escapetool.xml($topic.url)">$escapetool.xml($topic.label)</a>
95 #else
96 $escapetool.xml($topic)
97 #end
98 </li>
99 #end
100 </ul>
101 </div>
102 <div class="videoCard-footer">
103 $services.icon.renderHTML('play')
104 <a href="$data.url">$services.localization.render('help.videos.watch')</a>
105 <span class="videoCard-duration">
106 $escapetool.xml($data.duration)
107 </span>
108 </div>
109 </div>
110 #end
111 {{/velocity}}
112
113 {{velocity}}
114 {{html clean="false"}}
115 #set ($discard = $xwiki.ssx.use('Help.Videos.WebHome'))
116 <div class="row">
117 #foreach ($card in $videoCards)
118 ## See http://getbootstrap.com/css/#grid-responsive-resets .
119 #if ($foreach.index > 0 && $foreach.index % 2 == 0)
120 <div class="clearfix visible-sm-block "></div>
121 #end
122 #if ($foreach.index > 0 && $foreach.index % 3 == 0)
123 <div class="clearfix visible-md-block visible-lg-block"></div>
124 #end
125 <div class="col-xs-12 col-sm-6 col-md-4">
126 #helpVideoCard($card)
127 </div>
128 #end
129 </div>
130 {{/html}}
131
132 [[$services.localization.render('help.videos.more')>>https://www.youtube.com/playlist?list=PLhe7KI1rstRQeLSHxcTozZ0HJSk-mIYzt]]
133 {{/velocity}}