Skip to content
Browse files

New theme option: Add a link to related comment to comments which are…

… a reply to another comment.
  • Loading branch information...
1 parent 13569cb commit bd8930243db6ff1fec92d9de1296ce7698eaf12b @yellowled committed
Showing with 80 additions and 60 deletions.
  1. +2 −0 UTF-8/lang_de.inc.php
  2. +2 −0 UTF-8/lang_en.inc.php
  3. +5 −0 comments.tpl
  4. +6 −0 config.inc.php
  5. +1 −1 info.txt
  6. +60 −59 js/2k11.min.js
  7. +2 −0 lang_de.inc.php
  8. +2 −0 lang_en.inc.php
View
2 UTF-8/lang_de.inc.php
@@ -5,6 +5,7 @@
@define('TWOK11_WEBFONTS', 'Einen von Google gehosteten Webfont nutzen?');
@define('TWOK11_NOWEBFONT', 'Keinen Webfont einbinden');
@define('TWOK11_USERSTYLES', 'user.css einbinden? (Muss selbst im Templateverzeichnis angelegt werden! Generator: http://yellowled.github.com)');
+@define('TWOK11_REFCOMMENTS', 'Kommentaren (falls vorhanden) einen Link zum Kommentar, auf den geantwortet wurde, hinzufügen?');
// Sprachkonstanten
@define('TWOK11_NAV_TITLE', 'Navigation');
@define('TWOK11_PAG_TITLE', 'Pagination');
@@ -22,3 +23,4 @@
@define('TWOK11_SHORT_URL_HINT', 'Dieser Link ist nicht aktiv. Er enthält die Kurz-URL zu diesem Eintrag. Sie können diese URL benutzen, um diesen Eintrag zu verlinken. Um den Link zu kopieren, klicken Sie ihn mit der rechten Maustaste an und wählen Verknüpfung kopieren im Internet Explorer oder Linkadresse kopieren in Mozilla/Firefox.');
@define('TWOK11_EMPTYTRACKBACK', 'Die Anzeige des Inhaltes dieses Trackbacks ist leider nicht möglich.');
@define('TWOK11_TRACKBACKPREVIEW', 'Vorschau anzeigen');
+@define('TWOK11_REPLYORIGIN', 'Ursprung');
View
2 UTF-8/lang_en.inc.php
@@ -5,6 +5,7 @@
@define('TWOK11_WEBFONTS', 'Use a webfont, hosted by Google?');
@define('TWOK11_NOWEBFONT', 'Include no webfont');
@define('TWOK11_USERSTYLES', 'Include user.css? (You need to create that file in your template directory. Generator: http://yellowled.github.com)');
+@define('TWOK11_REFCOMMENTS', 'Add link to related comment to comments (if they are replies to another comment)?');
// Lang constants
@define('TWOK11_NAV_TITLE', 'Navigation');
@define('TWOK11_PAG_TITLE', 'Pagination');
@@ -22,3 +23,4 @@
@define('TWOK11_SHORT_URL_HINT', 'This link is not meant to be clicked. It contains the short URL for this entry. You can use this URL to link to this entry. To copy the link, right click and select Copy Shortcut in Internet Explorer or Copy Link Location in Mozilla.');
@define('TWOK11_EMPTYTRACKBACK', 'Unfortunately, the contents of this trackback can not be displayed.');
@define('TWOK11_TRACKBACKPREVIEW', 'Show preview');
+@define('TWOK11_REPLYORIGIN', 'Origin');
View
5 comments.tpl
@@ -24,6 +24,11 @@
{if $entry.is_entry_owner}
| <a class="comment_source_ownerlink" href="{$comment.link_delete}" title="{$CONST.COMMENT_DELETE_CONFIRM|@sprintf:$comment.id:$comment.author}">{$CONST.DELETE}</a>
{/if}
+{if $template_option.refcomments == true}
+ {if $comment.parent_id != '0'}
+ | <a class="reply_origin" href="#c{$comment.parent_id}" title="{$CONST.TWOK11_REPLYORIGIN}: {$CONST.COMMENT} #c{$comment.parent_id}">{$CONST.TWOK11_REPLYORIGIN}</a>
+ {/if}
+{/if}
| <a class="comment_reply" href="#serendipity_CommentForm" id="serendipity_reply_{$comment.id}"{if $comment_onchange != ''} onclick="{$comment_onchange}"{/if}>{$CONST.REPLY}</a>
<div id="serendipity_replyform_{$comment.id}"></div>
</footer>
View
6 config.inc.php
@@ -76,6 +76,12 @@ function serendipity_smarty_html5time($timestamp) { return date("c", $timestamp)
'default' => false
),
array(
+ 'var' => 'refcomments',
+ 'name' => TWOK11_REFCOMMENTS,
+ 'type' => 'boolean',
+ 'default' => false
+ ),
+ array(
'var' => 'use_corenav',
'name' => TWOK11_USE_CORENAV,
'type' => 'boolean',
View
2 info.txt
@@ -1,4 +1,4 @@
Name: 2k11-dev
Author: Matthias Mees, Veit Lehmann
-Date: 2012-08-01
+Date: 2012-10-01
Require Serendipity: 1.6
View
119 js/2k11.min.js
@@ -1,62 +1,63 @@
/*! 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(q){var A=navigator.userAgent;if(!(/iPhone|iPad|iPod/.test(navigator.platform)&&/OS [1-5]_[0-9_]* like Mac OS X/i.test(A)&&A.indexOf("AppleWebKit")>-1)){return;
-}var r=q.document;if(!r.querySelector){return;}var p=r.querySelector("meta[name=viewport]"),D=p&&p.getAttribute("content"),s=D+",maximum-scale=1",z=D+",maximum-scale=10",w=true,t,u,v,B;
-if(!p){return;}function x(){p.setAttribute("content",z);w=true;}function C(){p.setAttribute("content",s);w=false;}function y(a){B=a.accelerationIncludingGravity;
-t=Math.abs(B.x);u=Math.abs(B.y);v=Math.abs(B.z);if((!q.orientation||q.orientation===180)&&(t>7||((v>6&&u<8||v<8&&u>6)&&t>5))){if(w){C();}}else{if(!w){x();
-}}}q.addEventListener("orientationchange",x,false);q.addEventListener("devicemotion",y,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*='player.vimeo.com']","iframe[src*='www.youtube.com']","iframe[src*='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;
-}var n=this.tagName.toLowerCase()=="object"?e.attr("height"):e.height(),m=n/e.width();if(!e.attr("id")){var l="fitvid"+Math.floor(Math.random()*999999);
-e.attr("id",l);}e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",(m*100)+"%");e.removeAttr("height").removeAttr("width");
-});});};})(jQuery);jQuery(function(b){(function(){var a=this;this.hideDetailChildren=function(l){var k=l instanceof jQuery?l[0].childNodes:l.childNodes,j=k.length;
-b(l).attr("open",!1);if(b.browser.safari==!0){for(var i=0;i<j;i++){if(k[i].nodeType==3&&k[i].textContent!=""){var h=b("<span />");h.text(k[i].textContent).hide(),b(k[i]).after(h),k[i].textContent="",j++;
-}}}b.each(k,function(o,n){if(b(n)[0].nodeType==1&&n==b(n).parent().find("> summary:first-of-type")[0]){b(n).data("processed")!=!0&&(b(n).css({display:"block",cursor:"pointer"}).data("processed",!0).addClass("detailHidden").bind("click",function(){a.toggleDetailChildren(b(this));
-}),b(l).prepend(b(n)));}else{if(b(n)[0].nodeType==3&&!n.isElementContentWhitespace&&!!b.browser.safari==!1){var m=b("<span />");m.text(n.textContent).hide(),b(n).after(m),n.textContent="";
-}else{if(b(l).find("> summary").length==0){var c=b("<summary />").text("Details").css({display:"block",cursor:"pointer"}).data("processed",!0).addClass("detailHidden").bind("click",function(){a.toggleDetailChildren(b(this));
-});b(l).prepend(c);}}}b(l).find("> :visible:not(summary:first-child)").hide();});},this.showDetailChildren=function(c){b(c).attr("open",!0),b.each(b(c).find("> *"),function(d,g){b(g).show();
-});},this.toggleDetailChildren=function(c){c.hasClass("detailHidden")?(c.removeClass("detailHidden"),a.showDetailChildren(c.parents("details")[0])):(c.addClass("detailHidden"),a.hideDetailChildren(c.parents("details")[0]));
-};var f=function(h){var g=h.createElement("details"),k,j,i;return"open" in g?(j=h.body||function(){var c=h.documentElement;return k=!0,c.insertBefore(h.createElement("body"),c.firstElementChild||c.firstChild);
-}(),g.innerHTML="<summary>a</summary>b",g.style.display="block",j.appendChild(g),i=g.offsetHeight,g.open=!0,i=i!=g.offsetHeight,j.removeChild(g),k&&j.parentNode.removeChild(j),i):!1;
-}(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);
+(function(e){e.respond={};respond.update=function(){};
+respond.mediaQueriesSupported=e.matchMedia&&e.matchMedia("only all").matches;if(respond.mediaQueriesSupported){return;}var o=e.document,v=o.documentElement,i=[],m=[],t=[],r={},h=30,f=o.getElementsByTagName("head")[0]||v,g=o.getElementsByTagName("base")[0],b=f.getElementsByTagName("link"),d=[],a=function(){var D=b,z=D.length,A=0,x,B,C,y;
+for(;A<z;A++){x=D[A],B=x.href,C=x.media,y=x.rel&&x.rel.toLowerCase()==="stylesheet";if(!!B&&y&&!r[B]){if(x.styleSheet&&x.styleSheet.rawCssText){p(x.styleSheet.rawCssText,B,C);
+r[B]=true;}else{if((!/^([a-zA-Z:]*\/\/)/.test(B)&&!g)||B.replace(RegExp.$1,"").split("/")[0]===e.location.host){d.push({href:B,media:C});}}}}k();},k=function(){if(d.length){var x=d.shift();
+q(x.href,function(y){p(y,x.href,x.media);r[x.href]=true;k();});}},p=function(B,C,F){var z=B.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),D=z&&z.length||0,C=C.substring(0,C.lastIndexOf("/")),E=function(K){return K.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+C+"$2$3");
+},G=!D&&F,J=0,I,x,y,H,A;if(C.length){C+="/";}if(G){D=1;}for(;J<D;J++){I=0;if(G){x=F;m.push(E(B));}else{x=z[J].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;
+m.push(RegExp.$2&&E(RegExp.$2));}H=x.split(",");A=H.length;for(;I<A;I++){y=H[I];i.push({media:y.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:m.length-1,hasquery:y.indexOf("(")>-1,minw:y.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:y.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});
+}}j();},n,u,l=function(){var A,x=o.createElement("div"),y=o.body,z=false;x.style.cssText="position:absolute;font-size:1em;width:1em";if(!y){y=z=o.createElement("body");
+y.style.background="none";}y.appendChild(x);v.insertBefore(y,v.firstChild);A=x.offsetWidth;if(z){v.removeChild(y);}else{y.removeChild(x);}A=s=parseFloat(A);
+return A;},s,j=function(B){var C="clientWidth",K=v[C],A=o.compatMode==="CSS1Compat"&&K||o.body[C]||K,M={},z=b[b.length-1],G=(new Date()).getTime();if(B&&n&&G-n<h){clearTimeout(u);
+u=setTimeout(j,h);return;}else{n=G;}for(var x in i){var E=i[x],L=E.minw,D=E.maxw,J=L===null,H=D===null,F="em";if(!!L){L=parseFloat(L)*(L.indexOf(F)>-1?(s||l()):1);
+}if(!!D){D=parseFloat(D)*(D.indexOf(F)>-1?(s||l()):1);}if(!E.hasquery||(!J||!H)&&(J||A>=L)&&(H||A<=D)){if(!M[E.media]){M[E.media]=[];}M[E.media].push(m[E.rules]);
+}}for(var x in t){if(t[x]&&t[x].parentNode===f){f.removeChild(t[x]);}}for(var x in M){var I=o.createElement("style"),y=M[x].join("\n");I.type="text/css";
+I.media=x;f.insertBefore(I,z.nextSibling);if(I.styleSheet){I.styleSheet.cssText=y;}else{I.appendChild(o.createTextNode(y));}t.push(I);}},q=function(y,x){var z=c();
+if(!z){return;}z.open("GET",y,true);z.onreadystatechange=function(){if(z.readyState!=4||z.status!=200&&z.status!=304){return;}x(z.responseText);};if(z.readyState==4){return;
+}z.send(null);},c=(function(){var y=false;try{y=new XMLHttpRequest();}catch(x){y=new ActiveXObject("Microsoft.XMLHTTP");}return function(){return y;};})();
+a();respond.update=a;function w(){j(true);}if(e.addEventListener){e.addEventListener("resize",w,false);}else{if(e.attachEvent){e.attachEvent("onresize",w);
+}}})(this);(function(d){var g=navigator.userAgent;if(!(/iPhone|iPad|iPod/.test(navigator.platform)&&/OS [1-5]_[0-9_]* like Mac OS X/i.test(g)&&g.indexOf("AppleWebKit")>-1)){return;
+}var b=d.document;if(!b.querySelector){return;}var f=b.querySelector("meta[name=viewport]"),a=f&&f.getAttribute("content"),o=a+",maximum-scale=1",h=a+",maximum-scale=10",k=true,n,m,l,e;
+if(!f){return;}function j(){f.setAttribute("content",h);k=true;}function c(){f.setAttribute("content",o);k=false;}function i(p){e=p.accelerationIncludingGravity;
+n=Math.abs(e.x);m=Math.abs(e.y);l=Math.abs(e.z);if((!d.orientation||d.orientation===180)&&(n>7||((l>6&&m<8||l<8&&m>6)&&n>5))){if(k){c();}}else{if(!k){j();
+}}}d.addEventListener("orientationchange",j,false);d.addEventListener("devicemotion",i,false);})(this);(function(a){a.fn.fitVids=function(b){var c={customSelector:null};
+var e=document.createElement("div"),d=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];e.className="fit-vids-style";
+e.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>";
+d.parentNode.insertBefore(e,d);if(b){a.extend(c,b);}return this.each(function(){var f=["iframe[src*='player.vimeo.com']","iframe[src*='www.youtube.com']","iframe[src*='www.kickstarter.com']","object","embed"];
+if(c.customSelector){f.push(c.customSelector);}var g=a(this).find(f.join(","));g.each(function(){var j=a(this);if(this.tagName.toLowerCase()=="embed"&&j.parent("object").length||j.parent(".fluid-width-video-wrapper").length){return;
+}var k=this.tagName.toLowerCase()=="object"?j.attr("height"):j.height(),h=k/j.width();if(!j.attr("id")){var i="fitvid"+Math.floor(Math.random()*999999);
+j.attr("id",i);}j.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",(h*100)+"%");j.removeAttr("height").removeAttr("width");
+});});};})(jQuery);jQuery(function(a){(function(){var b=this;this.hideDetailChildren=function(e){var f=e instanceof jQuery?e[0].childNodes:e.childNodes,g=f.length;
+a(e).attr("open",!1);if(a.browser.safari==!0){for(var m=0;m<g;m++){if(f[m].nodeType==3&&f[m].textContent!=""){var n=a("<span />");n.text(f[m].textContent).hide(),a(f[m]).after(n),f[m].textContent="",g++;
+}}}a.each(f,function(i,k){if(a(k)[0].nodeType==1&&k==a(k).parent().find("> summary:first-of-type")[0]){a(k).data("processed")!=!0&&(a(k).css({display:"block",cursor:"pointer"}).data("processed",!0).addClass("detailHidden").bind("click",function(){b.toggleDetailChildren(a(this));
+}),a(e).prepend(a(k)));}else{if(a(k)[0].nodeType==3&&!k.isElementContentWhitespace&&!!a.browser.safari==!1){var h=a("<span />");h.text(k.textContent).hide(),a(k).after(h),k.textContent="";
+}else{if(a(e).find("> summary").length==0){var j=a("<summary />").text("Details").css({display:"block",cursor:"pointer"}).data("processed",!0).addClass("detailHidden").bind("click",function(){b.toggleDetailChildren(a(this));
+});a(e).prepend(j);}}}a(e).find("> :visible:not(summary:first-child)").hide();});},this.showDetailChildren=function(e){a(e).attr("open",!0),a.each(a(e).find("> *"),function(h,f){a(f).show();
+});},this.toggleDetailChildren=function(e){e.hasClass("detailHidden")?(e.removeClass("detailHidden"),b.showDetailChildren(e.parents("details")[0])):(e.addClass("detailHidden"),b.hideDetailChildren(e.parents("details")[0]));
+};var c=function(m){var n=m.createElement("details"),e,f,l;return"open" in n?(f=m.body||function(){var g=m.documentElement;return e=!0,g.insertBefore(m.createElement("body"),g.firstElementChild||g.firstChild);
+}(),n.innerHTML="<summary>a</summary>b",n.style.display="block",f.appendChild(n),l=n.offsetHeight,n.open=!0,l=l!=n.offsetHeight,f.removeChild(n),e&&f.parentNode.removeChild(f),l):!1;
+}(document);if(c==!1){if(a("details").length!==0){var d=a("<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";}');
+a("head").append(d);}a.each(a("details"),function(f,e){b.hideDetailChildren(e);});}})();});var AccessifyHTML5=function(b){var a={article:{role:"article"},aside:{role:"complementary"},nav:{role:"navigation"},output:{"aria-live":"polite"},section:{role:"region"},"[required]":{"aria-required":"true"}};
+if(b){if(b.header){a[b.header]={role:"banner"};}if(b.footer){a[b.footer]={role:"contentinfo"};}if(b.main){a[b.main]={role:"main"};}}jQuery.each(a,function(c,d){jQuery(c).attr(d);
});};
/*! http://mths.be/placeholder v2.0.6 by @mathias */
-(function(r,p,n){var w="placeholder" in p.createElement("input"),t="placeholder" in p.createElement("textarea"),o=n.fn,u=n.valHooks,l,m;
-if(w&&t){m=o.placeholder=function(){return this;};m.input=m.textarea=true;}else{m=o.placeholder=function(){var a=this;a.filter((w?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":v,"blur.placeholder":s}).data("placeholder-enabled",true).trigger("blur.placeholder");
-return a;};m.input=w;m.textarea=t;l={get:function(a){var b=n(a);return b.data("placeholder-enabled")&&b.hasClass("placeholder")?"":a.value;},set:function(a,c){var b=n(a);
-if(!b.data("placeholder-enabled")){return a.value=c;}if(c==""){a.value=c;if(a!=p.activeElement){s.call(a);}}else{if(b.hasClass("placeholder")){v.call(a,true,c)||(a.value=c);
-}else{a.value=c;}}return b;}};w||(u.input=l);t||(u.textarea=l);n(function(){n(p).delegate("form","submit.placeholder",function(){var a=n(".placeholder",this).each(v);
-setTimeout(function(){a.each(s);},10);});});n(r).bind("beforeunload.placeholder",function(){n(".placeholder").each(function(){this.value="";});});}function q(a){var b={},c=/^jQuery\d+$/;
-n.each(a.attributes,function(d,e){if(e.specified&&!c.test(e.name)){b[e.name]=e.value;}});return b;}function v(a,d){var b=this,c=n(b);if(b.value==c.attr("placeholder")&&c.hasClass("placeholder")){if(c.data("placeholder-password")){c=c.hide().next().show().attr("id",c.removeAttr("id").data("placeholder-id"));
-if(a===true){return c[0].value=d;}c.focus();}else{b.value="";c.removeClass("placeholder");b==p.activeElement&&b.select();}}}function s(){var c,b=this,d=n(b),a=d,e=this.id;
-if(b.value==""){if(b.type=="password"){if(!d.data("placeholder-textinput")){try{c=d.clone().attr({type:"text"});}catch(f){c=n("<input>").attr(n.extend(q(this),{type:"text"}));
-}c.removeAttr("name").data({"placeholder-password":true,"placeholder-id":e}).bind("focus.placeholder",v);d.data({"placeholder-textinput":c,"placeholder-id":e}).before(c);
-}d=d.removeAttr("id").hide().prev().attr("id",e).show();}d.addClass("placeholder");d[0].value=d.attr("placeholder");}else{d.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("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");});
+(function(a,c,e){var h="placeholder" in c.createElement("input"),k="placeholder" in c.createElement("textarea"),d=e.fn,j=e.valHooks,g,f;
+if(h&&k){f=d.placeholder=function(){return this;};f.input=f.textarea=true;}else{f=d.placeholder=function(){var l=this;l.filter((h?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":i,"blur.placeholder":x}).data("placeholder-enabled",true).trigger("blur.placeholder");
+return l;};f.input=h;f.textarea=k;g={get:function(m){var l=e(m);return l.data("placeholder-enabled")&&l.hasClass("placeholder")?"":m.value;},set:function(m,n){var l=e(m);
+if(!l.data("placeholder-enabled")){return m.value=n;}if(n==""){m.value=n;if(m!=c.activeElement){x.call(m);}}else{if(l.hasClass("placeholder")){i.call(m,true,n)||(m.value=n);
+}else{m.value=n;}}return l;}};h||(j.input=g);k||(j.textarea=g);e(function(){e(c).delegate("form","submit.placeholder",function(){var l=e(".placeholder",this).each(i);
+setTimeout(function(){l.each(x);},10);});});e(a).bind("beforeunload.placeholder",function(){e(".placeholder").each(function(){this.value="";});});}function b(m){var l={},n=/^jQuery\d+$/;
+e.each(m.attributes,function(p,o){if(o.specified&&!n.test(o.name)){l[o.name]=o.value;}});return l;}function i(m,n){var l=this,o=e(l);if(l.value==o.attr("placeholder")&&o.hasClass("placeholder")){if(o.data("placeholder-password")){o=o.hide().next().show().attr("id",o.removeAttr("id").data("placeholder-id"));
+if(m===true){return o[0].value=n;}o.focus();}else{l.value="";o.removeClass("placeholder");l==c.activeElement&&l.select();}}}function x(){var q,l=this,p=e(l),m=p,o=this.id;
+if(l.value==""){if(l.type=="password"){if(!p.data("placeholder-textinput")){try{q=p.clone().attr({type:"text"});}catch(n){q=e("<input>").attr(e.extend(b(this),{type:"text"}));
+}q.removeAttr("name").data({"placeholder-password":true,"placeholder-id":o}).bind("focus.placeholder",i);p.data({"placeholder-textinput":q,"placeholder-id":o}).before(q);
+}p=p.removeAttr("id").hide().prev().attr("id",o).show();}p.addClass("placeholder");p[0].value=p.attr("placeholder");}else{p.removeClass("placeholder");
+}}}(this,document,jQuery));jQuery(document).ready(function(c){AccessifyHTML5({header:"#banner",main:"#main",footer:"#colophon"});c("input[type=search]").parents("form").attr("role","search");
+var d=c("<select/>");c("#primary-nav li").each(function(){var a=c(this);if(a.find("span").length){c("<option/>",{selected:"selected",value:"",text:a.text()}).appendTo(d);
+}else{c("<option/>",{value:a.find("a").attr("href"),text:a.text()}).appendTo(d);}});if(d.children().size()>0){d.appendTo("#primary-nav").change(function(){window.location=c(this).find("option:selected").val();
+});}if(typeof(lsbase)=="string"){c('<div id="LSResult" style="display: none;"><div id="LSShadow"></div></div>').appendTo("#searchform>div");}c("input, textarea").placeholder();
+c("#content>article").fitVids();c("#trackback_url>a,.short-url").click(function(){var a=c(this).attr("title");alert(a);return false;});c(".comment_reply").click(function(){var a=c(this).attr("id").replace(/serendipity_reply_/g,"");
+c("#serendipity_replyTo").val(a);});c(".comment_source_ownerlink").click(function(){var a=c(this).attr("title");return confirm(a);});c("#c").insertAfter("#feedback");
+c(".comment_reply").click(function(){c("#reply-to-comment").remove();var a='<p id="reply-to-comment">'+c("#reply-to-hint").text()+" "+c("#serendipity_replyTo :selected").text()+"</p>";
+c("#serendipity_replyTo").after(a);});c("#reply-to-hint,#serendipity_replyTo").addClass("visuallyhidden");c(".reply_origin").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=c(this.hash);
+a=a.length&&a||c("[name="+this.hash.slice(1)+"]");if(a.length){var b=a.offset().top;c("html,body").animate({scrollTop:b},700);return false;}}});});
View
2 lang_de.inc.php
@@ -5,6 +5,7 @@
@define('TWOK11_WEBFONTS', 'Einen von Google gehosteten Webfont nutzen?');
@define('TWOK11_NOWEBFONT', 'Keinen Webfont einbinden');
@define('TWOK11_USERSTYLES', 'user.css einbinden? (Muss selbst im Templateverzeichnis angelegt werden! Generator: http://yellowled.github.com)');
+@define('TWOK11_REFCOMMENTS', 'Kommentaren (falls vorhanden) einen Link zum Kommentar, auf den geantwortet wurde, hinzufügen?');
// Sprachkonstanten
@define('TWOK11_NAV_TITLE', 'Navigation');
@define('TWOK11_PAG_TITLE', 'Pagination');
@@ -22,3 +23,4 @@
@define('TWOK11_SHORT_URL_HINT', 'Dieser Link ist nicht aktiv. Er enthält die Kurz-URL zu diesem Eintrag. Sie können diese URL benutzen, um diesen Eintrag zu verlinken. Um den Link zu kopieren, klicken Sie ihn mit der rechten Maustaste an und wählen Verknüpfung kopieren im Internet Explorer oder Linkadresse kopieren in Mozilla/Firefox.');
@define('TWOK11_EMPTYTRACKBACK', 'Die Anzeige des Inhaltes dieses Trackbacks ist leider nicht möglich.');
@define('TWOK11_TRACKBACKPREVIEW', 'Vorschau anzeigen');
+@define('TWOK11_REPLYORIGIN', 'Antwort auf');
View
2 lang_en.inc.php
@@ -5,6 +5,7 @@
@define('TWOK11_WEBFONTS', 'Use a webfont, hosted by Google?');
@define('TWOK11_NOWEBFONT', 'Include no webfont');
@define('TWOK11_USERSTYLES', 'Include user.css? (You need to create that file in your template directory. Generator: http://yellowled.github.com)');
+@define('TWOK11_REFCOMMENTS', 'Add link to related comment to comments (if they are replies to another comment)?');
// Lang constants
@define('TWOK11_NAV_TITLE', 'Navigation');
@define('TWOK11_PAG_TITLE', 'Pagination');
@@ -22,3 +23,4 @@
@define('TWOK11_SHORT_URL_HINT', 'This link is not meant to be clicked. It contains the short URL for this entry. You can use this URL to link to this entry. To copy the link, right click and select Copy Shortcut in Internet Explorer or Copy Link Location in Mozilla.');
@define('TWOK11_EMPTYTRACKBACK', 'Unfortunately, the contents of this trackback can not be displayed.');
@define('TWOK11_TRACKBACKPREVIEW', 'Show preview');
+@define('TWOK11_REPLYORIGIN', 'Origin');

0 comments on commit bd89302

Please sign in to comment.
Something went wrong with that request. Please try again.