Wiki source code of Logo

Last modified by Ecaterina Moraru (Valica) on 2017/09/20

Show last authors
1 {{velocity}}
2 #if("$!request.act" == 'svg')
3 #set($width = $mathtool.toInteger($request.width))
4 #set($finput = $request.finput)
5 #set($foutput = $request.foutput)
6 #if($width > 4000)
7 Size is too large!
8 #elseif ("$!finput"=='')
9 No input file name specified
10 #elseif ("$!foutput"=='')
11 No output file name specified
12 #else
13 #set($svgContentString = $doc.getAttachment("$finput").getContentAsString())
14 #if ( "$!svgContentString" == '')
15 Input file '$finput' does not exist
16 #else
17 $response.addHeader("Content-disposition", "inline; filename=$foutput")
18 $xwiki.svg.outputSVGImage($svgContentString, "png", 0, $width)
19 #end
20 #end
21 #else
22 #macro (svg_getLogo $file $defaultWidth)
23 #if ("$!{file}" != '')
24 [[image:${file}.png]]
25
26 {{html wiki='true'}}
27 <form method='get' action='' name="$file" class='xformInline'>
28 <div>
29 <input type='hidden' name='xpage' value='plain'/>
30 <input type='hidden' name='act' value='svg'/>
31 <input type='hidden' name='finput' value="${file}.svg"/>
32 <input type='hidden' name='foutput' value="${file}.png"/>
33 <label>Width: <input type='text' name='width' value=#if("$!defaultWidth"=='')200#else${defaultWidth}#end /></label>
34 <span class='buttonwrapper'><input type='submit' value='Get Logo' class='button'/></span>
35 </div>
36 </form>
37 {{/html}}
38
39 #end
40 #end
41
42 (% class='half column'%)(((
43 == Logo Variations ==
44
45 #svg_getLogo('logo-xwikiorange', 200)
46 #svg_getLogo('logo-xwiki', 200)
47 #svg_getLogo('logo-x', 70)
48 #svg_getLogo('logo-x-white', 70)
49 #svg_getLogo('logo-xwiki-white', 200)
50 #svg_getLogo('logo-x-gray', 70)
51 #svg_getLogo('logo-xwiki-gray', 200)
52
53 )))
54
55 (% class='half column'%)(((
56 == Logo Colors ==
57
58 {{html}}
59 <div class="palette">
60 <div class="paletteItem">
61 <div class="paletteItemColor x">1</div>
62 <div class="paletteItemDetails">
63 <strong>'X' text</strong>
64 <div><span>RGB</span> 80, 80, 82</div>
65 <div><span>HEX</span> #505052</div>
66 </div>
67 </div>
68 <div class="paletteItem">
69 <div class="paletteItemColor wiki">2</div>
70 <div class="paletteItemDetails">
71 <strong>'wiki' text</strong>
72 <div><span>RGB</span> 153, 153, 153</div>
73 <div><span>HEX</span> #999999</div>
74 </div>
75 </div>
76 <div class="paletteItem">
77 <div class="paletteItemColor north">3</div>
78 <div class="paletteItemDetails">
79 <strong>North dash</strong>
80 <div><span>RGB</span> 112, 183, 0</div>
81 <div><span>HEX</span> #70B700</div>
82 </div>
83 </div>
84 <div class="paletteItem">
85 <div class="paletteItemColor east">4</div>
86 <div class="paletteItemDetails">
87 <strong>East dash</strong>
88 <div><span>RGB</span> 255, 119, 0</div>
89 <div><span>HEX</span> #FF7700</div>
90 </div>
91 </div>
92 <div class="paletteItem">
93 <div class="paletteItemColor south">5</div>
94 <div class="paletteItemDetails">
95 <strong>South dash</strong>
96 <div><span>RGB</span> 255, 0, 0</div>
97 <div><span>HEX</span> #FF0000</div>
98 </div>
99 </div>
100 <div class="paletteItem">
101 <div class="paletteItemColor west">6</div>
102 <div class="paletteItemDetails">
103 <strong>West dash</strong>
104 <div><span>RGB</span> 0, 135, 203</div>
105 <div><span>HEX</span> #0087CB</div>
106 </div>
107 </div>
108 </div>
109 <div class="clearfloats"></div>
110 {{/html}}
111 )))
112
113 (% class='clearfloats'%)((()))
114 #end
115 {{/velocity}}

Get Connected