Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding social buttons #816

Merged
merged 6 commits into from
Aug 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions core/img/facebook.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions core/img/googleplus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions core/img/mail.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions core/img/rss.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions core/img/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions settings/css/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
52 changes: 49 additions & 3 deletions settings/templates/settings.development.notice.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
/** @var \OCP\IL10N $l */
if (OC_Util::getEditionString() === ''): ?>
<?php if (OC_Util::getEditionString() === ''): ?>
<p>
<?php print_unescaped(str_replace(
[
Expand All @@ -18,4 +16,52 @@
$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&amp;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; ?>