From 9cb23a04618527828d6d7a8beca93d57e477652b Mon Sep 17 00:00:00 2001 From: ozhozh Date: Fri, 25 Jun 2010 20:33:08 +0000 Subject: [PATCH] A toolbar. For those who like them. Yuck. Fixes issue 228. git-svn-id: http://yourls.googlecode.com/svn/trunk@421 12232710-3e20-11de-b438-597f59cd7555 --- user/plugins/sample-toolbar/css/toolbar.css | 72 ++++++++++ .../sample-toolbar/img/close_button.gif | Bin 0 -> 404 bytes .../sample-toolbar/img/close_button_red.gif | Bin 0 -> 404 bytes user/plugins/sample-toolbar/img/favicon.gif | Bin 0 -> 88 bytes .../plugins/sample-toolbar/img/toolbar_bg.png | Bin 0 -> 214 bytes user/plugins/sample-toolbar/js/toolbar.js | 12 ++ user/plugins/sample-toolbar/plugin.php | 125 ++++++++++-------- 7 files changed, 151 insertions(+), 58 deletions(-) create mode 100644 user/plugins/sample-toolbar/css/toolbar.css create mode 100644 user/plugins/sample-toolbar/img/close_button.gif create mode 100644 user/plugins/sample-toolbar/img/close_button_red.gif create mode 100644 user/plugins/sample-toolbar/img/favicon.gif create mode 100644 user/plugins/sample-toolbar/img/toolbar_bg.png create mode 100644 user/plugins/sample-toolbar/js/toolbar.js diff --git a/user/plugins/sample-toolbar/css/toolbar.css b/user/plugins/sample-toolbar/css/toolbar.css new file mode 100644 index 0000000..725aee3 --- /dev/null +++ b/user/plugins/sample-toolbar/css/toolbar.css @@ -0,0 +1,72 @@ +body { + margin:0; + overflow:hidden; + background-color:#fff; + font-size:12px; + font-family: Verdana, Arial; + padding:35px 0 0; +} + +#yourls-frame { + width: 100%; + height:100%; + z-index: 1; +} + +#yourls-bar { + font-family: Verdana, Arial; + font-size: 12px; + position:absolute; + top:0; + height:35px; + width:100%; + background:#e3f3ff url(../img/toolbar_bg.png) repeat-x bottom center; + color:#2A85B3; + -moz-box-shadow: 0 1px 5px rgba(0,0,0,0.5); + -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5); + z-index: 900000; +} + +#yourls-about, #yourls-topsy, #yourls-selfclose { + margin-left:10px; + float:left; + display:block; + top:5px; + position:relative; +} + +#yourls-about a { + background:transparent url(../img/favicon.gif) center left no-repeat; + padding-left:20px; + color:inherit; + font-weight:bold; + text-decoration:none; +} + +#yourls-topsy { + width:300px; +} + + +#yourls-selfclose { + float:right; + margin-right:10px; +} + +#yourls-once { + display:block; + text-indent:-9999px; + background:transparent url(../img/close_button.gif) center center no-repeat; + width:20px; + height:20px; + float:left; +} + +#yourls-always { + display:none; + text-indent:-9999px; + background:transparent url(../img/close_button_red.gif) center center no-repeat; + width:20px; + height:20px; + float:left; +} diff --git a/user/plugins/sample-toolbar/img/close_button.gif b/user/plugins/sample-toolbar/img/close_button.gif new file mode 100644 index 0000000000000000000000000000000000000000..95d286c37b64134093a47480f67d4ab8d1b10c4f GIT binary patch literal 404 zcmZ?wbhEHb6l4%&xXQpV|HQk#EqAByd#2%8n%uG>qi0*e#JziN{Lk*+Q8n{$*M^&B z;mv_X^Q>b!T+=2^-ucitq@ip5O^?i}lXpH!>DZLiw&B37{|9gXHw|k_@7gl^@GGO> z`n2}V)3!feaQxlQ>;HS#-P(5be@^etuJyOlyS6qhKHs(BR@wB!JFflj-f+_@y1jAH zIlK7o{w;T}zxZE1<4A7buKCB`1r^VqbNE%^qWif0_N#}NRXcx*ft(GlINi#)!I9!=wyspo8_DmuerP0rb`@P?kL=SH{y-amNO>C zEJ?@0Hk(d+=%}FaqNMegt-i$xbz#YJE0tzRe*QXZdB$Fm=5i56T}F9l4K6iJF41OD zE(WtSeg!~T>bOT1Q!)RD}jGhf%A+ov^S zxl)DYz5dmX&*;Ja+N9ydW}v)Qi_e3>z*~}=DO1aHub(Yf@Ynv(g}}dBk;P@7(u&5< zg~8;z{>yZ*CD# z-B_$L{LD17!(ql&vo)U~0su(pbcy;s4?xHz5*K$mB7+wg7=Ak)0gV)ccN76E0Ubjw z3oR)N9D^JS6C)EaLlFW34GoYw4W|MTLnIas3WFtsCk_@WLn}4EcfU2kzac{=GRYeo y3=A?E8OaPULk~9BHU!rM+}IC89yA3s$0sPO%#R literal 0 HcmV?d00001 diff --git a/user/plugins/sample-toolbar/img/favicon.gif b/user/plugins/sample-toolbar/img/favicon.gif new file mode 100644 index 0000000000000000000000000000000000000000..8681802c7952c92000baf308eb5cc86bd394808f GIT binary patch literal 88 zcmZ?wbhEHb6krfwn8?Jyz;Grk?9BiF|A8#UpDc_F3``6 p1&=IVhv*XBl&cngZ98k-Uv*v%DVuidBKw@V5l6n;1v4;M0{}IN9A*Fj literal 0 HcmV?d00001 diff --git a/user/plugins/sample-toolbar/img/toolbar_bg.png b/user/plugins/sample-toolbar/img/toolbar_bg.png new file mode 100644 index 0000000000000000000000000000000000000000..0fb3cec7646b32951acbb2c5e9e775216d9c884d GIT binary patch literal 214 zcmeAS@N?(olHy`uVBq!ia0vp^l|U@V!2~4RGu8e8DajJoh?3y^w370~qErUQl>DSr z1<%~X^wgl##FWaylc_d9MHQYdjv*Dd-dsD#+2FwA>L~g<|B{f+u9LT#osJmnZ+R%V zN$z>fniOfKYir&f{Wj-a>C{q{>}$Mh(}PxQ;)@NB?7vbvck8;-Yn-p=b*y{4^Xt)B zrS93^qpq*%{c2ygPf(=f?5&93>wT}^|D(93^zO#&@3(kgZjWwYWN - $pagetitle (YOURLS toolbar) - - + $pagetitle — YOURLS + -
-

- Toolbar by YOURLS -

- (close) -

+
+
+ Short link powered by YOURLS and created $created. $hits. +
+ + +
+ +
+ +
+ close + close + +
- + + + + PAGE; + // Don't forget to die, to interrupt the flow of normal events (ie redirecting to long URL) die(); } \ No newline at end of file -- 2.45.0