adding social buttons

This commit is contained in:
Frank Karlitschek 2016-08-10 05:27:13 -04:00 committed by Roeland Jago Douma
parent 4da01eeef6
commit 629c3dd39f
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
7 changed files with 188 additions and 4 deletions

1
core/img/facebook.svg Executable file
View File

@ -0,0 +1 @@
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 512 512" height="512px" id="Layer_1" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path clip-rule="evenodd" d="M256.23,512C396.81,512,512,396.81,512,256.23 C512,115.184,396.81,0,256.23,0C115.184,0,0,115.184,0,256.23C0,396.81,115.184,512,256.23,512L256.23,512z" fill="#3A5BA2" fill-rule="evenodd"/><path clip-rule="evenodd" d="M224.023,160.085c0-35.372,28.575-63.946,63.938-63.946h48.072 v63.946h-32.199c-8.608,0-15.873,7.257-15.873,15.873v32.192h48.072v63.938h-48.072v144.22h-63.938v-144.22h-48.065V208.15h48.065 V160.085z" fill="#FFFFFF" fill-rule="evenodd"/></g></svg>

After

Width:  |  Height:  |  Size: 837 B

1
core/img/googleplus.svg Executable file
View File

@ -0,0 +1 @@
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 128 128" height="128px" id="Layer_1" version="1.1" viewBox="0 0 128 128" width="128px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><circle cx="64" cy="64" fill="#D95032" r="64"/><g><g><path d="M49.424,97.875c-19.018,0-34.491-15.193-34.491-33.874c0-18.68,15.473-33.875,34.491-33.875 c8.318,0,16.354,2.952,22.624,8.309l-8.771,9.899c-3.838-3.279-8.758-5.086-13.853-5.086c-11.652,0-21.13,9.31-21.13,20.752 c0,11.441,9.479,20.75,21.13,20.75c9.858,0,16.311-4.723,18.407-13.197H49.587V58.432h32.347v6.562 C81.934,84.659,68.869,97.875,49.424,97.875z" fill="#FFFFFF"/></g><polygon fill="#FFFFFF" points="117.934,58.438 107.934,58.438 107.934,48.438 99.934,48.438 99.934,58.438 89.934,58.438 89.934,66.438 99.934,66.438 99.934,76.438 107.934,76.438 107.934,66.438 117.934,66.438 "/></g></g></svg>

After

Width:  |  Height:  |  Size: 1016 B

77
core/img/mail.svg Executable file
View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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="150.24112mm"
height="150.24112mm"
viewBox="0 0 532.35042 532.35042"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="mail.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.98994949"
inkscape:cx="-325.44712"
inkscape:cy="335.55007"
inkscape:document-units="px"
inkscape:current-layer="text4136"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1600"
inkscape:window-height="835"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<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 />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-101.01527,-213.93559)">
<rect
style="opacity:1;fill:#5cb85c;fill-opacity:1;fill-rule:evenodd;stroke:none"
id="rect4140"
width="532.3504"
height="532.3504"
x="101.01527"
y="213.93559"
ry="266.1752" />
<g
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:325.95983887px;line-height:125%;font-family:'DejaVu Sans';-inkscape-font-specification:'DejaVu Sans, Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="text4136">
<path
d="m 530.17038,434.63649 c -5.45692,6.00261 -11.64142,11.27763 -18.18972,15.82506 -30.37684,20.55439 -60.93558,41.29067 -90.58482,62.75455 -15.27937,11.27763 -34.19668,25.10181 -54.02348,25.10181 l -0.1819,0 -0.1819,0 c -19.8268,0 -38.74411,-13.82418 -54.02347,-25.10181 -29.64925,-21.64577 -60.20799,-42.20016 -90.40293,-62.75455 -6.7302,-4.54743 -12.9147,-9.82245 -18.37162,-15.82506 l 0,144.4264 c 0,16.00696 13.0966,29.10356 29.10356,29.10356 l 267.75272,0 c 16.00696,0 29.10356,-13.0966 29.10356,-29.10356 l 0,-144.4264 z m 0,-53.47778 c 0,-16.00696 -13.2785,-29.10356 -29.10356,-29.10356 l -267.75272,0 c -19.46301,0 -29.10356,15.27937 -29.10356,33.1053 0,16.55264 18.37162,37.10703 31.28632,45.8381 28.19408,19.6449 56.75194,39.2898 84.94601,59.1166 11.82332,8.18537 31.83202,24.91992 46.56569,24.91992 l 0.1819,0 0.1819,0 c 14.73367,0 34.74237,-16.73455 46.56569,-24.91992 28.19407,-19.8268 56.75193,-39.4717 85.1279,-59.1166 16.00696,-11.09573 31.10443,-29.46735 31.10443,-49.83984 z"
style=""
id="path4137" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.4 KiB

