Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/socialsharing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-03-07 10:59:07 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2017-03-07 10:59:07 +0300
commitae563f9396b6fde83eac2aec8894cba5d6063373 (patch)
treee4572e6ec0e5fd180d623756f4bfb6f25615a73d
parentc379ccbe2f78e29fd0a03f190430453af3721963 (diff)
parent0980a385f7ef90e170a526f810c23061d4f33c5f (diff)
Merge branch 'master' of github.com:nextcloud/socialsharingdefault
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r--css/socialsharingdefault.css3
-rw-r--r--img/diaspora.svg1
-rw-r--r--js/socialsharingdefault.js7
3 files changed, 11 insertions, 0 deletions
diff --git a/css/socialsharingdefault.css b/css/socialsharingdefault.css
index 9ed7b4b..f25bf4c 100644
--- a/css/socialsharingdefault.css
+++ b/css/socialsharingdefault.css
@@ -7,3 +7,6 @@
.icon-social-googleplus {
background-image: url('../img/googleplus.svg');
}
+.icon-social-diaspora {
+ background-image: url('../img/diaspora.svg');
+}
diff --git a/img/diaspora.svg b/img/diaspora.svg
new file mode 100644
index 0000000..af7d184
--- /dev/null
+++ b/img/diaspora.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><path d="M15.957 31c-.897 0-1.345-.448-1.345-1.345L14.715 19l-9.103 5.69c-.69.482-1.276.345-1.76-.414l-.516-.828c-.483-.69-.345-1.276.414-1.758L13.164 16l-9.517-5.69c-.69-.413-.828-1-.414-1.758l.62-1.035c.345-.55.897-.62 1.656-.207L14.714 13l-.103-10.655c0-.897.448-1.345 1.345-1.345h.827c.897 0 1.345.448 1.345 1.345L18.025 13l9.103-5.793c.62-.345 1.206-.207 1.758.414l.517.828c.345.76.207 1.345-.414 1.76L19.475 16l9.62 5.793c.69.414.828.966.414 1.655l-.517.93c-.482.76-1.102.898-1.86.415L18.025 19l.103 10.655c0 .897-.45 1.345-1.346 1.345h-.827" opacity=".5"/></svg> \ No newline at end of file
diff --git a/js/socialsharingdefault.js b/js/socialsharingdefault.js
index 31b73d9..b5f70e7 100644
--- a/js/socialsharingdefault.js
+++ b/js/socialsharingdefault.js
@@ -35,6 +35,13 @@
iconClass: 'icon-social-facebook'
});
OC.Share.Social.Collection.add(facebook);
+ var diaspora = new OC.Share.Social.Model({
+ key: 'diaspora',
+ url: 'https://share.diasporafoundation.org/?url={{reference}}',
+ name: 'Diaspora',
+ iconClass: 'icon-social-diaspora'
+ });
+ OC.Share.Social.Collection.add(diaspora);
var googleplus = new OC.Share.Social.Model({
key: 'googleplus',
url: 'https://plus.google.com/share?url={{reference}}',