Close #12 : Logo par défaut changé en "Dokuwiki", en svg en plus.

This commit is contained in:
Zatalyz 2020-09-05 12:15:07 +02:00
parent 102a7600e5
commit 050c0152b6
3 changed files with 112 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

111
images/logo.svg Normal file
View file

@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="158.74973mm"
height="17.828419mm"
viewBox="0 0 158.74972 17.828419"
version="1.1"
id="svg944"
inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
sodipodi:docname="dokuwiki.svg">
<defs
id="defs938" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1"
inkscape:cx="320.38847"
inkscape:cy="228.07884"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0" />
<metadata
id="metadata941">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-19.856269,-77.258069)">
<g
id="g1650"
transform="matrix(0.35216563,0,0,0.35216563,12.863574,50.050432)">
<path
inkscape:connector-curvature="0"
id="path2998-2-4-1-8-1-4-8-8-9-1-4-9"
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:Sans;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:#8530bf;fill-opacity:1;stroke:none;stroke-width:10.3336;marker:none;enable-background:accumulate"
d="m 186.0936,77.351243 c -8.15463,6.49319 -16.30926,12.98638 -24.4639,19.47957 l -4.75344,3.771747 4.46927,4.08176 c 8.42771,7.71445 16.85542,15.42889 25.28312,23.14334 l 15.31299,0.0109 c -9.57428,-8.76692 -20.14124,-18.44279 -29.15169,-26.69342 10.00257,-7.962347 20.00513,-15.924717 30.0077,-23.887067 z m -41.33343,8.24345 v 42.288467 h 10.33356 V 77.352053 Z"
sodipodi:nodetypes="cccccccccccccc" />
<path
inkscape:connector-curvature="0"
id="path2998-2-4-1-8-1-4-8-8-9-1-4-4-0"
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:Sans;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:#8530bf;fill-opacity:1;stroke:none;stroke-width:10.3336;marker:none;enable-background:accumulate"
d="m 379.87161,77.352046 v 50.531114 h 10.3336 V 77.352046 Z"
sodipodi:nodetypes="ccccc" />
<g
id="g3175-9-3-6"
transform="matrix(0.77501708,0,0,-0.77501708,44.021314,879.59415)"
style="fill:#8530bf;fill-opacity:1">
<path
inkscape:connector-curvature="0"
id="path2998-2-4-1-8-1-4-8-8-9-4-9-8-1-4"
d="m 374.29765,969.92898 c -5.7248,-0.0262 -11.09572,1.68258 -14.93333,5.2 -3.83236,-3.46695 -9.18252,-5.15939 -14.86667,-5.13333 h -0.0667 -44.53334 -6.66666 v 6.66666 58.53329 h 13.33333 v -51.86662 h 37.93333 0.0333 c 3.79509,-0.0264 5.19703,0.81773 6.2,1.96667 1.00298,1.14894 1.96667,3.49521 1.96667,7.66666 v 42.23329 h 13.33333 v -0.067 h 0.0667 v -42.23335 c 0,-4.17146 0.96369,-6.51773 1.96667,-7.66667 1.00297,-1.14894 2.40491,-1.99312 6.2,-1.96667 h 29.8 c 3.79508,-0.0264 5.19702,0.81773 6.2,1.96667 1.00297,1.14894 1.96666,3.49521 1.96666,7.66667 v 42.23335 h 13.33334 v -42.23335 c 0,-6.16466 -1.39525,-11.99851 -5.26667,-16.43334 -3.85791,-4.41931 -9.86029,-6.56269 -16.26667,-6.53333 H 374.2976 Z"
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:Sans;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:#8530bf;fill-opacity:1;stroke:none;stroke-width:13.3333;marker:none;enable-background:accumulate" />
</g>
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:Sans;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:#8530bf;fill-opacity:1;stroke:none;stroke-width:10.3336;marker:none;enable-background:accumulate"
d="m 248.56088,127.88293 c 4.96508,0.0227 9.61701,-1.6384 12.60695,-5.06344 3.00045,-3.43707 4.08176,-7.9584 4.08176,-12.73612 V 77.351822 h -10.33356 v 32.731548 c 0,3.23295 -0.74687,5.05136 -1.52419,5.9418 -0.77732,0.89045 -1.86383,1.5447 -4.80511,1.5242 h -23.0955 c -2.94127,0.0205 -4.02778,-0.63375 -4.80513,-1.5242 -0.77732,-0.89044 -1.52418,-2.70885 -1.52418,-5.9418 V 77.351822 h -10.33357 v 32.731548 c 0,4.77772 1.0813,9.29905 4.08176,12.73612 2.98995,3.42504 7.64188,5.0862 12.60694,5.06344 z"
id="path2998-2-4-1-8-1-4-8-8-9-1-4-2-5-0-7-2"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cssccssccssccsscc" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:Sans;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:#8530bf;fill-opacity:1;stroke:none;stroke-width:10.3336;marker:none;enable-background:accumulate"
d="m 138.72947,95.151369 c 0,-4.77771 -1.08132,-9.29905 -4.08178,-12.73611 -2.98992,-3.42504 -7.64188,-5.08618 -12.60692,-5.06345 H 98.996922 c -4.965069,-0.0227 -9.616969,1.63841 -12.606949,5.06345 -3.00045,3.43706 -4.08173,7.9584 -4.08173,12.73611 v 14.932001 c 0,4.77772 1.08128,9.29905 4.08173,12.73612 2.98998,3.42505 7.64188,5.0862 12.606949,5.06344 h 23.043848 c 4.96504,0.0227 9.617,-1.63839 12.60692,-5.06344 3.00046,-3.43707 4.08178,-7.9584 4.08178,-12.73612 z m -10.33359,14.932001 c 0,3.23295 -0.74684,5.05135 -1.52416,5.9418 -0.77734,0.89044 -1.86388,1.5447 -4.80515,1.5242 H 98.971092 c -2.941259,0.0205 -4.027779,-0.63376 -4.805099,-1.5242 -0.77731,-0.89045 -1.52421,-2.70885 -1.52421,-5.9418 V 95.151369 c 0,-3.23295 0.7469,-5.05135 1.52421,-5.9418 0.77732,-0.89044 1.86384,-1.5447 4.805099,-1.52419 h 23.095478 c 2.94127,-0.0205 4.02781,0.63375 4.80515,1.52419 0.77732,0.89045 1.52416,2.70885 1.52416,5.9418 z"
id="path2998-2-4-1-8-1-4-8-8-9-1-4-2-5-0-7-5"
inkscape:connector-curvature="0"
sodipodi:nodetypes="csccsccsccscccsccsccsccscc" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:Sans;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:#8530bf;fill-opacity:1;stroke:none;stroke-width:10.3336;marker:none;enable-background:accumulate"
d="m 76.277534,95.151368 c 0,-4.77771 -1.0813,-9.29904 -4.08175,-12.73611 -2.98995,-3.42505 -7.64188,-5.08621 -12.60692,-5.06345 h -0.0517 -29.347325 -5.16678 -5.16679 v 5.16678 40.197552 5.16679 h 10.33357 29.347325 0.0517 c 4.96504,0.0227 9.61697,-1.63841 12.60692,-5.06345 3.00045,-3.43706 4.08175,-7.9584 4.08175,-12.73612 z m -10.33356,14.931992 c 0,3.23296 -0.74687,5.05136 -1.52419,5.9418 -0.77735,0.89045 -1.86386,1.54471 -4.8051,1.5242 h -0.0259 -29.398995 V 87.685378 h 29.398995 0.0259 c 2.94124,-0.0205 4.02775,0.63375 4.8051,1.52419 0.77732,0.89045 1.52419,2.70885 1.52419,5.9418 z"
id="path2998-2-4-1-8-1-4-8-8-9-1-4-2-5-0-8"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cscccccccccccscccsccccccscc" />
<path
sodipodi:nodetypes="cccccccccccccc"
d="m 437.56935,77.351239 c -8.15463,6.49319 -16.30926,12.986383 -24.4639,19.479573 l -4.75344,3.771748 4.46927,4.08176 c 8.42771,7.71445 16.85542,15.42889 25.28312,23.14333 l 15.31299,0.0109 c -9.57428,-8.76692 -20.14124,-18.44278 -29.15169,-26.69341 10.00257,-7.962348 20.00513,-15.924721 30.0077,-23.887071 z m -41.33343,8.24345 v 42.288471 h 10.33356 V 77.352049 Z"
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:Sans;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:#8530bf;fill-opacity:1;stroke:none;stroke-width:10.3336;marker:none;enable-background:accumulate"
id="path2998-2-4-1-8-1-4-8-8-9-1-4-9-3"
inkscape:connector-curvature="0" />
<path
sodipodi:nodetypes="ccccc"
d="m 460.30411,77.352053 v 50.531107 h 10.3336 V 77.352053 Z"
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:Sans;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:#8530bf;fill-opacity:1;stroke:none;stroke-width:10.3336;marker:none;enable-background:accumulate"
id="path2998-2-4-1-8-1-4-8-8-9-1-4-4-0-6"
inkscape:connector-curvature="0" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -55,7 +55,7 @@ $showSidebar = $hasSidebar && ($ACT=='show');
<div class="headings">
<h1><?php
// get logo either out of the template images folder or data/media folder
$logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/logo.png'), false);
$logo = tpl_getMediaFile(array(':wiki:logo.svg', ':wiki:logo.png', ':logo.png', 'images/logo.svg', 'images/logo.png'), false);
// display logo and wiki title in a link to the home page
// Add <span>'.$conf['title'].'</span> after img to have Wiki Title display