Version Description
- ADDED: Facebook Like Counter, Twitter Counter, Google Plus Counter, Linkedin Counter,StumbleUpon Counter and Digg Counter
Download this release
Release Info
| Developer | sociable |
| Plugin | |
| Version | 4.1.0 |
| Comparing to | |
| See all releases | |
Code changes from version 4.0.6 to 4.1.0
- css/border-radius.htc +143 -0
- css/sociable.css +56 -4
- includes/class-sociable_Admin_Options.php +19 -6
- includes/sociable_output.php +753 -340
- js/sociable.js +12 -0
- languages/sociable-de_DE.mo +0 -0
- languages/sociable-de_DE.po +247 -0
- readme.txt +7 -4
- sociable.php +2 -2
css/border-radius.htc
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
--Do not remove this if you are using--
|
| 2 |
+
Original Author: Remiz Rahnas
|
| 3 |
+
Original Author URL: http://www.htmlremix.com
|
| 4 |
+
Published date: 2008/09/24
|
| 5 |
+
|
| 6 |
+
Changes by Nick Fetchak:
|
| 7 |
+
- IE8 standards mode compatibility
|
| 8 |
+
- VML elements now positioned behind original box rather than inside of it - should be less prone to breakage
|
| 9 |
+
Published date : 2009/11/18
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
<public:attach event="oncontentready" onevent="oncontentready('v08vnSVo78t4JfjH')" />
|
| 13 |
+
<script type="text/javascript">
|
| 14 |
+
|
| 15 |
+
// findPos() borrowed from http://www.quirksmode.org/js/findpos.html
|
| 16 |
+
function findPos(obj) {
|
| 17 |
+
var curleft = curtop = 0;
|
| 18 |
+
|
| 19 |
+
if (obj.offsetParent) {
|
| 20 |
+
do {
|
| 21 |
+
curleft += obj.offsetLeft;
|
| 22 |
+
curtop += obj.offsetTop;
|
| 23 |
+
} while (obj = obj.offsetParent);
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
return({
|
| 27 |
+
'x': curleft,
|
| 28 |
+
'y': curtop
|
| 29 |
+
});
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
function oncontentready(classID) {
|
| 33 |
+
if (this.className.match(classID)) { return(false); }
|
| 34 |
+
|
| 35 |
+
if (!document.namespaces.v) { document.namespaces.add("v", "urn:schemas-microsoft-com:vml"); }
|
| 36 |
+
|
| 37 |
+
this.className = this.className.concat(' ', classID);
|
| 38 |
+
var arcSize = Math.min(parseInt(this.currentStyle['-moz-border-radius'] ||
|
| 39 |
+
this.currentStyle['-webkit-border-radius'] ||
|
| 40 |
+
this.currentStyle['border-radius'] ||
|
| 41 |
+
this.currentStyle['-khtml-border-radius']) /
|
| 42 |
+
Math.min(this.offsetWidth, this.offsetHeight), 1);
|
| 43 |
+
var fillColor = this.currentStyle.backgroundColor;
|
| 44 |
+
var fillSrc = this.currentStyle.backgroundImage.replace(/^url\("(.+)"\)$/, '$1');
|
| 45 |
+
var strokeColor = this.currentStyle.borderColor;
|
| 46 |
+
var strokeWeight = parseInt(this.currentStyle.borderWidth);
|
| 47 |
+
var stroked = 'true';
|
| 48 |
+
if (isNaN(strokeWeight)) {
|
| 49 |
+
strokeWeight = 0;
|
| 50 |
+
strokeColor = fillColor;
|
| 51 |
+
stroked = 'false';
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
this.style.background = 'transparent';
|
| 55 |
+
this.style.borderColor = 'transparent';
|
| 56 |
+
|
| 57 |
+
// Find which element provides position:relative for the target element (default to BODY)
|
| 58 |
+
var el = this;
|
| 59 |
+
var limit = 100, i = 0;
|
| 60 |
+
while ((typeof(el) != 'unknown') && (el.currentStyle.position != 'relative') && (el.tagName != 'BODY')) {
|
| 61 |
+
el = el.parentElement;
|
| 62 |
+
i++;
|
| 63 |
+
if (i >= limit) { return(false); }
|
| 64 |
+
}
|
| 65 |
+
var el_zindex = parseInt(el.currentStyle.zIndex);
|
| 66 |
+
if (isNaN(el_zindex)) { el_zindex = 0; }
|
| 67 |
+
//alert('got tag '+ el.tagName +' with pos '+ el.currentStyle.position);
|
| 68 |
+
|
| 69 |
+
var rect_size = {
|
| 70 |
+
'width': this.offsetWidth - strokeWeight,
|
| 71 |
+
'height': this.offsetHeight - strokeWeight
|
| 72 |
+
};
|
| 73 |
+
var el_pos = findPos(el);
|
| 74 |
+
var this_pos = findPos(this);
|
| 75 |
+
this_pos.y = this_pos.y + (0.5 * strokeWeight) - el_pos.y;
|
| 76 |
+
this_pos.x = this_pos.x + (0.5 * strokeWeight) - el_pos.x;
|
| 77 |
+
|
| 78 |
+
var rect = document.createElement('v:roundrect');
|
| 79 |
+
rect.arcsize = arcSize +'px';
|
| 80 |
+
rect.strokecolor = strokeColor;
|
| 81 |
+
rect.strokeWeight = strokeWeight +'px';
|
| 82 |
+
rect.stroked = stroked;
|
| 83 |
+
rect.style.display = 'block';
|
| 84 |
+
rect.style.position = 'absolute';
|
| 85 |
+
rect.style.top = this_pos.y +'px';
|
| 86 |
+
rect.style.left = this_pos.x +'px';
|
| 87 |
+
rect.style.width = rect_size.width +'px';
|
| 88 |
+
rect.style.height = rect_size.height +'px';
|
| 89 |
+
rect.style.antialias = true;
|
| 90 |
+
rect.style.zIndex = el_zindex - 1;
|
| 91 |
+
|
| 92 |
+
var fill = document.createElement('v:fill');
|
| 93 |
+
fill.color = fillColor;
|
| 94 |
+
fill.src = fillSrc;
|
| 95 |
+
fill.type = 'tile';
|
| 96 |
+
|
| 97 |
+
rect.appendChild(fill);
|
| 98 |
+
el.appendChild(rect);
|
| 99 |
+
|
| 100 |
+
var css = el.document.createStyleSheet();
|
| 101 |
+
css.addRule("v\\:roundrect", "behavior: url(#default#VML)");
|
| 102 |
+
css.addRule("v\\:fill", "behavior: url(#default#VML)");
|
| 103 |
+
|
| 104 |
+
isIE6 = /msie|MSIE 6/.test(navigator.userAgent);
|
| 105 |
+
// IE6 doesn't support transparent borders, use padding to offset original element
|
| 106 |
+
if (isIE6 && (strokeWeight > 0)) {
|
| 107 |
+
this.style.borderStyle = 'none';
|
| 108 |
+
this.style.paddingTop = parseInt(this.currentStyle.paddingTop || 0) + strokeWeight;
|
| 109 |
+
this.style.paddingBottom = parseInt(this.currentStyle.paddingBottom || 0) + strokeWeight;
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
if (typeof(window.rounded_elements) == 'undefined') {
|
| 113 |
+
window.rounded_elements = new Array();
|
| 114 |
+
|
| 115 |
+
if (typeof(window.onresize) == 'function') { window.previous_onresize = window.onresize; }
|
| 116 |
+
window.onresize = window_resize;
|
| 117 |
+
}
|
| 118 |
+
this.element.vml = rect;
|
| 119 |
+
window.rounded_elements.push(this.element);
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
function window_resize() {
|
| 123 |
+
if (typeof(window.rounded_elements) == 'undefined') { return(false); }
|
| 124 |
+
|
| 125 |
+
for (var i in window.rounded_elements) {
|
| 126 |
+
var el = window.rounded_elements[i];
|
| 127 |
+
|
| 128 |
+
var strokeWeight = parseInt(el.currentStyle.borderWidth);
|
| 129 |
+
if (isNaN(strokeWeight)) { strokeWeight = 0; }
|
| 130 |
+
|
| 131 |
+
var parent_pos = findPos(el.vml.parentNode);
|
| 132 |
+
var pos = findPos(el);
|
| 133 |
+
pos.y = pos.y + (0.5 * strokeWeight) - parent_pos.y;
|
| 134 |
+
pos.x = pos.x + (0.5 * strokeWeight) - parent_pos.x;
|
| 135 |
+
|
| 136 |
+
el.vml.style.top = pos.y +'px';
|
| 137 |
+
el.vml.style.left = pos.x +'px';
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
if (typeof(window.previous_onresize) == 'function') { window.previous_onresize(); }
|
| 141 |
+
}
|
| 142 |
+
</script>
|
| 143 |
+
|
css/sociable.css
CHANGED
|
@@ -1,4 +1,55 @@
|
|
| 1 |
-
div.sociable { margin:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
span.sociable_tagline { position: relative; }
|
| 4 |
span.sociable_tagline span { display: none; width: 14em; }
|
|
@@ -15,7 +66,7 @@ span.sociable_tagline:hover span {
|
|
| 15 |
display: block;
|
| 16 |
}
|
| 17 |
.sociable ul {
|
| 18 |
-
display:
|
| 19 |
margin: 0 !important;
|
| 20 |
padding: 0 !important;
|
| 21 |
}
|
|
@@ -25,7 +76,7 @@ span.sociable_tagline:hover span {
|
|
| 25 |
list-style-type: none;
|
| 26 |
margin: 0;
|
| 27 |
padding: 3px;
|
| 28 |
-
|
| 29 |
}
|
| 30 |
.sociable ul li:before { content: ""; }
|
| 31 |
.sociable img {
|
|
@@ -157,7 +208,7 @@ display: block;float: left;height: 48px;width: 48px;
|
|
| 157 |
-webkit-box-shadow: #999999 0px 0px 24px;
|
| 158 |
border: 3px solid transparent;
|
| 159 |
border-radius: 5px 5px 5px 5px;
|
| 160 |
-
box-shadow: 0 0 7px
|
| 161 |
position: relative;
|
| 162 |
background: none repeat scroll 0 0 #FFFFFF;
|
| 163 |
}
|
|
@@ -165,6 +216,7 @@ display: block;float: left;height: 48px;width: 48px;
|
|
| 165 |
behavior: url('/wp-content/plugins/sociable/css/pie.htc');
|
| 166 |
background: none repeat scroll 0 0 #FFFFFF;
|
| 167 |
border-radius: 4px 4px 4px 4px;
|
|
|
|
| 168 |
display: table;
|
| 169 |
padding: 10px;
|
| 170 |
width: 370px;
|
| 1 |
+
div.sociable { /*margin: 8px 0;*/}
|
| 2 |
+
|
| 3 |
+
#___plusone_0 {
|
| 4 |
+
float:right !important;
|
| 5 |
+
width:60px !important;
|
| 6 |
+
}
|
| 7 |
+
#___plusone_1 {
|
| 8 |
+
float:right !important;
|
| 9 |
+
width:60px !important;
|
| 10 |
+
}
|
| 11 |
+
#___plusone_2{
|
| 12 |
+
float:right !important;
|
| 13 |
+
width:60px !important;
|
| 14 |
+
}
|
| 15 |
+
#___plusone_3 {
|
| 16 |
+
float:right !important;
|
| 17 |
+
width:60px !important;
|
| 18 |
+
}
|
| 19 |
+
#___plusone_4 {
|
| 20 |
+
float:right !important;
|
| 21 |
+
width:60px !important;
|
| 22 |
+
}
|
| 23 |
+
#___plusone_5 {
|
| 24 |
+
float:right !important;
|
| 25 |
+
width:60px !important;
|
| 26 |
+
}
|
| 27 |
+
#___plusone_6 {
|
| 28 |
+
float:right !important;
|
| 29 |
+
width:60px !important;
|
| 30 |
+
}
|
| 31 |
+
#___plusone_7 {
|
| 32 |
+
float:right !important;
|
| 33 |
+
width:60px !important;
|
| 34 |
+
}
|
| 35 |
+
#___plusone_8 {
|
| 36 |
+
float:right !important;
|
| 37 |
+
width:60px !important;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
div.sociable li#Twitter_Counter iframe{
|
| 42 |
+
width:100px !important;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
#Digg_Counter{
|
| 46 |
+
width:80px !important;
|
| 47 |
+
|
| 48 |
+
}
|
| 49 |
+
#Facebook_Counter iframe{
|
| 50 |
+
|
| 51 |
+
width:76px !important;
|
| 52 |
+
}
|
| 53 |
|
| 54 |
span.sociable_tagline { position: relative; }
|
| 55 |
span.sociable_tagline span { display: none; width: 14em; }
|
| 66 |
display: block;
|
| 67 |
}
|
| 68 |
.sociable ul {
|
| 69 |
+
display: block;
|
| 70 |
margin: 0 !important;
|
| 71 |
padding: 0 !important;
|
| 72 |
}
|
| 76 |
list-style-type: none;
|
| 77 |
margin: 0;
|
| 78 |
padding: 3px;
|
| 79 |
+
float:left;
|
| 80 |
}
|
| 81 |
.sociable ul li:before { content: ""; }
|
| 82 |
.sociable img {
|
| 208 |
-webkit-box-shadow: #999999 0px 0px 24px;
|
| 209 |
border: 3px solid transparent;
|
| 210 |
border-radius: 5px 5px 5px 5px;
|
| 211 |
+
box-shadow: 0 0 7px #000000;
|
| 212 |
position: relative;
|
| 213 |
background: none repeat scroll 0 0 #FFFFFF;
|
| 214 |
}
|
| 216 |
behavior: url('/wp-content/plugins/sociable/css/pie.htc');
|
| 217 |
background: none repeat scroll 0 0 #FFFFFF;
|
| 218 |
border-radius: 4px 4px 4px 4px;
|
| 219 |
+
box-shadow: 0 0 7px #000000;
|
| 220 |
display: table;
|
| 221 |
padding: 10px;
|
| 222 |
width: 370px;
|
includes/class-sociable_Admin_Options.php
CHANGED
|
@@ -128,9 +128,10 @@ class sociable_Admin_Options{
|
|
| 128 |
}
|
| 129 |
|
| 130 |
$out ='<ul id="sociable_site_list" >' ;
|
| 131 |
-
|
| 132 |
foreach( $sites as $sitename => $site ){
|
| 133 |
-
|
|
|
|
| 134 |
//Set Checked And Active If Relevant
|
| 135 |
if( array_key_exists( $sitename, $active_sites ) ){
|
| 136 |
$checked = 'checked="checked"';
|
|
@@ -139,8 +140,13 @@ class sociable_Admin_Options{
|
|
| 139 |
$checked = '';
|
| 140 |
$active = 'inactive';
|
| 141 |
}
|
| 142 |
-
|
| 143 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
}else{
|
| 145 |
$image = "<img src='".SOCIABLE_HTTP_PATH."images/more.png'>";
|
| 146 |
}
|
|
@@ -164,8 +170,9 @@ class sociable_Admin_Options{
|
|
| 164 |
$out .= '<input type="checkbox" id="cb_' . $sitename . '" name="sociable_options[active_sites][' . $sitename . ']" ' . $checked . ' />';
|
| 165 |
|
| 166 |
$out .= $image;
|
| 167 |
-
|
| 168 |
$out .= $sitename;
|
|
|
|
| 169 |
|
| 170 |
$out .= '</li>';
|
| 171 |
|
|
@@ -499,7 +506,13 @@ class sociable_Admin_Options{
|
|
| 499 |
<SPAN class="TXT"><?php _e("Do you want to use alpha masks on the images (available only on the Original Sociable)?","sociable");?></SPAN>
|
| 500 |
</TD>
|
| 501 |
</TR>
|
| 502 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 503 |
<TR valign="top" >
|
| 504 |
<TD align="right" class="Title" ><?php _e("Open in new window","sociable");?></TD>
|
| 505 |
<TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["new_window"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[new_window]" id="OpenNewWindow" /></TD>
|
| 128 |
}
|
| 129 |
|
| 130 |
$out ='<ul id="sociable_site_list" >' ;
|
| 131 |
+
$io = 0;
|
| 132 |
foreach( $sites as $sitename => $site ){
|
| 133 |
+
|
| 134 |
+
|
| 135 |
//Set Checked And Active If Relevant
|
| 136 |
if( array_key_exists( $sitename, $active_sites ) ){
|
| 137 |
$checked = 'checked="checked"';
|
| 140 |
$checked = '';
|
| 141 |
$active = 'inactive';
|
| 142 |
}
|
| 143 |
+
if ( $sitename != "More"){
|
| 144 |
+
if (isset($site["counter"])){
|
| 145 |
+
//$image = "<img src='".SOCIABLE_HTTP_PATH."images/".$site["favicon"]."'>";
|
| 146 |
+
$image = $site["url"];
|
| 147 |
+
}else{
|
| 148 |
+
$image = _get_sociable_image( $site, '' );
|
| 149 |
+
}
|
| 150 |
}else{
|
| 151 |
$image = "<img src='".SOCIABLE_HTTP_PATH."images/more.png'>";
|
| 152 |
}
|
| 170 |
$out .= '<input type="checkbox" id="cb_' . $sitename . '" name="sociable_options[active_sites][' . $sitename . ']" ' . $checked . ' />';
|
| 171 |
|
| 172 |
$out .= $image;
|
| 173 |
+
if (!isset($site["counter"])){
|
| 174 |
$out .= $sitename;
|
| 175 |
+
}
|
| 176 |
|
| 177 |
$out .= '</li>';
|
| 178 |
|
| 506 |
<SPAN class="TXT"><?php _e("Do you want to use alpha masks on the images (available only on the Original Sociable)?","sociable");?></SPAN>
|
| 507 |
</TD>
|
| 508 |
</TR>
|
| 509 |
+
<TR valign="top" >
|
| 510 |
+
<TD align="right" class="Title" ><?php _e("Bottom and Top","sociable");?></TD>
|
| 511 |
+
<TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["topandbottom"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[topandbottom]" id="TopAndBottom" /></TD>
|
| 512 |
+
<TD align="left" class="Content">
|
| 513 |
+
<SPAN class="TXT"><?php _e("Do you want to use Sociable plugin to show up at the top and bottom?","sociable");?></SPAN>
|
| 514 |
+
</TD>
|
| 515 |
+
</TR>
|
| 516 |
<TR valign="top" >
|
| 517 |
<TD align="right" class="Title" ><?php _e("Open in new window","sociable");?></TD>
|
| 518 |
<TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["new_window"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[new_window]" id="OpenNewWindow" /></TD>
|
includes/sociable_output.php
CHANGED
|
@@ -1,341 +1,754 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
$
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
if
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
$
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
$
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
}
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 341 |
?>
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/*
|
| 4 |
+
|
| 5 |
+
* The Output And Shortcode Functions For sociable
|
| 6 |
+
|
| 7 |
+
*/
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
/*
|
| 12 |
+
|
| 13 |
+
* Returns The Sociable Output For The Global $post Object Do Not
|
| 14 |
+
|
| 15 |
+
*/
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
function sociable_html( $display = array(),$location = "" ){
|
| 26 |
+
|
| 27 |
+
global $sociable_options, $wp_query, $post;
|
| 28 |
+
|
| 29 |
+
//ra( $sociable_options );
|
| 30 |
+
|
| 31 |
+
$sociable_known_sites = get_option( 'sociable_known_sites' );
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
if( ! $post ){
|
| 36 |
+
|
| 37 |
+
$post = get_post( $post_id = 1 );
|
| 38 |
+
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
if ( get_post_meta($post->ID,'_sociableoff',true)) {
|
| 44 |
+
|
| 45 |
+
return "";
|
| 46 |
+
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
$active_sites = $sociable_options['active_sites'];
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
// Get The Image Path
|
| 58 |
+
|
| 59 |
+
//$imagepath = _get_sociable_image_path();
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
// if no sites are specified, display all active
|
| 64 |
+
|
| 65 |
+
// have to check $active_sites has content because WP
|
| 66 |
+
|
| 67 |
+
// won't save an empty array as an option
|
| 68 |
+
|
| 69 |
+
if ( empty($display) && isset( $active_sites ) )
|
| 70 |
+
|
| 71 |
+
$display = $active_sites;
|
| 72 |
+
|
| 73 |
+
// if no sites are active, display nothing
|
| 74 |
+
|
| 75 |
+
if ( empty($display) )
|
| 76 |
+
|
| 77 |
+
return "";
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
// Load the post's and blog's data
|
| 82 |
+
|
| 83 |
+
$blogname = urlencode(get_bloginfo('name')." ".get_bloginfo('description'));
|
| 84 |
+
|
| 85 |
+
$blogrss = get_bloginfo('rss2_url');
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
// Grab the excerpt, if there is no excerpt, create one
|
| 90 |
+
|
| 91 |
+
$excerpt = urlencode(strip_tags(strip_shortcodes($post->post_excerpt)));
|
| 92 |
+
|
| 93 |
+
if ($excerpt == "") {
|
| 94 |
+
|
| 95 |
+
$excerpt = urlencode(substr(strip_tags(strip_shortcodes($post->post_content)),0,250));
|
| 96 |
+
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
// Clean the excerpt for use with links
|
| 102 |
+
|
| 103 |
+
$excerpt = str_replace('+','%20',$excerpt);
|
| 104 |
+
|
| 105 |
+
$permalink = urlencode(get_permalink($post->ID));
|
| 106 |
+
|
| 107 |
+
$title = str_replace('+','%20',urlencode($post->post_title));
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
$rss = urlencode(get_bloginfo('ref_url'));
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
// Start preparing the output
|
| 116 |
+
|
| 117 |
+
$html = '<!-- Start Sociable --><div class="sociable">';
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
// If a tagline is set, display it above the links list
|
| 122 |
+
|
| 123 |
+
$tagline = isset( $sociable_options['tagline'] ) ? $sociable_options['tagline'] : '' ;
|
| 124 |
+
|
| 125 |
+
if ($tagline != '') {
|
| 126 |
+
|
| 127 |
+
$html .= '<div class="sociable_tagline">';
|
| 128 |
+
|
| 129 |
+
if (isset( $sociable_options['help_grow'] )) {
|
| 130 |
+
|
| 131 |
+
$addSize = "";
|
| 132 |
+
|
| 133 |
+
if ($sociable_options['icon_size'] ==16) $addSize = "font-size:11px;";
|
| 134 |
+
|
| 135 |
+
$html .= "<a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='".$addSize."color:#333333;text-decoration:none'>".$tagline."</a>";
|
| 136 |
+
|
| 137 |
+
}else{
|
| 138 |
+
|
| 139 |
+
$html .= $tagline;
|
| 140 |
+
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
$html .= "</div>";
|
| 144 |
+
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
/**
|
| 150 |
+
|
| 151 |
+
* Start the list of links
|
| 152 |
+
|
| 153 |
+
*/
|
| 154 |
+
|
| 155 |
+
$html .= "<ul class='clearfix'>";
|
| 156 |
+
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
$i = 0;
|
| 160 |
+
|
| 161 |
+
$totalsites = count($display);
|
| 162 |
+
|
| 163 |
+
$margin = "0px";
|
| 164 |
+
|
| 165 |
+
switch ($sociable_options['icon_size']){
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
case "16": $margin = "padding-top: 0;margin-top:-2px";
|
| 170 |
+
|
| 171 |
+
break;
|
| 172 |
+
|
| 173 |
+
case "32": $margin = "margin-top:9px";
|
| 174 |
+
|
| 175 |
+
break;
|
| 176 |
+
|
| 177 |
+
case "48": $margin = "margin-top:24px";
|
| 178 |
+
|
| 179 |
+
break;
|
| 180 |
+
|
| 181 |
+
case "64": $margin = "margin-top:38px";
|
| 182 |
+
|
| 183 |
+
break;
|
| 184 |
+
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
// print_r($display);
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
if (isset($display["More"])){
|
| 194 |
+
|
| 195 |
+
unset($display["More"]);
|
| 196 |
+
|
| 197 |
+
array_push($display,"More");
|
| 198 |
+
|
| 199 |
+
$display["More"] = "On";
|
| 200 |
+
|
| 201 |
+
}
|
| 202 |
+
|
| 203 |
+
//print_r($display);
|
| 204 |
+
|
| 205 |
+
foreach($display as $sitename => $val ) {
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
|
| 209 |
+
if ( ! array_key_exists($sitename, $active_sites) || isset($sociable_known_sites[$sitename]["counter"]))
|
| 210 |
+
|
| 211 |
+
continue;
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
$site = $sociable_known_sites[$sitename];
|
| 216 |
+
|
| 217 |
+
$url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
|
| 218 |
+
|
| 219 |
+
$url = str_replace('TITLE', $title, $url);
|
| 220 |
+
|
| 221 |
+
$url = str_replace('RSS', $rss, $url);
|
| 222 |
+
|
| 223 |
+
$url = str_replace('BLOGNAME', $blogname, $url);
|
| 224 |
+
|
| 225 |
+
$url = str_replace('EXCERPT', $excerpt, $url);
|
| 226 |
+
|
| 227 |
+
$url = str_replace('FEEDLINK', $blogrss, $url);
|
| 228 |
+
|
| 229 |
+
$url = str_replace('PERMALINK', $permalink, $url);
|
| 230 |
+
|
| 231 |
+
|
| 232 |
+
|
| 233 |
+
if (isset($site['description']) && $site['description'] != "") {
|
| 234 |
+
|
| 235 |
+
$description = $site['description'];
|
| 236 |
+
|
| 237 |
+
} else {
|
| 238 |
+
|
| 239 |
+
$description = $sitename;
|
| 240 |
+
|
| 241 |
+
}
|
| 242 |
+
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
$link = '<li>';
|
| 246 |
+
|
| 247 |
+
if (!empty($sociable_options["custom_icons"])){
|
| 248 |
+
|
| 249 |
+
$linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
|
| 250 |
+
|
| 251 |
+
}else{
|
| 252 |
+
|
| 253 |
+
if ($description != "More"){
|
| 254 |
+
|
| 255 |
+
$linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
|
| 256 |
+
|
| 257 |
+
}else{
|
| 258 |
+
|
| 259 |
+
$linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<img style='".$margin."' src='".SOCIABLE_HTTP_PATH."images/more.png'>";
|
| 260 |
+
|
| 261 |
+
}
|
| 262 |
+
|
| 263 |
+
}
|
| 264 |
+
|
| 265 |
+
$posX = $site["spriteCoordinates"][$sociable_options['icon_size']]["0"];
|
| 266 |
+
|
| 267 |
+
$posY = $site["spriteCoordinates"][$sociable_options['icon_size']]["1"];
|
| 268 |
+
|
| 269 |
+
$backgroundFile = $sociable_options['icon_option']."_".$sociable_options['icon_size'].".png";
|
| 270 |
+
|
| 271 |
+
$style = "background-position:".$posX." ".$posY;
|
| 272 |
+
|
| 273 |
+
$href = $url;
|
| 274 |
+
|
| 275 |
+
$target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ;
|
| 276 |
+
|
| 277 |
+
if ($sitename == "Add to favorites" || $sitename=="More"){
|
| 278 |
+
|
| 279 |
+
if ($sitename == "More"){
|
| 280 |
+
|
| 281 |
+
$link .= '<a style="cursor:pointer" rel="nofollow" onMouseOut="fixOnMouseOut(document.getElementById(\'sociable-post'.$location.'-'.$post->ID.'\'), event, \'post'.$location.'-'.$post->ID.'\')" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
|
| 282 |
+
|
| 283 |
+
}else{
|
| 284 |
+
|
| 285 |
+
$link .= '<a class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="cursor:pointer;'.$style.'" rel="nofollow" title="'.$sitename.' - doesn\'t work in Chrome" onClick="' . $href . '">' ."" . '</a></li>' ;
|
| 286 |
+
|
| 287 |
+
}
|
| 288 |
+
|
| 289 |
+
}else{
|
| 290 |
+
|
| 291 |
+
if($sociable_options["icon_option"] == "option6" || !empty($sociable_options["custom_icons"])){
|
| 292 |
+
|
| 293 |
+
$link .= '<a title="'.$sitename.'" style="'.$description.$sociable_options['icon_size'].'_'.str_replace("option","",$sociable_options['icon_option']).'" rel="nofollow" ' . $target . ' href="' . $href . '">' . $linkitem . '</a></li>' ;
|
| 294 |
+
|
| 295 |
+
}else{
|
| 296 |
+
|
| 297 |
+
if (count(split("Counter",$sitename))>1){
|
| 298 |
+
|
| 299 |
+
$link.= $href;
|
| 300 |
+
|
| 301 |
+
}else{
|
| 302 |
+
|
| 303 |
+
|
| 304 |
+
|
| 305 |
+
$link .= '<a title="'.$sitename.'" class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="'.$style.'" rel="nofollow" ' . $target . ' href="' . $href . '">' . "" . '</a></li>' ;
|
| 306 |
+
|
| 307 |
+
}
|
| 308 |
+
|
| 309 |
+
}
|
| 310 |
+
|
| 311 |
+
}
|
| 312 |
+
|
| 313 |
+
|
| 314 |
+
|
| 315 |
+
$html .= apply_filters( 'sociable_link' , $link );
|
| 316 |
+
|
| 317 |
+
|
| 318 |
+
|
| 319 |
+
$i++;
|
| 320 |
+
|
| 321 |
+
}
|
| 322 |
+
|
| 323 |
+
//return $html;
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
|
| 327 |
+
//if ($sociable_options['icon_option'] !="option6"){
|
| 328 |
+
|
| 329 |
+
$inner = "<ul>";
|
| 330 |
+
|
| 331 |
+
foreach ($sociable_known_sites as $sitename => $val){
|
| 332 |
+
|
| 333 |
+
if (array_key_exists($sitename, $display) || isset($sociable_known_sites[$sitename]["counter"]) )
|
| 334 |
+
|
| 335 |
+
continue;
|
| 336 |
+
|
| 337 |
+
$site = $sociable_known_sites[$sitename];
|
| 338 |
+
|
| 339 |
+
$url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
|
| 340 |
+
|
| 341 |
+
$url = str_replace('TITLE', $title, $url);
|
| 342 |
+
|
| 343 |
+
$url = str_replace('RSS', $rss, $url);
|
| 344 |
+
|
| 345 |
+
$url = str_replace('BLOGNAME', $blogname, $url);
|
| 346 |
+
|
| 347 |
+
$url = str_replace('EXCERPT', $excerpt, $url);
|
| 348 |
+
|
| 349 |
+
$url = str_replace('FEEDLINK', $blogrss, $url);
|
| 350 |
+
|
| 351 |
+
$url = str_replace('PERMALINK', $permalink, $url);
|
| 352 |
+
|
| 353 |
+
$link = '<li style="heigth:'.$sociable_options['icon_size'].'px;width:'.$sociable_options['icon_size'].'px">';
|
| 354 |
+
|
| 355 |
+
if (!empty($sociable_options["custom_icons"])){
|
| 356 |
+
|
| 357 |
+
$linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
|
| 358 |
+
|
| 359 |
+
}else{
|
| 360 |
+
|
| 361 |
+
|
| 362 |
+
|
| 363 |
+
if (isset($description) && $description!= "More"){
|
| 364 |
+
|
| 365 |
+
$linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
|
| 366 |
+
|
| 367 |
+
}else{
|
| 368 |
+
|
| 369 |
+
$linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<img style='".$margin."' src='".SOCIABLE_HTTP_PATH."images/more.png'>";
|
| 370 |
+
|
| 371 |
+
}
|
| 372 |
+
|
| 373 |
+
}
|
| 374 |
+
|
| 375 |
+
$posX = $site["spriteCoordinates"][$sociable_options['icon_size']]["0"];
|
| 376 |
+
|
| 377 |
+
$posY = $site["spriteCoordinates"][$sociable_options['icon_size']]["1"];
|
| 378 |
+
|
| 379 |
+
$backgroundFile = $sociable_options['icon_option']."_".$sociable_options['icon_size'].".png";
|
| 380 |
+
|
| 381 |
+
$style = "background-position:".$posX." ".$posY;
|
| 382 |
+
|
| 383 |
+
$href = $url;
|
| 384 |
+
|
| 385 |
+
$target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ;
|
| 386 |
+
|
| 387 |
+
if ($sitename == "Add to favorites" || $sitename=="More"){
|
| 388 |
+
|
| 389 |
+
if ($sitename == "More"){
|
| 390 |
+
|
| 391 |
+
$link .= '<a style="cursor:poainter" rel="nofollow" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
|
| 392 |
+
|
| 393 |
+
}else{
|
| 394 |
+
|
| 395 |
+
$link .= '<a class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="cursor:pointer;'.$style.'" rel="nofollow" title="'.$sitename.' - doesn\'t work in Chrome" onClick="' . $href . '">' ."" . '</a></li>' ;
|
| 396 |
+
|
| 397 |
+
}
|
| 398 |
+
|
| 399 |
+
}else{
|
| 400 |
+
|
| 401 |
+
if($sociable_options["icon_option"] == "option6" || !empty($sociable_options["custom_icons"])){
|
| 402 |
+
|
| 403 |
+
$link .= '<a title="'.$sitename.'" style="'.$description.$sociable_options['icon_size'].'_'.str_replace("option","",$sociable_options['icon_option']).'" rel="nofollow" ' . $target . ' href="' . $href . '">' . $linkitem . '</a></li>' ;
|
| 404 |
+
|
| 405 |
+
}else{
|
| 406 |
+
|
| 407 |
+
$link .= '<a title="'.$sitename.'" class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="'.$style.'" rel="nofollow" ' . $target . ' href="' . $href . '">' . "" . '</a></li>' ;
|
| 408 |
+
|
| 409 |
+
}
|
| 410 |
+
|
| 411 |
+
}
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
|
| 415 |
+
$inner .= apply_filters( 'sociable_link' , $link );
|
| 416 |
+
|
| 417 |
+
|
| 418 |
+
|
| 419 |
+
$i++;
|
| 420 |
+
|
| 421 |
+
|
| 422 |
+
|
| 423 |
+
}
|
| 424 |
+
|
| 425 |
+
|
| 426 |
+
|
| 427 |
+
$inner .="</ul>";
|
| 428 |
+
|
| 429 |
+
$html .='</ul><div onMouseout="fixOnMouseOut(this,event,\'post'.$location.'-'.$post->ID.'\')" id="sociable-post'.$location.'-'.$post->ID.'" style="display:none;">
|
| 430 |
+
|
| 431 |
+
<div style="top: auto; left: auto; display: block;" id="sociable">
|
| 432 |
+
|
| 433 |
+
|
| 434 |
+
|
| 435 |
+
<div class="popup">
|
| 436 |
+
|
| 437 |
+
<div class="content">
|
| 438 |
+
|
| 439 |
+
'.$inner.'
|
| 440 |
+
|
| 441 |
+
</div>
|
| 442 |
+
|
| 443 |
+
<a style="cursor:pointer" onclick="hide_sociable(\'post'.$location.'-'.$post->ID.'\',true)" class="close">
|
| 444 |
+
|
| 445 |
+
|
| 446 |
+
|
| 447 |
+
<img onclick="hide_sociable(\'post'.$location.'-'.$post->ID.'\',true)" title="close" src="'.SOCIABLE_HTTP_PATH . 'images/closelabel.png">
|
| 448 |
+
|
| 449 |
+
</a>
|
| 450 |
+
|
| 451 |
+
</div>
|
| 452 |
+
|
| 453 |
+
</div>
|
| 454 |
+
|
| 455 |
+
</div>HereGoCounters</div><!-- End Sociable -->';
|
| 456 |
+
|
| 457 |
+
//$margin =
|
| 458 |
+
|
| 459 |
+
//$html .= "<li class='sociablelast' style='".$margin."'><img src='".SOCIABLE_HTTP_PATH."images/more.jpg'></li></ul><div class='soc_clear'></div></div>";
|
| 460 |
+
|
| 461 |
+
//}
|
| 462 |
+
|
| 463 |
+
//return "";
|
| 464 |
+
|
| 465 |
+
$counters ="";
|
| 466 |
+
|
| 467 |
+
/*if ($location == "bottom" && (is_single() || is_admin())){ */
|
| 468 |
+
|
| 469 |
+
|
| 470 |
+
|
| 471 |
+
|
| 472 |
+
|
| 473 |
+
$counters = "</div><div class='sociable' style='float:none'><ul class='clearfix'>";
|
| 474 |
+
|
| 475 |
+
|
| 476 |
+
|
| 477 |
+
foreach ($display as $sitename => $val){
|
| 478 |
+
|
| 479 |
+
//echo $sitename."<br>";
|
| 480 |
+
|
| 481 |
+
if (!array_key_exists($sitename, $display) || !isset($sociable_known_sites[$sitename]["counter"]) )
|
| 482 |
+
|
| 483 |
+
continue;
|
| 484 |
+
|
| 485 |
+
|
| 486 |
+
|
| 487 |
+
//echo $sitename."<br>";
|
| 488 |
+
|
| 489 |
+
$link = '<li id="'.str_replace(" ","_",$sitename).'">';
|
| 490 |
+
|
| 491 |
+
|
| 492 |
+
|
| 493 |
+
$site = $sociable_known_sites[$sitename];
|
| 494 |
+
|
| 495 |
+
$url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
|
| 496 |
+
|
| 497 |
+
$url = str_replace('TITLE', $title, $url);
|
| 498 |
+
|
| 499 |
+
$url = str_replace('RSS', $rss, $url);
|
| 500 |
+
|
| 501 |
+
$url = str_replace('BLOGNAME', $blogname, $url);
|
| 502 |
+
|
| 503 |
+
$url = str_replace('EXCERPT', $excerpt, $url);
|
| 504 |
+
|
| 505 |
+
$url = str_replace('FEEDLINK', $blogrss, $url);
|
| 506 |
+
|
| 507 |
+
$url = str_replace('PERMALINK', $permalink, $url);
|
| 508 |
+
|
| 509 |
+
$link.= $url."</li>";
|
| 510 |
+
|
| 511 |
+
$counters .= apply_filters( 'sociable_link' , $link );
|
| 512 |
+
|
| 513 |
+
}
|
| 514 |
+
|
| 515 |
+
$counters .="</ul>";
|
| 516 |
+
|
| 517 |
+
$html = str_replace("HereGoCounters",$counters,$html);
|
| 518 |
+
|
| 519 |
+
|
| 520 |
+
|
| 521 |
+
/*}else{
|
| 522 |
+
|
| 523 |
+
$html = str_replace("HereGoCounters",$counters,$html);
|
| 524 |
+
|
| 525 |
+
}*/
|
| 526 |
+
|
| 527 |
+
|
| 528 |
+
|
| 529 |
+
return $html;
|
| 530 |
+
|
| 531 |
+
|
| 532 |
+
|
| 533 |
+
}
|
| 534 |
+
|
| 535 |
+
|
| 536 |
+
|
| 537 |
+
/*
|
| 538 |
+
|
| 539 |
+
* Template Tag To Echo The Sociable 2 HTML
|
| 540 |
+
|
| 541 |
+
*/
|
| 542 |
+
|
| 543 |
+
function do_sociable(){
|
| 544 |
+
|
| 545 |
+
echo sociable_html();
|
| 546 |
+
|
| 547 |
+
}
|
| 548 |
+
|
| 549 |
+
|
| 550 |
+
|
| 551 |
+
/*
|
| 552 |
+
|
| 553 |
+
* Hook For the_content to automatically output the sociable HTML If The Option To Disable Has Not Been Unchecked
|
| 554 |
+
|
| 555 |
+
*/
|
| 556 |
+
|
| 557 |
+
function auto_sociable( $content ){
|
| 558 |
+
|
| 559 |
+
global $sociable_options;
|
| 560 |
+
|
| 561 |
+
|
| 562 |
+
|
| 563 |
+
if( ! isset( $sociable_options['locations'] ) || ! is_array( $sociable_options['locations'] ) || empty( $sociable_options['locations'] ) ){
|
| 564 |
+
|
| 565 |
+
return $content;
|
| 566 |
+
|
| 567 |
+
} else {
|
| 568 |
+
|
| 569 |
+
$locations = $sociable_options['locations'];
|
| 570 |
+
|
| 571 |
+
}
|
| 572 |
+
|
| 573 |
+
|
| 574 |
+
|
| 575 |
+
/*
|
| 576 |
+
|
| 577 |
+
* Determine if we are supposed to be displaying the output here.
|
| 578 |
+
|
| 579 |
+
*/
|
| 580 |
+
|
| 581 |
+
$display = false;
|
| 582 |
+
|
| 583 |
+
|
| 584 |
+
|
| 585 |
+
/*
|
| 586 |
+
|
| 587 |
+
* is_single is a unique case it still returning true
|
| 588 |
+
|
| 589 |
+
*/
|
| 590 |
+
|
| 591 |
+
|
| 592 |
+
|
| 593 |
+
//If We Can Verify That We are in the correct loaction, simply add something to the $display array, and test for a true result to continue.
|
| 594 |
+
|
| 595 |
+
foreach( $locations as $location => $val ){
|
| 596 |
+
|
| 597 |
+
|
| 598 |
+
|
| 599 |
+
//First We Handle is_single() so it returning true on Single Post Type Pages is not an issue, this is not the intended functionality of this plugin
|
| 600 |
+
|
| 601 |
+
if( $location == 'is_single' ){
|
| 602 |
+
|
| 603 |
+
//If we are not in a post, lets ignore this one for now
|
| 604 |
+
|
| 605 |
+
if( is_single() && get_post_type() == 'post' ){
|
| 606 |
+
|
| 607 |
+
$display = true;
|
| 608 |
+
|
| 609 |
+
break;
|
| 610 |
+
|
| 611 |
+
} else {
|
| 612 |
+
|
| 613 |
+
continue; // So not to trigger is_single later in this loop, but still be allowed to handle others
|
| 614 |
+
|
| 615 |
+
}
|
| 616 |
+
|
| 617 |
+
|
| 618 |
+
|
| 619 |
+
} elseif( strpos( $location , 'is_single_posttype_' ) === 0 ){ //Now We Need To Check For The Variable Names, Taxonomy Archives, Post Type Archives and Single Custom Post Types.
|
| 620 |
+
|
| 621 |
+
|
| 622 |
+
|
| 623 |
+
//Single Custom Post Type
|
| 624 |
+
|
| 625 |
+
$post_type = str_replace( 'is_single_posttype_' , '' , $location );
|
| 626 |
+
|
| 627 |
+
if( is_single() && get_post_type() == $post_type ){
|
| 628 |
+
|
| 629 |
+
$display = true;
|
| 630 |
+
|
| 631 |
+
break;
|
| 632 |
+
|
| 633 |
+
}
|
| 634 |
+
|
| 635 |
+
|
| 636 |
+
|
| 637 |
+
} elseif( strpos( $location , 'is_posttype_archive_' ) === 0 ){
|
| 638 |
+
|
| 639 |
+
|
| 640 |
+
|
| 641 |
+
//Custom Post Type Archive
|
| 642 |
+
|
| 643 |
+
$post_type = str_replace( 'is_posttype_archive_' , '' , $location );
|
| 644 |
+
|
| 645 |
+
if( is_post_type_archive( $post_type ) ){
|
| 646 |
+
|
| 647 |
+
$display = true;
|
| 648 |
+
|
| 649 |
+
break;
|
| 650 |
+
|
| 651 |
+
}
|
| 652 |
+
|
| 653 |
+
|
| 654 |
+
|
| 655 |
+
} elseif( strpos( $location , 'is_taxonomy_archive_' ) === 0 ) {
|
| 656 |
+
|
| 657 |
+
|
| 658 |
+
|
| 659 |
+
//Taxonomy Archive
|
| 660 |
+
|
| 661 |
+
$taxonomy = str_replace( 'is_taxonomy_archive_' , '' , $location );
|
| 662 |
+
|
| 663 |
+
if( is_tax( $taxonomy ) ){
|
| 664 |
+
|
| 665 |
+
$display = true;
|
| 666 |
+
|
| 667 |
+
break;
|
| 668 |
+
|
| 669 |
+
}
|
| 670 |
+
|
| 671 |
+
|
| 672 |
+
|
| 673 |
+
} elseif( function_exists( $location ) ) {
|
| 674 |
+
|
| 675 |
+
|
| 676 |
+
|
| 677 |
+
//Standard conditional tag, these will return BOOL
|
| 678 |
+
|
| 679 |
+
if( call_user_func( $location ) === true ){
|
| 680 |
+
|
| 681 |
+
$display = true;
|
| 682 |
+
|
| 683 |
+
break;
|
| 684 |
+
|
| 685 |
+
}
|
| 686 |
+
|
| 687 |
+
|
| 688 |
+
|
| 689 |
+
} else {
|
| 690 |
+
|
| 691 |
+
continue;
|
| 692 |
+
|
| 693 |
+
}
|
| 694 |
+
|
| 695 |
+
|
| 696 |
+
|
| 697 |
+
|
| 698 |
+
|
| 699 |
+
}
|
| 700 |
+
|
| 701 |
+
|
| 702 |
+
|
| 703 |
+
//If We have passed all the checks and are looking in the right place lets do this thang
|
| 704 |
+
|
| 705 |
+
if( isset( $sociable_options['automatic_mode'] ) && $display === true ){
|
| 706 |
+
|
| 707 |
+
if (isset($sociable_options["topandbottom"])){
|
| 708 |
+
|
| 709 |
+
$content = sociable_html(array(),"top").$content . sociable_html(array(),"bottom");
|
| 710 |
+
|
| 711 |
+
}else{
|
| 712 |
+
|
| 713 |
+
$content = "".$content . sociable_html(array());
|
| 714 |
+
|
| 715 |
+
}
|
| 716 |
+
|
| 717 |
+
}
|
| 718 |
+
|
| 719 |
+
|
| 720 |
+
|
| 721 |
+
|
| 722 |
+
|
| 723 |
+
return $content;
|
| 724 |
+
|
| 725 |
+
}
|
| 726 |
+
|
| 727 |
+
|
| 728 |
+
|
| 729 |
+
/*
|
| 730 |
+
|
| 731 |
+
* Sociable 2 Shortcode
|
| 732 |
+
|
| 733 |
+
*/
|
| 734 |
+
|
| 735 |
+
function sociable_shortcode(){
|
| 736 |
+
|
| 737 |
+
return sociable_html();
|
| 738 |
+
|
| 739 |
+
}
|
| 740 |
+
|
| 741 |
+
|
| 742 |
+
|
| 743 |
+
?>
|
| 744 |
+
<?php function add_googleplus() {
|
| 745 |
+
|
| 746 |
+
|
| 747 |
+
|
| 748 |
+
echo'<script type="text/javascript" src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>';
|
| 749 |
+
|
| 750 |
+
}
|
| 751 |
+
|
| 752 |
+
//add_action('wp_head', 'add_googleplus' );
|
| 753 |
+
|
| 754 |
?>
|
js/sociable.js
CHANGED
|
@@ -10,6 +10,8 @@ function more(obj, id){
|
|
| 10 |
//console.log(sociable.style.offsetTop);
|
| 11 |
sociable.style.postion = "absloute";
|
| 12 |
sociable.style.top = button.offsetTop;
|
|
|
|
|
|
|
| 13 |
sociable.style.left = button.offsetLeft;
|
| 14 |
//console.log(sociable.style.offsetTop);
|
| 15 |
box.style.display = "";
|
|
@@ -65,4 +67,14 @@ function fixOnMouseOut(element, event, id) {
|
|
| 65 |
}
|
| 66 |
|
| 67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 10 |
//console.log(sociable.style.offsetTop);
|
| 11 |
sociable.style.postion = "absloute";
|
| 12 |
sociable.style.top = button.offsetTop;
|
| 13 |
+
//alert(button.offsetTop);
|
| 14 |
+
//alert(button.offsetLeft);
|
| 15 |
sociable.style.left = button.offsetLeft;
|
| 16 |
//console.log(sociable.style.offsetTop);
|
| 17 |
box.style.display = "";
|
| 67 |
}
|
| 68 |
|
| 69 |
|
| 70 |
+
window.___gcfg = {
|
| 71 |
+
lang: 'en-US'
|
| 72 |
+
};
|
| 73 |
+
|
| 74 |
+
(function() {
|
| 75 |
+
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
|
| 76 |
+
po.src = 'https://apis.google.com/js/plusone.js';
|
| 77 |
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
|
| 78 |
+
})();
|
| 79 |
+
|
| 80 |
|
languages/sociable-de_DE.mo
ADDED
|
Binary file
|
languages/sociable-de_DE.po
ADDED
|
@@ -0,0 +1,247 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SOME DESCRIPTIVE TITLE.
|
| 2 |
+
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
| 3 |
+
# This file is distributed under the same license as the PACKAGE package.
|
| 4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
| 5 |
+
#
|
| 6 |
+
#, fuzzy
|
| 7 |
+
msgid ""
|
| 8 |
+
msgstr ""
|
| 9 |
+
"Project-Id-Version: PACKAGE VERSION\n"
|
| 10 |
+
"Report-Msgid-Bugs-To: \n"
|
| 11 |
+
"POT-Creation-Date: 2011-10-19 13:51-0500\n"
|
| 12 |
+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
| 13 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
| 14 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
| 15 |
+
"MIME-Version: 1.0\n"
|
| 16 |
+
"Content-Type: text/plain; charset=iso-8859-1\n"
|
| 17 |
+
"Content-Transfer-Encoding: 8bit\n"
|
| 18 |
+
|
| 19 |
+
#: class-sociable_Admin_Options.php:20 class-sociable_Admin_Options.php:338
|
| 20 |
+
msgid "Locations"
|
| 21 |
+
msgstr "Ubicaciones"
|
| 22 |
+
|
| 23 |
+
#: class-sociable_Admin_Options.php:22 class-sociable_Admin_Options.php:447
|
| 24 |
+
msgid "General Options"
|
| 25 |
+
msgstr "Opciones Generales"
|
| 26 |
+
|
| 27 |
+
#: class-sociable_Admin_Options.php:36
|
| 28 |
+
msgid "Sociable Options"
|
| 29 |
+
msgstr ""
|
| 30 |
+
|
| 31 |
+
#: class-sociable_Admin_Options.php:36
|
| 32 |
+
msgid "Sociable"
|
| 33 |
+
msgstr ""
|
| 34 |
+
|
| 35 |
+
#: class-sociable_Admin_Options.php:192
|
| 36 |
+
msgid "Sociable 2 Options"
|
| 37 |
+
msgstr ""
|
| 38 |
+
|
| 39 |
+
#: class-sociable_Admin_Options.php:206
|
| 40 |
+
msgid "Live preview of how Sociable will appear on your blog."
|
| 41 |
+
msgstr "Asi se vera Sociable en tu blog"
|
| 42 |
+
|
| 43 |
+
#: class-sociable_Admin_Options.php:210
|
| 44 |
+
msgid "This is your post here..."
|
| 45 |
+
msgstr "Esta es una entrada en tu blog"
|
| 46 |
+
|
| 47 |
+
#: class-sociable_Admin_Options.php:219
|
| 48 |
+
msgid "Tagline"
|
| 49 |
+
msgstr "Tĩtulo"
|
| 50 |
+
|
| 51 |
+
#: class-sociable_Admin_Options.php:225
|
| 52 |
+
msgid "Previously we used \"Share and Enjoy\", remember the good old days?"
|
| 53 |
+
msgstr ""
|
| 54 |
+
|
| 55 |
+
#: class-sociable_Admin_Options.php:233
|
| 56 |
+
msgid "Link to Sociable"
|
| 57 |
+
msgstr "Link a Sociable"
|
| 58 |
+
|
| 59 |
+
#: class-sociable_Admin_Options.php:234
|
| 60 |
+
msgid "(Help us grow, please leave the link so others discover Sociable from your blog)"
|
| 61 |
+
msgstr "Ayudanos a crecer, deja el link asi otros bloggers descubren Sociable a traves de tu blog"
|
| 62 |
+
|
| 63 |
+
#: class-sociable_Admin_Options.php:242
|
| 64 |
+
msgid "Icons to Include"
|
| 65 |
+
msgstr "Iconos a incluir"
|
| 66 |
+
|
| 67 |
+
#: class-sociable_Admin_Options.php:249
|
| 68 |
+
msgid "Check the sites you want to appear on your blog."
|
| 69 |
+
msgstr "Selecciona los sitios que quieres que aparezcan en su blog"
|
| 70 |
+
|
| 71 |
+
#: class-sociable_Admin_Options.php:261
|
| 72 |
+
msgid "Icons Size"
|
| 73 |
+
msgstr "Tamaño de los iconos"
|
| 74 |
+
|
| 75 |
+
#: class-sociable_Admin_Options.php:291
|
| 76 |
+
msgid "Icons Style"
|
| 77 |
+
msgstr "Estilo de los iconos"
|
| 78 |
+
|
| 79 |
+
#: class-sociable_Admin_Options.php:344
|
| 80 |
+
msgid ""
|
| 81 |
+
"Please select the locations that you wish to allow the Sociable plugin to "
|
| 82 |
+
"insert itself."
|
| 83 |
+
msgstr "Por favor selecciona donde quieres insertar Sociable"
|
| 84 |
+
|
| 85 |
+
#: class-sociable_Admin_Options.php:350
|
| 86 |
+
msgid "Home page"
|
| 87 |
+
msgstr "Pagina Princial (Home)"
|
| 88 |
+
|
| 89 |
+
#: class-sociable_Admin_Options.php:353
|
| 90 |
+
msgid ""
|
| 91 |
+
"The front page of the blog (if set to a static page), or the main blog page "
|
| 92 |
+
"(if set to your latest posts)."
|
| 93 |
+
msgstr "La pagina principal del blog (si esta como pagina estatica), o la primera pagina del blog (si esta configurado para mostrar los ultimos posts)"
|
| 94 |
+
|
| 95 |
+
#: class-sociable_Admin_Options.php:359
|
| 96 |
+
msgid "Blog page"
|
| 97 |
+
msgstr "Pagina del post (Blog page)"
|
| 98 |
+
|
| 99 |
+
#: class-sociable_Admin_Options.php:362
|
| 100 |
+
msgid ""
|
| 101 |
+
"The home page of the blog if is set to your latest posts, or the posts page "
|
| 102 |
+
"if the home page is set to a static page"
|
| 103 |
+
msgstr "La pagina principal del blog (si esta configurado para mostrar los ultimos posts), o la primera pagina del blog (si esta como pagina estatica)"
|
| 104 |
+
|
| 105 |
+
#: class-sociable_Admin_Options.php:368
|
| 106 |
+
msgid "Posts"
|
| 107 |
+
msgstr "Entradas (Blog post)"
|
| 108 |
+
|
| 109 |
+
#: class-sociable_Admin_Options.php:371
|
| 110 |
+
msgid "Single post pages"
|
| 111 |
+
msgstr "Pagina de entrada simple"
|
| 112 |
+
|
| 113 |
+
#: class-sociable_Admin_Options.php:377
|
| 114 |
+
msgid "Pages"
|
| 115 |
+
msgstr "Paginas"
|
| 116 |
+
|
| 117 |
+
#: class-sociable_Admin_Options.php:380
|
| 118 |
+
msgid "Individual Wordpress pages"
|
| 119 |
+
msgstr "Paginas de Wordpress individuales"
|
| 120 |
+
|
| 121 |
+
#: class-sociable_Admin_Options.php:386
|
| 122 |
+
msgid "Category archives"
|
| 123 |
+
msgstr "Archivos: Categoria"
|
| 124 |
+
|
| 125 |
+
#: class-sociable_Admin_Options.php:389
|
| 126 |
+
msgid "Category archive pages"
|
| 127 |
+
msgstr "Paginas de Archivos por Categoria"
|
| 128 |
+
|
| 129 |
+
#: class-sociable_Admin_Options.php:395
|
| 130 |
+
msgid "Date archives"
|
| 131 |
+
msgstr "Fecha de Archivos"
|
| 132 |
+
|
| 133 |
+
#: class-sociable_Admin_Options.php:398
|
| 134 |
+
msgid "Date archive pages"
|
| 135 |
+
msgstr "Paginas de fecha de archivos"
|
| 136 |
+
|
| 137 |
+
#: class-sociable_Admin_Options.php:404
|
| 138 |
+
msgid "Tag archives"
|
| 139 |
+
msgstr "Archivos: Tag"
|
| 140 |
+
|
| 141 |
+
#: class-sociable_Admin_Options.php:407
|
| 142 |
+
msgid "Tag archive pages"
|
| 143 |
+
msgstr "Paginas de Archivos de Tags"
|
| 144 |
+
|
| 145 |
+
#: class-sociable_Admin_Options.php:413
|
| 146 |
+
msgid "Author archives"
|
| 147 |
+
msgstr "Archivos: Autor"
|
| 148 |
+
|
| 149 |
+
#: class-sociable_Admin_Options.php:416
|
| 150 |
+
msgid "Author archive pages"
|
| 151 |
+
msgstr "Paginas de Archivos: Autor"
|
| 152 |
+
|
| 153 |
+
#: class-sociable_Admin_Options.php:422
|
| 154 |
+
msgid "Search results"
|
| 155 |
+
msgstr "Resultados de Busqueda"
|
| 156 |
+
|
| 157 |
+
#: class-sociable_Admin_Options.php:425
|
| 158 |
+
msgid "Search results pages"
|
| 159 |
+
msgstr "Paginas de resultados de busqueda"
|
| 160 |
+
|
| 161 |
+
#: class-sociable_Admin_Options.php:431 class-sociable_Admin_Options.php:434
|
| 162 |
+
msgid "RSS feeds"
|
| 163 |
+
msgstr "Entradas de RSS"
|
| 164 |
+
|
| 165 |
+
#: class-sociable_Admin_Options.php:458
|
| 166 |
+
msgid "Automatic mode"
|
| 167 |
+
msgstr "Modo Automatico"
|
| 168 |
+
|
| 169 |
+
#: class-sociable_Admin_Options.php:461
|
| 170 |
+
msgid "Do you want to automatically use Sociable on the locations specified?"
|
| 171 |
+
msgstr "Quieres usar Sociable automaticamente en las ubicaciones especificadas?"
|
| 172 |
+
|
| 173 |
+
#: class-sociable_Admin_Options.php:464
|
| 174 |
+
msgid ""
|
| 175 |
+
"If this is unchecked, you will have to use the shortcode[sociable/] or "
|
| 176 |
+
"template"
|
| 177 |
+
msgstr "Si esto esta des-chequeado, tendras que usar el shortcode[sociable/] o template"
|
| 178 |
+
|
| 179 |
+
#: class-sociable_Admin_Options.php:473
|
| 180 |
+
msgid "Use styleSheet"
|
| 181 |
+
msgstr "Usar StyleSheet"
|
| 182 |
+
|
| 183 |
+
#: class-sociable_Admin_Options.php:476
|
| 184 |
+
msgid "Do you want to use the default stylesheet for sociable?"
|
| 185 |
+
msgstr "Quieres usar el stylesheet por default para Sociable?"
|
| 186 |
+
|
| 187 |
+
#: class-sociable_Admin_Options.php:480
|
| 188 |
+
msgid "Use your own icons"
|
| 189 |
+
msgstr "Usa tus propios iconos"
|
| 190 |
+
|
| 191 |
+
#: class-sociable_Admin_Options.php:483
|
| 192 |
+
msgid "Do you want to use your own icons for sociable?"
|
| 193 |
+
msgstr ""
|
| 194 |
+
|
| 195 |
+
#: class-sociable_Admin_Options.php:487
|
| 196 |
+
msgid "Use images"
|
| 197 |
+
msgstr "Usar Imagenes"
|
| 198 |
+
|
| 199 |
+
#: class-sociable_Admin_Options.php:490
|
| 200 |
+
msgid ""
|
| 201 |
+
"Do you want to use the Sociable images? If not, the plugin will insert plain "
|
| 202 |
+
"text links."
|
| 203 |
+
msgstr "Quieres usar imagenes de Sociable? En caso negativo, Sociable insertara links de texto planos"
|
| 204 |
+
|
| 205 |
+
#: class-sociable_Admin_Options.php:496
|
| 206 |
+
msgid "Use alpha mask"
|
| 207 |
+
msgstr "Usar alphamask"
|
| 208 |
+
|
| 209 |
+
#: class-sociable_Admin_Options.php:499
|
| 210 |
+
msgid ""
|
| 211 |
+
"Do you want to use alpha masks on the images (available only on the Original "
|
| 212 |
+
"Sociable)?"
|
| 213 |
+
msgstr "Quieres usar alphamask en las imagenes (Solo en la version original de Sociable)?"
|
| 214 |
+
|
| 215 |
+
#: class-sociable_Admin_Options.php:504
|
| 216 |
+
msgid "Open in new window"
|
| 217 |
+
msgstr "Abrir en ventana nueva"
|
| 218 |
+
|
| 219 |
+
#: class-sociable_Admin_Options.php:507
|
| 220 |
+
msgid "do you want to open the links in a new window?"
|
| 221 |
+
msgstr "Quieres abrir los links en ventana nueva?"
|
| 222 |
+
|
| 223 |
+
#: class-sociable_Admin_Options.php:525
|
| 224 |
+
msgid "Save Changes"
|
| 225 |
+
msgstr "Guardar cambios"
|
| 226 |
+
|
| 227 |
+
#: class-sociable_Admin_Options.php:528
|
| 228 |
+
msgid "Reset Sociable"
|
| 229 |
+
msgstr "Resetear Sociable"
|
| 230 |
+
|
| 231 |
+
#: class-sociable_Admin_Options.php:531
|
| 232 |
+
msgid "Completly Uninstall Sociable"
|
| 233 |
+
msgstr "Desinstalar Sociable"
|
| 234 |
+
|
| 235 |
+
#: class-sociable_Admin_Options.php:564
|
| 236 |
+
msgid "Disable sociable"
|
| 237 |
+
msgstr ""
|
| 238 |
+
|
| 239 |
+
#: class-sociable_Admin_Options.php:575
|
| 240 |
+
msgid "Check This To Disable Sociable 2 On This Post Only."
|
| 241 |
+
msgstr ""
|
| 242 |
+
|
| 243 |
+
#: class-sociable_Admin_Options.php:624
|
| 244 |
+
msgid ""
|
| 245 |
+
"Please Select The Locations That You Wish To Allow The Sociable 2 Plugin To "
|
| 246 |
+
"Insert The Links."
|
| 247 |
+
msgstr ""
|
readme.txt
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
=== Sociable ===
|
| 2 |
Author: sociable
|
| 3 |
Tags: sociable, social bookmarking, social bookmarks, social icons, bookmarking, share, sharing, be sociable share, share and enjoy, digg, delicious, twitter, facebook, blinklist, stumbleupon, gmail, posterous, tumblr
|
| 4 |
-
Requires Wordpress at least version: 2.
|
| 5 |
Tested up to version: 3.2.1
|
| 6 |
Requires at least: 2.6
|
| 7 |
|
| 8 |
-
Tested up to: 2.
|
| 9 |
-
Stable tag: 4.0
|
| 10 |
== Description ==
|
| 11 |
Sociable continues being the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,2mm downloads now, here comes the version 4.0, with everything you expect to get, and then some.
|
| 12 |
|
|
@@ -25,7 +25,7 @@ What happened to the old icons? You can still use them in the new version, but t
|
|
| 25 |
|
| 26 |
Sociable finds its home outside of the WordPress environment on Blogplay.com-
|
| 27 |
|
| 28 |
-
*** Sociable 4.0
|
| 29 |
|
| 30 |
= Recent Updates =
|
| 31 |
* Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of cours you can customize it to whatever you want.
|
|
@@ -73,6 +73,9 @@ Please send us an email to sociableblogplay [ at ] gmail.com
|
|
| 73 |
|
| 74 |
== Changelog ==
|
| 75 |
|
|
|
|
|
|
|
|
|
|
| 76 |
= 4.0.6 =
|
| 77 |
* FIXED: Allow Sub Directory Blogs (http://domain.com/blog)
|
| 78 |
|
| 1 |
=== Sociable ===
|
| 2 |
Author: sociable
|
| 3 |
Tags: sociable, social bookmarking, social bookmarks, social icons, bookmarking, share, sharing, be sociable share, share and enjoy, digg, delicious, twitter, facebook, blinklist, stumbleupon, gmail, posterous, tumblr
|
| 4 |
+
Requires Wordpress at least version: 2.6
|
| 5 |
Tested up to version: 3.2.1
|
| 6 |
Requires at least: 2.6
|
| 7 |
|
| 8 |
+
Tested up to: 2.6
|
| 9 |
+
Stable tag: 4.1.0
|
| 10 |
== Description ==
|
| 11 |
Sociable continues being the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,2mm downloads now, here comes the version 4.0, with everything you expect to get, and then some.
|
| 12 |
|
| 25 |
|
| 26 |
Sociable finds its home outside of the WordPress environment on Blogplay.com-
|
| 27 |
|
| 28 |
+
*** Sociable 4.1.0 ***
|
| 29 |
|
| 30 |
= Recent Updates =
|
| 31 |
* Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of cours you can customize it to whatever you want.
|
| 73 |
|
| 74 |
== Changelog ==
|
| 75 |
|
| 76 |
+
= 4.1.0 =
|
| 77 |
+
* ADDED: Facebook Like Counter, Twitter Counter, Google Plus Counter, Linkedin Counter,StumbleUpon Counter and Digg Counter
|
| 78 |
+
|
| 79 |
= 4.0.6 =
|
| 80 |
* FIXED: Allow Sub Directory Blogs (http://domain.com/blog)
|
| 81 |
|
sociable.php
CHANGED
|
@@ -113,9 +113,9 @@ function sociable_reset(){
|
|
| 113 |
//Delete All Metadata From The Database ?
|
| 114 |
$wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
|
| 115 |
|
| 116 |
-
$sociable_options = array(
|
| 117 |
'automatic_mode' => 'on',
|
| 118 |
'tagline' => 'Be Sociable, Share!',
|
| 119 |
'custom_image_directory' => '',
|
| 120 |
'use_stylesheet' => 'on',
|
| 121 |
'use_images' => 'on',
|
| 122 |
|
| 123 |
'use_alphamask' => 'on',
|
| 124 |
'new_window' => 'on',
|
| 125 |
'locations' => array(
|
| 126 |
'is_single' => 'on',
|
| 127 |
'is_page' => 'on'
|
| 128 |
),
|
| 129 |
'active_sites' => array(
|
| 130 |
'Facebook' => 'on',
|
| 131 |
'StumbleUpon' =>'on',
|
| 132 |
),
|
| 133 |
'icon_size' => '32',
|
| 134 |
);
|
|
|
|
| 135 |
'automatic_mode' => 'on',
|
| 136 |
'tagline' => 'Be Sociable, Share!',
|
| 137 |
'custom_image_directory' => '',
|
| 138 |
'use_stylesheet' => 'on',
|
| 139 |
'use_images' => 'on',
|
| 140 |
|
| 141 |
'use_alphamask' => 'on',
|
| 142 |
'new_window' => 'on',
|
| 143 |
'locations' => array(
|
| 144 |
'is_single' => 'on',
|
| 145 |
'is_page' => 'on'
|
| 146 |
),
|
| 147 |
'active_sites' => array(
|
| 148 |
'Facebook' => 'on',
|
| 149 |
'StumbleUpon' =>'on',
|
| 150 |
),
|
| 151 |
'icon_size' => '32',
|
| 152 |
);
|
| 153 |
|
| 154 |
-
$sociable_known_sites = array(
|
| 155 |
'Facebook' => array(
|
| 156 |
'favicon' => 'facebook.png',
|
| 157 |
'url' => 'http://www.facebook.com/share.php?u=PERMALINK&t=TITLE',
|
| 158 |
'16' => array("-48px","0px"),
|
| 159 |
'32' => array("-96px","0px"),
|
| 160 |
'48' => array("-144px","0px"),
|
| 161 |
'64' => array("-192px","0px")
|
| 162 |
)
|
| 163 |
),
|
| 164 |
'favicon' => 'facebook.png',
|
| 165 |
'url' => '<iframe src="//www.facebook.com/plugins/like.php?href=PERMALINK&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:80px;width:100px" allowTransparency="true"></iframe>',
|
| 166 |
|
| 167 |
'16' => array("-48px","0px"),
|
| 168 |
'32' => array("-96px","0px"),
|
| 169 |
'48' => array("-144px","0px"),
|
| 170 |
'64' => array("-192px","0px")
|
| 171 |
)
|
| 172 |
), */
|
| 173 |
'Myspace' => array(
|
| 174 |
'favicon' => 'myspace.png',
|
| 175 |
'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&t=TITLE',
|
| 176 |
'spriteCoordinates' => Array(
|
| 177 |
'16' => array("0px","-16px"),
|
| 178 |
'32' => array("0px","-32px"),
|
| 179 |
'48' => array("0px","-48px"),
|
| 180 |
'64' => array("0px","-64px")
|
| 181 |
)
|
| 182 |
),
|
| 183 |
'Twitter' => array(
|
| 184 |
'favicon' => 'twitter.png',
|
| 185 |
'url' => 'http://twitter.com/intent/tweet?text=TITLE%20-%20PERMALINK%20(via%20@sociablesite)',
|
| 186 |
'spriteCoordinates' => Array(
|
| 187 |
'16' => array("-144px","-16px"),
|
| 188 |
'32' => array("-288px","-32px"),
|
| 189 |
'48' => array("-432px","-48px"),
|
| 190 |
'64' => array("-576px","-64px")
|
| 191 |
)
|
| 192 |
),
|
| 193 |
'LinkedIn' => array(
|
| 194 |
'favicon' => 'linkedin.png',
|
| 195 |
'url' => 'http://www.linkedin.com/shareArticle?mini=true&url=PERMALINK&title=TITLE&source=BLOGNAME&summary=EXCERPT',
|
| 196 |
'spriteCoordinates' => Array(
|
| 197 |
'16' => array("-144px","0px"),
|
| 198 |
'32' => array("-288px","0px"),
|
| 199 |
'48' => array("-432px","0px"),
|
| 200 |
'64' => array("-576px","0px")
|
| 201 |
)
|
| 202 |
|
| 203 |
),
|
| 204 |
'Delicious' => array(
|
| 205 |
'favicon' => 'delicious.png',
|
| 206 |
'url' => 'http://delicious.com/post?url=PERMALINK&title=TITLE&notes=EXCERPT',
|
| 207 |
'spriteCoordinates' => Array(
|
| 208 |
'16' => array("-16px","0px"),
|
| 209 |
'32' => array("-32px","0px"),
|
| 210 |
'48' => array("-48px","0px"),
|
| 211 |
'64' => array("-64px","0px")
|
| 212 |
)
|
| 213 |
),
|
| 214 |
'Digg' => array(
|
| 215 |
'favicon' => 'digg.png',
|
| 216 |
'url' => 'http://digg.com/submit?phase=2&url=PERMALINK&title=TITLE&bodytext=EXCERPT',
|
| 217 |
'spriteCoordinates' => Array(
|
| 218 |
'16' => array("-32px","0px"),
|
| 219 |
'32' => array("-64px","0px"),
|
| 220 |
'48' => array("-96px","0px"),
|
| 221 |
'64' => array("-128px","0px")
|
| 222 |
)
|
| 223 |
),
|
| 224 |
'Reddit' => array(
|
| 225 |
'favicon' => 'reddit.png',
|
| 226 |
'url' => 'http://reddit.com/submit?url=PERMALINK&title=TITLE',
|
| 227 |
'spriteCoordinates' => Array(
|
| 228 |
'16' => array("-64px","-16px"),
|
| 229 |
'32' => array("-128px","-32px"),
|
| 230 |
'48' => array("-192px","-48px"),
|
| 231 |
'64' => array("-256px","-64px")
|
| 232 |
)
|
| 233 |
),
|
| 234 |
|
| 235 |
'StumbleUpon' => array(
|
| 236 |
'favicon' => 'stumbleupon.png',
|
| 237 |
'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&title=TITLE',
|
| 238 |
'spriteCoordinates' => Array(
|
| 239 |
'16' => array("-112px","-16px"),
|
| 240 |
'32' => array("-224px","-32px"),
|
| 241 |
'48' => array("-336px","-48px"),
|
| 242 |
'64' => array("-448px","-64px")
|
| 243 |
)
|
| 244 |
),
|
| 245 |
'favicon' => 'google.png',
|
| 246 |
'url' => 'http://www.google.com/bookmarks/mark?op=edit&bkmk=PERMALINK&title=TITLE&annotation=EXCERPT',
|
| 247 |
'description' => 'Google Bookmarks',
|
| 248 |
'spriteCoordinates' => Array(
|
| 249 |
'16' => array("-96px","0px"),
|
| 250 |
'32' => array("-192px","0px"),
|
| 251 |
'48' => array("-288px","0px"),
|
| 252 |
'64' => array("-384px","0px")
|
| 253 |
)
|
| 254 |
),
|
| 255 |
'favicon' => 'hacker_news.png',
|
| 256 |
'url' => 'http://news.ycombinator.com/submitlink?u=PERMALINK&t=TITLE',
|
| 257 |
'spriteCoordinates' => Array(
|
| 258 |
'16' => array("-128px","0px"),
|
| 259 |
'32' => array("-256px","0px"),
|
| 260 |
'48' => array("-384px","0px"),
|
| 261 |
'64' => array("-512px","0px")
|
| 262 |
)
|
| 263 |
),
|
| 264 |
'favicon' => 'msn.png',
|
| 265 |
'url' => 'http://reporter.es.msn.com/?fn=contribute&Title=TITLE&URL=PERMALINK&cat_id=6&tag_id=31&Remark=EXCERPT',
|
| 266 |
'description' => 'MSN Reporter',
|
| 267 |
'spriteCoordinates' => Array(
|
| 268 |
'16' => array("-176px","0px"),
|
| 269 |
'32' => array("-352px","0px"),
|
| 270 |
'48' => array("-528px","0px"),
|
| 271 |
'64' => array("-704px","0px")
|
| 272 |
)
|
| 273 |
),
|
| 274 |
'favicon' => 'blinklist.png',
|
| 275 |
'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=PERMALINK&Title=TITLE',
|
| 276 |
'spriteCoordinates' => Array(
|
| 277 |
'16' => array("0px","0px"),
|
| 278 |
'32' => array("0px","0px"),
|
| 279 |
'48' => array("0px","0px"),
|
| 280 |
'64' => array("0px","0px")
|
| 281 |
),
|
| 282 |
'supportsIframe' => false,
|
| 283 |
),
|
| 284 |
'favicon' => 'sphinn.png',
|
| 285 |
'url' => 'http://sphinn.com/index.php?c=post&m=submit&link=PERMALINK',
|
| 286 |
'spriteCoordinates' => Array(
|
| 287 |
'16' => array("-96px","-16px"),
|
| 288 |
'32' => array("-192px","-32px"),
|
| 289 |
'48' => array("-288px","-48px"),
|
| 290 |
'64' => array("-384px","-64px")
|
| 291 |
)
|
| 292 |
),
|
| 293 |
'favicon' => 'posterous.png',
|
| 294 |
'url' => 'http://posterous.com/share?linkto=PERMALINK&title=TITLE&selection=EXCERPT',
|
| 295 |
'spriteCoordinates' => Array(
|
| 296 |
'16' => array("-32px","-16px"),
|
| 297 |
'32' => array("-64px","-32px"),
|
| 298 |
'48' => array("-96px","-48px"),
|
| 299 |
'64' => array("-128px","-64px")
|
| 300 |
)
|
| 301 |
),
|
| 302 |
'favicon' => 'tumblr.png',
|
| 303 |
'url' => 'http://www.tumblr.com/share?v=3&u=PERMALINK&t=TITLE&s=EXCERPT',
|
| 304 |
'spriteCoordinates' => Array(
|
| 305 |
'16' => array("-128px","-16px"),
|
| 306 |
'32' => array("-256px","-32px"),
|
| 307 |
'48' => array("-384px","-48px"),
|
| 308 |
'64' => array("-512px","-64px")
|
| 309 |
'supportsIframe' => false
|
| 310 |
),
|
| 311 |
'favicon' => 'gmail.png',
|
| 312 |
'spriteCoordinates' => Array(
|
| 313 |
'16' => array("-80px","0px"),
|
| 314 |
'32' => array("-160px","0px"),
|
| 315 |
'48' => array("-240px","0px"),
|
| 316 |
'64' => array("-320px","0px")
|
| 317 |
),
|
| 318 |
'supportsIframe' => false
|
| 319 |
),
|
| 320 |
'16' => array("-112px","0px"),
|
| 321 |
'32' => array("-224px","0px"),
|
| 322 |
'48' => array("-336px","0px"),
|
| 323 |
'64' => array("-448px","0px")
|
| 324 |
)
|
| 325 |
'16' => array("-64px","0px"),
|
| 326 |
'32' => array("-128px","0px"),
|
| 327 |
'48' => array("-192px","0px"),
|
| 328 |
'64' => array("-256px","0px")
|
| 329 |
)
|
| 330 |
'16' => array("0px","0px"),
|
| 331 |
'32' => array("0px","0px"),
|
| 332 |
'48' => array("0px","0px"),
|
| 333 |
'64' => array("0px","0px")
|
| 334 |
)
|
| 335 |
);
|
|
|
|
| 336 |
'Facebook' => array(
|
| 337 |
'favicon' => 'facebook.png',
|
| 338 |
'url' => 'http://www.facebook.com/share.php?u=PERMALINK&t=TITLE',
|
| 339 |
'16' => array("-48px","0px"),
|
| 340 |
'32' => array("-96px","0px"),
|
| 341 |
'48' => array("-144px","0px"),
|
| 342 |
'64' => array("-192px","0px")
|
| 343 |
)
|
| 344 |
),
|
| 345 |
'favicon' => 'likecounter.png',
|
| 346 |
'url' => '<iframe src="//www.facebook.com/plugins/like.php?href=PERMALINK&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe>',
|
| 347 |
|
| 348 |
'16' => array("-48px","0px"),
|
| 349 |
'32' => array("-96px","0px"),
|
| 350 |
'48' => array("-144px","0px"),
|
| 351 |
'64' => array("-192px","0px")
|
| 352 |
)
|
| 353 |
),
|
| 354 |
'Myspace' => array(
|
| 355 |
'favicon' => 'myspace.png',
|
| 356 |
'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&t=TITLE',
|
| 357 |
'spriteCoordinates' => Array(
|
| 358 |
'16' => array("0px","-16px"),
|
| 359 |
'32' => array("0px","-32px"),
|
| 360 |
'48' => array("0px","-48px"),
|
| 361 |
'64' => array("0px","-64px")
|
| 362 |
)
|
| 363 |
),
|
| 364 |
'Twitter' => array(
|
| 365 |
'favicon' => 'twitter.png',
|
| 366 |
'url' => 'http://twitter.com/intent/tweet?text=TITLE%20-%20PERMALINK%20(via%20@sociablesite)',
|
| 367 |
'spriteCoordinates' => Array(
|
| 368 |
'16' => array("-144px","-16px"),
|
| 369 |
'32' => array("-288px","-32px"),
|
| 370 |
'48' => array("-432px","-48px"),
|
| 371 |
'64' => array("-576px","-64px")
|
| 372 |
)
|
| 373 |
),
|
| 374 |
'favicon' => 'twitter.png',
|
| 375 |
'url' => '<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>',
|
| 376 |
'spriteCoordinates' => Array(
|
| 377 |
'16' => array("-144px","-16px"),
|
| 378 |
'32' => array("-288px","-32px"),
|
| 379 |
'48' => array("-432px","-48px"),
|
| 380 |
'64' => array("-576px","-64px")
|
| 381 |
)
|
| 382 |
),
|
| 383 |
'LinkedIn' => array(
|
| 384 |
'favicon' => 'linkedin.png',
|
| 385 |
'url' => 'http://www.linkedin.com/shareArticle?mini=true&url=PERMALINK&title=TITLE&source=BLOGNAME&summary=EXCERPT',
|
| 386 |
'spriteCoordinates' => Array(
|
| 387 |
'16' => array("-144px","0px"),
|
| 388 |
'32' => array("-288px","0px"),
|
| 389 |
'48' => array("-432px","0px"),
|
| 390 |
'64' => array("-576px","0px")
|
| 391 |
)
|
| 392 |
|
| 393 |
),
|
| 394 |
'favicon' => 'linkedin.png',
|
| 395 |
'url' => '<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-counter="right"></script>',
|
| 396 |
'spriteCoordinates' => Array(
|
| 397 |
'16' => array("-144px","0px"),
|
| 398 |
'32' => array("-288px","0px"),
|
| 399 |
'48' => array("-432px","0px"),
|
| 400 |
'64' => array("-576px","0px")
|
| 401 |
)
|
| 402 |
|
| 403 |
),
|
| 404 |
'Delicious' => array(
|
| 405 |
'favicon' => 'delicious.png',
|
| 406 |
'url' => 'http://delicious.com/post?url=PERMALINK&title=TITLE&notes=EXCERPT',
|
| 407 |
'spriteCoordinates' => Array(
|
| 408 |
'16' => array("-16px","0px"),
|
| 409 |
'32' => array("-32px","0px"),
|
| 410 |
'48' => array("-48px","0px"),
|
| 411 |
'64' => array("-64px","0px")
|
| 412 |
)
|
| 413 |
),
|
| 414 |
'Digg' => array(
|
| 415 |
'favicon' => 'digg.png',
|
| 416 |
'url' => 'http://digg.com/submit?phase=2&url=PERMALINK&title=TITLE&bodytext=EXCERPT',
|
| 417 |
'spriteCoordinates' => Array(
|
| 418 |
'16' => array("-32px","0px"),
|
| 419 |
'32' => array("-64px","0px"),
|
| 420 |
'48' => array("-96px","0px"),
|
| 421 |
'64' => array("-128px","0px")
|
| 422 |
)
|
| 423 |
),
|
| 424 |
'favicon' => 'digg.png',
|
| 425 |
'url' => "<script type='text/javascript'>(function() {var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];s.type = 'text/javascript';s.async = true;s.src = 'http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s, s1);})();</script><a class='DiggThisButton DiggCompact'></a>",
|
| 426 |
'spriteCoordinates' => Array(
|
| 427 |
'16' => array("-32px","0px"),
|
| 428 |
'32' => array("-64px","0px"),
|
| 429 |
'48' => array("-96px","0px"),
|
| 430 |
'64' => array("-128px","0px")
|
| 431 |
)
|
| 432 |
),
|
| 433 |
'Reddit' => array(
|
| 434 |
'favicon' => 'reddit.png',
|
| 435 |
'url' => 'http://reddit.com/submit?url=PERMALINK&title=TITLE',
|
| 436 |
'spriteCoordinates' => Array(
|
| 437 |
'16' => array("-64px","-16px"),
|
| 438 |
'32' => array("-128px","-32px"),
|
| 439 |
'48' => array("-192px","-48px"),
|
| 440 |
'64' => array("-256px","-64px")
|
| 441 |
)
|
| 442 |
),
|
| 443 |
|
| 444 |
'StumbleUpon' => array(
|
| 445 |
'favicon' => 'stumbleupon.png',
|
| 446 |
'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&title=TITLE',
|
| 447 |
'spriteCoordinates' => Array(
|
| 448 |
'16' => array("-112px","-16px"),
|
| 449 |
'32' => array("-224px","-32px"),
|
| 450 |
'48' => array("-336px","-48px"),
|
| 451 |
'64' => array("-448px","-64px")
|
| 452 |
)),
|
| 453 |
'favicon' => 'stumbleupon.png',
|
| 454 |
'url' => '<script src="http://www.stumbleupon.com/hostedbadge.php?s=2"></script>',
|
| 455 |
'spriteCoordinates' => Array(
|
| 456 |
'16' => array("-112px","-16px"),
|
| 457 |
'32' => array("-224px","-32px"),
|
| 458 |
'48' => array("-336px","-48px"),
|
| 459 |
'64' => array("-448px","-64px")
|
| 460 |
)
|
| 461 |
),
|
| 462 |
'favicon' => 'google.png',
|
| 463 |
'url' => 'http://www.google.com/bookmarks/mark?op=edit&bkmk=PERMALINK&title=TITLE&annotation=EXCERPT',
|
| 464 |
'description' => 'Google Bookmarks',
|
| 465 |
'spriteCoordinates' => Array(
|
| 466 |
'16' => array("-96px","0px"),
|
| 467 |
'32' => array("-192px","0px"),
|
| 468 |
'48' => array("-288px","0px"),
|
| 469 |
'64' => array("-384px","0px")
|
| 470 |
)
|
| 471 |
),
|
| 472 |
'favicon' => 'google.png',
|
| 473 |
/* 'url' => '<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
|
| 474 |
<script type="text/javascript">
|
| 475 |
window.___gcfg = {
|
| 476 |
lang: \'en-US\'
|
| 477 |
};
|
| 478 |
(function() {
|
| 479 |
var po = document.createElement(\'script\'); po.type = \'text/javascript\'; po.async = true;
|
| 480 |
po.src = \'https://apis.google.com/js/plusone.js\';
|
| 481 |
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(po, s);
|
| 482 |
})();
|
| 483 |
</script>
|
| 484 |
'description' => 'Google Bookmarks',
|
| 485 |
'spriteCoordinates' => Array(
|
| 486 |
'16' => array("-96px","0px"),
|
| 487 |
'32' => array("-192px","0px"),
|
| 488 |
'48' => array("-288px","0px"),
|
| 489 |
'64' => array("-384px","0px")
|
| 490 |
)
|
| 491 |
),
|
| 492 |
'favicon' => 'hacker_news.png',
|
| 493 |
'url' => 'http://news.ycombinator.com/submitlink?u=PERMALINK&t=TITLE',
|
| 494 |
'spriteCoordinates' => Array(
|
| 495 |
'16' => array("-128px","0px"),
|
| 496 |
'32' => array("-256px","0px"),
|
| 497 |
'48' => array("-384px","0px"),
|
| 498 |
'64' => array("-512px","0px")
|
| 499 |
)
|
| 500 |
),
|
| 501 |
'favicon' => 'msn.png',
|
| 502 |
'url' => 'http://reporter.es.msn.com/?fn=contribute&Title=TITLE&URL=PERMALINK&cat_id=6&tag_id=31&Remark=EXCERPT',
|
| 503 |
'description' => 'MSN Reporter',
|
| 504 |
'spriteCoordinates' => Array(
|
| 505 |
'16' => array("-176px","0px"),
|
| 506 |
'32' => array("-352px","0px"),
|
| 507 |
'48' => array("-528px","0px"),
|
| 508 |
'64' => array("-704px","0px")
|
| 509 |
)
|
| 510 |
),
|
| 511 |
'favicon' => 'blinklist.png',
|
| 512 |
'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=PERMALINK&Title=TITLE',
|
| 513 |
'spriteCoordinates' => Array(
|
| 514 |
'16' => array("0px","0px"),
|
| 515 |
'32' => array("0px","0px"),
|
| 516 |
'48' => array("0px","0px"),
|
| 517 |
'64' => array("0px","0px")
|
| 518 |
),
|
| 519 |
'supportsIframe' => false,
|
| 520 |
),
|
| 521 |
'favicon' => 'sphinn.png',
|
| 522 |
'url' => 'http://sphinn.com/index.php?c=post&m=submit&link=PERMALINK',
|
| 523 |
'spriteCoordinates' => Array(
|
| 524 |
'16' => array("-96px","-16px"),
|
| 525 |
'32' => array("-192px","-32px"),
|
| 526 |
'48' => array("-288px","-48px"),
|
| 527 |
'64' => array("-384px","-64px")
|
| 528 |
)
|
| 529 |
),
|
| 530 |
'favicon' => 'posterous.png',
|
| 531 |
'url' => 'http://posterous.com/share?linkto=PERMALINK&title=TITLE&selection=EXCERPT',
|
| 532 |
'spriteCoordinates' => Array(
|
| 533 |
'16' => array("-32px","-16px"),
|
| 534 |
'32' => array("-64px","-32px"),
|
| 535 |
'48' => array("-96px","-48px"),
|
| 536 |
'64' => array("-128px","-64px")
|
| 537 |
)
|
| 538 |
),
|
| 539 |
'favicon' => 'tumblr.png',
|
| 540 |
'url' => 'http://www.tumblr.com/share?v=3&u=PERMALINK&t=TITLE&s=EXCERPT',
|
| 541 |
'spriteCoordinates' => Array(
|
| 542 |
'16' => array("-128px","-16px"),
|
| 543 |
'32' => array("-256px","-32px"),
|
| 544 |
'48' => array("-384px","-48px"),
|
| 545 |
'64' => array("-512px","-64px")
|
| 546 |
'supportsIframe' => false
|
| 547 |
),
|
| 548 |
'favicon' => 'gmail.png',
|
| 549 |
'spriteCoordinates' => Array(
|
| 550 |
'16' => array("-80px","0px"),
|
| 551 |
'32' => array("-160px","0px"),
|
| 552 |
'48' => array("-240px","0px"),
|
| 553 |
'64' => array("-320px","0px")
|
| 554 |
),
|
| 555 |
'supportsIframe' => false
|
| 556 |
),
|
| 557 |
'16' => array("-112px","0px"),
|
| 558 |
'32' => array("-224px","0px"),
|
| 559 |
'48' => array("-336px","0px"),
|
| 560 |
'64' => array("-448px","0px")
|
| 561 |
)
|
| 562 |
'16' => array("-64px","0px"),
|
| 563 |
'32' => array("-128px","0px"),
|
| 564 |
'48' => array("-192px","0px"),
|
| 565 |
'64' => array("-256px","0px")
|
| 566 |
)
|
| 567 |
'16' => array("0px","0px"),
|
| 568 |
'32' => array("0px","0px"),
|
| 569 |
'48' => array("0px","0px"),
|
| 570 |
'64' => array("0px","0px")
|
| 571 |
)
|
| 572 |
);
|
| 573 |
|
| 574 |
//Update will create if it doesn't exist.
|
| 575 |
update_option( 'sociable_known_sites' , $sociable_known_sites );
|
| 113 |
//Delete All Metadata From The Database ?
|
| 114 |
$wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
|
| 115 |
|
|
|
|
| 116 |
'automatic_mode' => 'on',
|
| 117 |
'tagline' => 'Be Sociable, Share!',
|
| 118 |
'custom_image_directory' => '',
|
| 119 |
'use_stylesheet' => 'on',
|
| 120 |
'use_images' => 'on',
|
| 121 |
|
| 122 |
'use_alphamask' => 'on',
|
| 123 |
'new_window' => 'on',
|
| 124 |
'locations' => array(
|
| 125 |
'is_single' => 'on',
|
| 126 |
'is_page' => 'on'
|
| 127 |
),
|
| 128 |
'active_sites' => array(
|
| 129 |
'Facebook' => 'on',
|
| 130 |
'StumbleUpon' =>'on',
|
| 131 |
),
|
| 132 |
'icon_size' => '32',
|
| 133 |
);
|
| 134 |
+
$sociable_options = array(
|
| 135 |
'automatic_mode' => 'on',
|
| 136 |
'tagline' => 'Be Sociable, Share!',
|
| 137 |
'custom_image_directory' => '',
|
| 138 |
'use_stylesheet' => 'on',
|
| 139 |
'use_images' => 'on',
|
| 140 |
|
| 141 |
'use_alphamask' => 'on',
|
| 142 |
'new_window' => 'on',
|
| 143 |
'locations' => array(
|
| 144 |
'is_single' => 'on',
|
| 145 |
'is_page' => 'on'
|
| 146 |
),
|
| 147 |
'active_sites' => array(
|
| 148 |
'Facebook' => 'on',
|
| 149 |
'StumbleUpon' =>'on',
|
| 150 |
),
|
| 151 |
'icon_size' => '32',
|
| 152 |
);
|
| 153 |
|
|
|
|
| 154 |
'Facebook' => array(
|
| 155 |
'favicon' => 'facebook.png',
|
| 156 |
'url' => 'http://www.facebook.com/share.php?u=PERMALINK&t=TITLE',
|
| 157 |
'16' => array("-48px","0px"),
|
| 158 |
'32' => array("-96px","0px"),
|
| 159 |
'48' => array("-144px","0px"),
|
| 160 |
'64' => array("-192px","0px")
|
| 161 |
)
|
| 162 |
),
|
| 163 |
'favicon' => 'facebook.png',
|
| 164 |
'url' => '<iframe src="//www.facebook.com/plugins/like.php?href=PERMALINK&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:80px;width:100px" allowTransparency="true"></iframe>',
|
| 165 |
|
| 166 |
'16' => array("-48px","0px"),
|
| 167 |
'32' => array("-96px","0px"),
|
| 168 |
'48' => array("-144px","0px"),
|
| 169 |
'64' => array("-192px","0px")
|
| 170 |
)
|
| 171 |
), */
|
| 172 |
'Myspace' => array(
|
| 173 |
'favicon' => 'myspace.png',
|
| 174 |
'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&t=TITLE',
|
| 175 |
'spriteCoordinates' => Array(
|
| 176 |
'16' => array("0px","-16px"),
|
| 177 |
'32' => array("0px","-32px"),
|
| 178 |
'48' => array("0px","-48px"),
|
| 179 |
'64' => array("0px","-64px")
|
| 180 |
)
|
| 181 |
),
|
| 182 |
'Twitter' => array(
|
| 183 |
'favicon' => 'twitter.png',
|
| 184 |
'url' => 'http://twitter.com/intent/tweet?text=TITLE%20-%20PERMALINK%20(via%20@sociablesite)',
|
| 185 |
'spriteCoordinates' => Array(
|
| 186 |
'16' => array("-144px","-16px"),
|
| 187 |
'32' => array("-288px","-32px"),
|
| 188 |
'48' => array("-432px","-48px"),
|
| 189 |
'64' => array("-576px","-64px")
|
| 190 |
)
|
| 191 |
),
|
| 192 |
'LinkedIn' => array(
|
| 193 |
'favicon' => 'linkedin.png',
|
| 194 |
'url' => 'http://www.linkedin.com/shareArticle?mini=true&url=PERMALINK&title=TITLE&source=BLOGNAME&summary=EXCERPT',
|
| 195 |
'spriteCoordinates' => Array(
|
| 196 |
'16' => array("-144px","0px"),
|
| 197 |
'32' => array("-288px","0px"),
|
| 198 |
'48' => array("-432px","0px"),
|
| 199 |
'64' => array("-576px","0px")
|
| 200 |
)
|
| 201 |
|
| 202 |
),
|
| 203 |
'Delicious' => array(
|
| 204 |
'favicon' => 'delicious.png',
|
| 205 |
'url' => 'http://delicious.com/post?url=PERMALINK&title=TITLE&notes=EXCERPT',
|
| 206 |
'spriteCoordinates' => Array(
|
| 207 |
'16' => array("-16px","0px"),
|
| 208 |
'32' => array("-32px","0px"),
|
| 209 |
'48' => array("-48px","0px"),
|
| 210 |
'64' => array("-64px","0px")
|
| 211 |
)
|
| 212 |
),
|
| 213 |
'Digg' => array(
|
| 214 |
'favicon' => 'digg.png',
|
| 215 |
'url' => 'http://digg.com/submit?phase=2&url=PERMALINK&title=TITLE&bodytext=EXCERPT',
|
| 216 |
'spriteCoordinates' => Array(
|
| 217 |
'16' => array("-32px","0px"),
|
| 218 |
'32' => array("-64px","0px"),
|
| 219 |
'48' => array("-96px","0px"),
|
| 220 |
'64' => array("-128px","0px")
|
| 221 |
)
|
| 222 |
),
|
| 223 |
'Reddit' => array(
|
| 224 |
'favicon' => 'reddit.png',
|
| 225 |
'url' => 'http://reddit.com/submit?url=PERMALINK&title=TITLE',
|
| 226 |
'spriteCoordinates' => Array(
|
| 227 |
'16' => array("-64px","-16px"),
|
| 228 |
'32' => array("-128px","-32px"),
|
| 229 |
'48' => array("-192px","-48px"),
|
| 230 |
'64' => array("-256px","-64px")
|
| 231 |
)
|
| 232 |
),
|
| 233 |
|
| 234 |
'StumbleUpon' => array(
|
| 235 |
'favicon' => 'stumbleupon.png',
|
| 236 |
'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&title=TITLE',
|
| 237 |
'spriteCoordinates' => Array(
|
| 238 |
'16' => array("-112px","-16px"),
|
| 239 |
'32' => array("-224px","-32px"),
|
| 240 |
'48' => array("-336px","-48px"),
|
| 241 |
'64' => array("-448px","-64px")
|
| 242 |
)
|
| 243 |
),
|
| 244 |
'favicon' => 'google.png',
|
| 245 |
'url' => 'http://www.google.com/bookmarks/mark?op=edit&bkmk=PERMALINK&title=TITLE&annotation=EXCERPT',
|
| 246 |
'description' => 'Google Bookmarks',
|
| 247 |
'spriteCoordinates' => Array(
|
| 248 |
'16' => array("-96px","0px"),
|
| 249 |
'32' => array("-192px","0px"),
|
| 250 |
'48' => array("-288px","0px"),
|
| 251 |
'64' => array("-384px","0px")
|
| 252 |
)
|
| 253 |
),
|
| 254 |
'favicon' => 'hacker_news.png',
|
| 255 |
'url' => 'http://news.ycombinator.com/submitlink?u=PERMALINK&t=TITLE',
|
| 256 |
'spriteCoordinates' => Array(
|
| 257 |
'16' => array("-128px","0px"),
|
| 258 |
'32' => array("-256px","0px"),
|
| 259 |
'48' => array("-384px","0px"),
|
| 260 |
'64' => array("-512px","0px")
|
| 261 |
)
|
| 262 |
),
|
| 263 |
'favicon' => 'msn.png',
|
| 264 |
'url' => 'http://reporter.es.msn.com/?fn=contribute&Title=TITLE&URL=PERMALINK&cat_id=6&tag_id=31&Remark=EXCERPT',
|
| 265 |
'description' => 'MSN Reporter',
|
| 266 |
'spriteCoordinates' => Array(
|
| 267 |
'16' => array("-176px","0px"),
|
| 268 |
'32' => array("-352px","0px"),
|
| 269 |
'48' => array("-528px","0px"),
|
| 270 |
'64' => array("-704px","0px")
|
| 271 |
)
|
| 272 |
),
|
| 273 |
'favicon' => 'blinklist.png',
|
| 274 |
'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=PERMALINK&Title=TITLE',
|
| 275 |
'spriteCoordinates' => Array(
|
| 276 |
'16' => array("0px","0px"),
|
| 277 |
'32' => array("0px","0px"),
|
| 278 |
'48' => array("0px","0px"),
|
| 279 |
'64' => array("0px","0px")
|
| 280 |
),
|
| 281 |
'supportsIframe' => false,
|
| 282 |
),
|
| 283 |
'favicon' => 'sphinn.png',
|
| 284 |
'url' => 'http://sphinn.com/index.php?c=post&m=submit&link=PERMALINK',
|
| 285 |
'spriteCoordinates' => Array(
|
| 286 |
'16' => array("-96px","-16px"),
|
| 287 |
'32' => array("-192px","-32px"),
|
| 288 |
'48' => array("-288px","-48px"),
|
| 289 |
'64' => array("-384px","-64px")
|
| 290 |
)
|
| 291 |
),
|
| 292 |
'favicon' => 'posterous.png',
|
| 293 |
'url' => 'http://posterous.com/share?linkto=PERMALINK&title=TITLE&selection=EXCERPT',
|
| 294 |
'spriteCoordinates' => Array(
|
| 295 |
'16' => array("-32px","-16px"),
|
| 296 |
'32' => array("-64px","-32px"),
|
| 297 |
'48' => array("-96px","-48px"),
|
| 298 |
'64' => array("-128px","-64px")
|
| 299 |
)
|
| 300 |
),
|
| 301 |
'favicon' => 'tumblr.png',
|
| 302 |
'url' => 'http://www.tumblr.com/share?v=3&u=PERMALINK&t=TITLE&s=EXCERPT',
|
| 303 |
'spriteCoordinates' => Array(
|
| 304 |
'16' => array("-128px","-16px"),
|
| 305 |
'32' => array("-256px","-32px"),
|
| 306 |
'48' => array("-384px","-48px"),
|
| 307 |
'64' => array("-512px","-64px")
|
| 308 |
'supportsIframe' => false
|
| 309 |
),
|
| 310 |
'favicon' => 'gmail.png',
|
| 311 |
'spriteCoordinates' => Array(
|
| 312 |
'16' => array("-80px","0px"),
|
| 313 |
'32' => array("-160px","0px"),
|
| 314 |
'48' => array("-240px","0px"),
|
| 315 |
'64' => array("-320px","0px")
|
| 316 |
),
|
| 317 |
'supportsIframe' => false
|
| 318 |
),
|
| 319 |
'16' => array("-112px","0px"),
|
| 320 |
'32' => array("-224px","0px"),
|
| 321 |
'48' => array("-336px","0px"),
|
| 322 |
'64' => array("-448px","0px")
|
| 323 |
)
|
| 324 |
'16' => array("-64px","0px"),
|
| 325 |
'32' => array("-128px","0px"),
|
| 326 |
'48' => array("-192px","0px"),
|
| 327 |
'64' => array("-256px","0px")
|
| 328 |
)
|
| 329 |
'16' => array("0px","0px"),
|
| 330 |
'32' => array("0px","0px"),
|
| 331 |
'48' => array("0px","0px"),
|
| 332 |
'64' => array("0px","0px")
|
| 333 |
)
|
| 334 |
);
|
| 335 |
+
$sociable_known_sites = array(
|
| 336 |
'Facebook' => array(
|
| 337 |
'favicon' => 'facebook.png',
|
| 338 |
'url' => 'http://www.facebook.com/share.php?u=PERMALINK&t=TITLE',
|
| 339 |
'16' => array("-48px","0px"),
|
| 340 |
'32' => array("-96px","0px"),
|
| 341 |
'48' => array("-144px","0px"),
|
| 342 |
'64' => array("-192px","0px")
|
| 343 |
)
|
| 344 |
),
|
| 345 |
'favicon' => 'likecounter.png',
|
| 346 |
'url' => '<iframe src="//www.facebook.com/plugins/like.php?href=PERMALINK&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe>',
|
| 347 |
|
| 348 |
'16' => array("-48px","0px"),
|
| 349 |
'32' => array("-96px","0px"),
|
| 350 |
'48' => array("-144px","0px"),
|
| 351 |
'64' => array("-192px","0px")
|
| 352 |
)
|
| 353 |
),
|
| 354 |
'Myspace' => array(
|
| 355 |
'favicon' => 'myspace.png',
|
| 356 |
'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&t=TITLE',
|
| 357 |
'spriteCoordinates' => Array(
|
| 358 |
'16' => array("0px","-16px"),
|
| 359 |
'32' => array("0px","-32px"),
|
| 360 |
'48' => array("0px","-48px"),
|
| 361 |
'64' => array("0px","-64px")
|
| 362 |
)
|
| 363 |
),
|
| 364 |
'Twitter' => array(
|
| 365 |
'favicon' => 'twitter.png',
|
| 366 |
'url' => 'http://twitter.com/intent/tweet?text=TITLE%20-%20PERMALINK%20(via%20@sociablesite)',
|
| 367 |
'spriteCoordinates' => Array(
|
| 368 |
'16' => array("-144px","-16px"),
|
| 369 |
'32' => array("-288px","-32px"),
|
| 370 |
'48' => array("-432px","-48px"),
|
| 371 |
'64' => array("-576px","-64px")
|
| 372 |
)
|
| 373 |
),
|
| 374 |
'favicon' => 'twitter.png',
|
| 375 |
'url' => '<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>',
|
| 376 |
'spriteCoordinates' => Array(
|
| 377 |
'16' => array("-144px","-16px"),
|
| 378 |
'32' => array("-288px","-32px"),
|
| 379 |
'48' => array("-432px","-48px"),
|
| 380 |
'64' => array("-576px","-64px")
|
| 381 |
)
|
| 382 |
),
|
| 383 |
'LinkedIn' => array(
|
| 384 |
'favicon' => 'linkedin.png',
|
| 385 |
'url' => 'http://www.linkedin.com/shareArticle?mini=true&url=PERMALINK&title=TITLE&source=BLOGNAME&summary=EXCERPT',
|
| 386 |
'spriteCoordinates' => Array(
|
| 387 |
'16' => array("-144px","0px"),
|
| 388 |
'32' => array("-288px","0px"),
|
| 389 |
'48' => array("-432px","0px"),
|
| 390 |
'64' => array("-576px","0px")
|
| 391 |
)
|
| 392 |
|
| 393 |
),
|
| 394 |
'favicon' => 'linkedin.png',
|
| 395 |
'url' => '<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-counter="right"></script>',
|
| 396 |
'spriteCoordinates' => Array(
|
| 397 |
'16' => array("-144px","0px"),
|
| 398 |
'32' => array("-288px","0px"),
|
| 399 |
'48' => array("-432px","0px"),
|
| 400 |
'64' => array("-576px","0px")
|
| 401 |
)
|
| 402 |
|
| 403 |
),
|
| 404 |
'Delicious' => array(
|
| 405 |
'favicon' => 'delicious.png',
|
| 406 |
'url' => 'http://delicious.com/post?url=PERMALINK&title=TITLE&notes=EXCERPT',
|
| 407 |
'spriteCoordinates' => Array(
|
| 408 |
'16' => array("-16px","0px"),
|
| 409 |
'32' => array("-32px","0px"),
|
| 410 |
'48' => array("-48px","0px"),
|
| 411 |
'64' => array("-64px","0px")
|
| 412 |
)
|
| 413 |
),
|
| 414 |
'Digg' => array(
|
| 415 |
'favicon' => 'digg.png',
|
| 416 |
'url' => 'http://digg.com/submit?phase=2&url=PERMALINK&title=TITLE&bodytext=EXCERPT',
|
| 417 |
'spriteCoordinates' => Array(
|
| 418 |
'16' => array("-32px","0px"),
|
| 419 |
'32' => array("-64px","0px"),
|
| 420 |
'48' => array("-96px","0px"),
|
| 421 |
'64' => array("-128px","0px")
|
| 422 |
)
|
| 423 |
),
|
| 424 |
'favicon' => 'digg.png',
|
| 425 |
'url' => "<script type='text/javascript'>(function() {var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];s.type = 'text/javascript';s.async = true;s.src = 'http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s, s1);})();</script><a class='DiggThisButton DiggCompact'></a>",
|
| 426 |
'spriteCoordinates' => Array(
|
| 427 |
'16' => array("-32px","0px"),
|
| 428 |
'32' => array("-64px","0px"),
|
| 429 |
'48' => array("-96px","0px"),
|
| 430 |
'64' => array("-128px","0px")
|
| 431 |
)
|
| 432 |
),
|
| 433 |
'Reddit' => array(
|
| 434 |
'favicon' => 'reddit.png',
|
| 435 |
'url' => 'http://reddit.com/submit?url=PERMALINK&title=TITLE',
|
| 436 |
'spriteCoordinates' => Array(
|
| 437 |
'16' => array("-64px","-16px"),
|
| 438 |
'32' => array("-128px","-32px"),
|
| 439 |
'48' => array("-192px","-48px"),
|
| 440 |
'64' => array("-256px","-64px")
|
| 441 |
)
|
| 442 |
),
|
| 443 |
|
| 444 |
'StumbleUpon' => array(
|
| 445 |
'favicon' => 'stumbleupon.png',
|
| 446 |
'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&title=TITLE',
|
| 447 |
'spriteCoordinates' => Array(
|
| 448 |
'16' => array("-112px","-16px"),
|
| 449 |
'32' => array("-224px","-32px"),
|
| 450 |
'48' => array("-336px","-48px"),
|
| 451 |
'64' => array("-448px","-64px")
|
| 452 |
)),
|
| 453 |
'favicon' => 'stumbleupon.png',
|
| 454 |
'url' => '<script src="http://www.stumbleupon.com/hostedbadge.php?s=2"></script>',
|
| 455 |
'spriteCoordinates' => Array(
|
| 456 |
'16' => array("-112px","-16px"),
|
| 457 |
'32' => array("-224px","-32px"),
|
| 458 |
'48' => array("-336px","-48px"),
|
| 459 |
'64' => array("-448px","-64px")
|
| 460 |
)
|
| 461 |
),
|
| 462 |
'favicon' => 'google.png',
|
| 463 |
'url' => 'http://www.google.com/bookmarks/mark?op=edit&bkmk=PERMALINK&title=TITLE&annotation=EXCERPT',
|
| 464 |
'description' => 'Google Bookmarks',
|
| 465 |
'spriteCoordinates' => Array(
|
| 466 |
'16' => array("-96px","0px"),
|
| 467 |
'32' => array("-192px","0px"),
|
| 468 |
'48' => array("-288px","0px"),
|
| 469 |
'64' => array("-384px","0px")
|
| 470 |
)
|
| 471 |
),
|
| 472 |
'favicon' => 'google.png',
|
| 473 |
/* 'url' => '<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
|
| 474 |
<script type="text/javascript">
|
| 475 |
window.___gcfg = {
|
| 476 |
lang: \'en-US\'
|
| 477 |
};
|
| 478 |
(function() {
|
| 479 |
var po = document.createElement(\'script\'); po.type = \'text/javascript\'; po.async = true;
|
| 480 |
po.src = \'https://apis.google.com/js/plusone.js\';
|
| 481 |
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(po, s);
|
| 482 |
})();
|
| 483 |
</script>
|
| 484 |
'description' => 'Google Bookmarks',
|
| 485 |
'spriteCoordinates' => Array(
|
| 486 |
'16' => array("-96px","0px"),
|
| 487 |
'32' => array("-192px","0px"),
|
| 488 |
'48' => array("-288px","0px"),
|
| 489 |
'64' => array("-384px","0px")
|
| 490 |
)
|
| 491 |
),
|
| 492 |
'favicon' => 'hacker_news.png',
|
| 493 |
'url' => 'http://news.ycombinator.com/submitlink?u=PERMALINK&t=TITLE',
|
| 494 |
'spriteCoordinates' => Array(
|
| 495 |
'16' => array("-128px","0px"),
|
| 496 |
'32' => array("-256px","0px"),
|
| 497 |
'48' => array("-384px","0px"),
|
| 498 |
'64' => array("-512px","0px")
|
| 499 |
)
|
| 500 |
),
|
| 501 |
'favicon' => 'msn.png',
|
| 502 |
'url' => 'http://reporter.es.msn.com/?fn=contribute&Title=TITLE&URL=PERMALINK&cat_id=6&tag_id=31&Remark=EXCERPT',
|
| 503 |
'description' => 'MSN Reporter',
|
| 504 |
'spriteCoordinates' => Array(
|
| 505 |
'16' => array("-176px","0px"),
|
| 506 |
'32' => array("-352px","0px"),
|
| 507 |
'48' => array("-528px","0px"),
|
| 508 |
'64' => array("-704px","0px")
|
| 509 |
)
|
| 510 |
),
|
| 511 |
'favicon' => 'blinklist.png',
|
| 512 |
'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=PERMALINK&Title=TITLE',
|
| 513 |
'spriteCoordinates' => Array(
|
| 514 |
'16' => array("0px","0px"),
|
| 515 |
'32' => array("0px","0px"),
|
| 516 |
'48' => array("0px","0px"),
|
| 517 |
'64' => array("0px","0px")
|
| 518 |
),
|
| 519 |
'supportsIframe' => false,
|
| 520 |
),
|
| 521 |
'favicon' => 'sphinn.png',
|
| 522 |
'url' => 'http://sphinn.com/index.php?c=post&m=submit&link=PERMALINK',
|
| 523 |
'spriteCoordinates' => Array(
|
| 524 |
'16' => array("-96px","-16px"),
|
| 525 |
'32' => array("-192px","-32px"),
|
| 526 |
'48' => array("-288px","-48px"),
|
| 527 |
'64' => array("-384px","-64px")
|
| 528 |
)
|
| 529 |
),
|
| 530 |
'favicon' => 'posterous.png',
|
| 531 |
'url' => 'http://posterous.com/share?linkto=PERMALINK&title=TITLE&selection=EXCERPT',
|
| 532 |
'spriteCoordinates' => Array(
|
| 533 |
'16' => array("-32px","-16px"),
|
| 534 |
'32' => array("-64px","-32px"),
|
| 535 |
'48' => array("-96px","-48px"),
|
| 536 |
'64' => array("-128px","-64px")
|
| 537 |
)
|
| 538 |
),
|
| 539 |
'favicon' => 'tumblr.png',
|
| 540 |
'url' => 'http://www.tumblr.com/share?v=3&u=PERMALINK&t=TITLE&s=EXCERPT',
|
| 541 |
'spriteCoordinates' => Array(
|
| 542 |
'16' => array("-128px","-16px"),
|
| 543 |
'32' => array("-256px","-32px"),
|
| 544 |
'48' => array("-384px","-48px"),
|
| 545 |
'64' => array("-512px","-64px")
|
| 546 |
'supportsIframe' => false
|
| 547 |
),
|
| 548 |
'favicon' => 'gmail.png',
|
| 549 |
'spriteCoordinates' => Array(
|
| 550 |
'16' => array("-80px","0px"),
|
| 551 |
'32' => array("-160px","0px"),
|
| 552 |
'48' => array("-240px","0px"),
|
| 553 |
'64' => array("-320px","0px")
|
| 554 |
),
|
| 555 |
'supportsIframe' => false
|
| 556 |
),
|
| 557 |
'16' => array("-112px","0px"),
|
| 558 |
'32' => array("-224px","0px"),
|
| 559 |
'48' => array("-336px","0px"),
|
| 560 |
'64' => array("-448px","0px")
|
| 561 |
)
|
| 562 |
'16' => array("-64px","0px"),
|
| 563 |
'32' => array("-128px","0px"),
|
| 564 |
'48' => array("-192px","0px"),
|
| 565 |
'64' => array("-256px","0px")
|
| 566 |
)
|
| 567 |
'16' => array("0px","0px"),
|
| 568 |
'32' => array("0px","0px"),
|
| 569 |
'48' => array("0px","0px"),
|
| 570 |
'64' => array("0px","0px")
|
| 571 |
)
|
| 572 |
);
|
| 573 |
|
| 574 |
//Update will create if it doesn't exist.
|
| 575 |
update_option( 'sociable_known_sites' , $sociable_known_sites );
|
