bufferapp integration

This commit is contained in:
Athou
2013-05-15 22:39:02 +02:00
parent 121daacf94
commit 62eae4c630
3 changed files with 22 additions and 13 deletions

View File

@@ -7,7 +7,7 @@ module.directive('popup', function() {
return {
link : function(scope, elm, attrs) {
elm.bind('click', function(event) {
window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');
window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800');
event.preventDefault();
});
}

View File

@@ -47,24 +47,27 @@
</label>
<span class="share-buttons" ui-if="settingsService.settings.socialButtons">
<a href="mailto:?subject={{entry.title}}&body={{entry.url}}" popup>
<a href="mailto:?subject={{entry.title|escape}}&body={{entry.url|escape}}" popup>
<i class="icon-envelope"></i>
</a>
<a href="http://www.facebook.com/sharer.php?u=={{entry.url|escape}}" popup>
<i class="icon-facebook"></i>
</a>
<a href="http://twitter.com/share?text={{entry.title}}&url={{entry.url|escape}}" popup>
<a href="http://twitter.com/share?text={{entry.title|escape}}&url={{entry.url|escape}}" popup>
<i class="icon-twitter"></i>
</a>
<a href="https://plus.google.com/share?url={{entry.url|escape}}" popup>
<i class="icon-google-plus"></i>
</a>
<a href="https://getpocket.com/save?url={{entry.url|escape}}&title={{entry.title}}" popup>
<a href="https://getpocket.com/save?url={{entry.url|escape}}&title={{entry.title|escape}}" popup>
<i class="icon-pocket"></i>
</a>
<a href="https://www.instapaper.com/hello2?url={{entry.url|escape}}&title={{entry.title}}" popup>
<a href="https://www.instapaper.com/hello2?url={{entry.url|escape}}&title={{entry.title|escape}}" popup>
<i class="icon-instapaper"></i>
</a>
<a href="https://bufferapp.com/add?url={{entry.url|escape}}&text={{entry.title|escape}}" popup>
<i class="icon-buffer"></i>
</a>
</span>
</div>
</div>

View File

@@ -12,15 +12,14 @@
/* Reference icons from font-files
** Base 64-encoded version recommended to resolve cross-site font-loading issues
*/
@font-face {
font-family: 'zocial';
src: url('zocial-regular-webfont.eot'),
url('zocial-regular-webfont.woff'),
url('zocial-regular-webfont.ttf') format('truetype'),
url('zocial-regular-webfont.svg#zocialregular') format('svg');
font-weight: normal;
font-style: normal;
font-family: 'zocial';
src: url('zocial-regular-webfont.eot'),
url('zocial-regular-webfont.woff'), url('zocial-regular-webfont.ttf')
format('truetype'), url('zocial-regular-webfont.svg#zocialregular')
format('svg');
font-weight: normal;
font-style: normal;
}
.icon-instapaper:before {
@@ -28,8 +27,15 @@
font-family: 'zocial';
content: "I";
}
.icon-pocket:before {
font-style: normal;
font-family: 'zocial';
content: "\00E7";
}
.icon-buffer:before {
font-style: normal;
font-family: 'zocial';
content: "\00E5";
}