Merge pull request #816 from nextcloud/socialbuttons
adding social buttons
This commit is contained in:
commit
282ca057d2
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="512px" viewBox="0 0 512 512" width="512px" version="1.1" enable-background="new 0 0 512 512"><g clip-rule="evenodd" fill-rule="evenodd"><path d="m256.23 512c140.58 0 255.77-115.19 255.77-255.77 0-141.05-115.19-256.23-255.77-256.23-141.05 0-256.23 115.18-256.23 256.23 0 140.58 115.18 255.77 256.23 255.77z" fill="#3A5BA2"/><path d="m224.02 160.08c0-35.372 28.575-63.946 63.938-63.946h48.072v63.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.065v-63.93h48.065v-48.07z" fill="#fff"/></g></svg>
|
After Width: | Height: | Size: 774 B |
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="128px" viewBox="0 0 128 128" width="128px" version="1.1" enable-background="new 0 0 128 128"><circle cy="64" cx="64" r="64" fill="#D95032"/><path d="m49.424 97.875c-19.018 0-34.491-15.193-34.491-33.874 0-18.68 15.473-33.875 34.491-33.875 8.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.086-11.652 0-21.13 9.31-21.13 20.752 0 11.441 9.479 20.75 21.13 20.75 9.858 0 16.311-4.723 18.407-13.197h-18.244v-13.121h32.347v6.562c0 19.665-13.065 32.881-32.51 32.881z" fill="#fff"/><polygon points="117.93 58.438 107.93 58.438 107.93 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.93 76.438 107.93 66.438 117.93 66.438" fill="#fff"/></svg>
|
After Width: | Height: | Size: 935 B |
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="150.24mm" width="150.24mm" version="1.1" viewBox="0 0 532.35042 532.35042">
|
||||
<g transform="translate(-101.02 -213.94)">
|
||||
<rect fill-rule="evenodd" ry="266.18" height="532.35" width="532.35" y="213.94" x="101.02" fill="#5cb85c"/>
|
||||
<g fill="#fff">
|
||||
<path style="" d="m530.17 434.64c-5.4569 6.0026-11.641 11.278-18.19 15.825-30.377 20.554-60.936 41.291-90.585 62.755-15.279 11.278-34.197 25.102-54.023 25.102h-0.1819-0.1819c-19.827 0-38.744-13.824-54.023-25.102-29.649-21.646-60.208-42.2-90.403-62.755-6.7302-4.5474-12.915-9.8224-18.372-15.825v144.43c0 16.007 13.097 29.104 29.104 29.104h267.75c16.007 0 29.104-13.097 29.104-29.104v-144.43zm0-53.478c0-16.007-13.278-29.104-29.104-29.104h-267.75c-19.463 0-29.104 15.279-29.104 33.105 0 16.553 18.372 37.107 31.286 45.838 28.194 19.645 56.752 39.29 84.946 59.117 11.823 8.1854 31.832 24.92 46.566 24.92h0.1819 0.1819c14.734 0 34.742-16.735 46.566-24.92 28.194-19.827 56.752-39.472 85.128-59.117 16.007-11.096 31.104-29.467 31.104-49.84z"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xml:space="preserve" enable-background="new 0 0 32 32" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32"><path d="m16 0c-8.837 0-16 7.163-16 16 0 8.836 7.163 16 16 16s16-7.164 16-16c0-8.837-7.163-16-16-16z" fill="#F8991D"/><path d="m21.705 22.647h2.942c0-8.434-6.861-15.3-15.294-15.3v2.934c6.81 0 12.352 5.548 12.352 12.366zm-10.315 0.005c1.128 0 2.039-0.906 2.039-2.029 0-1.117-0.911-2.033-2.039-2.033-1.123 0-2.036 0.916-2.036 2.033-0.001 1.123 0.912 2.029 2.036 2.029zm5.116-0.004h2.945c0-5.57-4.531-10.101-10.099-10.101v2.933c1.91 0 3.705 0.746 5.057 2.1 1.352 1.349 2.097 3.152 2.097 5.068z" fill="#fff"/><defs><path id="a" d="m50.696-47.198c-8.837 0-16 7.163-16 16 0 8.836 7.163 16 16 16s16-7.164 16-16c0-8.836-7.163-16-16-16z"/></defs><clipPath><use overflow="visible" xlink:href="#a"/></clipPath></svg>
|
After Width: | Height: | Size: 933 B |
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="512px" viewBox="0 0 512 512" width="512px" version="1.1" enable-background="new 0 0 512 512"><g clip-rule="evenodd" fill-rule="evenodd"><path d="m256.23 512c140.58 0 255.77-115.19 255.77-255.77 0-141.05-115.19-256.23-255.77-256.23-141.05 0-256.23 115.18-256.23 256.23 0 140.58 115.18 255.77 256.23 255.77z" fill="#1EBEF0"/><path d="m276.64 137.41c-9.077 6.351-15.873 15.42-20.865 25.396l-2.265 5.898c-1.359 4.077-2.273 8.163-2.726 12.241-0.453 2.265-0.453 4.085-0.906 5.898v3.625l0.453 5.898 0.906 7.71h-4.985c-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-12.694-7.257-24.028-16.78-34.012-27.208-6.343-6.804-12.241-14.061-17.232-21.771-5.438 10.437-8.616 22.677-8.616 35.379 0 4.531 0.453 9.069 1.359 13.6 0 2.265 0.453 4.085 0.914 5.898 4.078 13.6 11.334 25.849 21.31 34.918l4.992 4.539-6.351-1.367c-8.163-2.266-16.326-4.984-24.036-8.164 0.906 16.327 7.257 31.293 17.232 43.089 9.522 11.327 22.224 19.951 36.73 24.028l-16.779 0.906-14.054-0.453c10.429 25.403 34.465 43.995 63.033 46.261-26.302 19.498-58.955 30.388-93.873 30.388 25.849 15.873 55.33 25.841 87.521 27.653h20.865c99.31-5.438 177.77-87.522 177.77-188.2v-9.522c3.625-3.171 7.25-6.343 10.89-9.975 8.608-7.71 16.326-16.78 22.67-26.302-10.437 6.804-22.67 10.429-36.277 10.429h-0.906 0.453c12.232-8.163 21.763-20.404 26.747-34.465-9.515 4.992-20.404 8.616-31.294 11.796l-1.359 0.453-8.155 1.812c-11.795-12.702-28.575-20.865-47.167-20.865h-1.358c-4.984 0-9.983 0.453-14.968 1.367-7.249 1.812-14.514 4.984-20.404 8.616l-4.54 3.58z" fill="#fff"/></g></svg>
|
After Width: | Height: | Size: 1.7 KiB |
|
@ -160,6 +160,15 @@ table.nostyle td { padding: 0.2em 0; }
|
|||
padding-right: 1em;
|
||||
}
|
||||
|
||||
.social-button {
|
||||
padding-left: 0;
|
||||
margin-left: -10px
|
||||
}
|
||||
.social-button img {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
|
||||
/* USERS */
|
||||
#newgroup-init a span { margin-left: 20px; }
|
||||
#newgroup-init a span:before {
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
<?php
|
||||
/** @var \OCP\IL10N $l */
|
||||
if (OC_Util::getEditionString() === ''): ?>
|
||||
<?php if (OC_Util::getEditionString() === ''): ?>
|
||||
<p>
|
||||
<?php print_unescaped(str_replace(
|
||||
[
|
||||
|
@ -18,4 +16,52 @@ if (OC_Util::getEditionString() === ''): ?>
|
|||
$l->t('Developed by the {communityopen}Nextcloud community{linkclose}, the {githubopen}source code{linkclose} is licensed under the {licenseopen}AGPL{linkclose}.')
|
||||
)); ?>
|
||||
</p>
|
||||
|
||||
<p class="social-button">
|
||||
<?php print_unescaped(str_replace(
|
||||
[
|
||||
'{googleimage}',
|
||||
'{facebookimage}',
|
||||
'{twitterimage}',
|
||||
'{rssimage}',
|
||||
'{mailimage}',
|
||||
'{googleopen}',
|
||||
'{facebookopen}',
|
||||
'{twitteropen}',
|
||||
'{rssopen}',
|
||||
'{newsletteropen}',
|
||||
'{linkclose}',
|
||||
'{googletext}',
|
||||
'{facebooktext}',
|
||||
'{twittertext}',
|
||||
'{rsstext}',
|
||||
'{mailtext}',
|
||||
],
|
||||
[
|
||||
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" rel="noreferrer noopener" href="https://plus.google.com/b/104036748063781940910/104036748063781940910/about">',
|
||||
'<a target="_blank" rel="noreferrer noopener" href="https://www.facebook.com/Nextcloud-1032807203462807/">',
|
||||
'<a target="_blank" rel="noreferrer noopener" href="https://twitter.com/nextclouders">',
|
||||
'<a target="_blank" rel="noreferrer noopener" href="https://nextcloud.com/blogfeed">',
|
||||
'<a target="_blank" rel="noreferrer noopener" href="https://newsletter.nextcloud.com/?p=subscribe&id=1">',
|
||||
'</a>',
|
||||
$l->t('Follow us on Google Plus!'),
|
||||
$l->t('Like our facebook page!'),
|
||||
$l->t('Subscribe to our twitter channel!'),
|
||||
$l->t('Subscribe to our news feed!'),
|
||||
$l->t('Subscribe to our newsletter!'),
|
||||
|
||||
],
|
||||
'{googleopen}<img width="50" src="{googleimage}" title="{googletext}" alt="{googletext}">{linkclose}
|
||||
{facebookopen}<img width="50" src="{facebookimage}" title="{facebooktext}" alt="{facebooktext}">{linkclose}
|
||||
{twitteropen}<img width="50" src="{twitterimage}" title="{twittertext}" alt="{twittertext}">{linkclose}
|
||||
{rssopen}<img class="img-circle" width="50" src="{rssimage}" title="{rsstext}" alt="{rsstext}">{linkclose}
|
||||
{newsletteropen}<img width="50" src="{mailimage}" title="{mailtext}" alt="{mailtext}">{linkclose}'
|
||||
)); ?>
|
||||
</p>
|
||||
|
||||
<?php endif; ?>
|
||||
|
|
Loading…
Reference in New Issue