Updated 2k11 to v1.1.5.

This commit is contained in:
Matthias Mees 2012-04-07 19:36:09 +02:00
parent 8eb13121a4
commit a2c1b1fe1f
8 changed files with 243 additions and 126 deletions

View File

@ -43,7 +43,7 @@
<div id="identity">
<a href="{$serendipityBaseURL}">
<h1>{$blogTitle}</h1>
<p>{$blogDescription}</p>
{if $blogDescription}<p>{$blogDescription}</p>{/if}
</a>
</div>

View File

@ -1,4 +1,4 @@
Name: 2k11
Author: Matthias Mees, Veit Lehmann
Date: 2012-03-15
Date: 2012-04-07
Require Serendipity: 1.6

View File

@ -1,5 +1,26 @@
var script=document.getElementById("modernizr").src;var path=script.split("/").slice(0,-1).join("/")+"/";Modernizr.load([{test:Modernizr.mq("only all and (min-width: 0px)"),nope:path+"respond.min.js"},{test:Modernizr.touch,yep:path+"/serendipity/templates/s9y-2k11/js/ios-orientationchange.min.js"},{test:Modernizr.input.placeholder,nope:[path+"placeholder_polyfill.jquery.min.combo.js"]}]);
(function(b){b.fn.fitVids=function(a){var h={customSelector:null};var f=document.createElement("div"),g=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];
/*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */
(function(P){P.respond={};respond.update=function(){};
respond.mediaQueriesSupported=P.matchMedia&&P.matchMedia("only all").matches;if(respond.mediaQueriesSupported){return;}var x=P.document,B=x.documentElement,L=[],J=[],D=[],F={},M=30,O=x.getElementsByTagName("head")[0]||B,N=x.getElementsByTagName("base")[0],S=O.getElementsByTagName("link"),Q=[],T=function(){var c=S,g=c.length,f=0,b,e,d,a;
for(;f<g;f++){b=c[f],e=b.href,d=b.media,a=b.rel&&b.rel.toLowerCase()==="stylesheet";if(!!e&&a&&!F[e]){if(b.styleSheet&&b.styleSheet.rawCssText){H(b.styleSheet.rawCssText,e,d);
F[e]=true;}else{if((!/^([a-zA-Z:]*\/\/)/.test(e)&&!N)||e.replace(RegExp.$1,"").split("/")[0]===P.location.host){Q.push({href:e,media:d});}}}}z();},z=function(){if(Q.length){var a=Q.shift();
G(a.href,function(b){H(b,a.href,a.media);F[a.href]=true;z();});}},H=function(i,h,e){var k=i.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),g=k&&k.length||0,h=h.substring(0,h.lastIndexOf("/")),f=function(n){return n.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+h+"$2$3");
},d=!g&&e,a=0,b,m,l,c,j;if(h.length){h+="/";}if(d){g=1;}for(;a<g;a++){b=0;if(d){m=e;J.push(f(i));}else{m=k[a].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;
J.push(RegExp.$2&&f(RegExp.$2));}c=m.split(",");j=c.length;for(;b<j;b++){l=c[b];L.push({media:l.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:J.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});
}}K();},I,C,y=function(){var c,b=x.createElement("div"),a=x.body,d=false;b.style.cssText="position:absolute;font-size:1em;width:1em";if(!a){a=d=x.createElement("body");
a.style.background="none";}a.appendChild(b);B.insertBefore(a,B.firstChild);c=b.offsetWidth;if(d){B.removeChild(a);}else{a.removeChild(b);}c=E=parseFloat(c);
return c;},E,K=function(l){var k="clientWidth",c=B[k],m=x.compatMode==="CSS1Compat"&&c||x.body[k]||c,a={},n=S[S.length-1],g=(new Date()).getTime();if(l&&I&&g-I<M){clearTimeout(C);
C=setTimeout(K,M);return;}else{I=g;}for(var p in L){var i=L[p],b=i.minw,j=i.maxw,d=b===null,f=j===null,h="em";if(!!b){b=parseFloat(b)*(b.indexOf(h)>-1?(E||y()):1);
}if(!!j){j=parseFloat(j)*(j.indexOf(h)>-1?(E||y()):1);}if(!i.hasquery||(!d||!f)&&(d||m>=b)&&(f||m<=j)){if(!a[i.media]){a[i.media]=[];}a[i.media].push(J[i.rules]);
}}for(var p in D){if(D[p]&&D[p].parentNode===O){O.removeChild(D[p]);}}for(var p in a){var e=x.createElement("style"),o=a[p].join("\n");e.type="text/css";
e.media=p;O.insertBefore(e,n.nextSibling);if(e.styleSheet){e.styleSheet.cssText=o;}else{e.appendChild(x.createTextNode(o));}D.push(e);}},G=function(a,b){var c=R();
if(!c){return;}c.open("GET",a,true);c.onreadystatechange=function(){if(c.readyState!=4||c.status!=200&&c.status!=304){return;}b(c.responseText);};if(c.readyState==4){return;
}c.send(null);},R=(function(){var a=false;try{a=new XMLHttpRequest();}catch(b){a=new ActiveXObject("Microsoft.XMLHTTP");}return function(){return a;};})();
T();respond.update=T;function A(){K(true);}if(P.addEventListener){P.addEventListener("resize",A,false);}else{if(P.attachEvent){P.attachEvent("onresize",A);
}}})(this);(function(p){if(!(/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1)){return;}var q=p.document;if(!q.querySelector){return;
}var o=q.querySelector("meta[name=viewport]"),B=o&&o.getAttribute("content"),r=B+",maximum-scale=1",y=B+",maximum-scale=10",v=true,s,t,u,z;if(!o){return;
}function w(){o.setAttribute("content",y);v=true;}function A(){o.setAttribute("content",r);v=false;}function x(a){z=a.accelerationIncludingGravity;s=Math.abs(z.x);
t=Math.abs(z.y);u=Math.abs(z.z);if(!p.orientation&&(s>7||((u>6&&t<8||u<8&&t>6)&&s>5))){if(v){A();}}else{if(!v){w();}}}p.addEventListener("orientationchange",w,false);
p.addEventListener("devicemotion",x,false);})(this);(function(b){b.fn.fitVids=function(a){var h={customSelector:null};var f=document.createElement("div"),g=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];
f.className="fit-vids-style";f.innerHTML="&shy;<style> .fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; } .fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style>";
g.parentNode.insertBefore(f,g);if(a){b.extend(h,a);}return this.each(function(){var d=["iframe[src^='http://player.vimeo.com']","iframe[src^='http://www.youtube.com']","iframe[src^='https://www.youtube.com']","iframe[src^='http://www.kickstarter.com']","object","embed"];
if(h.customSelector){d.push(h.customSelector);}var c=b(this).find(d.join(","));c.each(function(){var e=b(this);if(this.tagName.toLowerCase()=="embed"&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length){return;
@ -17,11 +38,24 @@ b(l).attr("open",!1);if(b.browser.safari==!0){for(var i=0;i<j;i++){if(k[i].nodeT
}(document);if(f==!1){if(b("details").length!==0){var e=b("<style />").text('summary {-webkit-text-size-adjust: none;} details > summary:first-child:before {content: "\u25bc"; font-size:.9em;padding-right:6px;font-family:"Courier New";} details > summary.detailHidden:first-child:before {content: "\u25ba";font-size:.9em;padding-right:6px;font-family:"Courier New";}');
b("head").append(e);}b.each(b("details"),function(d,g){a.hideDetailChildren(g);});}})();});var AccessifyHTML5=function(c){var d={article:{role:"article"},aside:{role:"complementary"},nav:{role:"navigation"},output:{"aria-live":"polite"},section:{role:"region"},"[required]":{"aria-required":"true"}};
if(c){if(c.header){d[c.header]={role:"banner"};}if(c.footer){d[c.footer]={role:"contentinfo"};}if(c.main){d[c.main]={role:"main"};}}jQuery.each(d,function(b,a){jQuery(b).attr(a);
});};jQuery(document).ready(function(b){AccessifyHTML5({header:"#banner",main:"#main",footer:"#colophon"});b("input[type=search]").parents("form").attr("role","search");
var a=b("<select/>");b("#primary-nav li").each(function(){var c=b(this);if(c.find("span").length){b("<option/>",{selected:"selected",value:"",text:c.text()}).appendTo(a);
});};
/*! http://mths.be/placeholder v2.0.6 by @mathias */
(function(r,p,u){var x="placeholder" in p.createElement("input"),t="placeholder" in p.createElement("textarea"),o=u.fn,v=u.valHooks,m,n;
if(x&&t){n=o.placeholder=function(){return this;};n.input=n.textarea=true;}else{n=o.placeholder=function(){var a=this;a.filter((x?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":w,"blur.placeholder":s}).data("placeholder-enabled",true).trigger("blur.placeholder");
return a;};n.input=x;n.textarea=t;m={get:function(b){var a=u(b);return a.data("placeholder-enabled")&&a.hasClass("placeholder")?"":b.value;},set:function(c,b){var a=u(c);
if(!a.data("placeholder-enabled")){return c.value=b;}if(b==""){c.value=b;if(c!=p.activeElement){s.call(c);}}else{if(a.hasClass("placeholder")){w.call(c,true,b)||(c.value=b);
}else{c.value=b;}}return a;}};x||(v.input=m);t||(v.textarea=m);u(function(){u(p).delegate("form","submit.placeholder",function(){var a=u(".placeholder",this).each(w);
setTimeout(function(){a.each(s);},10);});});u(r).bind("beforeunload.placeholder",function(){u(".placeholder").each(function(){this.value="";});});}function q(c){var a={},b=/^jQuery\d+$/;
u.each(c.attributes,function(d,e){if(e.specified&&!b.test(e.name)){a[e.name]=e.value;}});return a;}function w(d,c){var e=this,b=u(e),a;if(e.value==b.attr("placeholder")&&b.hasClass("placeholder")){a=e==p.activeElement;
if(b.data("placeholder-password")){b=b.hide().next().show().attr("id",b.removeAttr("id").data("placeholder-id"));if(d===true){return b[0].value=c;}b.focus();
}else{e.value="";b.removeClass("placeholder");}a&&e.select();}}function s(){var b,a=this,c=u(a),f=c,d=this.id;if(a.value==""){if(a.type=="password"){if(!c.data("placeholder-textinput")){try{b=c.clone().attr({type:"text"});
}catch(e){b=u("<input>").attr(u.extend(q(this),{type:"text"}));}b.removeAttr("name").data({"placeholder-password":true,"placeholder-id":d}).bind("focus.placeholder",w);
c.data({"placeholder-textinput":b,"placeholder-id":d}).before(b);}c=c.removeAttr("id").hide().prev().attr("id",d).show();}c.addClass("placeholder");c[0].value=c.attr("placeholder");
}else{c.removeClass("placeholder");}}}(this,document,jQuery));jQuery(document).ready(function(b){AccessifyHTML5({header:"#banner",main:"#main",footer:"#colophon"});
b("input[type=search]").parents("form").attr("role","search");var a=b("<select/>");b("#primary-nav li").each(function(){var c=b(this);if(c.find("span").length){b("<option/>",{selected:"selected",value:"",text:c.text()}).appendTo(a);
}else{b("<option/>",{value:c.find("a").attr("href"),text:c.text()}).appendTo(a);}});if(a.children().size()>0){a.appendTo("#primary-nav").change(function(){window.location=b(this).find("option:selected").val();
});}if(typeof(lsbase)=="string"){b('<div id="LSResult" style="display: none;"><div id="LSShadow"></div></div>').appendTo("#searchform>div");}b("#content>article").fitVids();
b("#trackback_url>a,.short-url").click(function(){var c=b(this).attr("title");alert(c);return false;});b(".comment_reply").click(function(){var c=b(this).attr("id").replace(/serendipity_reply_/g,"");
});}if(typeof(lsbase)=="string"){b('<div id="LSResult" style="display: none;"><div id="LSShadow"></div></div>').appendTo("#searchform>div");}b("input, textarea").placeholder();
b("#content>article").fitVids();b("#trackback_url>a,.short-url").click(function(){var c=b(this).attr("title");alert(c);return false;});b(".comment_reply").click(function(){var c=b(this).attr("id").replace(/serendipity_reply_/g,"");
b("#serendipity_replyTo").val(c);});b(".comment_source_ownerlink").click(function(){var c=b(this).attr("title");return confirm(c);});b("#c").insertAfter("#feedback");
b(".comment_reply").click(function(){b("#reply-to-comment").remove();var c='<p id="reply-to-comment">'+b("#reply-to-hint").text()+" "+b("#serendipity_replyTo :selected").text()+"</p>";
b("#serendipity_replyTo").after(c);});b("#reply-to-hint,#serendipity_replyTo").addClass("visuallyhidden");});

View File

@ -1,5 +0,0 @@
(function(p){if(!(/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1)){return;}var q=p.document;if(!q.querySelector){return;
}var o=q.querySelector("meta[name=viewport]"),B=o&&o.getAttribute("content"),r=B+",maximum-scale=1",y=B+",maximum-scale=10",v=true,s,t,u,z;if(!o){return;
}function w(){o.setAttribute("content",y);v=true;}function A(){o.setAttribute("content",r);v=false;}function x(a){z=a.accelerationIncludingGravity;s=Math.abs(z.x);
t=Math.abs(z.y);u=Math.abs(z.z);if(!p.orientation&&(s>7||((u>6&&t<8||u<8&&t>6)&&s>5))){if(v){A();}}else{if(!v){w();}}}p.addEventListener("orientationchange",w,false);
p.addEventListener("devicemotion",x,false);})(this);

View File

@ -1,36 +0,0 @@
/**
* Copyright (c) 2008 Tom Deater (http://www.tomdeater.com)
* Licensed under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*/
jQuery.onFontResize=(function(a){a(document).ready(function(){var c=a("<iframe />").attr("id","frame-onFontResize"+Date.parse(new Date)).addClass("div-onfontresize").css({width:"100em",height:"10px",position:"absolute",borderWidth:0,top:"-5000px",left:"-5000px"}).appendTo("body");
if(a.browser.msie){c.bind("resize",function(){a.onFontResize.trigger(c[0].offsetWidth/100);});}else{var b=c[0].contentWindow||c[0].contentDocument||c[0].document;
b=b.document||b;b.open();b.write('<script>window.onload = function(){var em = parent.jQuery(".div-onfontresize")[0];window.onresize = function(){if(parent.jQuery.onFontResize){parent.jQuery.onFontResize.trigger(em.offsetWidth / 100);}}};<\/script>');
b.close();}});return{trigger:function(b){a(document).trigger("fontresize",[b]);}};})(jQuery);
/**
* HTML5 placeholder polyfill
*
* code: https://github.com/ginader/HTML5-placeholder-polyfill
* please report issues at: https://github.com/ginader/HTML5-placeholder-polyfill/issues
*
* Copyright (c) 2012 Dirk Ginader (ginader.de)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Version: 1.9
*/
(function(e){var a=false,h;function b(k,l){if(e.trim(k.val())===""){k.data("placeholder").removeClass(l.hideClass);}else{k.data("placeholder").addClass(l.hideClass);
}}function f(k,l){k.data("placeholder").addClass(l.hideClass);}function g(m,l){var k=l.is("textarea");m.css({width:l.innerWidth()-(k?20:4),height:l.innerHeight()-6,lineHeight:l.css("line-height"),whiteSpace:k?"normal":"nowrap",overflow:"hidden"}).offset(l.offset());
}function c(k,l){var k=k,m=k.val();(function n(){h=requestAnimationFrame(n);if(k.val()!=m){f(k,l);j();i(k,l);}})();}function i(k,l){var k=k,m=k.val();(function n(){h=requestAnimationFrame(n);
b(k,l);})();}function j(){cancelAnimationFrame(h);}function d(k){if(a&&window.console&&window.console.log){window.console.log(k);}}e.fn.placeHolder=function(k){var l=this;
this.options=e.extend({className:"placeholder",visibleToScreenreaders:true,visibleToScreenreadersHideClass:"placeholder-hide-exept-screenreader",visibleToNoneHideClass:"placeholder-hide",hideOnFocus:true},k);
this.options.hideClass=this.options.visibleToScreenreaders?this.options.visibleToScreenreadersHideClass:this.options.visibleToNoneHideClass;return e(this).each(function(){var m=e(this),q=m.attr("placeholder"),r=m.attr("id"),n,p,o;
n=m.closest("label")[0];m.attr("placeholder","");if(!n&&!r){d("the input element with the placeholder needs an id!");return;}n=n||e('label[for="'+r+'"]');
if(!n){d("the input element with the placeholder needs a label!");return;}if(e(n).hasClass("visuallyhidden")){e(n).removeClass("visuallyhidden").addClass("visuallyhidden-with-placeholder");
}p=e('<span class="'+l.options.className+'">'+q+"</span>").appendTo(n);o=(p.width()>m.width());if(o){p.attr("title",q);}g(p,m);m.data("placeholder",p);
p.data("input",p);p.click(function(){e(this).data("input").focus();});m.focusin(function(){if(!l.options.hideOnFocus&&window.requestAnimationFrame){c(m,l.options);
}else{f(m,l.options);}});m.focusout(function(){b(e(this),l.options);if(!l.options.hideOnFocus&&window.cancelAnimationFrame){j();}});b(m,l.options);e(document).bind("fontresize",function(){g(p,m);
});if(e.event.special.resize){e("textarea").bind("resize",function(s){g(p,m);});}else{e("textarea").css("resize","none");}});};e(function(){if("placeholder" in e("<input>")[0]){return;
}e("input[placeholder], textarea[placeholder]").placeHolder({visibleToScreenreaders:true,hideOnFocus:false});});})(jQuery);

View File

@ -1,19 +0,0 @@
/*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */
(function(e){e.respond={};respond.update=function(){};
respond.mediaQueriesSupported=e.matchMedia&&e.matchMedia("only all").matches;if(respond.mediaQueriesSupported){return;}var w=e.document,s=w.documentElement,i=[],k=[],q=[],o={},h=30,f=w.getElementsByTagName("head")[0]||s,g=w.getElementsByTagName("base")[0],b=f.getElementsByTagName("link"),d=[],a=function(){var D=b,y=D.length,B=0,A,z,C,x;
for(;B<y;B++){A=D[B],z=A.href,C=A.media,x=A.rel&&A.rel.toLowerCase()==="stylesheet";if(!!z&&x&&!o[z]){if(A.styleSheet&&A.styleSheet.rawCssText){m(A.styleSheet.rawCssText,z,C);
o[z]=true;}else{if((!/^([a-zA-Z:]*\/\/)/.test(z)&&!g)||z.replace(RegExp.$1,"").split("/")[0]===e.location.host){d.push({href:z,media:C});}}}}u();},u=function(){if(d.length){var x=d.shift();
n(x.href,function(y){m(y,x.href,x.media);o[x.href]=true;u();});}},m=function(I,x,z){var G=I.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),J=G&&G.length||0,x=x.substring(0,x.lastIndexOf("/")),y=function(K){return K.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+x+"$2$3");
},A=!J&&z,D=0,C,E,F,B,H;if(x.length){x+="/";}if(A){J=1;}for(;D<J;D++){C=0;if(A){E=z;k.push(y(I));}else{E=G[D].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;
k.push(RegExp.$2&&y(RegExp.$2));}B=E.split(",");H=B.length;for(;C<H;C++){F=B[C];i.push({media:F.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:k.length-1,hasquery:F.indexOf("(")>-1,minw:F.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:F.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});
}}j();},l,r,v=function(){var z,A=w.createElement("div"),x=w.body,y=false;A.style.cssText="position:absolute;font-size:1em;width:1em";if(!x){x=y=w.createElement("body");
x.style.background="none";}x.appendChild(A);s.insertBefore(x,s.firstChild);z=A.offsetWidth;if(y){s.removeChild(x);}else{x.removeChild(A);}z=p=parseFloat(z);
return z;},p,j=function(I){var x="clientWidth",B=s[x],H=w.compatMode==="CSS1Compat"&&B||w.body[x]||B,D={},G=b[b.length-1],z=(new Date()).getTime();if(I&&l&&z-l<h){clearTimeout(r);
r=setTimeout(j,h);return;}else{l=z;}for(var E in i){var K=i[E],C=K.minw,J=K.maxw,A=C===null,L=J===null,y="em";if(!!C){C=parseFloat(C)*(C.indexOf(y)>-1?(p||v()):1);
}if(!!J){J=parseFloat(J)*(J.indexOf(y)>-1?(p||v()):1);}if(!K.hasquery||(!A||!L)&&(A||H>=C)&&(L||H<=J)){if(!D[K.media]){D[K.media]=[];}D[K.media].push(k[K.rules]);
}}for(var E in q){if(q[E]&&q[E].parentNode===f){f.removeChild(q[E]);}}for(var E in D){var M=w.createElement("style"),F=D[E].join("\n");M.type="text/css";
M.media=E;f.insertBefore(M,G.nextSibling);if(M.styleSheet){M.styleSheet.cssText=F;}else{M.appendChild(w.createTextNode(F));}q.push(M);}},n=function(x,z){var y=c();
if(!y){return;}y.open("GET",x,true);y.onreadystatechange=function(){if(y.readyState!=4||y.status!=200&&y.status!=304){return;}z(y.responseText);};if(y.readyState==4){return;
}y.send(null);},c=(function(){var x=false;try{x=new XMLHttpRequest();}catch(y){x=new ActiveXObject("Microsoft.XMLHTTP");}return function(){return x;};})();
a();respond.update=a;function t(){j(true);}if(e.addEventListener){e.addEventListener("resize",t,false);}else{if(e.attachEvent){e.attachEvent("onresize",t);
}}})(this);

View File

@ -0,0 +1,115 @@
<ul class="serendipity_findmore clearfix">
{if NOT $findmore_disabled_services.twitter}
<li><a rel="nofollow" href="http://twitter.com/intent/tweet?text={$entrydata.title|escape}%20-%20{$entrydata.url|escape:url}"><img src="{$entrydata.path}twitter.png" alt="Twitter"></a></li>
{/if}
{if NOT $findmore_disabled_services.delicious}
<li><a rel="nofollow" href="http://del.icio.us/post?url={$entrydata.url|escape:url}&amp;title={$entrydata.title|escape:url}"><img src="{$entrydata.path}delicious.png" alt="Bookmark {$entrydata.title|escape} at del.icio.us"></a></li>
{/if}
{if NOT $findmore_disabled_services.facebook}
<li><a rel="nofollow" href="http://www.facebook.com/share.php?u={$entrydata.url|escape:url}&amp;t={$entrydata.title|escape}"><img src="{$entrydata.path}facebook.png" alt="Facebook"></a></li>
{/if}
{if NOT $findmore_disabled_services.google}
<li><a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk={$entrydata.url|escape:url}&amp;title={$entrydata.title|escape}"><img src="{$entrydata.path}googlebookmark.png" alt="Google Bookmarks"></a></li>
{/if}
{if NOT $findmore_disabled_services.friendfeed}
<li><a rel="nofollow" href="http://www.friendfeed.com/share?title={$entrydata.title|escape}&amp;link={$entrydata.url|escape:url}"><img src="{$entrydata.path}friendfeed.png" alt="FriendFeed"></a></li>
{/if}
{if NOT $findmore_disabled_services.digg}
<li><a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url={$entrydata.url|escape:url}"><img src="{$entrydata.path}diggman.png" alt="Digg {$entrydata.title|escape}"></a></li>
{/if}
{if NOT $findmore_disabled_services.mixx}
<li><a rel="nofollow" href="http://www.mixx.com/submit?page_url={$entrydata.url|escape:url}"><img src="{$entrydata.path}mixx-button4.png" alt="Mixx {$entrydata.title|escape}"></a></li>
{/if}
{if NOT $findmore_disabled_services.bloglines}
<li><a rel="nofollow" href="http://www.bloglines.com/citations?url={$entrydata.url|escape:url}"><img src="{$entrydata.path}bloglines.png" alt="Bloglines {$entrydata.title|escape}"></a></li>
{/if}
{if NOT $findmore_disabled_services.technorati}
<li><a rel="nofollow" href="http://technorati.com/search/{$entrydata.url|escape:url}" title="Technorati {$entrydata.title|escape}"><img src="{$entrydata.path}technorati.png" alt="Technorati {$entrydata.title|escape}"></a></li>
{/if}
{if NOT $findmore_disabled_services.fark}
<li><a rel="nofollow" href="http://cgi.fark.com/cgi/fark/edit.pl?new_url={$entrydata.url|escape:url}&amp;new_comment={$entrydata.title|escape:url}&amp;new_link_other=&amp;linktype=Misc"><img src="{$entrydata.path}fark.png" alt="Fark this: {$entrydata.title|escape}"></a></li>
{/if}
{if NOT $findmore_disabled_services.yahoo}
<li><a rel="nofollow" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t={$entrydata.title|escape:url}&amp;u={$entrydata.url|escape:url}"><img src="{$entrydata.path}yahoomyweb.png" alt="Bookmark {$entrydata.title|escape} at YahooMyWeb"></a></li>
{/if}
{if NOT $findmore_disabled_services.furl}
<li><a rel="nofollow" href="http://www.furl.net/storeIt.jsp?t={$entrydata.title|escape:url}&amp;u={$entrydata.url|escape:url}"><img src="{$entrydata.path}furl.png" alt="Bookmark {$entrydata.title|escape} at Furl.net"></a></li>
{/if}
{if NOT $findmore_disabled_services.reddit}
<li><a rel="nofollow" href="http://reddit.com/submit?url={$entrydata.url|escape:url}&amp;title={$entrydata.title|escape:url}"><img src="{$entrydata.path}reddit.png" alt="Bookmark {$entrydata.title|escape} at reddit.com"></a></li>
{/if}
{if NOT $findmore_disabled_services.blinklist}
<li><a rel="nofollow" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=&amp;Url={$entrydata.url|escape:url}&amp;Title={$entrydata.title|escape:url}"><img src="{$entrydata.path}blinklist.png" alt="Bookmark {$entrydata.title|escape} at blinklist.com"></a></li>
{/if}
{if NOT $findmore_disabled_services.spurl}
<li><a rel="nofollow" href="http://www.spurl.net/spurl.php?title={$entrydata.title|escape:url}&amp;url={$entrydata.url|escape:url}"><img src="{$entrydata.path}spurl.png" alt="Bookmark {$entrydata.title|escape} at Spurl.net"></a></li>
{/if}
{if NOT $findmore_disabled_services.newsvine}
<li><a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u={$entrydata.url|escape:url}&amp;h={$entrydata.title|escape:url}" title="Bookmark {$entrydata.title|escape} at NewsVine"><img src="{$entrydata.path}newsvine.png" alt="Bookmark {$entrydata.title|escape} at NewsVine"></a></li>
{/if}
{if NOT $findmore_disabled_services.simpy}
<li><a rel="nofollow" href="http://www.simpy.com/simpy/LinkAdd.do?href={$entrydata.url|escape:url}&amp;title={$entrydata.title|escape:url}"><img src="{$entrydata.path}simpy.png" alt="Bookmark {$entrydata.title|escape} at Simpy.com"></a></li>
{/if}
{if NOT $findmore_disabled_services.blogmarks}
<li><a rel="nofollow" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url={$entrydata.url|escape:url}&amp;title={$entrydata.title|escape:url}"><img src="{$entrydata.path}blogmarks.png" alt="Bookmark {$entrydata.title|escape} at blogmarks"></a></li>
{/if}
{if NOT $findmore_disabled_services.wists}
<li><a rel="nofollow" href="http://wists.com/r.php?c=&amp;r={$entrydata.url|escape:url}&amp;title={$entrydata.title|escape:url}"><img src="{$entrydata.path}wists.png" alt="Bookmark {$entrydata.title|escape} with wists"></a></li>
{/if}
{if NOT $findmore_disabled_services.misterwong}
<li><a rel="nofollow" href="http://www.mister-wong.de/index.php?action=addurl&amp;bm_url={$entrydata.url|escape:url}&amp;bm_description={$entrydata.title|escape:url}"><img src="{$entrydata.path}wong18.gif" alt="wong it!"></a></li>
{/if}
{if NOT $findmore_disabled_services.addthis}
<li><a rel="nofollow" href="http://www.addthis.com/bookmark.php?pub=&amp;url={$entrydata.url|escape:url}&amp;title={$entrydata.title|escape:url}"><img src="{$entrydata.path}button0-bm.gif" alt="Bookmark using any bookmark manager!"></a></li>
{/if}
{if NOT $findmore_disabled_services.stumbleupon}
<li><a rel="nofollow" href="http://www.stumbleupon.com/submit?url={$entrydata.url|escape:url}"><img src="{$entrydata.path}stumbleupon.gif" alt="Stumble It!"></a></li>
{/if}
{if NOT $findmore_disabled_services.printthis}
<li><a rel="nofollow" href="http://www.printfriendly.com/print?url={$entrydata.url|escape:url}"><img src="{$entrydata.path}printfriendly.png" alt="Print this article!"></a></li>
{/if}
{if NOT $findmore_disabled_services.tellafriend}
<li><a rel="nofollow" href="mailto:?subject={$entrydata.title|escape}&amp;body={$entrydata.url|escape:url}';"><img src="{$entrydata.path}email_link.png" alt="E-mail this story to a friend!"></a></li>
{/if}
{if NOT $findmore_disabled_services.identica}
<li><a rel="nofollow" href="http://identi.ca/notice/new?status_textarea={$entrydata.title|escape:url}%20-%20{$entrydata.url|escape:url}"><img src="{$entrydata.path}identica.png" alt="Identi.ca"></a></li>
{/if}
</ul>
{if NOT $findmore_disabled_services.facebook OR NOT $findmore_disabled_services.gplus OR NOT $findmore_disabled_services.spreadly}
<ul class="serendipity_findmore_like clearfix">
{if NOT $findmore_disabled_services.facebook}
<li class="facebook_like findmore_like_button">
{if $findmore_lazyload}
<script>
var fb_like = '<iframe src="http://www.facebook.com/plugins/like.php?href={$entrydata.url|@escape:url}&amp;layout=standard&amp;show-faces=true&amp;width=300&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe>';
insertLazyLoadButton(fb_like, "facebook", '{$entrydata.path}', '{$findmore_lazyload_text}');
</script>
{else}
<iframe src="http://www.facebook.com/plugins/like.php?href={$entrydata.url|@escape:url}&amp;layout=standard&amp;show-faces=true&amp;width=300&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100%; height:30px"></iframe>
{/if}
</li>
{/if}
{if NOT $findmore_disabled_services.plusone}
<li class="google_like findmore_like_button">
{if $findmore_lazyload}
<script>
var gplus_like = '<div class="gplus_like"><div class="g-plusone" data-size="medium" data-href="{$entrydata.url}"></div>{literal}<script type="text/javascript">window.___gcfg = {lang: "en"}; (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); })(); <\/script></div>';
{/literal}
insertLazyLoadButton(gplus_like, "gplus", '{$entrydata.path}', '{$findmore_lazyload_text}');
</script>
{else}
<g:plusone annotation="none" href="{$entrydata.url}"></g:plusone>
{/if}
</li>
{/if}
{if NOT $findmore_disabled_services.spreadly}
<li class="spreadly_like findmore_like_button">
{if $findmore_lazyload}
<a href="http://spread.ly/?url={$entrydata.url|@escape:url}&amp;title={$entrydata.title|@escape:url}&amp;tags={$entrydata.properties.freetag_tagList|@escape:url}&amp;social={if $findmore_spreadly_social}1{else}0{/if}" rel="like"><img src="http://spread.ly/img/like-button.jpg" alt="Like"></a>
{else}
<iframe scrolling="no" frameborder="0" marginwidth="0" marginheight="0" style="overflow: hidden; width: 100px; height: {if $findmore_spreadly_social}24px;{else}24px{/if}" src="http://button.spread.ly/?url={$entrydata.url|@escape:url}&amp;title={$entrydata.title|@escape:url}&amp;tags={$entrydata.properties.freetag_tagList|@escape:url}&amp;social={if $findmore_spreadly_social}1{else}0{/if}" allowtransparency="true"></iframe>
{/if}
</li>
{/if}
</ul>
{/if}

View File

@ -95,6 +95,9 @@ textarea {
border-radius: 3px;
}
input.placeholder,
textarea.placeholder { color: #aaa; }
input[type=text]:focus,
input[type=search]:focus,
input[type=email]:focus,
@ -197,9 +200,19 @@ a:link { -webkit-tap-highlight-color: #d52; }
p {
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hypens: auto;
hyphens: auto;
}
p code,
p samp,
p kbd {
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hypens: none;
hyphens: none;
}
h1 { font-size: 2em; }
h2 {
@ -211,7 +224,7 @@ h1, h2 { line-height: 1.25; }
.serendipity_entry header h2 { margin: 0 0 .3333em; }
h3 {
h3 {
font-size: 1.25em;
margin: 0 0 .8em;
}
@ -236,7 +249,7 @@ audio, video,
.manage_comments,
.plugin_comment_wrap,
p.whiteline, #searchform>div,
.serendipity_entry .plainList,
.serendipity_entry_body .plainList,
#page, #primary-nav,
.serendipity_calendar,
.serendipity_freetag_taglist,
@ -431,11 +444,11 @@ fieldset,
line-height: 1.8462;
}
.serendipity_entry ul,
.serendipity_entry ol { margin: 0 0 1em 2em; }
.serendipity_entry_body ul,
.serendipity_entry_body ol { margin: 0 0 1em 2em; }
.serendipity_entry li ul,
.serendipity_entry li ol { margin: 0 0 0 2em; }
.serendipity_entry_body li ul,
.serendipity_entry_body li ol { margin: 0 0 0 2em; }
.serendipity_entryIcon {
float: left;
@ -781,36 +794,51 @@ pre .geshi {
border-radius: 3px;
}
label span.placeholder{
position:absolute;
font-size:75%;
color:#999;
font-family:sans-serif;
padding:4px 3px;
z-index:1;
.serendipity_findmore,
.serendipity_findmore_like {
list-style: none;
margin: 0;
}
label span.placeholder-hide-exept-screenreader {
clip: rect(1px 1px 1px 1px);
clip: rect(1px, 1px, 1px, 1px);
padding:0 !important;
border:0 !important;
height: 1px !important;
width: 1px !important;
overflow: hidden;
.serendipity_findmore {
padding: 0;
text-align: left;
}
label span.placeholder-hide{
display:none;
.serendipity_findmore li,
.serendipity_findmore_like li {
display: inline-block;
margin: 0 4px 8px 0;
}
/* overwrite for the HTML5 Boilerplate way to hide labels */
label.visuallyhidden-with-placeholder{
clip: auto !important;
height:auto !important;
overflow: visible !important;
position:absolute !important;
left:-999em;
.lazyload_switcher {
display: inline-block;
margin: 0 4px 0 0;
}
.ie7 .serendipity_findmore li,
.ie7 .serendipity_findmore_like li,
.ie7 .lazyload_switcher {
display: inline;
zoom: 1;
}
.findmore_like_button { min-width: 120px; }
.facebook_like iframe {
position: relative;
top: 15px;
}
.gplus_lazyload_switcher {
float: left;
position: relative;
top: 8px;
}
.gplus_like iframe {
position: relative!important;
top: 6px!important;
}
/* Helper classes */
@ -827,7 +855,7 @@ label.visuallyhidden-with-placeholder{
/* Media queries */
@media only screen and (min-width: 481px) {
#serendipityQuickSearchTermField { max-width: 15em; }
#serendipity_comment input[type=text],
#serendipity_comment input[type=email],
#serendipity_comment input[type=url] { max-width: 20em; }
@ -839,20 +867,20 @@ label.visuallyhidden-with-placeholder{
.serendipity_commentDirection { max-width: 36.75em;}
#primary-nav ul { display: block; }
#primary-nav select { display: none; }
#sidebar_left,
#sidebar_right { padding: 0 1em; }
.sidebar_plugin {
float: left;
margin: 0 0 2em;
width: 47.5%;
}
.ie7 .sidebar_plugin { width: 47.4%; }
#sidebar_left .odd,
#sidebar_right .odd {
clear: both;
@ -875,7 +903,7 @@ label.visuallyhidden-with-placeholder{
.ie7 .serendipity_pagination .prev,
.ie7 .serendipity_pagination .next { width: 24.9%; }
.archives_year {
float: left;
width: 48%;
@ -887,7 +915,7 @@ label.visuallyhidden-with-placeholder{
}
.arch_even { margin: 0 0 0 2%; }
.archives_date { min-width: 7em; }
.serendipity_entrypaging_left,
@ -920,17 +948,17 @@ label.visuallyhidden-with-placeholder{
-moz-box-shadow: 0 0 10px 1px rgba(0,0,0,.2);
box-shadow: 0 0 10px 1px rgba(0,0,0,.2);
}
#identity h1 { margin: 1em 0 0; }
#searchform>div { margin-top: 4.4em; }
#identity p, #searchform>div { margin-bottom: 1.5em; }
#primary-nav { margin-bottom: 2em; }
#banner>img { display: block; }
#identity, #searchform,
#content,
#sidebar_left,
@ -954,29 +982,29 @@ label.visuallyhidden-with-placeholder{
.ie7 #sidebar_right { width: 37.9%; }
.ie7 .col2l #sidebar_left { left: -61.9%; }
.ie7 .col2l #content { left: 37.9%; }
.col2l #searchform { text-align: right; }
#sidebar_left,
#sidebar_right { padding: 0; }
#sidebar_left .odd,
#sidebar_right .odd {
clear: none;
margin-right: 1em;
}
.sidebar_plugin,
.ie7 .sidebar_plugin {
float: none;
width: auto;
}
#sidebar_left .sidebar_plugin,
.ie7 #sidebar_left .sidebar_plugin,
#sidebar_right .sidebar_plugin,
.ie7 #sidebar_right .sidebar_plugin { margin: 0 1em 2em 2em; }
#searchform>div,
.ie7 #searchform>div { padding: 0 1em 0 2em; }
@ -987,7 +1015,7 @@ label.visuallyhidden-with-placeholder{
.content blockquote,
.content blockquote + cite { margin: 0 2.5em 1em; }
.commentlevel-1 { margin-left: 1em; }
.commentlevel-2 { margin-left: 2em; }
.commentlevel-3 { margin-left: 3em; }
@ -1007,10 +1035,10 @@ label.visuallyhidden-with-placeholder{
@media only screen and (min-width:1024px) {
#identity h1 { padding: 0 1em; }
#identity p,
#searchform>div { padding: 0 2em; }
#primary-nav ul { margin: 0 1em; }
.col3 #content { width: 50%; }
@ -1031,15 +1059,15 @@ label.visuallyhidden-with-placeholder{
#sidebar_left .sidebar_plugin,
.ie7 #sidebar_left .sidebar_plugin { margin: 0 2em 2em 1em; }
.serendipity_search,
.staticpage_results,
.comment_results,
.nocontent,
.serendipity_entrypaging { margin: 0 2em 1em; }
.serendipity_entry { margin: 0 2em 3em; }
.archives, .freetag_cloud,
.content_msg,
.serendipity_staticpage,
@ -1047,9 +1075,9 @@ label.visuallyhidden-with-placeholder{
.ie7 #sidebar_left .sidebar_plugin,
#sidebar_right .sidebar_plugin,
.ie7 #sidebar_right .sidebar_plugin { margin: 0 2em 2em; }
.serendipity_pagination { margin: 0 2.4615em 1.2308em; }
#colophon small { padding: .9167em 2.4615em 1em; }
#serendipity_comment textarea { width: 30em; }
@ -1067,7 +1095,7 @@ label.visuallyhidden-with-placeholder{
@page { margin: 0.5cm; }
p, h2, h3 { orphans: 3; widows: 3; }
h2, h3 { page-break-after: avoid; }
#searchform, #primary-nav,
#sidebar_left, #sidebar_right,
#colophon, audio, video,