60
core/img/rss.svg Executable file
View File

@ -0,0 +1,60 @@
<?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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
enable-background="new 0 0 32 32"
version="1.1"
viewBox="0 0 32 32"
xml:space="preserve"
id="svg2"
inkscape:version="0.91 r13725"
sodipodi:docname="rss.svg"><metadata
id="metadata25"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
id="defs23" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="2560"
inkscape:window-height="1359"
id="namedview21"
showgrid="false"
inkscape:zoom="7.375"
inkscape:cx="16"
inkscape:cy="16"
inkscape:window-x="0"
inkscape:window-y="240"
inkscape:window-maximized="1"
inkscape:current-layer="g5" /><g
id="Flat_copy_6"><g
id="g5"><path
d="M16,0C7.163,0,0,7.163,0,16c0,8.836,7.163,16,16,16s16-7.164,16-16C32,7.163,24.837,0,16,0z"
fill="#FABC3D"
id="path7"
style="fill:#F8991D" /></g><path
d="M21.705,22.647h2.942c0-8.434-6.861-15.3-15.294-15.3v2.934C16.163,10.281,21.705,15.829,21.705,22.647z M11.39,22.652c1.128,0,2.039-0.906,2.039-2.029c0-1.117-0.911-2.033-2.039-2.033c-1.123,0-2.036,0.916-2.036,2.033 C9.353,21.746,10.266,22.652,11.39,22.652z M16.506,22.648L16.506,22.648h2.945c0-5.57-4.531-10.101-10.099-10.101v2.933 c1.91,0,3.705,0.746,5.057,2.1C15.761,18.929,16.506,20.732,16.506,22.648z"
fill="#FFFFFF"
id="path9" /><g
id="g11"><defs
id="defs13"><path
d="M50.696-47.198c-8.837,0-16,7.163-16,16c0,8.836,7.163,16,16,16s16-7.164,16-16 C66.696-40.034,59.533-47.198,50.696-47.198z"
id="SVGID_3_" /></defs><clipPath
id="SVGID_4_"><use
overflow="visible"
xlink:href="#SVGID_3_"
id="use17" /></clipPath><g
clip-path="url(#SVGID_4_)"
opacity="0.99"
id="g19" /></g></g></svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

1
core/img/twitter.svg Executable file
View File

