From ab1ec33f749a92dbb38042748a84ba1c99632678 Mon Sep 17 00:00:00 2001 From: Matt Richmond Date: Wed, 15 Feb 2012 20:55:28 -0700 Subject: [PATCH] adding ver 4.2.2 from http://plugins.svn.wordpress.org/sociable/tags/4.2.2/ --- css/sociable-admin.css | 81 + css/toolbar.css | 583 +++-- images/toolbar/48f.png | Bin 0 -> 4032 bytes images/toolbar/48i.png | Bin 0 -> 4346 bytes images/toolbar/48rss.png | Bin 0 -> 2434 bytes images/toolbar/48t.png | Bin 0 -> 3959 bytes images/toolbar/inbound.png | Bin 0 -> 1204 bytes includes/class-sociable_Admin_Options.php | 2792 ++++++++++++++++++++- includes/skyscraper_output.php | 785 +++++- includes/sociable_output.php | 764 +++++- index.php | 5 + js/oPlugin.js | 1780 +++++-------- readme.txt | 1334 ++++++++-- sociable.php | 744 +++++- 14 files changed, 7165 insertions(+), 1703 deletions(-) create mode 100644 images/toolbar/48f.png create mode 100644 images/toolbar/48i.png create mode 100644 images/toolbar/48rss.png create mode 100644 images/toolbar/48t.png create mode 100644 images/toolbar/inbound.png create mode 100644 index.php diff --git a/css/sociable-admin.css b/css/sociable-admin.css index 8c07371..227b2d3 100644 --- a/css/sociable-admin.css +++ b/css/sociable-admin.css @@ -1,78 +1,159 @@ .sociablemenu li { + + } + #sociable_site_list { + list-style-type: none; + margin: 0 auto; + padding: 0; + font-size: 80%; + + } + #sociable_site_list li { + list-style-type: none; + cursor: move; + float: left; + margin: 2px 2px 0 0; + width: 153px; + height:45px; + text-align: left; + font-size: 10px; + padding: 4px; + + } + #sociable_site_list li img { + margin-right:6px; + } + #sociable_site_list .active { + + behavior: url('../wp-content/plugins/sociable/css/pie.htc'); + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px 5px 5px 5px; + background:#6da6d1; + + } + #sociable_site_list .active img { + opacity: 1; + -moz-opacity: 1; + filter:alpha(opacity=100); + + } + #sociable_site_list .inactive { + + behavior: url('../wp-content/plugins/sociable/css/pie.htc'); + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px 5px 5px 5px; + background:#dddddd; + + + } + #sociable_site_list .inactive img { + opacity: .4; + -moz-opacity: .4; + filter:alpha(opacity=40); + + } + #sociable_site_list li input { + height: 12px; + margin: 0 5px 8px 0; + padding: 0; + background: transparent; + border: none; + } + + .soc_clear{ + clear:both; + } + + .items_li{ + font-size:16px; + } + .sub_item_li { margin-bottom: 16px; + margin-left: 54px; + margin-top: 6px; + font-size: 14px; + +} + +.default_values{ + font-size: 9px; + color: #000000; + text-decoration: none; } \ No newline at end of file diff --git a/css/toolbar.css b/css/toolbar.css index f26bc6d..5baa2dd 100644 --- a/css/toolbar.css +++ b/css/toolbar.css @@ -1,159 +1,424 @@ - -.wpSocciableSmall-top{ - background-image:url('../images/toolbar/slide-sociable-top.png'); - width:62px; - height:17px; - background-repeat:no-repeat; - border-left:solid 0px #ffffff; - background-color:transparent; - cursor:pointer; -} -.wpSocciableSmall-top-c{ - background-image:url('../images/toolbar/slide-sociable-top-c.png'); - width:70px; - background-color:transparent; - height:20px; - border:solid 0px #ffffff; - border-bottom:0px; - cursor:pointer; -} - - - -.wpSocciableSmall{/* - background-image:url('../images/toolbar/slide-sociable.png');*/ - width:19px; - height:66px; - background-color:transparent; - margin-left:-19px; - /*width:30px;*/ - /*height:104px;*/ - /*margin-left:-27px;*/ - position:absolute; - margin-top:120px; - cursor:pointer; -} - - -.wpSocciableSmall-c{/* - background-image:url('../images/toolbar/slide-sociable-c.png');*/ - width:19px; - background-color:transparent; - height:66px; - margin-left:-18px; - position:absolute; - margin-top:120px; - cursor:pointer; -} - - - -.wpSocciableClose{ - /*background-image:url('../images/toolbar/slide-close.png');*/ - width:19px; - height:17px; - background-color:transparent; - margin-left:-19px; - - position:absolute; - margin-top:90px; - cursor:pointer; -} - -.wpSocciableClose-c{ - background-image:url('../images/toolbar/slide-close-c.png'); - width:19px; - background-color:transparent; - height:17px; - margin-left:-18px; - position:absolute; - margin-top:90px; - cursor:pointer; -} -.wpSocciableBig{ - background-image:url('../images/toolbar/slide-sociableBig.png'); - width:30px; - background-color:transparent; - height:104px; - margin-left:-19px; - position:absolute; - margin-top:120px; - cursor:pointer; -} - -.wpSocciableBig-c{ - background-image:url('../images/toolbar/slide-sociableBig-c.png'); - width:30px; - height:104px; - background-color:transparent; - margin-left:-19px; - position:absolute; - margin-top:120px; - cursor:pointer; -} -a{ - text-decoration:none; -} - -a:hover{ - text-decoration:underline; -} -ul.toolbar{ - margin:0px; - padding:0px; - list-style:none; - font-family:arial; - letter-spacing:-1.3px; - font-weight:bold; - -} -ul.toolbar li{ - margin:0px; - padding:0px; -} -.wpPlugin-MainFrame{ -} - -ul.toolbar li.item div{ - margin:0px; - padding:0px; -} -ul.toolbar li.item div.title{ - padding-top:2px; - padding-bottom:2px; - padding-left:2px; - cursor:pointer; - margin-bottom:2px; -} -ul.toolbar li.item div.boxTitle{ } - -ul.toolbar li.item div.boxTitleContent{ - padding-top:5px; - padding-bottom:5px; - padding-right:5px; -} - - - -ul.toolbar li.item div.content{ - margin-bottom:5px; - -} - - -ul.toolbar li.item div.title img{ - float:right; -} - -ul.toolbar li div img{ - margin:1px; - padding:0px; -} -.boxDialog{ - letter-spacing:0px; - background:transparent; - margin:0px; - padding:0px; - position:absolute; - -} + + + +.wpSocciableSmall-top{ + + + background-image:url('../images/toolbar/slide-sociable-top.png'); + + + width:62px; + + + height:17px; + + + background-repeat:no-repeat; + + + border-left:solid 0px #ffffff; + + + background-color:transparent; + + + cursor:pointer; + + +} + + +.wpSocciableSmall-top-c{ + + + background-image:url('../images/toolbar/slide-sociable-top-c.png'); + + + width:70px; + + + background-color:transparent; + + + height:20px; + + + border:solid 0px #ffffff; + + + border-bottom:0px; + + + cursor:pointer; + + +} + +.wpSocciableSmall{/* + + + background-image:url('../images/toolbar/slide-sociable.png');*/ + + + width:19px; + + + height:66px; + + + background-color:transparent; + + + margin-left:-19px; + + + /*width:30px;*/ + + + /*height:104px;*/ + + + /*margin-left:-27px;*/ + + + position:absolute; + + + margin-top:120px; + + + cursor:pointer; + + +} + + +.wpSocciableSmall-c{/* + + + background-image:url('../images/toolbar/slide-sociable-c.png');*/ + + + width:19px; + + + background-color:transparent; + + + height:66px; + + + margin-left:-18px; + + + position:absolute; + + + margin-top:120px; + + + cursor:pointer; + + +} + +.wpSocciableClose{ + + + /*background-image:url('../images/toolbar/slide-close.png');*/ + + + width:19px; + + + height:17px; + + + background-color:transparent; + + + margin-left:-19px; + + position:absolute; + + + margin-top:90px; + + + cursor:pointer; + + +} + + +.wpSocciableClose-c{ + + + background-image:url('../images/toolbar/slide-close-c.png'); + + + width:19px; + + + background-color:transparent; + + + height:17px; + + + margin-left:-18px; + + + position:absolute; + + + margin-top:90px; + + + cursor:pointer; + + +} + + +.wpSocciableBig{ + + + background-image:url('../images/toolbar/slide-sociableBig.png'); + + + width:30px; + + + background-color:transparent; + + + height:104px; + + + margin-left:-19px; + + + position:absolute; + + + margin-top:120px; + + + cursor:pointer; + + +} + +.wpSocciableBig-c{ + + + background-image:url('../images/toolbar/slide-sociableBig-c.png'); + + + width:30px; + + + height:104px; + + + background-color:transparent; + + + margin-left:-19px; + + + position:absolute; + + + margin-top:120px; + + + cursor:pointer; + + +} + + +a{ + + text-decoration:none; + +} + + +a:hover{ + + + text-decoration:underline; + +} + + +ul.toolbar{ + + + margin:0px; + + + padding:0px; + + + list-style:none; + + + font-family:arial; + + + letter-spacing:-1.3px; + + + font-weight:bold; + +} + + +ul.toolbar li{ + + + margin:0px; + + + padding:0px; + +} + + +.wpPlugin-MainFrame{ + + +} + + +ul.toolbar li.item div{ + + + margin:0px; + + + padding:0px; +} + + +ul.toolbar li.item div.title{ + + + padding-top:2px; + + padding-bottom:2px; + + padding-left:2px; + + cursor:pointer; + + + margin-bottom:2px; + + +} + + +ul.toolbar li.item div.boxTitle{ } + + +ul.toolbar li.item div.boxTitleContent{ + + padding-top:5px; + + padding-bottom:5px; + + padding-right:5px; +} + + +ul.toolbar li.item div.content{ + + + margin-bottom:5px; +} + + + +ul.toolbar li.item div.title img{ + + + float:right; + + +} + + + +ul.toolbar li div img{ + + + margin:1px; + border:0; + + padding:0px; +} + + +.boxDialog{ + + + letter-spacing:0px; + + + background:transparent; + + + margin:0px; + + + padding:0px; + + + position:absolute; + +} + +.boxBanner_ul{ + + float: left; + list-style: none outside none; + margin-right: 12px; + margin-left: 10px; + width: auto; + padding:0; +} + +.boxCounters_ul{ + list-style: none outside none; + margin: 10px 0 0; + text-align: justify; + width: 50px; + padding:0; +} + +.boxCounters_ul li{ + display: table; + height: auto; + margin-bottom: 8px !important; +} + +.boxBanner_ul li{ + + float: left; + margin-right: 5px !important; +} + +.boxBanner_ul_margin{ + + border-right: 1px solid #6A6A6A; + float: left; + height: 60px; + list-style: none outside none; + margin: 0; + padding:0; +} \ No newline at end of file diff --git a/images/toolbar/48f.png b/images/toolbar/48f.png new file mode 100644 index 0000000000000000000000000000000000000000..ddc5fc6b44ddd0ef40ed08b0c792b80ba6b76fbf GIT binary patch literal 4032 zcmV;x4?pmUP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl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45U5RZ>qgJ1WLYC7>qAjW`!1Brp;0al_EhY=fS7xVq{M7vnTHAN4 z!%o6aP99_a#xj4p@D}}6Tpt5L4QW6j10vOJ>n2qr4@wY4ZF@{N@%;1~_mvtyUhO#I z+n>IRzrOZ1X$VAR@gR)ERgFeFR0q4+2v>rMoG>-$Gz!k6M`N>`|jcRJu_Qyhlf3SaYP7;mDX1VC|(srff_Zg z3lr1A!79u%FaMJt{q`?NoRH^%m;QBy=N>)9%%S1t=3N|-2tfm?t~4d;CLycQf`Zmo z>ETEPw(lW=^6V=Y862FX-D&}F@!bX9Sh%^x0f0zGw5*}6R|Nu%(rBn)Sx^WSm^>)2 zFRbDtPY4E15a&sAE5FeIA(ZRD=my3yU=1jwm4%g=lwu4>*OHxr3TjF#-d^++BUBce zf|)j_P~kvL7OI^o8ES^x@Ecc>CfA-z-F`NZ0*j@m7n=zvxYX;2lYxPbyQs{W8s8E+NX zQK?^&g;aHi6soI*8e!JodQ~spI18B-0aJSeqjIT}_$_Ch#A8-ehvup=s>V2v28CWp zb?U?wW130_Kn^_o%l}E-nr_mPiROIf$N+cSn^SR|`R^j?Vw`4`7<22+g^+V}y3649 zX@)q?UtMA$6{6CyrC{0Wyk8fwdIuC??&4MKHeQNz^tx@tlu(PY4JEeY%#{W5JZ$Nm zJMA`+kD5?uEY}Tg0HN3IRF>3DFdLuPZnqm^w{41x7@&TxwU)=<56u6I-hQ~d0}AcI z4+Ntdu&_VB&=|!Bj;0jabF1iy&F$AuOoE9wvm0hMwLd9j3*JJQGv^=LmkxyRvO}|9 znCkL48SR^`x{PK|I?T>VNFOxQE9+B*y}OH^La#_jAH?jOFPdYXlPo=NQS?J~(Me!> okCJ9yG(0aM{M>|p3&MK?0G)=Ln`n1A4gdfE07*qoM6N<$f@!QgE&u=k literal 0 HcmV?d00001 diff --git a/images/toolbar/48rss.png b/images/toolbar/48rss.png new file mode 100644 index 0000000000000000000000000000000000000000..aff5e34c542d17f4e56356c9e7736cf1bec0cdf8 GIT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?d=TrM{6Qj69e)*~2Qv7jk_&l0w z1aqWPlYfGEpG`YXJBC&v#4AFY=c;yedY+X250H6G$)NE5&Hw-a07*qoM6N<$f=1T9 ADgXcg literal 0 HcmV?d00001 diff --git a/images/toolbar/48t.png b/images/toolbar/48t.png new file mode 100644 index 0000000000000000000000000000000000000000..3ad258981d07c562304f6140c9de8438ac490473 GIT binary patch literal 3959 zcmV--4~X!IP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>vB zsJ6IeNwVZxrdjT`yl#bBIa#GxRa#xMMy;K#CDyyGyQdMSxlWT#tDe?p!?5wT$+oGt z8L;Kp2HUQ-ZMJ=3XJQv;x5ci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xbny)%vZR&LD zJpPl@Psh8QyPB@KTx+@RdcC!KX7}kEo;S|j^u2lU7XQ}Oo;f|;z4Ll+_r>@1-xl3| zawq-H%e&ckC+@AhPrP6BKT#_XdT7&;F71j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z000D{NklE@3B(a34oDo3 z#esi-e*hA3fh#8@P6&yI2trXJPB}o75JkZWR-zC{z=94B3s$F^K=n??V^L!RFUyIF4k&rNi=9G4`@ZUEI4o8OL09F-j#M{$#bNKGD zsFo)}Brv27xGNj;pmRX^mNG-AM$fYHB z+D_)?z3IA1QwtsiW#}!nFkLt4YFpp6lbLxTjs!Ov*ntjC8wnGcdC{gZbqu&sLEkko zkj9K#5mXtSx4+ShpjH*U((z)HZh#JE>ruSwNIKwAY>z&pNFfER2Yf{bymo@$t0DrC z>|PO+E^h0(AVMf4K&eo-!jlu0nJi+tP)^+_xV+}EW_KKL+LaO-=zs@OftP1erfMCu z`!hIDH++4$#l9^y6R-=&H;`96R=#I{s%_9!v5uYzM zD3qXHq(>psqfp4w9hBa)V-a%`F)bI4!}qjM6$B!~%~9)&cVLOZFQ zt~WiwRM!7yA$Becg;=9hj$dtKqi`HvH)^3k4Kiqd>kisG1%A8X_-e7qrNXnfCX|7C z%&qqWfmz585a4aEy#LcpR!YT~!RHtQHWBvJqQle)__S=bJwooLP1xrZR;H%Dc#o_w;T&Q{) z9SR4u(;ttdDTwv3;vpN!8-N?uc|B%SUL8dToYx<%EA>NTIb;m!NWFbet1R_nqsj^A znD5%Xd=2*dez8=$S8AH3r*a7=)I2LRSuKVQ(X R>*)Xh002ovPDHLkV1ntEar6KH literal 0 HcmV?d00001 diff --git a/images/toolbar/inbound.png b/images/toolbar/inbound.png new file mode 100644 index 0000000000000000000000000000000000000000..55542490890cee680d3c92169f329a7ac578c156 GIT binary patch literal 1204 zcmV;l1WWsgP)F}mK@aB*&@Ao|K-}6R@e0-)Az(-^U$(pb^ zk4E+#*)f?uJ|R1d&3#y)FO!KPeeB29Jufl>WeW)u5nKGo|2?qDEZgR9ftvtP*!Z$# zGyjG!i&PYZ2NT!?YFZW~atbIi+_K04O0_!5WFoQ1g1||Qy2WArE*V}jcBa!=!7vF2 zaIuISvIYSG>xRLd_dXQB-mWmZ{VFPT8-HZhadst(>qV`R9r+4`5^wQhUr!j1w)i>V z&60+nl3C283NUIG6h-CG0_nikC_+EAH)!I{WLlLf)4xlNbLC^y4Ze{@eAz2RmQ^%_bQ9b+8<>#f zZN%?nuvDnvB8}Ind6`6?e%8qty^SNmP6`WgHB2E2^AX(D!`JbzJJmNzv62#c{4vfWGo%|FY&Fu1R zoS2@)KxZ3F_Jb(l&_E1_cGl34dc$s{@8ZJ?lqGyrc>$7V|B<)ZQcdJ5Nc^2c)CGiS zY~2J4V?UO4)b{p$vXL_^AHUkUMh!IA~MoOcD;)8%XjeB+23)VvQm7U zz~(|@JETf=UDtK=suG@xG$HCyNs%TNvqj9Na#*(|ghC;h1X!RNM@1V?1Xc6|ytG1W ztdWxEQg^XRjShw*e3Y5`H~}9dDnp&#>s1qmu0bMYT2x1yR)fc_!t3#pI;jk{#miH! z8qhQiB3nLWmSxgF2+(1L;Eb>B05LJLHydFe^RqYb za~izyy5=|R`@7qIz@EQP_& + + + + + + + +
+ + + +
+ + Congrats! You are joining the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,5mm downloads now, here comes the latest version 4.1

