From 9e4aba597b5956faf6194e31481416c69e4ba0b7 Mon Sep 17 00:00:00 2001 From: Matthias Mees Date: Wed, 1 Feb 2012 16:24:53 +0100 Subject: [PATCH] Updated 2k11 to v1.1. --- templates/2k11/index.tpl | 2 +- templates/2k11/info.txt | 2 +- templates/2k11/js/2k11.js | 5 +- .../2k11/js/ios-orientationchange.min.js | 2 + templates/2k11/js/modernizr-2.0.6.min.js | 11 +++- templates/2k11/js/respond.min.js | 2 + .../plugin_commentsearch_searchresults.tpl | 14 +++++ .../2k11/plugin_staticpage_searchresults.tpl | 6 +- templates/2k11/style.css | 60 +++++++++++++++---- 9 files changed, 82 insertions(+), 22 deletions(-) create mode 100644 templates/2k11/js/ios-orientationchange.min.js create mode 100644 templates/2k11/js/respond.min.js create mode 100644 templates/2k11/plugin_commentsearch_searchresults.tpl diff --git a/templates/2k11/index.tpl b/templates/2k11/index.tpl index 6ba9e24f..4a1c47fa 100644 --- a/templates/2k11/index.tpl +++ b/templates/2k11/index.tpl @@ -24,7 +24,7 @@ {if $template_option.userstyles == true} {/if} - + {if $entry_id} diff --git a/templates/2k11/info.txt b/templates/2k11/info.txt index 4d7b70e9..e1473491 100644 --- a/templates/2k11/info.txt +++ b/templates/2k11/info.txt @@ -1,4 +1,4 @@ Name: 2k11 Author: Matthias Mees, Veit Lehmann -Date: 2012-01-30 +Date: 2012-01-31 Require Serendipity: 1.6 diff --git a/templates/2k11/js/2k11.js b/templates/2k11/js/2k11.js index 65870eea..a2b92b9e 100644 --- a/templates/2k11/js/2k11.js +++ b/templates/2k11/js/2k11.js @@ -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="­";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('
').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 = $('