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:
authorBjörn Schießle <bjoern@schiessle.org>2017-03-06 18:13:20 +0300
committerGitHub <noreply@github.com>2017-03-06 18:13:20 +0300
commita6ccd77f34c6dfb8f84717fef4966e01e6184db9 (patch)
tree88c2268e9f9c6decf86f6838af763c7853c88002
parenta6ea56351ef5b09162f70279a51ae15f09b36eff (diff)
parentc2b1392ceaaa78d7433be5cdf26ae422b0b38877 (diff)
Merge pull request #1 from nextcloud/add-diaspora
add diaspora
-rw-r--r--css/socialsharingdefault.css3
-rw-r--r--img/diaspora.svg1
-rw-r--r--js/socialsharingdefault.js8
3 files changed, 12 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 06d716d..b31a03a 100644
--- a/js/socialsharingdefault.js
+++ b/js/socialsharingdefault.js
@@ -13,4 +13,12 @@
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);
+
})();