欢迎图片

Changes for page PLC Editor2

Last modified by Mora Zhou on 2024/09/07 15:57

From version 20.5
edited by Stone Wu
on 2022/08/24 09:42
Change comment: There is no comment for this version
To version 20.3
edited by Stone Wu
on 2022/08/24 09:41
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -40,6 +40,49 @@
40 40  
41 41  = Video =
42 42  
43 +#macro (helpVideoCard $data)
44 + <div class="videoCard">
45 + <iframe src="$data.url" allowfullscreen title="$escapetool.xml($data.title)" role="presentation" ></iframe>
46 + <div class="videoCard-body">
47 + <div class="videoCard-title">
48 + $escapetool.xml($data.title)
49 + </div>
50 + <ul>
51 + #foreach ($topic in $data.topics)
52 + <li>$topic</li>
53 + #end
54 + </ul>
55 + </div>
56 + <div class="videoCard-footer">
57 + $services.icon.renderHTML('play')
58 + <a href="$data.url">$services.localization.render('help.videos.watch')</a>
59 + <span class="videoCard-duration">
60 + $escapetool.xml($data.duration)
61 + </span>
62 + </div>
63 + </div>
64 +#end
65 +{{/velocity}}
66 +
67 +{{velocity}}
68 +{{html clean="false"}}
69 +#set ($discard = $xwiki.ssx.use('Help.Videos.WebHome'))
70 +<div class="row">
71 + #foreach ($card in $videoCards)
72 + ## See http://getbootstrap.com/css/#grid-responsive-resets .
73 + #if ($foreach.index > 0 && $foreach.index % 2 == 0)
74 + <div class="clearfix visible-sm-block "></div>
75 + #end
76 + #if ($foreach.index > 0 && $foreach.index % 3 == 0)
77 + <div class="clearfix visible-md-block visible-lg-block"></div>
78 + #end
79 + <div class="col-xs-12 col-sm-6 col-md-4">
80 + #helpVideoCard($card)
81 + </div>
82 + #end
83 +</div>
84 +{{/html}}
85 +
43 43  [[$services.localization.render('help.videos.more')>>https://www.youtube.com/playlist?list=PL_Bpnb2RgaktxcT6G9n1meunomIw3T81_]]
44 44  {{/velocity}}
45 45  
... ... @@ -96,48 +96,5 @@
96 96  }
97 97  
98 98  ])
99 -#macro (helpVideoCard $data)
100 - <div class="videoCard">
101 - <iframe src="$data.url" allowfullscreen title="$escapetool.xml($data.title)" role="presentation" ></iframe>
102 - <div class="videoCard-body">
103 - <div class="videoCard-title">
104 - $escapetool.xml($data.title)
105 - </div>
106 - <ul>
107 - #foreach ($topic in $data.topics)
108 - <li>$topic</li>
109 - #end
110 - </ul>
111 - </div>
112 - <div class="videoCard-footer">
113 - $services.icon.renderHTML('play')
114 - <a href="$data.url">$services.localization.render('help.videos.watch')</a>
115 - <span class="videoCard-duration">
116 - $escapetool.xml($data.duration)
117 - </span>
118 - </div>
119 - </div>
120 -#end
121 -{{/velocity}}
122 122  
123 -{{velocity}}
124 -{{html clean="false"}}
125 -#set ($discard = $xwiki.ssx.use('Help.Videos.WebHome'))
126 -<div class="row">
127 - #foreach ($card in $videoCards)
128 - ## See http://getbootstrap.com/css/#grid-responsive-resets .
129 - #if ($foreach.index > 0 && $foreach.index % 2 == 0)
130 - <div class="clearfix visible-sm-block "></div>
131 - #end
132 - #if ($foreach.index > 0 && $foreach.index % 3 == 0)
133 - <div class="clearfix visible-md-block visible-lg-block"></div>
134 - #end
135 - <div class="col-xs-12 col-sm-6 col-md-4">
136 - #helpVideoCard($card)
137 - </div>
138 - #end
139 -</div>
140 -{{/html}}
141 141  
142 -
143 -