summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2016-08-10 05:27:13 -0400
committerRoeland Jago Douma <roeland@famdouma.nl>2016-08-13 14:03:56 +0200
commit629c3dd39f383b2ca99757a13181ed8f79079ab3 (patch)
treea34c925b7695c9693c0fc44618999814214aabac /settings
parent4da01eeef642ebd48c9c8974e17e08db3de70687 (diff)
downloadnextcloud-server-629c3dd39f383b2ca99757a13181ed8f79079ab3.tar.gz
nextcloud-server-629c3dd39f383b2ca99757a13181ed8f79079ab3.zip
adding social buttons
Diffstat (limited to 'settings')
-rw-r--r--settings/css/settings.css4
-rw-r--r--settings/templates/settings.development.notice.php48
2 files changed, 48 insertions, 4 deletions
diff --git a/settings/css/settings.css b/settings/css/settings.css
index b006f1f5656..61b4d29231d 100644
--- a/settings/css/settings.css
+++ b/settings/css/settings.css
@@ -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; }
diff --git a/settings/templates/settings.development.notice.php b/settings/templates/settings.development.notice.php
index a96661e5de1..cbdd0e29fd6 100644
--- a/settings/templates/settings.development.notice.php
+++ b/settings/templates/settings.development.notice.php
@@ -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; ?>