+ + You can select Sociable Classic and/or Sociable Skyscraper to spread the World, increase your traffic and your reader's ability to share your posts!

+ +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Skyscraper Sociable
+ + + + + + + + + + + +
+ + + + + +

+ + Skyscraper Sociable + +

+ + Now introducing the ultimate advanced and feature packed plugin for setting up rating system on your WordPress blog. + +

+ + Sociable Skyscraper allows you to set up different rating systems for posts, pages and comments with great degree of customization. + +

+ + List of features is so smart and non-stop growing: + +

+ + You can get more "Sociable" with Sociable Skyscraper and easily getting + + Rating and Review of: posts, pages, comments, Facebook, G+, LinkedIN, + + Twitter as well as multiple ratings for posts and pages. Visitor's counter, + + visitor's from Facebook and Twitter... As a plus you get an easy way to get + + TOP or HOME from Sociable Skyscraper. + +

+ + Enjoy it now!!! + +

+ + Be Sociable, Share!!! + +

+ + + + + + + +
+ +
+ +
+ + + +
+ +
+ + + + + + + + + + + + + + + + + +
Classic Sociable
+ +
+ +

+ + Classic Sociable + + + +

+ + We've improved our visual interface, the default icons are now much + +
+ + more appealing, and a touch bit larger (you do want your readers to + +
+ + share your posts, don't you? :) Get it now! + +

+ +
+ +
+ + + +
+ +
+ +
+ + + +
+ +
+ latest ".$i.""; + + + + $i = $i+3; + + } + } + + + + + function Create_Options_Page_Skycraper(){ - global $skyscraper_options; - - ?> +
-
+ - + + + + + + + +
-
- + + + " /> + + + + + + + + + +
+ +
+ +
+ + : + + - + if($wi== $skyscraper_options["widget_width"])$sel = "selected"; + ?> - - - -
+ - +
: - ( #fefefe default color) - -
-
: - ( #f7f7f7 default color) -
- -
+ @@ -439,8 +742,6 @@ function Create_Options_Page_Skycraper(){ : + + + + + +
+ +
+ + : + + + + + + + +
+ +
+ +
+ + + + name="skyscraper_options[counters][check]" id="" /> + + Counters + + value="0" type="radio">Folded + + value="1" type="radio">Unfolded + +
+ +
+ +
+ + + + + + name="skyscraper_options[share][check]" /> Share + + value="0" name="skyscraper_options[share][folded]" type="radio">Folded - value="1" type="radio">Unfolded -
-
+ value="1" type="radio">Unfolded + -
+ + +
+ + + + + + + +
+ + +
+ + + +
+ +
+ +
    + +
  • + + + + Follow Us + +
      + +
    • + + + + name="skyscraper_options[follow_us][twitter][active]" type="checkbox" style="padding-bottom:5px" /> + + + + + + + + + +
    • + +
    • + + + + name="skyscraper_options[follow_us][feed][active]" type="checkbox" style="padding-bottom:5px" /> + + + + + + + + + +
    • + +
    • + + + + name="skyscraper_options[follow_us][fb][active]" type="checkbox" style="padding-bottom:5px" /> + + + + + + + + + + + +
    • + + + +
    • + + + + name="skyscraper_options[follow_us][li][active]" type="checkbox" style="padding-bottom:5px" /> + + + + + + + + + + + +
    • + +
    + +
  • + +
+ +
+ +
+ +
+ +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Active Sociable Banner + + + > + + Active Sociable "Reminder to Share" Banner / Check if you want to remind your readers Share your content. + +
+ +
Banner's label (35 char Max.) + + + + + +
+ +
Banners Timer (sec.) + + + + + + + + +
+ +
Font Color (#6A6A6A) + + + + + + + + + + +
+ +
Font Size (9px) + + + + + + + + +
+
Label Color (#F7F7F7) + + + + + + + + + + +
+ +
Background Color (#F7F7F7) + + + + + + + + +
+ +
+ + +

+ + + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + + + + +
+
+ + + +
+ + + +
-
+ + +
+ + + + + + + + + + + + + + + +
Active Skyscraper + + type="checkbox" id="active" name="skyscraper_options[active]" > + + Check if you want Sociable Skyscraper enable + +
+ + + +
+ +

+ +
+ +
+ +

+ + + + + +
+ + + +
+ + + + + + + +
+ + + +
+ +

+ + Save Changes + +
+ +

+ + Reset Skyscraper + +
+ +
+ +
+ + + +
+ +
+ + + +
+ $data ){ + + self::add_meta_box( $type ); + + } + + //Also on posts and pages + + self::add_meta_box( 'post' ); + + self::add_meta_box( 'page' ); + + + + } + + + + /* + + * Function to Enqueue The Styles For The Options Page + + */ + + function enqueue_styles(){ + + wp_enqueue_style( 'style-admin-css', SOCIABLE_HTTP_PATH . 'css/style-admin.css' ); + + wp_enqueue_style( 'sociable-admin-css', SOCIABLE_HTTP_PATH . 'css/sociable-admin.css' ); + + wp_enqueue_style( 'sociablecss' , SOCIABLE_HTTP_PATH . 'css/sociable.css' ); + + } + + + + /* + + * Function To Enqueue The Scripts For The Options Page + + */ + + function enqueue_scripts(){ + + wp_enqueue_script('jquery'); + + wp_enqueue_script('jquery-ui-core',false,array('jquery')); + + wp_enqueue_script('jquery-ui-sortable',false,array('jquery','jquery-ui-core')); - wp_enqueue_script( 'sociable-admin-js', SOCIABLE_HTTP_PATH . 'js/sociable-admin.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) ); - wp_enqueue_script( 'admin-fn-js', SOCIABLE_HTTP_PATH . 'js/admin-fn.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) ); - + wp_enqueue_script( 'sociable-admin-js', SOCIABLE_HTTP_PATH . 'js/sociable-admin.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) ); + + + + wp_enqueue_script( 'admin-fn-js', SOCIABLE_HTTP_PATH . 'js/admin-fn.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) ); + + + + + + + + } + + + + + + + + + - } - - /* + + * Function To Add The Settings Fields. + + */ + function do_site_selection_list($plugin = 'sociable'){ + + + + if ($plugin == 'sociable'){ + + + + global $sociable_options; + + $option_plugin = $sociable_options; + + $name_plugin = "sociable_options"; + + } + + else{ + + + + global $skyscraper_options; + + $option_plugin = $skyscraper_options; + + $name_plugin = "skyscraper_options"; + + } + + + + + + $sociable_known_sites = get_option( 'sociable_known_sites' ); + /* + + * Sort The List Based On The Active Sites So That They Display Correctly. + + */ + + $active_sites = isset( $option_plugin['active_sites'] ) && is_array( $option_plugin['active_sites'] ) ? $option_plugin['active_sites'] : array() ; + + + + //Start Blank + + $active = Array(); + + + + //Disabled Untill Proven Active + + $disabled = $sociable_known_sites; + + + + //Loop Through The Active Sites, sorting into 2 arrays + + foreach( $active_sites as $sitename => $value ) { + + $active[$sitename] = $disabled[$sitename]; + + unset( $disabled[$sitename] ); + + } + + + + uksort($disabled, "strnatcasecmp"); + + + + $sites = array_merge( $active, $disabled ); + + + + $imagepath = isset( $option_plugin['sociable_imagedir'] ) ? $option_plugin['sociable_imagedir'] : '' ; + + + + if ($imagepath == "") { + + $imagepath = trailingslashit( SOCIABLE_HTTP_PATH ) . 'images/'; + + } else { + + $imagepath .= trailingslashit( $imagepath ); + + } + + + + $out ='
    ' ; + + $io = 0; + + foreach( $sites as $sitename => $site ){ + + + + + + //Set Checked And Active If Relevant + + if( array_key_exists( $sitename, $active_sites ) ){ + + $checked = 'checked="checked"'; + + $active = 'active'; + + } else { + + $checked = ''; + + $active = 'inactive'; + + } + + if ( $sitename != "More"){ + + if (isset($site["counter"])){ + + //$image = ""; + + $image = $site["url"]; + + }else{ + + $image = _get_sociable_image( $site, '' ); + + } + + }else{ + + $image = ""; + + } + + + + // if ( ! isset( $site['spriteCoordinates']) || isset( $sociable_options['sociable_disablesprite'] ) ) { + + // if (strpos($site['favicon'], 'http') === 0) { + + // $imgsrc = $site['favicon']; + + // } else { + + // $imgsrc = $imagepath.$site['favicon']; + + // } + + // $img = ''; + + // } else { + + // $imgsrc = $imagepath."services-sprite.gif"; + + // $services_sprite_url = $imagepath . "services-sprite.png"; + + // $spriteCoords = $site['spriteCoordinates']; + + // $img = ''; + + // } + + + + $out .= '
  • '; + + + + $out .= ''; + + + + $out .= $image; + + if (!isset($site["counter"])){ + + $out .= $sitename; + + } + + + + $out .= '
  • '; + + + + } + + + + + + echo $out."
"; + + + + } + + + + /* + + * Create The HTML For The Options Page + + */ + + function Create_Options_Page(){ + + global $sociable_options; + + + + ?> + + + +
+ + + +
+ +
- + + + +
+ +
+

+
+ + + + + + " /> + + + + + + + + + +
Preview
+ +
+ + + +
+ +
+ + + +
+ + + +
+ + + +
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+ + + +
+ +
+ +
+ + + + + + + + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + " /> + + + +
+ + name="sociable_options[help_grow]" id="LinkToSociable" /> + +
+ + + +
+ +
+ +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+ + + +
+ + + +
+ + + + + +
+ + + +
+ + + + + + + + + + + +
+ +
+ + + +
+ + + + />16x16 Pixels + + + + value="32" type="radio" name="sociable_options[icon_size]" />32x32 Pixels + + + + value="48" type="radio" name="sociable_options[icon_size]"/>48x48 Pixels + + + + value="64" type="radio" name="sociable_options[icon_size]" />64x64 Pixels + + + + + +
+ + + + + + + + + + + +
+ +
+ + + +
+ + + + - - value="option1" type="radio" /> /option1_.jpg" /> + + + + + + value="option1" type="radio" /> /option1_.jpg" /> + + + +

+ + + + value="option2" type="radio" /> /option2_.jpg" /> + +

- value="option2" type="radio" /> /option2_.jpg" /> -

value="option3" type="radio" /> /option3_.jpg" /> + +

+ + value="option4" type="radio" /> /option4_.jpg" /> + +

+ + value="option5" type="radio" /> /option5_.jpg" /> + +

+ + value="option6" type="radio" /> + +

+ +
+ + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + + +
+
+ + + +
+ + + +
+ +
+ + + + + + + + + + + + + + + +
Active Sociable Classic + + type="checkbox" id="active" name="sociable_options[active]" /> + + Check if you want Sociable Classic enable + +
+ + + +
+ +

+ +
+ +
+ + ?> + + + +
+ +
+ +
+ +

+ + + +
+ +

+ + + +
+ +

+ + + +
+ +
+ +
+ +
+ +
+ + + + + + + + + + + + +
+ + + + + + + +
+ + + + +
+ ID,'_sociableoff',true ) ) { + + $checked = 'checked="checked"'; + + } + + wp_nonce_field( 'update_sociable_off' , 'sociable_nonce' ); + + echo '

' . __('Check This To Disable Sociable 2 On This Post Only.') . '

'; + + + + } + + + + function save_post( $post_id ){ + + + + if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) + + return $post_id; + // verify this came from the our screen and with proper authorization, + + // because save_post can be triggered at other times + + + + $nonce = ( isset( $_POST['sociable_nonce'] ) ) ? $_POST['sociable_nonce'] : false ; + if ( ! $nonce || ! wp_verify_nonce( $nonce, 'update_sociable_off' ) ) + + return $post_id; + + // Check permissions + + if ( 'page' == $_POST['post_type'] ){ + + if ( !current_user_can( 'edit_page', $post_id ) ) + + return; + + } else { + + if ( !current_user_can( 'edit_post', $post_id ) ) + + return; + + } + + + + //Lets Do This + + if( isset( $_POST['sociableoff'] ) ){ + + update_post_meta( $post_id, '_sociableoff' , $_POST['sociableoff'] ); + + } else { + + delete_post_meta( $post_id, '_sociableoff' ); + + } + + + + return $post_id; + + } + + + + /** + + * This Function Runs Before The Options Are Printed Out. + + */ + + function general_options_callback(){ + + + + return true; + + } + + + + /** + + * This Function Runs Before The Location Options Are Echoed Out. + + */ + + function location_options_callback(){ + + echo '

' . __( 'Please Select The Locations That You Wish To Allow The Sociable 2 Plugin To Insert The Links.' ) . '

'; + + } + + + + /** + + * Adds A Function For The add_settings_field(); function + + * + + * should be passed: + + * $data = array( + + * 'id' => 'field_id_and_name', + + * 'description' => 'field Description Should Go Here, This is Not The Title, Rather The Description' + + * ); + + */ + + function Checkbox( $data ){ + + global $sociable_options; + + + + //Save The Locations As a seperate array option + + if( isset( $data['locations'] ) ){ + + $name = 'sociable_options[locations][' . $data['id'] . ']'; + + $checked = ( isset( $sociable_options['locations'][$data['id']] ) ) ? 'checked="checked"' : '' ; + + } else { + + $name = 'sociable_options[' . $data['id'] . ']'; + + $checked = ( isset( $sociable_options[$data['id']] ) ) ? 'checked="checked"' : '' ; + + } + + + + + echo ' ' . $data['description'] . ''; + } + + + + function TextInput( $data ){ + + global $sociable_options; + + + + $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : ''; + + + echo '
' . $data['description'] . ''; + + + } + + + + function TextArea( $data ){ + + global $sociable_options; + + + + $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : ''; + + + echo '
' . $data['description'] . ''; + + + } + + + + function radio( $data ){ + + global $sociable_options; + + + + $cur_val = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : 0 ; + + + + echo '' . $data['description'] . '
'; + + foreach( $data['options'] as $value => $option ){ + + $selected = ( $value == $cur_val ) ? 'checked="checked"' : '' ; + + echo ' ' . $option . '
'; + + } + + } + + + + + + } + function add_ie7() { + echo' + + + + '; + } + + //add_action('admin_head', 'add_ie7' ); + + ?> \ No newline at end of file diff --git a/includes/skyscraper_output.php b/includes/skyscraper_output.php index e89c718..b93e9e9 100644 --- a/includes/skyscraper_output.php +++ b/includes/skyscraper_output.php @@ -1,633 +1,1250 @@ "; + // echo "var skyscraper_dir = '".SOCIABLE_HTTP_PATH."' ;"; + // echo ""; + echo " var skyscraper_dir = document.createElement('input'); + skyscraper_dir.id = 'skyscraper_dir'; + skyscraper_dir.type = 'hidden'; + skyscraper_dir.value = '".SOCIABLE_HTTP_PATH."'; + document.body.appendChild(skyscraper_dir); "; + + $widget_width = str_replace("px", "", $skyscraper_options["widget_width"]); + + $widget_position = "null"; + if (isset($skyscraper_options["widget_position"])){ + $widget_position = 1; + } + + $labels_color = $skyscraper_options["labels_color"]; + $text_size = str_replace("px", "", $skyscraper_options["text_size"]); + $background_color = $skyscraper_options["background_color"]; + + $addWhere = ""; + + if ($where == ""){ + $addWhere = "var div = document.createElement('div'); + div.id = 'skyscraper'; + document.body.appendChild(div);"; + } + + $url_site= $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]; + - $script = " + + $script = " + + + - if (!document.getElementById('fb-root')){ + if (!document.getElementById('fb-root')){ + var div = document.createElement('div'); + div.id = 'fb-root'; + document.body.appendChild(div); + } - + (function(d, s, id) { + var js, fjs = d.getElementsByTagName(s)[0]; + if (d.getElementById(id)) return; + js = d.createElement(s); js.id = id; + js.src = \"http://connect.facebook.net/en_US/all.js#xfbml=1\"; + fjs.parentNode.insertBefore(js, fjs); + }(document, 'script', 'facebook-jssdk')); - - (function() { - var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; - po.src = 'https://apis.google.com/js/plusone.js'; - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); - })(); + + + - - (function() { - var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; - po.src = 'http://platform.twitter.com/widgets.js'; - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); - })(); - ".$addWhere." - - jQuery(document).ready(function(){ - + + jQuery(document).ready(function(){ + oPlugin.toolbarStart('skyscraper', ".$widget_position.",230,".$widget_width.",'".$background_color."','".$labels_color."',false,'#6A6A6A',".$text_size.",'#587cc8'); - + ".get_share_node()." - + ".get_counters_node()." - - ".get_latest_node()." - - ".get_mentions_node()." - + + ".get_social_banner_node()." + + ".get_latest_node()." + + ".get_mentions_node()." + ".get_follow_us_node()." - + ".get_rss_node()." - - oPlugin.CreateGoToTop('New_Id_12','Top',''); - - - oPlugin.CreateGoToHome('New_Id_13','Go Home',''); - + + oPlugin.CreateGoToTop('New_Id_12','Top',''); + + oPlugin.CreateGoToHome('New_Id_13','Go Home',''); + }); - + + "; + + echo $script; + } + +} + +function get_social_banner_node(){ - "; + global $skyscraper_options; + + global $title_shared; + + global $url_shares; - echo $script; + $social_banner_node = ""; - } + + if(!empty($skyscraper_options["sociable_banner"])){ + + $follow_us = sc_follow_links(1); + + $follow_buttons = $follow_us["follow_buttons"]; + + $follow_us_count = $follow_us["count"]; + + $width_banner = 200; + + $social_banner_node = " var url = '". addslashes(trim($url_shares))."'; + var title = '".addslashes(trim($title_shared)) ."'; + var counter = '
    '; + counter += '
  • '; + counter += '
    '; + + counter += '
  • '; + counter += '
  • '; + counter += ' '; + counter += '
  • '; + counter += '
  • '; + counter += ''; + counter += '
  • '; + counter += '
';"; + + if ($follow_us_count > 0){ + + $social_banner_node .= " + counter += '
    '; + counter += '
  • '; + counter += '
  • '; + counter += '
';"; + + $social_banner_node .= " counter += '".$follow_buttons."'; "; + + if ($follow_us_count > 1){ + + $width_banner = $width_banner + (70 * $follow_us_count); + } + else{ + $width_banner = $width_banner + (90 * $follow_us_count); + } + + + } + + $label_text = trim($skyscraper_options["sociable_banner_text"]); + + if (strlen($label_text) > 35){ + // $label_text = substr($label_text,0,35); + } + $label_text = addslashes($label_text); + + $social_banner_node .= "oPlugin.CreateNode('New_Id_14','".$label_text."', '', counter,'banner',80,".$width_banner.");"; + $timer = ($skyscraper_options["sociable_banner_timer"] * 1000); + + $colorBack = $skyscraper_options["sociable_banner_colorBack"]; + $colorFont = $skyscraper_options["sociable_banner_colorFont"]; + $colorLabel = $skyscraper_options["sociable_banner_colorLabel"]; + $fontSize = $skyscraper_options["sociable_banner_fontSize"]; + + $social_banner_node .="setTimeout('showBanner(".$timer.",\"".$colorBack."\", \"".$colorLabel."\", \"".$colorFont."\", \"".$fontSize."\")', ".$timer.");"; + + } + + return $social_banner_node; } + function get_rss_node(){ + $rss_node = ""; + $latest_posts = ""; + global $skyscraper_options; + + $version = phpversion(); + + if ( substr($version,0,1) == 5 && isset($skyscraper_options["rss_feed"]) && $skyscraper_options["rss_feed"]!="http://"){ + + include("rss_php.php"); + + $rss = new rss_php; + $rss->load($skyscraper_options["rss_feed"]); + $items = $rss->getItems(); + + if (!empty($skyscraper_options["rss_feed"])){ + + if (count($items) > 0){ + + $cant = 0; + foreach($items as $item){ + + if ($cant <= $skyscraper_options["num_rss"]){ + + $title=""; + if (isset($item["title"])){ + $title = addslashes($item["title"]); + } + $description=""; + if (isset($item["description"])){ + $description = addslashes($item["description"]); + } + $guid=""; + if (isset($item["link"])){ + $guid = addslashes($item["link"]); + } + $pubDate=""; + if (isset($item["pubDate"])){ + $pubDate = ago(strtotime($item["pubDate"])); + } + + $latest_posts .= "['".$title."','','".$description."','".$guid."','".$pubDate."'],"; + } + else{ + break; + } + $cant++; + } + $latest_posts = trim($latest_posts, ","); + } + } + } + + if ($latest_posts != ""){ + + $rss_node = "var LatestBlogPostContent = [ + ".$latest_posts." + ]; + oPlugin.CreateNode('New_Id_5','Posts','',LatestBlogPostContent,'Notice',220,460);"; + } + return $rss_node; + } + function get_latest_node(){ + $latest_node = ""; + global $skyscraper_options; + + if ( isset($skyscraper_options["twitter_username"])){ + + $latest_tweets = get_option_tweets("skyscraper_latest"); + if ($skyscraper_options["twitter_username"] != ""){ + + if ($latest_tweets != ""){ + - $latest_node = "var LastestTwittsContent = [ + + $latest_node = " + + var LastestTwittsContent = [ + ".$latest_tweets." + ]; + + oPlugin.CreateNode('New_Id_3','Latest','',LastestTwittsContent,'Notice',220,460);"; + } + } + } + return $latest_node; + } + function get_mentions_node(){ + $mentions_node = ""; + + global $skyscraper_options; + + if ( isset($skyscraper_options["twitter_username"])){ + + $mentions_tweets = get_option_tweets("skyscraper_mentions"); + if ($skyscraper_options["twitter_username"] != ""){ + + if ($mentions_tweets != "" ){ + + $mentions_node = "var TweetsMentionsContent = [ + ".$mentions_tweets." + ]; + oPlugin.CreateNode('New_Id_4','Mentions','',TweetsMentionsContent,'Notice',220,460);"; + } + } + } + return $mentions_node; + } + function get_counters_node(){ + + global $skyscraper_options; + global $title_shared; - global $url_shares; - + + global $url_shares; + $counters_node = ""; - /* - - - - */ + + if ((!empty($skyscraper_options["counters"]["check"]))){ + + $counters_node = " var url = '". addslashes(trim($url_shares))."'; - var title = '".addslashes(trim($title_shared)) ."'; - - var counter = ''; - counter += ''; - counter += ''; - counter += '
'; - counter += '
'; - counter += '
'; - counter +='
'; - counter += '
'; - counter += 'Tweet'; - counter += '
'; - - oPlugin.CreateSimpleNode('New_Id_2','Counters
', counter ,".$skyscraper_options["counters"]["folded"]."); - "; + + var title = '".addslashes(trim($title_shared)) ."'; "; + + $counters_node .= " + var counter = '
    '; + + counter += '
  • '; + + counter +='
  • '; + + counter += '
  • '; + + counter += '
';"; } - + + + + $counters_node .= "oPlugin.CreateSimpleNode('New_Id_2','Counters
', counter ,".$skyscraper_options["counters"]["folded"]."); +"; + return $counters_node; + } + function get_share_node(){ + + global $skyscraper_options; + + $share_node = ""; + + if (!empty($skyscraper_options["share"]["check"])){ + $share_buttons = share_links(); + $share_node = "oPlugin.CreateSimpleNode('New_Id_1','Share', '".$share_buttons."',".$skyscraper_options["share"]["folded"].");"; + } + + return $share_node; + } + function get_follow_us_node(){ + $follow_us_node = ""; + global $skyscraper_options; + + if (isset($skyscraper_options["follow_us"])){ + + $follow_info = empty_accounts(); + + if ( $follow_info["active"] > 0 && ($follow_info["empty"] < $follow_info["active"])){ + + $follow_buttons = sc_follow_links(); + + $follow_us_node = "oPlugin.CreateNode('New_Id_6','Follow', '', '".$follow_buttons["follow_buttons"]."','Plano',40,140)"; - $follow_us_node = "oPlugin.CreateNode('New_Id_6','Follow', '', '".sc_follow_links()."','Plano',40,140)"; } + } + return $follow_us_node; + } + function empty_accounts(){ + $empty = 0; + $active = 0; + global $skyscraper_options; + + foreach($skyscraper_options["follow_us"] as $follow_us){ + + if (empty($follow_us["account"])){ + $empty++; + } + + if (isset($follow_us["active"])){ + $active++; + } + } + + return array("empty" =>$empty, "active"=>$active); + } -function sc_follow_links(){ + +function sc_follow_links($banner = 0){ + global $skyscraper_options; + + $follow_buttons = "
    "; + $count_follow = 0; - $follow_buttons = ""; - - foreach($skyscraper_options["follow_us"] as $follow_us){ - + foreach($skyscraper_options["follow_us"] as $follow_us){ + $follow_us["account"]= trim($follow_us["account"]); - + if (!empty($follow_us["active"]) && !empty($follow_us["account"]) ){ - + $follow_us["account"] = str_replace("http://", "", $follow_us["account"]); + $follow_us["account"] = "http://".$follow_us["account"]; + + if ($banner==1){ + + $follow_us["logo"] = "48".$follow_us["logo"]; + } + + $follow_buttons .= "
  • "; - $follow_buttons .= ""; + $count_follow++; } + } - return $follow_buttons; + $follow_buttons .= "
"; + + $return = array(); + $return["count"] = $count_follow; + $return["follow_buttons"] = $follow_buttons; + + return $return; } + function share_links(){ + + $url = addslashes(get_bloginfo('wpurl')); + $blogname = addslashes(get_bloginfo('name')); + global $title_shared; + global $url_shares; - + $page = trim(addslashes($url_shares)); - $permalink = trim(addslashes($url_shares)); + + $permalink = trim(addslashes($url_shares)); + $title = trim(addslashes($title_shared)); + + $share_links = array(); + $share_links = array( - - + + "twitter" => array('favicon' => 't.png', - 'url' => 'http://twitter.com/intent/tweet?text='.$title.'%20-%20'.$permalink.'%20(via%20@sociablesite) %23sociable [skyscraper_share]', + + 'url' => 'http://twitter.com/intent/tweet?text='.urlencode($title).' - '.urlencode($url).' '.urlencode("{sociable}").' blogplay.com&via=sociablesite', + 'title' => "Share on Twitter"), + + "facebook" => array('favicon' => 'f.png', + 'url' => 'http://www.facebook.com/share.php?u='.$permalink.'&t='.$title.'', + 'title' => "Share on Facebook"), + + "google" => array('favicon' => 'g.png', + 'url' => 'https://mail.google.com/mail/?view=cm&fs=1&to&su='.$title.'&body='.$permalink.'&ui=2&tf=1&shva=1', + 'title' => "Share on Gmail"), + - "favorites" => array('favicon' => 'fv.png', - 'url' => 'javascript:AddToFavorites();', - 'title' => "Add to favorites - doesn\'t work in Chrome"), + + "inbound" => array('favicon' => 'inbound.png', + + 'url' => 'http://inbound.org/?url='.$permalink.'&title='.$title.'', + + 'title' => "Share on inbound.org"), + + "stumble" => array('favicon' => 's.png', + 'url' => 'http://www.stumbleupon.com/submit?url='.$permalink.'&title='.$title.'', + 'title' => "Share on StumpleUpon"), + + "delicious" => array('favicon' => 'o.png', + 'url' => 'http://delicious.com/post?url='.$permalink.'&title='.$title.'&notes=EXCERPT', + "title" => "Share on delicious"), + + "reader" => array('favicon' => 'n.png', + 'url' => 'http://www.google.com/reader/link?url='.$permalink.'&title='.$title.'&srcURL='.$permalink.'&srcTitle='.$blogname.'', + "title" => "Share on Google Reader"), + + "linkedin" => array('favicon' => 'i.png', + 'url' => 'http://www.linkedin.com/shareArticle?mini=true&url='.$permalink.'&title='.$title.'&source='.$blogname.'&summary=EXCERPT', + "title" => "Share on LinkedIn") + + ); + + $share_buttons = ""; + + foreach($share_links as $link){ + + $share_buttons .= ""; + } + + return $share_buttons; + } + /* + * Template Tag To Echo The Sociable 2 HTML + */ + function do_skyscraper(){ + echo skyscraper_html(); + } + /* + * Sociable 2 Shortcode + */ + function skyscraper_shortcode(){ + return skyscraper_html(); + } + function auto_skyscraper($content, $admin = false){ + global $skyscraper_options; -// echo $_SERVER["REQUEST_URI"]; + + if ($admin){ - // die("acaa22"); + $content = skyscraper_html(); + return $content; + } + + if( ! isset( $skyscraper_options['active'] )){ + $content = ""; + return $content; + } + + echo "
";
+	print_r ($skyscraper_options["locations"]);
+	echo "
"; + + if( ! isset( $skyscraper_options['locations'] ) || ! is_array( $skyscraper_options['locations'] ) || empty( $skyscraper_options['locations'] ) ){ + + $content = ""; + } else { + + $locations = $skyscraper_options['locations']; + } + /* + * Determine if we are supposed to be displaying the output here. + */ + $display = false; + + /* + * is_single is a unique case it still returning true + */ + + //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. + foreach( $locations as $location => $val ){ + + //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 + if( $location == 'is_single' ){ + //If we are not in a post, lets ignore this one for now + + if( is_single() && get_post_type() == 'post' ){ + $display = true; + break; + } else { + continue; // So not to trigger is_single later in this loop, but still be allowed to handle others + } + + } 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. + + //Single Custom Post Type + $post_type = str_replace( 'is_single_posttype_' , '' , $location ); + if( is_single() && get_post_type() == $post_type ){ + $display = true; + break; + } + + } elseif( strpos( $location , 'is_posttype_archive_' ) === 0 ){ + + //Custom Post Type Archive + $post_type = str_replace( 'is_posttype_archive_' , '' , $location ); + if( is_post_type_archive( $post_type ) ){ + $display = true; + break; + } + + } elseif( strpos( $location , 'is_taxonomy_archive_' ) === 0 ) { + + //Taxonomy Archive + $taxonomy = str_replace( 'is_taxonomy_archive_' , '' , $location ); + if( is_tax( $taxonomy ) ){ + $display = true; + break; + } + + } elseif( function_exists( $location ) ) { + + //Standard conditional tag, these will return BOOL + if( call_user_func( $location ) === true ){ + $display = true; + break; + } + + } else { + continue; + } + + + } + + //If We have passed all the checks and are looking in the right place lets do this thang + if( isset( $skyscraper_options['automatic_mode'] ) && $display === true ){ + if (isset($skyscraper_options["topandbottom"])){ + $content = skyscraper_html(); + }else{ + $content = skyscraper_html(); + } + } + else{ + $content = skyscraper_html(); + } + + + + return $content; + } + function get_tweets_username($username_complete){ + + if (function_exists('curl_init')) { + + // last tweets + $username = str_replace("@", "", $username_complete); + $url = "https://api.twitter.com/1/statuses/user_timeline/".$username.".json"; + $latest = curl_call($url); + $latest_row = parser_twitter_results($latest,0); + update_option( "skyscraper_latest", $latest_row ); + + // last mentions + $url = "http://search.twitter.com/search.json?q=@".$username."&rpp=5&include_entities=true&result_type=mixed"; + $mentions = curl_call($url); + + if (count($mentions["results"]) > 1){ + + $mentions_row = parser_twitter_results($mentions["results"],1); + update_option( "skyscraper_mentions", $mentions_row ); + } + } + } + function ago($time){ + $periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade"); + $lengths = array("60","60","24","7","4.35","12","10"); + $now = time(); + $difference = $now - $time; + $tense = "ago"; + for($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) { + $difference /= $lengths[$j]; + } + $difference = round($difference); + if($difference != 1) { + $periods[$j].= "s"; + } + return $difference." ".$periods[$j]."ago"; + } + function parser_twitter_results($results = array(), $mention){ + + $options_latest = array(); + $options_latest = array("date" => date("YmdHis")); + global $skyscraper_options; + $i = 0; + + if (is_array($results)){ + + foreach($results as $tweet){ + + $options_latest[$i] = array(); + $options_latest[$i]["text"] = $tweet["text"]; + $options_latest[$i]["created_at"] = ago(strtotime($tweet["created_at"])); + + if ($mention){ + $options_latest[$i]["name"] = $tweet["from_user_name"]; + } + else{ + $options_latest[$i]["name"] = $tweet["user"]["name"]; + } + + $i++; + if ($i == $skyscraper_options["num_tweets"]){ + break; + } + } + } + + return $options_latest; + } + function curl_call($url){ + + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_TIMEOUT, 3); + curl_setopt($ch, CURLINFO_HEADER_OUT, true); + $output = curl_exec($ch); + $info = curl_getinfo($ch); + curl_close($ch); + + if ($info["http_code"] == "200"){ + + $return = json_decode($output,1); + } + else{ + $return = false; + } + + return $return; + } + function get_option_tweets($option){ + + global $skyscraper_options; + $skyscraper_latest = get_option($option); + + if (empty($skyscraper_latest)){ + + get_tweets_username($skyscraper_options["twitter_username"]); + $skyscraper_latest = get_option($option); + } + else{ + + // 5 minutes + if (diff_date($skyscraper_latest["date"], date("YmdHis")) > 5){ + + get_tweets_username($skyscraper_options["twitter_username"]); + $skyscraper_latest = get_option($option); + } + } + + + return generate_tweets_box_content($skyscraper_latest); + } + function generate_tweets_box_content($tweets){ + $content = ""; + if (isset($tweets["date"])){ + unset($tweets["date"]); + } + + + foreach($tweets as $tweet){ + + $tweet["name"] = addslashes($tweet["name"]); + $tweet["text"] = addslashes($tweet["text"]); + + $content .= "['".$tweet["name"]."','".$tweet["name"]."','".$tweet["text"]."','','".$tweet["created_at"]."'],"; + } + $content = trim(trim(trim($content), ",")); + + return $content; + } + if (!empty($_GET["sky"])){ + add_action('wp_ajax_my_action', 'my_action_callback'); + function my_action_callback() { + global $wpdb; global $skyscraper_options; // this is how you get access to the database + $whatever = intval( $_POST['whatever'] ); + $whatever += 10; + echo $whatever; + die(); // this is required to return a proper result + } + } + ?> \ No newline at end of file diff --git a/includes/sociable_output.php b/includes/sociable_output.php index ba91af9..b328bff 100644 --- a/includes/sociable_output.php +++ b/includes/sociable_output.php @@ -1,759 +1,1517 @@ ID,'_sociableoff',true)) { + + return ""; + + } + + + $active_sites = $sociable_options['active_sites']; + // Get The Image Path + + //$imagepath = _get_sociable_image_path(); + // if no sites are specified, display all active + + // have to check $active_sites has content because WP + + // won't save an empty array as an option + + if ( empty($display) && isset( $active_sites ) ) + + $display = $active_sites; + + // if no sites are active, display nothing + + if ( empty($display) ) + + return ""; + // Load the post's and blog's data + + $blogname = urlencode(get_bloginfo('name')." ".get_bloginfo('description')); + + $blogrss = get_bloginfo('rss2_url'); + + + + // Grab the excerpt, if there is no excerpt, create one + + $excerpt = urlencode(strip_tags(strip_shortcodes($post->post_excerpt))); + + if ($excerpt == "") { + + $excerpt = urlencode(substr(strip_tags(strip_shortcodes($post->post_content)),0,250)); + + } + + + + // Clean the excerpt for use with links + + $excerpt = str_replace('+','%20',$excerpt); + + $permalink = urlencode(get_permalink($post->ID)); + + + + $permalinkCOUNT = get_permalink($post->ID); + + $title = str_replace('+','%20',urlencode($post->post_title)); + + $titleCOUNT = $post->post_title; + + + + $rss = urlencode(get_bloginfo('ref_url')); + // Start preparing the output + + $html = '
'; + + + + // If a tagline is set, display it above the links list + + $tagline = isset( $sociable_options['tagline'] ) ? $sociable_options['tagline'] : '' ; + + if ($tagline != '') { + + $html .= '
'; + + if (isset( $sociable_options['help_grow'] )) { + + $addSize = ""; + + if ($sociable_options['icon_size'] ==16) $addSize = "font-size:11px;"; + + $html .= "".$tagline.""; + + }else{ + + $html .= $tagline; + + } + + $html .= "
"; + + } + + + + /** + + * Start the list of links + + */ + + $html .= "
    "; + $i = 0; + + $totalsites = count($display); + + $margin = "0px"; + + switch ($sociable_options['icon_size']){ + + + + case "16": $margin = "padding-top: 0;margin-top:-2px"; + + break; + + case "32": $margin = "margin-top:9px"; + + break; + + case "48": $margin = "margin-top:24px"; + + break; + + case "64": $margin = "margin-top:38px"; + + break; + + } + + + + // print_r($display); + + + + if (isset($display["More"])){ + + unset($display["More"]); + + array_push($display,"More"); + + $display["More"] = "On"; + + } + + //print_r($display); + + foreach($display as $sitename => $val ) { + + + + if ( ! array_key_exists($sitename, $active_sites) || isset($sociable_known_sites[$sitename]["counter"])) + + continue; + + + + $site = $sociable_known_sites[$sitename]; + + $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url']; + + $url = str_replace('TITLECOUNT', $titleCOUNT, $url); + + $url = str_replace('TITLE', $title, $url); + + $url = str_replace('RSS', $rss, $url); + + $url = str_replace('BLOGNAME', $blogname, $url); + + $url = str_replace('EXCERPT', $excerpt, $url); + + $url = str_replace('FEEDLINK', $blogrss, $url); + + $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url); + + + + $url = str_replace('PERMALINK', $permalink, $url); + + + + + + + + if (isset($site['description']) && $site['description'] != "") { + + $description = $site['description']; + + } else { + + $description = $sitename; + + } + + + + $link = '
  • '; + + if (!empty($sociable_options["custom_icons"])){ + + $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description ); + + }else{ + + if ($description != "More"){ + + $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description ); + + }else{ + + $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : ""; + + } + + } - $posX = $site["spriteCoordinates"][$sociable_options['icon_size']]["0"]; - $posY = $site["spriteCoordinates"][$sociable_options['icon_size']]["1"]; + + $posX = $site["spriteCoordinates"][$sociable_options['icon_size']]["0"]; + + + + $posY = $site["spriteCoordinates"][$sociable_options['icon_size']]["1"]; + + $backgroundFile = $sociable_options['icon_option']."_".$sociable_options['icon_size'].".png"; + + $style = "background-position:".$posX." ".$posY; + + $href = $url; + + $target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ; + + if ($sitename == "Add to favorites" || $sitename=="More"){ + + if ($sitename == "More"){ + + $link .= '' . $linkitem . '
  • ' ; + + }else{ + + $link .= '' ."" . '' ; + + } + + }else{ + + if($sociable_options["icon_option"] == "option6" || !empty($sociable_options["custom_icons"])){ + + $link .= '' . $linkitem . '' ; + + }else{ + + if (count(split("Counter",$sitename))>1){ + + $link.= $href; + + }else{ + + + + $link .= '' . "" . '' ; + + } + + } + + } + + + + $html .= apply_filters( 'sociable_link' , $link ); + + + + $i++; + + } + + //return $html; + + + + //if ($sociable_options['icon_option'] !="option6"){ + + $inner = "
      "; + + foreach ($sociable_known_sites as $sitename => $val){ + + if (array_key_exists($sitename, $display) || isset($sociable_known_sites[$sitename]["counter"]) ) + + continue; + + $site = $sociable_known_sites[$sitename]; + + $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url']; + + $url = str_replace('TITLECOUNT', $titleCOUNT, $url); + + + + $url = str_replace('TITLE', $title, $url); + + $url = str_replace('RSS', $rss, $url); + + $url = str_replace('BLOGNAME', $blogname, $url); + + $url = str_replace('EXCERPT', $excerpt, $url); + + $url = str_replace('FEEDLINK', $blogrss, $url); + + $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url); + + + + $url = str_replace('PERMALINK', $permalink, $url); + + + + + + $link = '
    • '; + + if (!empty($sociable_options["custom_icons"])){ + + $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description ); + + }else{ + + + + if (isset($description) && $description!= "More"){ + + $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description ); + + }else{ + + $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : ""; + + } + + } + $posX = $site["spriteCoordinates"][$sociable_options['icon_size']]["0"]; + + $posY = $site["spriteCoordinates"][$sociable_options['icon_size']]["1"]; + + $backgroundFile = $sociable_options['icon_option']."_".$sociable_options['icon_size'].".png"; + + $style = "background-position:".$posX." ".$posY; + + $href = $url; + + $target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ; + + if ($sitename == "Add to favorites" || $sitename=="More"){ + + if ($sitename == "More"){ + + $link .= '' . $linkitem . '
    • ' ; + + }else{ + + $link .= '' ."" . '' ; + + } + + }else{ + + if($sociable_options["icon_option"] == "option6" || !empty($sociable_options["custom_icons"])){ + + $link .= '' . $linkitem . '' ; + + }else{ + + $link .= '' . "" . '' ; + + } + + } + + + + $inner .= apply_filters( 'sociable_link' , $link ); + + + + $i++; + + + + } + + + + $inner .="
    "; + + $html .='
HereGoCounters
'; + + //$margin = + + //$html .= "
  • "; + + //} + + //return ""; + + $counters =""; + + /*if ($location == "bottom" && (is_single() || is_admin())){ */ + + + + + + $counters = "
      "; + + + + foreach ($display as $sitename => $val){ + + //echo $sitename."
      "; + + if (!array_key_exists($sitename, $display) || !isset($sociable_known_sites[$sitename]["counter"]) ) + + continue; + + + + //echo $sitename."
      "; + + $link = '
    • '; + + + + $site = $sociable_known_sites[$sitename]; + + $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url']; + + $url = str_replace('TITLECOUNT', $titleCOUNT, $url); + + + + $url = str_replace('TITLE', $title, $url); + + $url = str_replace('RSS', $rss, $url); + + $url = str_replace('BLOGNAME', $blogname, $url); + + $url = str_replace('EXCERPT', $excerpt, $url); + + $url = str_replace('FEEDLINK', $blogrss, $url); + + + + $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url); + + $url = str_replace('PERMALINK', $permalink, $url); + + + + + + $link.= $url."
    • "; + + $counters .= apply_filters( 'sociable_link' , $link ); + + } + + $counters .="
    "; + + $html = str_replace("HereGoCounters",$counters,$html); + + + + /*}else{ + + $html = str_replace("HereGoCounters",$counters,$html); + + }*/ + + + + return $html; + + + + } + /* + + * Template Tag To Echo The Sociable 2 HTML + + */ + + function do_sociable(){ + + echo sociable_html(); + + } + /* + + * Hook For the_content to automatically output the sociable HTML If The Option To Disable Has Not Been Unchecked + + */ + + function auto_sociable( $content ){ + + global $sociable_options; + + + + if (!isset($sociable_options["active"])){ + + + + return $content; + + } + + + + if( ! isset( $sociable_options['locations'] ) || ! is_array( $sociable_options['locations'] ) || empty( $sociable_options['locations'] ) ){ + + return $content; + + } else { + + $locations = $sociable_options['locations']; + + } + + + + /* + + * Determine if we are supposed to be displaying the output here. + + */ + + $display = false; + + + + /* + + * is_single is a unique case it still returning true + + */ + + + + //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. + + foreach( $locations as $location => $val ){ + + + + //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 + + if( $location == 'is_single' ){ + + //If we are not in a post, lets ignore this one for now + + if( is_single() && get_post_type() == 'post' ){ + + $display = true; + + break; + + } else { + + continue; // So not to trigger is_single later in this loop, but still be allowed to handle others + + } + + + + } 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. + + + + //Single Custom Post Type + + $post_type = str_replace( 'is_single_posttype_' , '' , $location ); + + if( is_single() && get_post_type() == $post_type ){ + + $display = true; + + break; + + } + + + + } elseif( strpos( $location , 'is_posttype_archive_' ) === 0 ){ + + + + //Custom Post Type Archive + + $post_type = str_replace( 'is_posttype_archive_' , '' , $location ); + + if( is_post_type_archive( $post_type ) ){ + + $display = true; + + break; + + } + + + + } elseif( strpos( $location , 'is_taxonomy_archive_' ) === 0 ) { + + + + //Taxonomy Archive + + $taxonomy = str_replace( 'is_taxonomy_archive_' , '' , $location ); + + if( is_tax( $taxonomy ) ){ + + $display = true; + + break; + + } + + + + } elseif( function_exists( $location ) ) { + + + + //Standard conditional tag, these will return BOOL + + if( call_user_func( $location ) === true ){ + + $display = true; + + break; + + } + + + + } else { + + continue; + + } + + + + + + } + + + + //If We have passed all the checks and are looking in the right place lets do this thang + + if( isset( $sociable_options['automatic_mode'] ) && $display === true ){ + + if (isset($sociable_options["topandbottom"])){ + + $content = sociable_html(array(),"top").$content . sociable_html(array(),"bottom"); + + }else{ + + $content = "".$content . sociable_html(array()); + + } + + } + + + + + + return $content; + + } + /* + + * Sociable 2 Shortcode + + */ + + function sociable_shortcode(){ + + return sociable_html(); + + } + + function add_googleplus() { -echo''; + +//echo''; + + } + + //add_action('wp_head', 'add_googleplus' ); + + ?> \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..cc4f697 --- /dev/null +++ b/index.php @@ -0,0 +1,5 @@ + diff --git a/js/oPlugin.js b/js/oPlugin.js index 9c934ff..b391694 100644 --- a/js/oPlugin.js +++ b/js/oPlugin.js @@ -1,1150 +1,630 @@ -oPlugin = { - - PluginWidth:80, - - PluginHeight:1, - - SlideBig:'Small', - - LabelBgColor:'#f7f7f7', - - BgColor:'#fefefe', - - Color:'#6A6A6A', - - FontSize:'11', - - LinkColor:'#587cc8', - - Timer:null, - - LastBox:null, - - Browser: { - - Explorer: !!(navigator.appName=='Microsoft Internet Explorer'), - - Other: !!!(navigator.appName=='Microsoft Internet Explorer'), - - Chrome: !!(navigator.userAgent.toLowerCase().indexOf('chrome') > -1) - - }, - - - -boxDialog: function(sId){ - - if(document.getElementById('content_'+sId).style.display=='block'){ - - if(oPlugin.LastBox){ - - if(document.getElementById('boxDialog_'+oPlugin.LastBox)){ - - jQuery('#boxDialog_'+oPlugin.LastBox).hide('slow'); - - document.getElementById('boxDialog_'+oPlugin.LastBox).style.zIndex=0; - - } - - - - jQuery('#content_'+oPlugin.LastBox).show('fast'); - - - - - - document.getElementById('arrow_'+oPlugin.LastBox).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png'; - - } - - if(document.getElementById('boxDialog_'+sId)){ - - jQuery('#boxDialog_'+sId).show('slow'); - - document.getElementById('boxDialog_'+sId).style.zIndex=10; - - } - - jQuery('#content_'+sId).hide('fast'); - - oPlugin.LastBox=sId; - - - - document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png'; - - }else{ - - - - oPlugin.LastBox=null; - - if(document.getElementById('boxDialog_'+sId)){ - - jQuery('#boxDialog_'+sId).hide('slow'); - - } - - - - - - jQuery('#content_'+sId).show('fast'); - - - - document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png'; - - } - - - -}, - -boxDialogShow: function(sId){ - - if(document.getElementById('content_'+sId).style.display=='block'){ - - if(oPlugin.LastBox){ - - if(document.getElementById('boxDialog_'+oPlugin.LastBox)){ - - jQuery('#boxDialog_'+oPlugin.LastBox).hide('slow'); - - document.getElementById('boxDialog_'+oPlugin.LastBox).style.zIndex=0; - - } - - - - jQuery('#content_'+oPlugin.LastBox).show('fast'); - - - - - - document.getElementById('arrow_'+oPlugin.LastBox).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png'; - - } - - if(document.getElementById('boxDialog_'+sId)){ - - jQuery('#boxDialog_'+sId).show('slow'); - - document.getElementById('boxDialog_'+sId).style.zIndex=10; - - } - - jQuery('#content_'+sId).hide('fast'); - - oPlugin.LastBox=sId; - - - - document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png'; - - } - - - -}, - -hideShowToolbar: function(){ - - if(document.getElementById('wpPlugin-MainFrame').style.display=='none'){ - - jQuery('#wpPlugin-MainFrame').show(1500); - - document.getElementById('wpSocciable').className= 'wpSocciable'+oPlugin.SlideBig+''; document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable.png)"; - - document.getElementById('wpSocciableClose').className= 'wpSocciableClose'; document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close.png)"; - document.getElementById('wpSocciable').style.marginLeft = '-20px'; - document.getElementById('wpSocciableClose').style.marginLeft = '-20px'; - - - - }else{ - - - document.getElementById('wpPlugin-MainFrame').style.display='none'; - - document.getElementById('wpSocciable').className= 'wpSocciable'+oPlugin.SlideBig+'-c'; document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable-c.png)"; - - document.getElementById('wpSocciableClose').className= 'wpSocciableClose-c'; document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close-c.png)"; - - - - } - -}, - -focus:function(obj){ - - obj.style.opacity='1'; - - obj.style.filter="alpha(opacity='100')"; - -}, - -blur:function(obj){ - - obj.style.opacity='0.4'; - - obj.style.filter="alpha(opacity='40')"; - - - -}, - -refreshPosition: function(){ - - - - var scrolltop = jQuery('html,body').scrollTop(); - - - - if (oPlugin.Browser.Chrome){ - - - - scrolltop = document.body.scrollTop; - - } - - - - - - var div = jQuery('#wpPlugin-BOX'); - - var start = jQuery(div).offset().top; - - - - - - var p = jQuery(window).scrollTop(); - - jQuery(div).css('position','fixed'); - - - - - - - - //document.getElementById('wpPlugin-BOX').style.top = (scrolltop+40) + 'px'; - - /*if(parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))!=(scrolltop+40)){ - - document.getElementById('wpPlugin-BOX').style.display='none'; - - - - document.getElementById('wpPlugin-BOX').style.top = (scrolltop+40) + 'px'; - - - - if(parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))>(scrolltop+40)){ - - document.getElementById('wpPlugin-BOX').style.top = (parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))-1) + 'px'; - - }else{ - - document.getElementById('wpPlugin-BOX').style.top = (parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))+1) + 'px'; - - } - - - - document.getElementById('wpPlugin-BOX').style.display=''; - - }else{ - - clearInterval(oPlugin.Timer); - - oPlugin.Timer=null; - - } - - */ - -}, - -toolbarStart: function(sID_Parent,sMove,sHeight,sWidth,sBgColor,sLabelBgColor,sSlideBig,sColor,sFontSize,sLinkColor){ - - - - - - if(sLinkColor){ - - oPlugin.LinkColor = sLinkColor; - - } - - if(sFontSize){ - - oPlugin.FontSize = sFontSize; - - } - - - - if(sColor){ - - oPlugin.Color = sColor; - - } - - if(sBgColor){ - - oPlugin.BgColor = sBgColor; - - } - - if(sSlideBig){ - - oPlugin.SlideBig = "Big"; - - }//If Null == Small! - - - - if(sLabelBgColor){ - - oPlugin.LabelBgColor = sLabelBgColor; - - } - - if(sWidth){ - - oPlugin.PluginWidth = sWidth; - - - - } - - if(sHeight){ - - oPlugin.PluginHeight = sHeight; - - - - } - - - - if(sMove){ - - window.onscroll = function (e) { - - if(!oPlugin.Timer){ - - - - oPlugin.Timer = setInterval("oPlugin.refreshPosition();", 50); - - } - - } - - } - - jQuery(document).ready(function(){ - - document.getElementById('wpPlugin-BOX').style.marginLeft = (21 - jQuery("body").css("padding-left").replace('px','')) + 'px'; - - }); - - - var Base = - - '
    '+ - - '
    '+ - '
    '+ - - ''+ - - ''+ - - ''+ - - ''+ - - ''+ - - ''+ - - ''+ - - ''+ - - '
    '+ - - '
    '+ - - ''+ - - '
      '+ - - '
    '+ - - '
    '+ - - '
    '+ - - '
    '; - - - - document.getElementById(sID_Parent).innerHTML = Base + document.getElementById(sID_Parent).innerHTML; - - - - oPlugin.InitializeShowObj = 'wpPlugin-MainFrame'; - - document.getElementById(oPlugin.InitializeShowObj).style.display='none'; - - oPlugin.InitializeShow = setInterval("jQuery('#'+oPlugin.InitializeShowObj).show(3000);clearInterval(oPlugin.InitializeShow);", 1000); - - //oPlugin.blur(document.getElementById(oPlugin.InitializeShowObj)); - - - - //onmouseover="oPlugin.focus(this);" onmouseout="oPlugin.blur(this);" onmouseover"this.style.opacity=1;" onmouseout"this.style.opacity=0.4;" - - /*if(!oPlugin.Browser.Explorer){ - - - - document.getElementById(sID_Parent).style.display='none'; - - oPlugin.InitializeShowObj = sID_Parent; - - oPlugin.InitializeShow = setInterval("jQuery('#'+oPlugin.InitializeShowObj).show(3000);clearInterval(oPlugin.InitializeShow);", 1000); - - - - - - }else{ - - document.getElementById('wpPlugin-MainFrame').style.filter='alpha(opacity=40)'; - - - - }*/ - - - - document.getElementById('wpPlugin-BOX').style.top = '20px'; document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable.png)"; document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close.png)"; - -}, - - CreateGoToTop:function(sId,sTitle,sContent){ - - - - oLi = oPlugin.createElement('li',sId,'item',null,'',null); - - - - - - - - var oLi_Functions; - - - - oLi_Functions = Array(); - - oLi_Functions[0]= new Array(); - - oLi_Functions[0][0] = 'click'; - - oLi_Functions[0][1] = function(){ - - // var scrolltop = jQuery('html,body').scrollTop(); - - - - if (oPlugin.Browser.Chrome){ - - - - document.body.scrollTop = 0; - - } - - else{ - - jQuery('html,body').scrollTop(0); - - } - - - - }; - - - - oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,''+sTitle+'',null); - - oLabel.style.background=oPlugin.LabelBgColor; - - oLi.appendChild(oLabel); - - - - oLi_Content = oPlugin.createElement('div','content_' +sId,'content',oLi_Functions,sContent,null); - - if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';} - - oLi_Content.align='center'; - - oLi_Content.style.display='block'; - - oLi_Content.style.cursor='pointer'; - - oLi.appendChild(oLi_Content); - - - - document.getElementById('toolbar').appendChild(oLi); - - - - }, - - - - CreateSimpleNode:function(sId,sTitle,sContent,display){ - - - - oLi = oPlugin.createElement('li',sId,'item',null,'',null); - - - - - - - - var oLi_Functions; - - - - oLi_Functions = Array(); - - oLi_Functions[0]= new Array(); - - oLi_Functions[0][0] = 'click'; - - oLi_Functions[0][1] = function(){ - - if(document.getElementById('content_'+sId).style.display=='none'){ - - - - document.getElementById('content_'+sId).style.display='block'; - - document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png'; - - - - }else{ - - document.getElementById('content_'+sId).style.display='none'; - - document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png'; - - } - - }; - - - - if(display){ - - arrow=''; - - }else{ - - arrow='_s'; - - } - - oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,''+sTitle+'',null); - - oLabel.style.background=oPlugin.LabelBgColor; - - oLi.appendChild(oLabel); - - - - oLi_Content = oPlugin.createElement('div','content_' +sId,'content',oLi_Functions,sContent,null); - - if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';} - - oLi_Content.align='center'; - - if(display){ - - oLi_Content.style.display='block'; - - }else{ - - oLi_Content.style.display='none'; - - } - - oLi.appendChild(oLi_Content); - - - - document.getElementById('toolbar').appendChild(oLi); - - - - }, - - - - CreateGoToHome:function(sId,sTitle,sContent){ - - - - oLi = oPlugin.createElement('li',sId,'item',null,'',null); - - - - - - - - var oLi_Functions; - - - - oLi_Functions = Array(); - - oLi_Functions[0]= new Array(); - - oLi_Functions[0][0] = 'click'; - - oLi_Functions[0][1] = function(){document.location.href ='http://'+ document.location.href.split("/")[2];}; - - - - oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,''+sTitle+'',null); - - oLabel.style.background=oPlugin.LabelBgColor; - - oLi.appendChild(oLabel); - - - - oLi_Content = oPlugin.createElement('div','content_' +sId,'content',oLi_Functions,sContent,null); - - if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';} - - oLi_Content.align='center'; - - oLi_Content.style.display='block'; - - oLi_Content.style.cursor='pointer'; - - oLi.appendChild(oLi_Content); - - - - document.getElementById('toolbar').appendChild(oLi); - - - - }, - - CreateNode: function(sId,sTitle,sContent,sContentDialog,sContentDialogStyle,dialogHeight,dialogWidth){ - - - - oLi = oPlugin.createElement('li',sId,'item',null,'',null); - - - - - - - - var oLi_Functions; - - - - oLi_Functions = Array(); - - oLi_Functions[0]= new Array(); - - oLi_Functions[0][0] = 'click'; - - oLi_Functions[0][1] = function(){oPlugin.boxDialog(sId);}; - - - - - - - - - - - - oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,''+sTitle+'',null); - - oLabel.style.background=oPlugin.LabelBgColor; - - oLi.appendChild(oLabel); - - - - - - - - if(sContentDialog){ - - var oLi_BoxShape = ''+ - - ''+ - - ''+ - - ''+ - - ''+ - - ''+ - - ''+ - - ''+ - - ''+ - - '
    '+ - - '
     '; - - oLi_BoxShape += ''; - - oLi_BoxShape += 'x'; - - oLi_BoxShape += '
        '+sTitle+'
    '; - - - - switch(sContentDialogStyle){ - - case 'List': - - oLi_BoxShape += '
    '; - - oLi_BoxShape += '
      '; - - for(i=0;i'; - - oLi_BoxShape += ''+sContentDialog[i][0]+'  '; - - oLi_BoxShape += ''+sContentDialog[i][1]+'  '; - - oLi_BoxShape += ''+sContentDialog[i][2]+''; - - oLi_BoxShape += ''; - - - - } - - oLi_BoxShape += '
    '; - - oLi_BoxShape += '
    '; - - break; - - case 'Urls': - - oLi_BoxShape += '
    '; - - oLi_BoxShape += '
      '; - - for(i=0;i'; - - oLi_BoxShape += ''+sContentDialog[i]+''; - - oLi_BoxShape += ''; - - - - } - - oLi_BoxShape += '
    '; - - oLi_BoxShape += '
    '; - - break; - - case 'Notice': - - //oPlugin.Browser.Explorer - - oLi_BoxShape += '
      '; - - for(i=0;i'+sContentDialog[i][0]+' '; - - oLi_BoxShape += ''+sContentDialog[i][1]+'
      '; - - oLi_BoxShape += ''+sContentDialog[i][2]+''; - - oLi_BoxShape += ' - '+sContentDialog[i][3]+'
      '; - - oLi_BoxShape += ''+sContentDialog[i][4]+''; - - oLi_BoxShape += ''; - - - - } - - oLi_BoxShape += '
    '; - - break; - - case 'Item': - - oLi_BoxShape += '
    '; - - oLi_BoxShape += '
      '; - - - - oLi_BoxShape += '
    • '; - - oLi_BoxShape += ''+sContentDialog+''; - - oLi_BoxShape += '
    • '; - - - - - - oLi_BoxShape += '
    '; - - oLi_BoxShape += '
    '; - - - - break; - - default: - - oLi_BoxShape += '
    '; - - oLi_BoxShape += sContentDialog ; - - oLi_BoxShape += '
    '; - - break; - - - - } - - - - - - - - oLi_BoxShape += '
     
    '+ - - '
    '; - - - - - - oLi_BoxDialog = oPlugin.createElement('div','boxDialog_' +sId,'boxDialog',null,oLi_BoxShape,null); - - oLi_BoxDialog.align='left'; - - - - - - - - if(dialogWidth){ - - oLi_BoxDialog.style.width=(dialogWidth+10)+'px'; - - } - - - - if(dialogHeight){ - - if(oPlugin.Browser.Explorer){ - - oLi_BoxDialog.style.height=(dialogHeight+100)+'px'; - - }else{ - - oLi_BoxDialog.style.height=(dialogHeight+10)+'px'; - - } - - } - - - - oLi_BoxDialog.style.display='none'; - - - - - - oLi_BoxDialog.style.left=(oPlugin.PluginWidth-7+7)+'px'; - - oLi_BoxDialog.style.marginTop='-35px'; - - - - - - - - oLi.appendChild(oLi_BoxDialog); - - } - - - - - - oLi_Content = oPlugin.createElement('div','content_' +sId,'content',null,sContent,null); - - if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';} - - oLi_Content.align='center'; - - oLi_Content.style.display='block'; - - oLi.appendChild(oLi_Content); - - - - - - document.getElementById('toolbar').appendChild(oLi); - -}, - - - - - -createElement: function(sType,sId,sClass,aFunctions,sHtml,oParent){ - - var oElement; - - - - oElement=document.createElement(sType); - - oElement.setAttribute('id',sId); - - oElement.className=sClass; - - - - if(sHtml) - - { - - oElement.innerHTML=sHtml; - - } - - - - if (aFunctions) - - { - - for (iFunctions=0;iFunctions< aFunctions.length;iFunctions++) - - { - - if (oPlugin.Browser.Other) - - { - - oElement.addEventListener(aFunctions[iFunctions][0],eval(aFunctions[iFunctions][1]),false); - - } - - if (oPlugin.Browser.Explorer) - - { - - oElement['on' + aFunctions[iFunctions][0]]= aFunctions[iFunctions][1]; - - } - - } - - } - - - - if (oParent) - - { - - oParent.appendChild(oElement); - - }else{ - - return oElement; - - } - - } - -}; - - - - - -function twitter(url,title){ - - return ''; - -} - -function facebook(url){ - - - -return '' - -} - - - -function plus(url){ - - return ''; - - - -} - - - -function counters(){ - - - - jQuery("span#socialstats").each( - - - - function(i) { - - var url = jQuery(this).attr("url"); - - var title = jQuery(this).attr("title"); - - var append = ''; - - append += '' ; - - append += '' ; - - append += '' ; - - append += '
    '+twitter(url,title)+''+plus(url)+''+facebook(url)+'
    '; - - jQuery(this).html(append); - - - - - - }); - - } - - \ No newline at end of file +oPlugin = { + PluginWidth:80, + PluginHeight:1, + SlideBig:'Small', + LabelBgColor:'#f7f7f7', + BgColor:'#fefefe', + Color:'#6A6A6A', + FontSize:'11', + LinkColor:'#587cc8', + Timer:null, + LastBox:null, + Browser: { + Explorer: !!(navigator.appName=='Microsoft Internet Explorer'), + Other: !!!(navigator.appName=='Microsoft Internet Explorer'), + Chrome: !!(navigator.userAgent.toLowerCase().indexOf('chrome') > -1) + }, + +boxDialog: function(sId){ + + if(document.getElementById('content_'+sId).style.display=='block'){ + + if(oPlugin.LastBox){ + + if(document.getElementById('boxDialog_'+oPlugin.LastBox)){ + + jQuery('#boxDialog_'+oPlugin.LastBox).hide('slow'); + document.getElementById('boxDialog_'+oPlugin.LastBox).style.zIndex=0; + } + + jQuery('#content_'+oPlugin.LastBox).show('fast'); + + + document.getElementById('arrow_'+oPlugin.LastBox).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png'; + } + if(document.getElementById('boxDialog_'+sId)){ + + jQuery('#boxDialog_'+sId).show('slow'); + document.getElementById('boxDialog_'+sId).style.zIndex=10; + } + + jQuery('#content_'+sId).hide('fast'); + oPlugin.LastBox=sId; + + document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png'; + + }else{ + + oPlugin.LastBox=null; + + if(document.getElementById('boxDialog_'+sId)){ + + jQuery('#boxDialog_'+sId).hide('slow'); + } + + + jQuery('#content_'+sId).show('fast'); + + document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png'; + } + +}, +boxDialogShow: function(sId){ + if(document.getElementById('content_'+sId).style.display=='block'){ + if(oPlugin.LastBox){ + if(document.getElementById('boxDialog_'+oPlugin.LastBox)){ + jQuery('#boxDialog_'+oPlugin.LastBox).hide('slow'); + document.getElementById('boxDialog_'+oPlugin.LastBox).style.zIndex=0; + } + + jQuery('#content_'+oPlugin.LastBox).show('fast'); + + + document.getElementById('arrow_'+oPlugin.LastBox).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png'; + } + if(document.getElementById('boxDialog_'+sId)){ + jQuery('#boxDialog_'+sId).show('slow'); + document.getElementById('boxDialog_'+sId).style.zIndex=10; + } + jQuery('#content_'+sId).hide('fast'); + oPlugin.LastBox=sId; + + document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png'; + } + +}, +hideShowToolbar: function(){ + if(document.getElementById('wpPlugin-MainFrame').style.display=='none'){ + jQuery('#wpPlugin-MainFrame').show(1500); + document.getElementById('wpSocciable').className= 'wpSocciable'+oPlugin.SlideBig+''; document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable.png)"; + document.getElementById('wpSocciableClose').className= 'wpSocciableClose'; document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close.png)"; + document.getElementById('wpSocciable').style.marginLeft = '-20px'; + document.getElementById('wpSocciableClose').style.marginLeft = '-20px'; + + }else{ + + document.getElementById('wpPlugin-MainFrame').style.display='none'; + document.getElementById('wpSocciable').className= 'wpSocciable'+oPlugin.SlideBig+'-c'; document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable-c.png)"; + + document.getElementById('wpSocciableClose').className= 'wpSocciableClose-c'; document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close-c.png)"; + + + } +}, +focus:function(obj){ + obj.style.opacity='1'; + obj.style.filter="alpha(opacity='100')"; +}, +blur:function(obj){ + obj.style.opacity='0.4'; + obj.style.filter="alpha(opacity='40')"; + +}, +refreshPosition: function(){ + + var scrolltop = jQuery('html,body').scrollTop(); + + if (oPlugin.Browser.Chrome){ + + scrolltop = document.body.scrollTop; + } + + + var div = jQuery('#wpPlugin-BOX'); + var start = jQuery(div).offset().top; + + + var p = jQuery(window).scrollTop(); + jQuery(div).css('position','fixed'); + + + + //document.getElementById('wpPlugin-BOX').style.top = (scrolltop+40) + 'px'; + /*if(parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))!=(scrolltop+40)){ + document.getElementById('wpPlugin-BOX').style.display='none'; + + document.getElementById('wpPlugin-BOX').style.top = (scrolltop+40) + 'px'; + + if(parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))>(scrolltop+40)){ + document.getElementById('wpPlugin-BOX').style.top = (parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))-1) + 'px'; + }else{ + document.getElementById('wpPlugin-BOX').style.top = (parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))+1) + 'px'; + } + + document.getElementById('wpPlugin-BOX').style.display=''; + }else{ + clearInterval(oPlugin.Timer); + oPlugin.Timer=null; + } + */ +}, +toolbarStart: function(sID_Parent,sMove,sHeight,sWidth,sBgColor,sLabelBgColor,sSlideBig,sColor,sFontSize,sLinkColor){ + + + if(sLinkColor){ + oPlugin.LinkColor = sLinkColor; + } + if(sFontSize){ + oPlugin.FontSize = sFontSize; + } + + if(sColor){ + oPlugin.Color = sColor; + } + if(sBgColor){ + oPlugin.BgColor = sBgColor; + } + if(sSlideBig){ + oPlugin.SlideBig = "Big"; + }//If Null == Small! + + if(sLabelBgColor){ + oPlugin.LabelBgColor = sLabelBgColor; + } + if(sWidth){ + oPlugin.PluginWidth = sWidth; + + } + if(sHeight){ + oPlugin.PluginHeight = sHeight; + + } + + if(sMove){ + window.onscroll = function (e) { + if(!oPlugin.Timer){ + + oPlugin.Timer = setInterval("oPlugin.refreshPosition();", 50); + } + } + } + jQuery(document).ready(function(){ + + document.getElementById('wpPlugin-BOX').style.marginLeft = (21 - jQuery("body").css("padding-left").replace('px','')) + 'px'; + + }); + + var Base = + '
    '+ + '
    '+ + '
    '+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + '
    '+ + '
    '+ + ''+ + '
      '+ + '
    '+ + '
    '+ + '
    '+ + '
    '; + + document.getElementById(sID_Parent).innerHTML = Base + document.getElementById(sID_Parent).innerHTML; + + oPlugin.InitializeShowObj = 'wpPlugin-MainFrame'; + document.getElementById(oPlugin.InitializeShowObj).style.display='none'; + oPlugin.InitializeShow = setInterval("jQuery('#'+oPlugin.InitializeShowObj).show(3000);clearInterval(oPlugin.InitializeShow);", 1000); + //oPlugin.blur(document.getElementById(oPlugin.InitializeShowObj)); + + //onmouseover="oPlugin.focus(this);" onmouseout="oPlugin.blur(this);" onmouseover"this.style.opacity=1;" onmouseout"this.style.opacity=0.4;" + /*if(!oPlugin.Browser.Explorer){ + + document.getElementById(sID_Parent).style.display='none'; + oPlugin.InitializeShowObj = sID_Parent; + oPlugin.InitializeShow = setInterval("jQuery('#'+oPlugin.InitializeShowObj).show(3000);clearInterval(oPlugin.InitializeShow);", 1000); + + + }else{ + document.getElementById('wpPlugin-MainFrame').style.filter='alpha(opacity=40)'; + + }*/ + + document.getElementById('wpPlugin-BOX').style.top = '20px'; document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable.png)"; document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close.png)"; + +}, + CreateGoToTop:function(sId,sTitle,sContent){ + + oLi = oPlugin.createElement('li',sId,'item',null,'',null); + + + + var oLi_Functions; + + oLi_Functions = Array(); + oLi_Functions[0]= new Array(); + oLi_Functions[0][0] = 'click'; + oLi_Functions[0][1] = function(){ + // var scrolltop = jQuery('html,body').scrollTop(); + + if (oPlugin.Browser.Chrome){ + + document.body.scrollTop = 0; + } + else{ + jQuery('html,body').scrollTop(0); + } + + }; + + oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,''+sTitle+'',null); + oLabel.style.background=oPlugin.LabelBgColor; + oLi.appendChild(oLabel); + + oLi_Content = oPlugin.createElement('div','content_' +sId,'content',oLi_Functions,sContent,null); + if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';} + oLi_Content.align='center'; + oLi_Content.style.display='block'; + oLi_Content.style.cursor='pointer'; + oLi.appendChild(oLi_Content); + + document.getElementById('toolbar').appendChild(oLi); + + }, + + CreateSimpleNode:function(sId,sTitle,sContent,display){ + + oLi = oPlugin.createElement('li',sId,'item',null,'',null); + + + + var oLi_Functions; + + oLi_Functions = Array(); + oLi_Functions[0]= new Array(); + oLi_Functions[0][0] = 'click'; + oLi_Functions[0][1] = function(){ + if(document.getElementById('content_'+sId).style.display=='none'){ + + document.getElementById('content_'+sId).style.display='block'; + document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png'; + + }else{ + document.getElementById('content_'+sId).style.display='none'; + document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png'; + } + }; + + if(display){ + arrow=''; + }else{ + arrow='_s'; + } + oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,''+sTitle+'',null); + oLabel.style.background=oPlugin.LabelBgColor; + oLi.appendChild(oLabel); + + oLi_Content = oPlugin.createElement('div','content_' +sId,'content',oLi_Functions,sContent,null); + if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';} + + + oLi_Content.align='center'; + if(display){ + oLi_Content.style.display='block'; + }else{ + oLi_Content.style.display='none'; + } + oLi.appendChild(oLi_Content); + + document.getElementById('toolbar').appendChild(oLi); + + }, + + CreateGoToHome:function(sId,sTitle,sContent){ + + oLi = oPlugin.createElement('li',sId,'item',null,'',null); + + + + var oLi_Functions; + + oLi_Functions = Array(); + oLi_Functions[0]= new Array(); + oLi_Functions[0][0] = 'click'; + oLi_Functions[0][1] = function(){document.location.href ='http://'+ document.location.href.split("/")[2];}; + + oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,''+sTitle+'',null); + oLabel.style.background=oPlugin.LabelBgColor; + oLi.appendChild(oLabel); + + oLi_Content = oPlugin.createElement('div','content_' +sId,'content',oLi_Functions,sContent,null); + if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';} + oLi_Content.align='center'; + oLi_Content.style.display='block'; + oLi_Content.style.cursor='pointer'; + oLi.appendChild(oLi_Content); + + document.getElementById('toolbar').appendChild(oLi); + + }, + CreateNode: function(sId,sTitle,sContent,sContentDialog,sContentDialogStyle,dialogHeight,dialogWidth){ + + oLi = oPlugin.createElement('li',sId,'item',null,'',null); + + var oLi_Functions; + + oLi_Functions = Array(); + oLi_Functions[0]= new Array(); + + if (sContentDialogStyle == "banner"){ + + oLi_Functions[0][0] = ''; + oLi_Functions[0][1] = ''; + + oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,'',null); + oLabel.style.display = 'none'; + } + else{ + + oLi_Functions[0][0] = 'click'; + oLi_Functions[0][1] = function(){oPlugin.boxDialog(sId);}; + + oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,''+sTitle+'',null); + oLabel.style.background = oPlugin.LabelBgColor; + } + + + oLi.appendChild(oLabel); + + + if(sContentDialog){ + var oLi_BoxShape = ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + '
    '+ + '
     '; + oLi_BoxShape += ''; + oLi_BoxShape += 'x'; + oLi_BoxShape += '
        '+sTitle+'
    '; + + switch(sContentDialogStyle){ + + case 'List': + + oLi_BoxShape += '
    '; + oLi_BoxShape += '
      '; + for(i=0;i'; + oLi_BoxShape += ''+sContentDialog[i][0]+'  '; + oLi_BoxShape += ''+sContentDialog[i][1]+'  '; + oLi_BoxShape += ''+sContentDialog[i][2]+''; + oLi_BoxShape += ''; + + } + oLi_BoxShape += '
    '; + oLi_BoxShape += '
    '; + + break; + + case 'Urls': + + oLi_BoxShape += '
    '; + oLi_BoxShape += '
      '; + for(i=0;i'; + oLi_BoxShape += ''+sContentDialog[i]+''; + oLi_BoxShape += ''; + + } + oLi_BoxShape += '
    '; + oLi_BoxShape += '
    '; + + break; + + case 'Notice': + + //oPlugin.Browser.Explorer + oLi_BoxShape += '
      '; + for(i=0;i'+sContentDialog[i][0]+' '; + oLi_BoxShape += ''+sContentDialog[i][1]+'
      '; + oLi_BoxShape += ''+sContentDialog[i][2]+''; + oLi_BoxShape += ' - '+sContentDialog[i][3]+'
      '; + oLi_BoxShape += ''+sContentDialog[i][4]+''; + oLi_BoxShape += ''; + + } + oLi_BoxShape += '
    '; + break; + + case 'Item': + + oLi_BoxShape += '
    '; + oLi_BoxShape += '
      '; + + oLi_BoxShape += '
    • '; + oLi_BoxShape += ''+sContentDialog+''; + oLi_BoxShape += '
    • '; + + + oLi_BoxShape += '
    '; + oLi_BoxShape += '
    '; + + break; + + default: + + oLi_BoxShape += '
    '; + oLi_BoxShape += sContentDialog ; + oLi_BoxShape += '
    '; + break; + + } + + + + oLi_BoxShape += '
     
    '+ + '
    '; + + + oLi_BoxDialog = oPlugin.createElement('div','boxDialog_' +sId,'boxDialog',null,oLi_BoxShape,null); + oLi_BoxDialog.align='left'; + + + if(dialogWidth){ + oLi_BoxDialog.style.width=(dialogWidth+10)+'px'; + } + + if(dialogHeight){ + if(oPlugin.Browser.Explorer){ + oLi_BoxDialog.style.height=(dialogHeight+100)+'px'; + }else{ + oLi_BoxDialog.style.height=(dialogHeight+10)+'px'; + } + } + + oLi_BoxDialog.style.display='none'; + + + oLi_BoxDialog.style.left=(oPlugin.PluginWidth-7+7)+'px'; + oLi_BoxDialog.style.marginTop='-35px'; + + oLi.appendChild(oLi_BoxDialog); + } + + + oLi_Content = oPlugin.createElement('div','content_' +sId,'content',null,sContent,null); + if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';} + oLi_Content.align='center'; + oLi_Content.style.display='block'; + oLi.appendChild(oLi_Content); + + + document.getElementById('toolbar').appendChild(oLi); +}, +createElement: function(sType,sId,sClass,aFunctions,sHtml,oParent){ + + var oElement; + + oElement=document.createElement(sType); + oElement.setAttribute('id',sId); + oElement.className=sClass; + + if(sHtml) + { + oElement.innerHTML=sHtml; + } + + if (aFunctions) + { + for (iFunctions=0;iFunctions< aFunctions.length;iFunctions++) + { + if (oPlugin.Browser.Other) + { + oElement.addEventListener(aFunctions[iFunctions][0],eval(aFunctions[iFunctions][1]),false); + } + if (oPlugin.Browser.Explorer) + { + oElement['on' + aFunctions[iFunctions][0]]= aFunctions[iFunctions][1]; + } + } + } + + if (oParent) + { + oParent.appendChild(oElement); + }else{ + return oElement; + } + } +}; +function twitter(url,title){ + return ''; +} + +function facebook(url){ + +return '' +} + +function plus(url){ + return ''; + +} + +function counters(){ + + jQuery("span#socialstats").each( + + function(i) { + var url = jQuery(this).attr("url"); + var title = jQuery(this).attr("title"); + var append = ''; + append += '' ; + append += '' ; + append += '' ; + append += '
    '+twitter(url,title)+''+plus(url)+''+facebook(url)+'
    '; + jQuery(this).html(append); + + + }); + } + +var repeatBanner = 0; + +function showBanner(timer, colorBack, colorLabel, colorFont, fontSize){ + + if (repeatBanner < 2){ + + jQuery('#boxDialog_New_Id_14 .frame').css("background-color", colorBack); + jQuery('#boxDialog_New_Id_14 .boxTitleContent').css("background-color", colorLabel); + jQuery('#boxDialog_New_Id_14 .boxTitleContent').css("color", colorFont); + jQuery('#boxDialog_New_Id_14 .boxTitleContent').css("font-size", fontSize); + + oPlugin.boxDialog('New_Id_14'); + + setTimeout('showBanner('+timer+')', timer); + + repeatBanner ++; + } +} + \ No newline at end of file diff --git a/readme.txt b/readme.txt index e24ce62..a70d7a1 100644 --- a/readme.txt +++ b/readme.txt @@ -1,125 +1,247 @@ === Sociable === + + Author: sociable + Contributors: sociable + 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 + Requires at least: 2.6 + Tested up to: 3.3.1 -Stable tag: 4.2.1 + +Stable tag: 4.2.2 + -Sociable continues being the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,5mm downloads now, here comes the latest version 4.2.1 . + + + +Sociable continues being the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,5mm downloads now, here comes the latest version 4.2.2 . + + == Description == + + Sociable continues being the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,5mm downloads now, here comes the latest version 4.2.1, with everything you expect to get, and now introducing Sociable Skyscraper: the ultimate advanced packed plugin for setting up rating system on your WordPress blog. Sociable Skyscraper allows you to set up pages and comments with great degree of customization. + About Sociable Skyscraper + Sociable Skyscraper is the ultimate advanced and feature packed plugin for setting up rating system on your WordPress blog. Plugin allows you to set up different rating systems for posts, pages and comments with great degree of customization. + List of features is so smart, very long and non-stop growing: + You can get more Sociable with Sociable Skyscraper and easily getting Rating and Review of: posts, pages, comments, Facebook, G+, LinkedIN, Twitter. Multiple ratings for posts and pages. Latest twits, latests posts, follows, mentions. Visitor's counter, visitor's from Facebook and Twitter. As a plus you get an easy way to get TOP or HOME from Sociable Skyscraper. + + About Sociable Classic + As you know, we've improved our visual interface, the default icons are now much more appealing, and a touch bit larger (you do want your readers to share your posts, don't you? :) + + Enjoy it now!!! + + Be Sociable, Share!!! + + + [vimeo http://vimeo.com/31023294] + + + [vimeo http://vimeo.com/31023684] + + + Have technical support issues? Please leave them in the forum: http://wordpress.org/tags/sociable?forum_id=10 + + Also use the forum for ideas, feedback, suggestions. We'll try to check the forum every day. + + + + What happened to the old icons? You can still use them in the new version, but they're not the default style anymore. + + + + Sociable finds its home outside of the WordPress environment on Blogplay.com- -*** Sociable 4.2.1 *** + + + + +*** Sociable 4.2.2 *** + + + + + = Recent Updates = + + * Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of course you can customize it to whatever you want. + + * Complete re-write to increase efficiency and speed of the plugin + + * New Sociable Skyscraper version, the ultimate advanced packed plugin for setting up rating system on your WordPress blog. Sociable Skyscraper allows you to set up pages and comments with great degree of customization. + + + = Recently Added Sites = + + * Posterous + + * Sphinn + + * Tumblr + + * G+ + + * LinkedIN + + + = Recently Deleted Sites = + + * Mixx.com, recently acquired, doesn't support share functions anymore + + * Netvibes stopped sharing + + * Slashdot: New bookmark creation is no longer supported + + * And we deleted a bunch of others that were really not used that much + + + + = Special Thanks = + + Sociable plugin wouldn't be what it is today if it weren't for these people that helped us along the way: + + * Thanks to [WPzoom](http://http://www.wpzoom.com/wpzoom/500-free-icons-wpzoom-social-networking-icon-set/) for letting us to use their awesome icons + + * Also special thanks to [Webtreats etc](http://http://webtreats.mysitemyway.com/) for allowing us to use their great icons + + + + == Screenshots == + + 1. The Sociable backend, easily select sites and drag & drop to change the order of appearance. + + 2. Sociable with its new default styling. + + 3. Pick the style you want + + 4. Or you can pick your own style + + 5. Select which plugin want to customize + + + + == Installation == + + 1. Upload the extracted archive to `wp-content/plugins/` + + 2. Activate the plugin through the 'Plugins' menu + + 3. Open the plugin settings page Settings -> Sociable + + 4. Adjust settings to your liking + + 4. Enjoy! @@ -129,703 +251,1419 @@ Sociable plugin wouldn't be what it is today if it weren't for these people that + + + + + + + + + + + + == Frequently Asked Questions == + + = What happened to the old icons? = + + You can still use them. It's just they're not the default anymore. + + + + = I want to reach you, but not for a technical question = + + Please send us an email to sociableblogplay [ at ] gmail.com + + + + == Changelog == + += 4.2.2 = + + +* Social Banner and settings +* Inbound icon +* FIXED: Some Fixes + + = 4.2.1 = + + * FIXED: Some Fixes + + = 4.2.0 = + + * FIXED: Some Fixes + + = 4.1.9 = + + * FIXED: Some Fixes + + = 4.1.8 = + + * FIXED: Some Fixes + + = 4.1.7 = + + * FIXED: Some Fixes + + = 4.1.6 = + + * FIXED: Some Fixes + + + = 4.1.5 = + + * FIXED: Some Fixes -= 4.1.4 = -* FIXED: Some Fixes -= 4.1.3 = += 4.1.4 = + + * FIXED: Some Fixes -= 4.1.2 = -* FIXED: Google plus problem -= 4.1.1 = += 4.1.3 = -* ADDED: Facebook Like Counter, Twitter Counter, Google Plus Counter, Linkedin Counter,StumbleUpon Counter and Digg Counter -* ADDED: Add Sociable at Top and Bottom of the post +* FIXED: Some Fixes -= 4.0.6 = -* FIXED: Allow Sub Directory Blogs (http://domain.com/blog) -= 4.0.5 = -* FIXED: Other Upgrade issues += 4.1.2 = -= 4.0.4 = +* FIXED: Google plus problem -* FIXED: Upgrade issues -= 4.0.3 = -* Fix IIS 6.0 and PHP 5.3.x += 4.1.1 = -= 4.0.1 = +* ADDED: Facebook Like Counter, Twitter Counter, Google Plus Counter, Linkedin Counter,StumbleUpon Counter and Digg Counter -* Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of cours you can customize it to whatever you want. -* Complete re-write to increase efficiency and speed of the plugin -* Updated it for up to Wordpress version 3.2.1 +* ADDED: Add Sociable at Top and Bottom of the post -= 3.5.2 = -* Added new services MOB, ??, ????, QQ??, LaTafanera, SheToldMe, viadeo FR, Diggita, Design Float -* Removed ID properties from sociable anchor tags (share links) -* FIXED: Having a custom image directory now disables sprite usage, and the icons of services are displayed on sociable configuration page. += 4.0.6 = -= 3.5.1 = -* Fixed the xhtml validation issues +* FIXED: Allow Sub Directory Blogs (http://domain.com/blog) -* 'target=blank' (open link in new window) issue solved -* Sprites can now be disabled, allowing for custom icons -* Sprites have been disabled for RSS -* You can now deactivate the blogplay widget from your wordpress dashboard -= 3.5.0 = += 4.0.5 = -* The icons now load in a CSS Sprites, allowing for faster download times. -* These services have been discontinued: BlogMeme FR, BlogMeme SP, co.mments, DesignFloat.com, PPNow.net, Symbaloo.com. -* You can now add links to your browser favorites. +* FIXED: Other Upgrade issues -* iFrames added for services that support them. -* You can know unselect the transparency effect on the sociable icons. -= 3.4.4 = -* Another fix for the sociableoff dilemma's, no backwards compatibility unfortunately, so disable sociable again on pages where you want to disable it. += 4.0.4 = -= 3.4.3 = -* Fixed the bug mentioned [here](http://wordpress.org/support/topic/288487) and [here](http://wordpress.org/support/topic/290753) that made it impossible to disable Sociable on a per post/page basis (for real, now). +* FIXED: Upgrade issues -= 3.4.2 = -* Added a site specific id to each links anchor tag. -* Fixed the bug mentioned [here](http://wordpress.org/support/topic/288487) and [here](http://wordpress.org/support/topic/290753) that made it impossible to disable Sociable on a per post/page basis. -* "Reintroduced" TwitThis as Twitter. -= 3.4.1 = -* Fixed the Sphinn submit link. += 4.0.3 = -= 3.4 = -* Added the option to add a site to Sociable through a filter, read [How to add a site to Sociable](http://yoast.com/add-sites-to-sociable/). +* Fix IIS 6.0 and PHP 5.3.x -= 3.3.8 = -* Fixed the option to disable Sociable on a per post / page basis. -= 3.3.7 = += 4.0.1 = -* More bugfixery. +* Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of cours you can customize it to whatever you want. -= 3.3.6 = -* Reverted plugin URL fix because of too many people on old WordPress installations complaining. (Upgrade, people, upgrade!) -* Added PHPDoc throughout the plugins code. +* Complete re-write to increase efficiency and speed of the plugin + + + +* Updated it for up to Wordpress version 3.2.1 + + + + + + + += 3.5.2 = + + + +* Added new services MOB, ??, ????, QQ??, LaTafanera, SheToldMe, viadeo FR, Diggita, Design Float + + + +* Removed ID properties from sociable anchor tags (share links) + + + +* FIXED: Having a custom image directory now disables sprite usage, and the icons of services are displayed on sociable configuration page. + + + + + + + += 3.5.1 = + + + +* Fixed the xhtml validation issues + + + +* 'target=blank' (open link in new window) issue solved + + + +* Sprites can now be disabled, allowing for custom icons + + + +* Sprites have been disabled for RSS + + + +* You can now deactivate the blogplay widget from your wordpress dashboard + + + + + + + += 3.5.0 = + + + +* The icons now load in a CSS Sprites, allowing for faster download times. + + + +* These services have been discontinued: BlogMeme FR, BlogMeme SP, co.mments, DesignFloat.com, PPNow.net, Symbaloo.com. + + + +* You can now add links to your browser favorites. + + + +* iFrames added for services that support them. + + + +* You can know unselect the transparency effect on the sociable icons. + + + + + + + += 3.4.4 = + + + +* Another fix for the sociableoff dilemma's, no backwards compatibility unfortunately, so disable sociable again on pages where you want to disable it. + + + + + + + += 3.4.3 = + + + +* Fixed the bug mentioned [here](http://wordpress.org/support/topic/288487) and [here](http://wordpress.org/support/topic/290753) that made it impossible to disable Sociable on a per post/page basis (for real, now). + + + + + + + += 3.4.2 = + + + +* Added a site specific id to each links anchor tag. + + + +* Fixed the bug mentioned [here](http://wordpress.org/support/topic/288487) and [here](http://wordpress.org/support/topic/290753) that made it impossible to disable Sociable on a per post/page basis. + + + +* "Reintroduced" TwitThis as Twitter. + + + + + + + += 3.4.1 = + + + +* Fixed the Sphinn submit link. + + + + + + + += 3.4 = + + + +* Added the option to add a site to Sociable through a filter, read [How to add a site to Sociable](http://yoast.com/add-sites-to-sociable/). + + + + + + + += 3.3.8 = + + + +* Fixed the option to disable Sociable on a per post / page basis. + + + + + + + += 3.3.7 = + + + +* More bugfixery. + + + + + + + += 3.3.6 = + + + +* Reverted plugin URL fix because of too many people on old WordPress installations complaining. (Upgrade, people, upgrade!) + + + +* Added PHPDoc throughout the plugins code. + + + + + + + += 3.3.5 = + + + +* Added a Hyves button. + + + +* Fixed MSN Reporter button. + + + + + + + += 3.3.4 = + + + +* Fixed RSS. + + + + + + + += 3.3.3 = + + + +* Brought back Tumblr + + + +* Updated PDF link + + + +* Added Posterous + + + +* Smushed all images using [Smush.it](http://smush.it/), reducing the total image file size with 31.72 KB (42.03%)! + + + +* Removed pre - 2.6 compatibility code + + + + + + + += 3.3.1 = + + + +* Added new option to use pure text links, instead of image links. + + + +* Fixed small issue with using target=blank links and the new awe.sm options. + + + +* Allowed for usage without an awe.sm API key, as awe.sm falls back to "default" awe.sm shortlinks. + + + +* Code cleanup for more efficiency in the backend on saving options. + + + +* General code cleanup. + + + +* Moved to the new default Changelog markup. + + + + + + + += 3.3 = + + + +* Added awe.sm integration and some sites. + + + + + + + += 3.2.3 = + + + +* Removed the last bit of non jQuery javascript. + + + +* Improved styling and visual feedback when selecting a site. + + + + + + + += 3.2.2 = + + + +* Moved style loading to admin_print_styles and scripts to admin_print_scripts. + + + + + + + += 3.2.1 = + + + +* Fixed a bug with printing styles in 2.8 beta. + + + + + + + += 3.2 = + + + +This is a MAJOR update to Sociable. Major Thanks to Jean-Paul of [iPhoneclub](http://www.iphoneclub.nl/) for all his work in looking up all the sites. The full list of changes: + + + + + + + +* Restored sociable-admin.js, as it got accidentally removed. + + + +* Added `class="sociablefirst"` to the first site in the list and `class="sociablelast"` to the last one. + + + +* Added: + + + + * An RSS button, which links to your sites RSS feed + + + + * Printfriendly.com for both printing and creating a PDF, replacing the original "Print" function, which didn't work from RSS + + + + * Current + + + + * FriendFeed + + + + * MSN Reporter.nl + + + + * FS Daily + + + + * Hello TXT + + + +* Removed the following sites that were no longer working or active: + + + + * BlinkBits + + + + * Blogmemes.cn, .net, .jp + + + + * Blogsvine + + + + * Book.mark.hu + + + + * Bumpzee + + + + * Del.irio.us + + + + * Feed Me Links + + + + * Furl (replaced by Diigo) + + + + * GeenRedactie + + + + * Kick.ie + + + + * Leonaut + + + + * Magnolia + + + + * Plug IM + + + + * Pownce + + + + * Salesmarks + + + + * Scuttle + + + + * Shadows + + + + * Smarking + + + + * Spurl + + + + * Taggly + + + + * Tailrank + + + + * Tumblr (due to the change to a POST API, which we, unfortunately, can't support with Sociable) + + + +* Updated the following sites to include the excerpt when submitting: + + + + * Connotea + + + + * Delicious + + + + * Digg + + + + * Ekudos + + + + * Google Bookmarks + + + + * NuJij + + + + * Ping.fm + + + +* Otherwise updated: + + + + * Google Bookmarks (new icon) + + + + * Fleck (New URL) + + + + * Rec6 (new URL) + + + + + + + += 3.1.1 = + + + +* Fixed bug with stylesheet introduced in 3.1. + + + + + + + += 3.1 = + + + +* Converted all images to PNG. + + + +* Cleaned up usage of javascript in the backend and switched to the jquery library that comes with WordPress. + + + +* Allowed for usage of an external image directory. + + + +* Removed pre 2.6 compatibility fixes. + + + + + + + += 3.0.6 = + + + +* Fixed xhtml bug in Netvibes integration. + + + +* Added Bitacoras. + + + + + + + += 3.0.5 = + + + +* Added Identi.ca. + + + +* Fixed a bug in Yoast Posts widget. + + + + + + + += 3.0.4 = + + + +* Added Netvibes. + + + + + + + += 3.0.3 = + + + +* Security enhancements, thx to Mark Jaquith. + + + + + + + += 3.0.2 = + + + +* Fixed CSS bug introduced in 3.0. + + + + + + + += 3.0.1 = + + + +* Removed some other, now obsolete, code, reducing the code size by another 4KB. + + + + + + + += 3.0 = + + + +* Fixed IE bug in admin. + + + +* Cleaned up Admin Area and changed support messages. + + + +* Removed directory checking for all images (speeds up incredibly). + + + +* Made display: inline !important to prevent vertical icon display. + + + +* Updated Wykop icon. + + + + + + + += 2.9.15 = + + + +* Added a fallback for strip_shortcodes to maintain backwards compatibility with WordPress 2.3 and below. + + + + + + + += 2.9.14 = + + + +* Made sure there are no tags or shortcodes in the excerpt. + + + +* Added ping.fm. + + + +* Removed indiagram (shut down). + + + + + + + += 2.9.13 = + + + +* Changed Facebook link from sharer.php (meant for a popup window) to share.php (which has the actual menu on it etc.). + + + + + + + += 2.9.12 = + + + +* Added Tip'd. + + + + + + + += 2.9.11 = + + + +* Added settings link and Ozh admin menu icon. + + + + + + + += 2.9.10 = + + + +* Fixes issue with excerpt not being urlencoded. + + + + + + + += 2.9.9 = + + + +* Fixes for custom fields issues. + + + + + + + += 2.9.8 = + + + +* Fixes for WP 2.7. + + + + + + + += 2.9.6 = + + + +* Added Symbaloo and Tumblr. + + + + + + + += 2.9.5 = + + + +* Fixed Fark & Propeller links. + + + +* Added missing i18n strings. + + + +* Added Yahoo Buzz. + + + + + + + += 2.9.4 = -= 3.3.5 = +* Removed PopCurrent and Rawsugar as they no longer exist. -* Added a Hyves button. -* Fixed MSN Reporter button. +* Renamed BlueDot to Faves. -= 3.3.4 = -* Fixed RSS. -= 3.3.3 = -* Brought back Tumblr += 2.9.3 = -* Updated PDF link -* Added Posterous -* Smushed all images using [Smush.it](http://smush.it/), reducing the total image file size with 31.72 KB (42.03%)! +* Added Leonaut & MySpace. -* Removed pre - 2.6 compatibility code +* Fixed plugin description. -= 3.3.1 = -* Added new option to use pure text links, instead of image links. -* Fixed small issue with using target=blank links and the new awe.sm options. +* Added option to disable Sociable on a per post basis. -* Allowed for usage without an awe.sm API key, as awe.sm falls back to "default" awe.sm shortlinks. -* Code cleanup for more efficiency in the backend on saving options. -* General code cleanup. +* Added option to display sociable on tag pages. -* Moved to the new default Changelog markup. +* Added extra security to config page. -= 3.3 = -* Added awe.sm integration and some sites. +* Fixed print button. -= 3.2.3 = -* Removed the last bit of non jQuery javascript. +* Fixed Twitter functionality. -* Improved styling and visual feedback when selecting a site. -= 3.2.2 = -* Moved style loading to admin_print_styles and scripts to admin_print_scripts. += 2.9.2 = -= 3.2.1 = -* Fixed a bug with printing styles in 2.8 beta. +* Added Swedish and Chinese localisations, thx to [Mikael Jorhult](http://www.mishkin.se/) and [Hugo Chen](http://take-ez.com/). -= 3.2 = -This is a MAJOR update to Sociable. Major Thanks to Jean-Paul of [iPhoneclub](http://www.iphoneclub.nl/) for all his work in looking up all the sites. The full list of changes: -* Restored sociable-admin.js, as it got accidentally removed. -* Added `class="sociablefirst"` to the first site in the list and `class="sociablelast"` to the last one. += 2.9.1 = -* Added: - * An RSS button, which links to your sites RSS feed - * Printfriendly.com for both printing and creating a PDF, replacing the original "Print" function, which didn't work from RSS +* Fixed bug where jQuery UI would be loaded twice. - * Current - * FriendFeed - * MSN Reporter.nl - * FS Daily - * Hello TXT -* Removed the following sites that were no longer working or active: - * BlinkBits += 2.9 = - * Blogmemes.cn, .net, .jp - * Blogsvine - * Book.mark.hu +* Removed Tool-Man in favor of jQuery, thx to Martin Joosse. - * Bumpzee - * Del.irio.us - * Feed Me Links - * Furl (replaced by Diigo) - * GeenRedactie - * Kick.ie - * Leonaut += 2.8.4 = - * Magnolia - * Plug IM - * Pownce +* General bugfixes. - * Salesmarks - * Scuttle - * Shadows - * Smarking - * Spurl - * Taggly - * Tailrank += 2.8.3 = - * Tumblr (due to the change to a POST API, which we, unfortunately, can't support with Sociable) -* Updated the following sites to include the excerpt when submitting: - * Connotea +* Added wikio.it, upnews.it, muti.co.za. - * Delicious - * Digg - * Ekudos +* Made LinkedIn work even better. - * Google Bookmarks - * NuJij - * Ping.fm +* Made opening in a new window optional. -* Otherwise updated: - * Google Bookmarks (new icon) - * Fleck (New URL) - * Rec6 (new URL) -= 3.1.1 = += 2.8.2 = -* Fixed bug with stylesheet introduced in 3.1. +* Now adds icons to feeds with excerpts too. -= 3.1 = -* Converted all images to PNG. -* Cleaned up usage of javascript in the backend and switched to the jquery library that comes with WordPress. +* Added LinkedIn. -* Allowed for usage of an external image directory. -* Removed pre 2.6 compatibility fixes. -= 3.0.6 = -* Fixed xhtml bug in Netvibes integration. -* Added Bitacoras. += 2.8.1 = -= 3.0.5 = +* Fixed some small issues. -* Added Identi.ca. -* Fixed a bug in Yoast Posts widget. +* Made sure tagline shows up again. -= 3.0.4 = -* Added Netvibes. -= 3.0.3 = -* Security enhancements, thx to Mark Jaquith. += 2.8 = -= 3.0.2 = +* Added option to show bookmark icons in feed. -* Fixed CSS bug introduced in 3.0. +* Added Ratimarks. -= 3.0.1 = -* Removed some other, now obsolete, code, reducing the code size by another 4KB. +* Fixed xhtml compliance. -= 3.0 = -* Fixed IE bug in admin. +* Fixed blue dot bug. -* Cleaned up Admin Area and changed support messages. -* Removed directory checking for all images (speeds up incredibly). -* Made display: inline !important to prevent vertical icon display. -* Updated Wykop icon. -= 2.9.15 = += 2.6.9 = -* Added a fallback for strip_shortcodes to maintain backwards compatibility with WordPress 2.3 and below. +* Fixed WP 2.6 compatibility. -= 2.9.14 = -* Made sure there are no tags or shortcodes in the excerpt. -* Added ping.fm. -* Removed indiagram (shut down). -= 2.9.13 = += 2.6.8 = -* Changed Facebook link from sharer.php (meant for a popup window) to share.php (which has the actual menu on it etc.). +* Updated inline documentation. -= 2.9.12 = -* Added Tip'd. -= 2.9.11 = -* Added settings link and Ozh admin menu icon. += 2.6.7 = -= 2.9.10 = -* Fixes issue with excerpt not being urlencoded. +* Renamed Sk*rt to Kirtsy. -= 2.9.9 = +* Added designfloat. -* Fixes for custom fields issues. +* Fixed description. -= 2.9.8 = -* Fixes for WP 2.7. -= 2.9.6 = -* Added Symbaloo and Tumblr. += 2.5.4 = -= 2.9.5 = -* Fixed Fark & Propeller links. +* Added HealthRanker, N4G, Meneame, BarraPunto, Laaik.it and E-mail option. -* Added missing i18n strings. -* Added Yahoo Buzz. -= 2.9.4 = -* Removed PopCurrent and Rawsugar as they no longer exist. -* Renamed BlueDot to Faves. += 2.5.3 = -= 2.9.3 = +* Added Global Grind, Salesmarks, Webnews.de, Xerpi, Yigg. -* Added Leonaut & MySpace. -* Fixed plugin description. -* Added option to disable Sociable on a per post basis. -* Added option to display sociable on tag pages. -* Added extra security to config page. -* Fixed print button. -* Fixed Twitter functionality. += 2.5.2 = -= 2.9.2 = +* Added NuJIJ, eKudos, Sk-rt, Socialogs and MisterWong.de. -* Added Swedish and Chinese localisations, thx to [Mikael Jorhult](http://www.mishkin.se/) and [Hugo Chen](http://take-ez.com/). -= 2.9.1 = -* Fixed bug where jQuery UI would be loaded twice. += 2.5.1 = -= 2.9 = -* Removed Tool-Man in favor of jQuery, thx to Martin Joosse. +* Swapped Netscape for Propeller. -= 2.8.4 = -* General bugfixes. -= 2.8.3 = -* Added wikio.it, upnews.it, muti.co.za. +Special thanks to [Robert Harm](http://www.die-truppe.com/) for coming up with loads of nice ideas. -* Made LinkedIn work even better. -* Made opening in a new window optional. -= 2.8.2 = -* Now adds icons to feeds with excerpts too. -* Added LinkedIn. +== Installation == -= 2.8.1 = -* Fixed some small issues. -* Made sure tagline shows up again. +Download, Upgrading, Installation: -= 2.8 = -* Added option to show bookmark icons in feed. -* Added Ratimarks. -* Fixed xhtml compliance. -* Fixed blue dot bug. +Upgrade -= 2.6.9 = -* Fixed WP 2.6 compatibility. -= 2.6.8 = -* Updated inline documentation. +1. First deactivate Sociable -= 2.6.7 = -* Renamed Sk*rt to Kirtsy. +1. Remove the `sociable` directory -* Added designfloat. -* Fixed description. -= 2.5.4 = -* Added HealthRanker, N4G, Meneame, BarraPunto, Laaik.it and E-mail option. +**Install** -= 2.5.3 = -* Added Global Grind, Salesmarks, Webnews.de, Xerpi, Yigg. -= 2.5.2 = -* Added NuJIJ, eKudos, Sk-rt, Socialogs and MisterWong.de. +1. Unzip the `sociable.zip` file. -= 2.5.1 = +1. Upload the the `sociable` folder (not just the files in it!) to your `wp-contents/plugins` folder. If you're using FTP, use 'binary' mode. -* Swapped Netscape for Propeller. -Special thanks to [Robert Harm](http://www.die-truppe.com/) for coming up with loads of nice ideas. -== Installation == +**Activate** -Download, Upgrading, Installation: -Upgrade +1. In your WordPress administration, go to the Plugins page -1. First deactivate Sociable -1. Remove the `sociable` directory +1. Activate the Sociable plugin and a subpage for Sociable will appear -**Install** + in your Options menu. -1. Unzip the `sociable.zip` file. -1. Upload the the `sociable` folder (not just the files in it!) to your `wp-contents/plugins` folder. If you're using FTP, use 'binary' mode. -**Activate** +If you find any bugs or have any ideas, please mail me. -1. In your WordPress administration, go to the Plugins page -1. Activate the Sociable plugin and a subpage for Sociable will appear - in your Options menu. +**Advanced Users** -If you find any bugs or have any ideas, please mail me. -**Advanced Users** For advanced use of the plugin, see the [Sociable](http://www.blogplay.com/sociable-for-wordpress) page on [Blogplay](http://www.blogplay.com/plugin) + + diff --git a/sociable.php b/sociable.php index c7f7082..460eeca 100644 --- a/sociable.php +++ b/sociable.php @@ -1,717 +1,1443 @@ "; + echo "var base_url_sociable = '".SOCIABLE_HTTP_PATH."'"; - echo ""; + + echo ""; + } + + add_filter( 'the_content', 'auto_sociable' ); + + //add_filter( 'get_pages', 'auto_skyscraper' ); + //add_filter( 'the_excerpt', 'auto_skyscraper' ); + add_filter( 'the_excerpt', 'auto_sociable' ); + register_activation_hook(__FILE__, 'sociable_activate' ); + register_deactivation_hook( __FILE__, 'sociable_deactivate' ); + /* + * Activation Function + */ + + function sociable_activate(){ + if( ! get_option( 'sociable_options' ) ){ + + return sociable_reset(); + } + } + + /* + * Reset Function + */ + + function sociable_reset(){ + + global $wpdb; + + //reset all data to factory defaults, install if is there. + //Delete All Metadata From The Database ? + + $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'"); + + $sociable_options = array( - 'version' =>'4.2.1', + + + 'version' =>'4.2.2', + 'automatic_mode' => 'on', + 'tagline' => 'Be Sociable, Share!', + 'custom_image_directory' => '', + 'use_stylesheet' => 'on', + 'use_images' => 'on', + 'use_alphamask' => 'on', + 'new_window' => 'on', + 'help_grow' => 'on', + 'locations' => array( + 'is_single' => 'on', + 'is_page' => 'on' + ), + 'active_sites' => array( + 'Twitter' => 'on', + 'Facebook' => 'on', + 'email'=>'on', + 'Add to favorites'=>'on', + 'StumbleUpon' =>'on', + 'Delicious' =>'on', + 'Google Reader' =>'on', + 'LinkedIn' => 'on', + 'BlinkList' =>'on', + 'More' => 'on', + 'Twitter Counter' =>'on', + 'Facebook Counter' =>'on', + 'Google +' =>'on', + 'LinkedIn Counter' =>'on', + 'StumbleUpon Counter' =>'on' + ), + 'icon_size' => '32', + 'icon_option' => 'option1', + "active" => 1 + ); + + $sociable_known_sites = array( + + 'Facebook' => array( + 'favicon' => 'facebook.png', + 'url' => 'http://www.facebook.com/share.php?u=PERMALINK&t=TITLE', + 'spriteCoordinates' => Array( + '16' => array("-48px","0px"), + '32' => array("-96px","0px"), + '48' => array("-144px","0px"), + '64' => array("-192px","0px") + ) + ), + 'Facebook Counter' => array( + 'counter' =>1, + 'favicon' => 'likecounter.png', + 'url' => '', + 'spriteCoordinates' => Array( + '16' => array("-48px","0px"), + '32' => array("-96px","0px"), + '48' => array("-144px","0px"), + '64' => array("-192px","0px") + ) + ), + + 'Myspace' => array( + 'favicon' => 'myspace.png', + 'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&t=TITLE', + 'spriteCoordinates' => Array( + '16' => array("0px","-16px"), + '32' => array("0px","-32px"), + '48' => array("0px","-48px"), + '64' => array("0px","-64px") + ) + ), + + 'Twitter' => array( + 'favicon' => 'twitter.png', - 'url' => 'http://twitter.com/intent/tweet?text=TITLE%20-%20PERMALINK%20(via%20@sociablesite)', + + 'url' => 'http://twitter.com/intent/tweet?text=TITLE%20-%20PERMALINK%20(via%20@sociablesite)%20/sociable/%20blogplay.com', + 'spriteCoordinates' => Array( + '16' => array("-144px","-16px"), + '32' => array("-288px","-32px"), + '48' => array("-432px","-48px"), + '64' => array("-576px","-64px") + ) + ), + + 'Twitter Counter' => array( + 'counter' =>1, + 'favicon' => 'twitter.png', - 'url' => '', + + 'url' => '', + 'spriteCoordinates' => Array( + '16' => array("-144px","-16px"), + '32' => array("-288px","-32px"), + '48' => array("-432px","-48px"), + '64' => array("-576px","-64px") + ) + ), + 'LinkedIn' => array( + 'favicon' => 'linkedin.png', + 'url' => 'http://www.linkedin.com/shareArticle?mini=true&url=PERMALINK&title=TITLE&source=BLOGNAME&summary=EXCERPT', + 'spriteCoordinates' => Array( + '16' => array("-144px","0px"), + '32' => array("-288px","0px"), + '48' => array("-432px","0px"), + '64' => array("-576px","0px") + ) + ), + + 'LinkedIn Counter' => array( + 'counter'=>1, + 'favicon' => 'linkedin.png', + 'url' => '', + 'spriteCoordinates' => Array( + + '16' => array("-144px","0px"), + '32' => array("-288px","0px"), + '48' => array("-432px","0px"), + '64' => array("-576px","0px") + ) + ), + + 'Delicious' => array( + + 'favicon' => 'delicious.png', + 'url' => 'http://delicious.com/post?url=PERMALINK&title=TITLE&notes=EXCERPT', + 'spriteCoordinates' => Array( + '16' => array("-16px","0px"), + '32' => array("-32px","0px"), + '48' => array("-48px","0px"), + '64' => array("-64px","0px") + ) + ), + + 'Digg' => array( + + 'favicon' => 'digg.png', + 'url' => 'http://digg.com/submit?phase=2&url=PERMALINK&title=TITLE&bodytext=EXCERPT', + 'spriteCoordinates' => Array( + '16' => array("-32px","0px"), + '32' => array("-64px","0px"), + '48' => array("-96px","0px"), + '64' => array("-128px","0px") + ) + ), + 'Digg Counter' => array( + 'counter' =>1, + 'favicon' => 'digg.png', + 'url' => "", + + 'spriteCoordinates' => Array( + '16' => array("-32px","0px"), + '32' => array("-64px","0px"), + '48' => array("-96px","0px"), + '64' => array("-128px","0px") + ) + ), + + 'Reddit' => array( + + 'favicon' => 'reddit.png', + + 'url' => 'http://reddit.com/submit?url=PERMALINK&title=TITLE', + 'spriteCoordinates' => Array( + '16' => array("-64px","-16px"), + '32' => array("-128px","-32px"), + '48' => array("-192px","-48px"), + '64' => array("-256px","-64px") + ) + ), + + 'StumbleUpon' => array( + 'favicon' => 'stumbleupon.png', + 'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&title=TITLE', + 'spriteCoordinates' => Array( + '16' => array("-112px","-16px"), + '32' => array("-224px","-32px"), + '48' => array("-336px","-48px"), + '64' => array("-448px","-64px") + )), + + 'StumbleUpon Counter' => array( + 'counter' =>1, + 'favicon' => 'stumbleupon.png', + 'url' => '', + 'spriteCoordinates' => Array( + '16' => array("-112px","-16px"), + '32' => array("-224px","-32px"), + '48' => array("-336px","-48px"), + '64' => array("-448px","-64px") + ) + ), + 'Google Bookmarks' => Array ( + 'favicon' => 'google.png', + 'url' => 'http://www.google.com/bookmarks/mark?op=edit&bkmk=PERMALINK&title=TITLE&annotation=EXCERPT', + 'description' => 'Google Bookmarks', + 'spriteCoordinates' => Array( + '16' => array("-96px","0px"), + '32' => array("-192px","0px"), + '48' => array("-288px","0px"), + '64' => array("-384px","0px") + ) + ), + + 'Google +' => Array ( + + 'counter' =>1, + 'favicon' => 'google.png', + /* 'url' => ' + + ',*/ + 'url' => '', + /* + + ',*/ + 'description' => 'Google Bookmarks', + 'spriteCoordinates' => Array( + '16' => array("-96px","0px"), + '32' => array("-192px","0px"), + '48' => array("-288px","0px"), + '64' => array("-384px","0px") + ) + ), + + 'HackerNews' => Array( + 'favicon' => 'hacker_news.png', + 'url' => 'http://news.ycombinator.com/submitlink?u=PERMALINK&t=TITLE', + 'spriteCoordinates' => Array( + '16' => array("-128px","0px"), + '32' => array("-256px","0px"), + '48' => array("-384px","0px"), + '64' => array("-512px","0px") + ) + ), + 'MSNReporter' => Array( + 'favicon' => 'msn.png', + 'url' => 'http://reporter.es.msn.com/?fn=contribute&Title=TITLE&URL=PERMALINK&cat_id=6&tag_id=31&Remark=EXCERPT', + 'description' => 'MSN Reporter', + 'spriteCoordinates' => Array( + '16' => array("-176px","0px"), + '32' => array("-352px","0px"), + '48' => array("-528px","0px"), + '64' => array("-704px","0px") + ) + ), + + 'BlinkList' => Array( + 'favicon' => 'blinklist.png', + 'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=PERMALINK&Title=TITLE', + 'spriteCoordinates' => Array( + '16' => array("0px","0px"), + '32' => array("0px","0px"), + '48' => array("0px","0px"), + '64' => array("0px","0px") + ), + 'supportsIframe' => false, + ), + 'Sphinn' => Array( + 'favicon' => 'sphinn.png', + 'url' => 'http://sphinn.com/index.php?c=post&m=submit&link=PERMALINK', + 'spriteCoordinates' => Array( + '16' => array("-96px","-16px"), + '32' => array("-192px","-32px"), + '48' => array("-288px","-48px"), + '64' => array("-384px","-64px") + ) + ), + + 'Posterous' => Array( + 'favicon' => 'posterous.png', + 'url' => 'http://posterous.com/share?linkto=PERMALINK&title=TITLE&selection=EXCERPT', + 'spriteCoordinates' => Array( + '16' => array("-32px","-16px"), + '32' => array("-64px","-32px"), + '48' => array("-96px","-48px"), + '64' => array("-128px","-64px") + ) + ), + 'Tumblr' => Array( + 'favicon' => 'tumblr.png', + 'url' => 'http://www.tumblr.com/share?v=3&u=PERMALINK&t=TITLE&s=EXCERPT', + 'spriteCoordinates' => Array( + '16' => array("-128px","-16px"), + '32' => array("-256px","-32px"), + '48' => array("-384px","-48px"), + '64' => array("-512px","-64px") + ), + 'supportsIframe' => false + ), + 'email' => Array( + 'favicon' => 'gmail.png', + 'url' => 'https://mail.google.com/mail/?view=cm&fs=1&to&su=TITLE&body=PERMALINK&ui=2&tf=1&shva=1', + 'spriteCoordinates' => Array( + '16' => array("-80px","0px"), + '32' => array("-160px","0px"), + '48' => array("-240px","0px"), + '64' => array("-320px","0px") + ), + 'supportsIframe' => false + ), + + 'Google Reader' => array ( + 'favicon' => 'googlebuzz.png', + 'url' => 'http://www.google.com/reader/link?url=PERMALINK&title=TITLE&srcURL=PERMALINK&srcTitle=BLOGNAME', + 'spriteCoordinates' => Array( + '16' => array("-112px","0px"), + '32' => array("-224px","0px"), + '48' => array("-336px","0px"), + '64' => array("-448px","0px") + ) + ), + 'Add to favorites' => array( + 'favicon' => 'favorites.png', + 'url' => 'javascript:AddToFavorites();', + 'spriteCoordinates' => Array( + '16' => array("-64px","0px"), + '32' => array("-128px","0px"), + '48' => array("-192px","0px"), + '64' => array("-256px","0px") + ) + ), + 'More' => array( + 'favicon' => 'more.png', + 'url' => 'javascript:more();', + 'spriteCoordinates' => Array( + '16' => array("0px","0px"), + '32' => array("0px","0px"), + '48' => array("0px","0px"), + '64' => array("0px","0px") + ) + ), + ); + + + + + + //Update will create if it doesn't exist. + + + update_option( 'sociable_known_sites' , $sociable_known_sites ); + + update_option( 'sociable_options' , $sociable_options ); + + update_option( 'sociable_helpus' , 1); + + } + function skyscraper_reset(){ + $skyscraper_options = array( + + "version" => "1.0", + + "widget_width" => "60px", + + "widget_position" => "1", + + "background_color" => "#fefefe", + + "labels_color" => "#f7f7f7", + + "text_size" => "10px", + + "counters" => array("check" => "0", + + "folded" => "0"), + + "share" => array("check" => "0", + + "folded" => "0"), + + "num_tweets" => 3, + + "num_rss" =>3, + + "locations" => array("is_front_page" => 1, + + "is_home" => 1, + + "is_single" => 1, + + "is_page" => 1, + + "is_category" => 1, + + "is_date" => 1, + + "is_tag" => 1, + + "is_author" => 1, + + "is_search" => 1, + + "is_rss" => 1 ), + + + + "counters" => array("check" => 1, + + "folded" => 1), + + "share" => array("check" => 1, - "folded" => 1) - + + "folded" => 1), + "sociable_banner" => "", + + "sociable_banner_timer" => 15, + + "sociable_banner_text" => 'Please spread the word: Be Sociable, Share!', + + "sociable_banner_colorBack" => '#FFFFFF', + + "sociable_banner_fontSize" => '9px', + + "sociable_banner_colorLabel" => '#F7F7F7', + + "sociable_banner_colorFont" => '#6A6A6A' + ); + update_option( 'skyscraper_options' , $skyscraper_options ); + + + + + + $skyscraper_latest = array(); + + update_option("skyscraper_latest",$skyscraper_latest ); + + + + $skyscraper_mentions = array(); + + update_option("skyscraper_mentions",$skyscraper_mentions ); + + } + /* + + * De-Activate Function + + */ + + function sociable_deactivate(){ + + // global $wpdb; + + // //Delete The Metadata + + // $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'"); + + // //delete The Options + + // return delete_option( 'sociable_options' ); + + } + /* + + * Function To Completely Remove The Options + + */ + + function sociable_2_remove(){ + + require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); + + + + global $wpdb; + + //Delete The Metadata + + $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'"); + + //delete The Options + + delete_option( 'sociable_options' ); + + delete_option( 'skyscraper_options' ); + + + + + deactivate_plugins( array( 'sociable/sociable.php' ) ); + + wp_redirect( '/wp-admin/plugins.php?deactivate=true' ); + + } + /* + + * Generic Plugin Wide Functions + + */ + + function _get_sociable_image_path(){ + global $sociable_options; + + if( empty( $sociable_options['custom_icons'] )){ + if ($sociable_options['icon_option'] !="option6"){ + $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/'.$sociable_options['icon_option']."/" . $sociable_options['icon_size'] ); + }else{ + + $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/original/'); + } + } else { + $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/customIcons/'); + } + + + return $path; + } + function _get_sociable_image( $site, $description ){ + global $sociable_options; + $imageclass = ''; + + $imagestyle = ''; + + $imagepath = _get_sociable_image_path(); + + //Get The Source Of The Image + + if ( ! isset( $site['spriteCoordinates'] ) || ! isset( $sociable_options['use_sprites'] ) || is_feed() ) { + if ( strpos( $site['favicon'], 'http' ) === 0 ) { + + $imagesource = $site['favicon']; + + } else { + + $imagesource = $imagepath.$site['favicon']; + + } + } else { + $imagesource = $imagepath . "services-sprite.gif"; + + $services_sprite_url = $imagepath . "sprite.png"; + $spriteCoords = $site['spriteCoordinates']; + + + + $size = $sociable_options['icon_size']; + $imagestyle = 'width: ' . $size . 'px; height: ' . $size . 'px; background: transparent url(' . $services_sprite_url . ') no-repeat; background-position:' . $spriteCoords[$size] . 'px 0'; + } + + + if( isset( $sociable_options['use_alphamask'] ) ){ + + $imageclass .= 'sociable-hovers'; + + } + //If A Class Has Been Specified, Ensure It Is Added To The Class Attribute. + + if ( isset( $site['class'] ) ) { + + $imageclass .= 'sociable_' . $site['class']; + + } + if( $imagestyle != '' ){ + + $imagestyle = 'style="' . $imagestyle . '"'; + + } + + if ($sociable_options['icon_option'] !="option6"){ + $image = '' . $description . '' ; + }else{ + $image = '' . $description . '' ; + } + + + + return $image; + + } + ?> \ No newline at end of file