Updated 2k11 to v1.1.
This commit is contained in:
parent
c9b1bfd5dd
commit
9e4aba597b
@ -24,7 +24,7 @@
|
||||
{if $template_option.userstyles == true}
|
||||
<link rel="stylesheet" href="{serendipity_getFile file="user.css"}">
|
||||
{/if}
|
||||
<script src="{serendipity_getFile file="js/modernizr-2.0.6.min.js"}"></script>
|
||||
<script id="modernizr" src="{serendipity_getFile file="js/modernizr-2.0.6.min.js"}"></script>
|
||||
<link rel="alternate" type="application/rss+xml" title="{$blogTitle} RSS feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/index.rss2">
|
||||
<link rel="alternate" type="application/x.atom+xml" title="{$blogTitle} Atom feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/atom.xml">
|
||||
{if $entry_id}
|
||||
|
@ -1,4 +1,4 @@
|
||||
Name: 2k11
|
||||
Author: Matthias Mees, Veit Lehmann
|
||||
Date: 2012-01-30
|
||||
Date: 2012-01-31
|
||||
Require Serendipity: 1.6
|
||||
|
@ -1,5 +1,3 @@
|
||||
// https://github.com/scottjehl/iOS-Orientationchange-Fix
|
||||
(function(m){var l=m.document;if(!l.querySelector){return}var n=l.querySelector("meta[name=viewport]"),a=n&&n.getAttribute("content"),k=a+",maximum-scale=1",d=a+",maximum-scale=10",g=true,j,i,h,c;if(!n){return}function f(){n.setAttribute("content",d);g=true}function b(){n.setAttribute("content",k);g=false}function e(o){c=o.accelerationIncludingGravity;j=Math.abs(c.x);i=Math.abs(c.y);h=Math.abs(c.z);if(!m.orientation&&(j>7||((h>6&&i<8||h<8&&i>6)&&j>5))){if(g){b()}}else{if(!g){f()}}}m.addEventListener("orientationchange",f,false);m.addEventListener("devicemotion",e,false)})(this);
|
||||
// https://github.com/davatron5000/FitVids.js
|
||||
(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="­<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^='http://player.vimeo.com']","iframe[src^='http://www.youtube.com']","iframe[src^='http://www.kickstarter.com']","object","embed"];if(c.customSelector){f.push(c.customSelector)}var g=a(this).find(f.join(","));g.each(function(){var k=a(this);if(this.tagName.toLowerCase()=="embed"&&k.parent("object").length||k.parent(".fluid-width-video-wrapper").length){return}var h=this.tagName.toLowerCase()=="object"?k.attr("height"):k.height(),i=h/k.width();if(!k.attr("id")){var j="fitvid"+Math.floor(Math.random()*999999);k.attr("id",j)}k.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",(i*100)+"%");k.removeAttr("height").removeAttr("width")})})}})(jQuery);
|
||||
/*! http://mths.be/placeholder v1.8.7 by @mathias */
|
||||
@ -16,6 +14,9 @@ jQuery(document).ready(function($) {
|
||||
var $select = $('<select/>');
|
||||
$('#primary-nav li').each(function(){var $el=$(this);if($el.find('span').length){$('<option/>',{'selected':'selected','value':'','text':$el.text()}).appendTo($select);}else{$('<option/>',{'value':$el.find('a').attr('href'),'text':$el.text()}).appendTo($select);}});
|
||||
if($select.children().size()>0){$select.appendTo('#primary-nav').change(function(){window.location=$(this).find('option:selected').val();});}
|
||||
// Livesearch
|
||||
console.log(typeof(lsbase));
|
||||
if (typeof(lsbase) == 'string') { $('<div id="LSResult" style="display: none;"><div id="LSShadow"></div></div>').appendTo('#searchform>div'); }
|
||||
// Fit embedded videos
|
||||
$('#content>article').fitVids();
|
||||
// placeholder polyfill
|
||||
|
2
templates/2k11/js/ios-orientationchange.min.js
vendored
Normal file
2
templates/2k11/js/ios-orientationchange.min.js
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
// https://github.com/scottjehl/iOS-Orientationchange-Fix
|
||||
(function(m){var l=m.document;if(!l.querySelector){return}var n=l.querySelector("meta[name=viewport]"),a=n&&n.getAttribute("content"),k=a+",maximum-scale=1",d=a+",maximum-scale=10",g=true,j,i,h,c;if(!n){return}function f(){n.setAttribute("content",d);g=true}function b(){n.setAttribute("content",k);g=false}function e(o){c=o.accelerationIncludingGravity;j=Math.abs(c.x);i=Math.abs(c.y);h=Math.abs(c.z);if(!m.orientation&&(j>7||((h>6&&i<8||h<8&&i>6)&&j>5))){if(g){b()}}else{if(!g){f()}}}m.addEventListener("orientationchange",f,false);m.addEventListener("devicemotion",e,false)})(this);
|
11
templates/2k11/js/modernizr-2.0.6.min.js
vendored
11
templates/2k11/js/modernizr-2.0.6.min.js
vendored
File diff suppressed because one or more lines are too long
2
templates/2k11/js/respond.min.js
vendored
Normal file
2
templates/2k11/js/respond.min.js
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/*! 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 u=e.document,r=u.documentElement,h=[],j=[],p=[],n={},g=30,f=u.getElementsByTagName("head")[0]||r,b=f.getElementsByTagName("link"),d=[],a=function(){var C=b,x=C.length,A=0,z,y,B,w;for(;A<x;A++){z=C[A],y=z.href,B=z.media,w=z.rel&&z.rel.toLowerCase()==="stylesheet";if(!!y&&w&&!n[y]){if(z.styleSheet&&z.styleSheet.rawCssText){l(z.styleSheet.rawCssText,y,B);n[y]=true}else{if(!/^([a-zA-Z:]*\/\/)/.test(y)||y.replace(RegExp.$1,"").split("/")[0]===e.location.host){d.push({href:y,media:B})}}}}t()},t=function(){if(d.length){var w=d.shift();m(w.href,function(x){l(x,w.href,w.media);n[w.href]=true;t()})}},l=function(H,w,y){var F=H.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),I=F&&F.length||0,w=w.substring(0,w.lastIndexOf("/")),x=function(J){return J.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+w+"$2$3")},z=!I&&y,C=0,B,D,E,A,G;if(w.length){w+="/"}if(z){I=1}for(;C<I;C++){B=0;if(z){D=y;j.push(x(H))}else{D=F[C].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;j.push(RegExp.$2&&x(RegExp.$2))}A=D.split(",");G=A.length;for(;B<G;B++){E=A[B];h.push({media:E.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:j.length-1,hasquery:E.indexOf("(")>-1,minw:E.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:E.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}}i()},k,q,v=function(){var y,z=u.createElement("div"),w=u.body,x=false;z.style.cssText="position:absolute;font-size:1em;width:1em";if(!w){w=x=u.createElement("body")}w.appendChild(z);r.insertBefore(w,r.firstChild);y=z.offsetWidth;if(x){r.removeChild(w)}else{w.removeChild(z)}y=o=parseFloat(y);return y},o,i=function(H){var w="clientWidth",A=r[w],G=u.compatMode==="CSS1Compat"&&A||u.body[w]||A,C={},F=b[b.length-1],y=(new Date()).getTime();if(H&&k&&y-k<g){clearTimeout(q);q=setTimeout(i,g);return}else{k=y}for(var D in h){var J=h[D],B=J.minw,I=J.maxw,z=B===null,K=I===null,x="em";if(!!B){B=parseFloat(B)*(B.indexOf(x)>-1?(o||v()):1)}if(!!I){I=parseFloat(I)*(I.indexOf(x)>-1?(o||v()):1)}if(!J.hasquery||(!z||!K)&&(z||G>=B)&&(K||G<=I)){if(!C[J.media]){C[J.media]=[]}C[J.media].push(j[J.rules])}}for(var D in p){if(p[D]&&p[D].parentNode===f){f.removeChild(p[D])}}for(var D in C){var L=u.createElement("style"),E=C[D].join("\n");L.type="text/css";L.media=D;f.insertBefore(L,F.nextSibling);if(L.styleSheet){L.styleSheet.cssText=E}else{L.appendChild(u.createTextNode(E))}p.push(L)}},m=function(w,y){var x=c();if(!x){return}x.open("GET",w,true);x.onreadystatechange=function(){if(x.readyState!=4||x.status!=200&&x.status!=304){return}y(x.responseText)};if(x.readyState==4){return}x.send(null)},c=(function(){var w=false;try{w=new XMLHttpRequest()}catch(x){w=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return w}})();a();respond.update=a;function s(){i(true)}if(e.addEventListener){e.addEventListener("resize",s,false)}else{if(e.attachEvent){e.attachEvent("onresize",s)}}})(this);
|
14
templates/2k11/plugin_commentsearch_searchresults.tpl
Normal file
14
templates/2k11/plugin_commentsearch_searchresults.tpl
Normal file
@ -0,0 +1,14 @@
|
||||
<aside class="comment_results">
|
||||
<h3>{$CONST.COMMENT_SEARCHRESULTS|sprintf:$comment_searchresults}:</h3>
|
||||
{if $comment_results}
|
||||
<ul class="plainList">
|
||||
{foreach from=$comment_results item="result"}
|
||||
<li><span>{if $result.type == 'TRACKBACK'}<a href="{$result.url|@escape}">{else}<b>{/if}{$result.author|@escape}{if $result.type == 'TRACKBACK'}</a>{else}</b>{/if} {$CONST.IN} <a href="{$result.permalink|@escape}">{$result.title|@escape}</a> {$CONST.ON} <time datetime="{$result.ctimestamp|@serendipity_smarty_html5time}">{$result.ctimestamp|@formatTime:$template_option.date_format}</time>:</span>
|
||||
{$result.comment|@strip_tags|@truncate:200:" ... "}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{else}
|
||||
<p>{$CONST.NO_ENTRIES_TO_PRINT}</p>
|
||||
{/if}
|
||||
</aside>
|
@ -1,7 +1,7 @@
|
||||
<section class="staticpage_results">
|
||||
<aside class="staticpage_results">
|
||||
<h3>{$CONST.STATICPAGE_SEARCHRESULTS|sprintf:$staticpage_searchresults}</h3>
|
||||
{if $staticpage_results}
|
||||
<ul>
|
||||
<ul class="plainList">
|
||||
{foreach from=$staticpage_results item="result"}
|
||||
<li><span><a href="{$result.permalink|@escape}" title="{$result.pagetitle|@escape}">{$result.headline}</a> ({$result.realname})</span>
|
||||
{$result.content|@strip_tags|@strip|@truncate:200:" ... "}</li>
|
||||
@ -10,4 +10,4 @@
|
||||
{else}
|
||||
<p>{$CONST.NO_ENTRIES_TO_PRINT}</p>
|
||||
{/if}
|
||||
</section>
|
||||
</aside>
|
||||
|
@ -223,6 +223,7 @@ h3 {
|
||||
h4, h5, h6,
|
||||
.serendipity_staticpage small,
|
||||
.staticpage_results h3,
|
||||
.comment_results h3,
|
||||
.serendipity_freeTag { font-size: 1em; }
|
||||
|
||||
h4, h5, h6,
|
||||
@ -233,7 +234,7 @@ audio, video,
|
||||
#trackback_url,
|
||||
.manage_comments,
|
||||
.plugin_comment_wrap,
|
||||
p.whiteline, #searchform div,
|
||||
p.whiteline, #searchform>div,
|
||||
.serendipity_entry .plainList,
|
||||
#page, #primary-nav,
|
||||
.serendipity_calendar,
|
||||
@ -293,7 +294,9 @@ fieldset,
|
||||
.serendipity_pagination,
|
||||
.serendipity_comment_captcha .captcha,
|
||||
.serendipity_comment_captcha label,
|
||||
.serendipity_freeTag { display: block; }
|
||||
.serendipity_freeTag,
|
||||
.staticpage_results li>span,
|
||||
.comment_results li>span { display: block; }
|
||||
|
||||
#primary-nav select {
|
||||
margin: .5em 1em;
|
||||
@ -332,7 +335,7 @@ fieldset,
|
||||
margin-bottom: 2.1429em;
|
||||
}
|
||||
|
||||
#searchform div { padding: 0 1em; }
|
||||
#searchform>div { padding: 0 1em; }
|
||||
|
||||
#serendipityQuickSearchTermField,
|
||||
#serendipity_comment input[type=text],
|
||||
@ -410,6 +413,7 @@ fieldset,
|
||||
|
||||
.serendipity_search,
|
||||
.staticpage_results,
|
||||
.comment_results,
|
||||
.nocontent { margin: 0 1em 1em; }
|
||||
|
||||
.serendipity_byline,
|
||||
@ -735,15 +739,45 @@ pre .geshi {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.epicon { display: none; visibility: hidden; }
|
||||
|
||||
.serendipity_entrypaging_left,
|
||||
.serendipity_entrypaging_right { display: block; }
|
||||
|
||||
.serendipity_entrypaging_left { text-align: left; }
|
||||
.serendipity_entrypaging_left:before { content: "← "; }
|
||||
.serendipity_entrypaging_right { text-align: right; }
|
||||
.serendipity_entrypaging_right:after { content: " →"; }
|
||||
|
||||
.serendipity_entrypaging>.epicon { display: none; visibility: hidden; }
|
||||
|
||||
.generatedcontent .epicon { display: none; visibility: hidden; }
|
||||
.generatedcontent .serendipity_entrypaging_left:before { content: "← "; }
|
||||
.generatedcontent .serendipity_entrypaging_right:after { content: " →"; }
|
||||
|
||||
#LSResult {
|
||||
background: #ccdee7;
|
||||
margin-top: 1px;
|
||||
opacity: .9;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
#LSShadow {
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
color: transparent;
|
||||
border-right: 0px none;
|
||||
border-bottom: 0px none;
|
||||
}
|
||||
|
||||
.serendipity_livesearch_result {
|
||||
border: 1px solid #aaa;
|
||||
bottom: 0px;
|
||||
right: 0px;
|
||||
}
|
||||
|
||||
#LSResult,
|
||||
.serendipity_livesearch_result {
|
||||
-webkit-border-radius: 3px;
|
||||
-moz-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
/* Helper classes */
|
||||
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
|
||||
@ -855,9 +889,9 @@ pre .geshi {
|
||||
|
||||
#identity h1 { margin: 1em 0 0; }
|
||||
|
||||
#searchform div { margin-top: 4.4em; }
|
||||
#searchform>div { margin-top: 4.4em; }
|
||||
|
||||
#identity p, #searchform div { margin-bottom: 1.5em; }
|
||||
#identity p, #searchform>div { margin-bottom: 1.5em; }
|
||||
|
||||
#primary-nav { margin-bottom: 2em; }
|
||||
|
||||
@ -909,8 +943,8 @@ pre .geshi {
|
||||
#sidebar_right .sidebar_plugin,
|
||||
.ie7 #sidebar_right .sidebar_plugin { margin: 0 1em 2em 2em; }
|
||||
|
||||
#searchform div,
|
||||
.ie7 #searchform div { padding: 0 1em 0 2em; }
|
||||
#searchform>div,
|
||||
.ie7 #searchform>div { padding: 0 1em 0 2em; }
|
||||
|
||||
.commentlevel-1 { margin-left: 1em; }
|
||||
.commentlevel-2 { margin-left: 2em; }
|
||||
@ -927,7 +961,7 @@ pre .geshi {
|
||||
#identity h1 { padding: 0 1em; }
|
||||
|
||||
#identity p,
|
||||
#searchform div { padding: 0 2em; }
|
||||
#searchform>div { padding: 0 2em; }
|
||||
|
||||
#primary-nav ul { margin: 0 1em; }
|
||||
|
||||
@ -952,6 +986,7 @@ pre .geshi {
|
||||
|
||||
.serendipity_search,
|
||||
.staticpage_results,
|
||||
.comment_results,
|
||||
.nocontent,
|
||||
.serendipity_entrypaging { margin: 0 2em 1em; }
|
||||
|
||||
@ -975,7 +1010,6 @@ pre .geshi {
|
||||
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; }
|
||||
a, a:visited { text-decoration: underline; }
|
||||
abbr[title]:after { content: " (" attr(title) ")"; }
|
||||
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }
|
||||
pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
|
||||
thead { display: table-header-group; }
|
||||
tr, img { page-break-inside: avoid; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user