@ -0,0 +1 @@
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 512 512" height="512px" id="Layer_1" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path clip-rule="evenodd" d="M256.23,512C396.81,512,512,396.81,512,256.23 C512,115.184,396.81,0,256.23,0C115.184,0,0,115.184,0,256.23C0,396.81,115.184,512,256.23,512L256.23,512z" fill="#1EBEF0" fill-rule="evenodd"/><path clip-rule="evenodd" d="M276.635,137.407c-9.077,6.351-15.873,15.42-20.865,25.396 l-2.265,5.898c-1.359,4.077-2.273,8.163-2.726,12.241c-0.453,2.265-0.453,4.085-0.906,5.898v3.625l0.453,5.898l0.906,7.71h-0.453 h-2.719h-1.813c-22.224-0.453-43.987-5.445-63.04-14.061l-11.334-5.437c-2.265-0.914-4.078-2.273-6.351-3.632 c-12.694-7.257-24.028-16.78-34.012-27.208c-6.343-6.804-12.241-14.061-17.232-21.771c-5.438,10.437-8.616,22.677-8.616,35.379 c0,4.531,0.453,9.069,1.359,13.6c0,2.265,0.453,4.085,0.914,5.898c4.078,13.6,11.334,25.849,21.31,34.918l4.992,4.539l-6.351-1.367 c-8.163-2.266-16.326-4.984-24.036-8.164c0.906,16.327,7.257,31.293,17.232,43.089c9.522,11.327,22.224,19.951,36.73,24.028 l-16.779,0.906l-14.054-0.453c10.429,25.403,34.465,43.995,63.033,46.261c-26.302,19.498-58.955,30.388-93.873,30.388 c25.849,15.873,55.33,25.841,87.521,27.653h20.865c99.31-5.438,177.77-87.522,177.77-188.199v-9.522 c3.625-3.171,7.25-6.343,10.89-9.975c8.608-7.71,16.326-16.78,22.67-26.302c-10.437,6.804-22.67,10.429-36.277,10.429h-0.453 h-0.453h0.453c12.232-8.163,21.763-20.404,26.747-34.465c-9.515,4.992-20.404,8.616-31.294,11.796l-1.359,0.453l-8.155,1.812 c-11.795-12.702-28.575-20.865-47.167-20.865h-0.452h-0.906c-4.984,0-9.983,0.453-14.968,1.367 c-7.249,1.812-14.514,4.984-20.404,8.616L276.635,137.407z" fill="#FFFFFF" fill-rule="evenodd"/></g></svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -159,6 +159,10 @@ table.nostyle td { padding: 0.2em 0; }
display: table-cell;
padding-right: 1em;
}
.social-button img {
padding: 10px 10px 10px 10px;
}
/* USERS */
#newgroup-init a span { margin-left: 20px; }

View File

@ -1,6 +1,4 @@
<?php
/** @var \OCP\IL10N $l */
if (OC_Util::getEditionString() === ''): ?>
<?php if (OC_Util::getEditionString() === ''): ?>
<p>
<?php print_unescaped(str_replace(
[
@ -15,7 +13,49 @@ if (OC_Util::getEditionString() === ''): ?>
'<a href="https://www.gnu.org/licenses/agpl-3.0.html" target="_blank" rel="noreferrer">',
'</a>',
],
$l->t('Developed by the {communityopen}Nextcloud community{linkclose}, the {githubopen}source code{linkclose} is licensed under the {licenseopen}AGPL{linkclose}.')
$l->t('Developed by the {communityopen}Nextcloud community{linkclose}, the {githubopen}source code{linkclose} is licensed under the {licenseopen}<abbr title="Affero General Public License">AGPL</abbr>{linkclose}.')
)); ?>
<?php print_unescaped(str_replace(
[
'{googleimage}',
'{facebookimage}',
'{twitterimage}',
'{rssimage}',
'{mailimage}',
'{googleopen}',
'{facebookopen}',
'{twitteropen}',
'{rssopen}',
'{newsletteropen}',
'{linkclose}',
],
[
image_path('core', 'googleplus.svg'),
image_path('core', 'facebook.svg'),
image_path('core', 'twitter.svg'),
image_path('core', 'rss.svg'),
image_path('core', 'mail.svg'),
'<a target="_blank" href="https://plus.google.com/b/104036748063781940910/104036748063781940910/about">',
'<a target="_blank" href="https://www.facebook.com/Nextcloud-1032807203462807/">',
'<a target="_blank" href="https://twitter.com/nextclouders">',
'<a target="_blank" href="https://nextcloud.com/blogfeed">',
'<a target="_blank" href="https://newsletter.nextcloud.com/?p=subscribe&amp;id=1">',
'</a>',
],
$l->t('
<p class="social-button">
{googleopen}<img width="50" src="{googleimage}" title="Follow us on Google Plus!" alt="Follow us on Google Plus!">{linkclose}
{facebookopen}<img width="50" src="{facebookimage}" title="Like our facebook page!" alt="Like our facebook page!">{linkclose}
{twitteropen}<img width="50" src="{twitterimage}" title="Subscribe to our twitter channel!" alt="Subscribe to our twitter channel!">{linkclose}
{rssopen}<img class="img-circle" width="50" src="{rssimage}" title="Subscribe to our news feed!" alt="Subscribe to our news feed!">{linkclose}
{newsletteropen}<img width="50" src="{mailimage}" title="Subscribe to our newsletter!" alt="Subscribe to our newsletter!">{linkclose}
</p>
')
)); ?>
</p>
<?php endif; ?>