Skip to content

Instantly share code, notes, and snippets.

name = InnoEvent
description = theme created by students of Web Development for InnoEvent
version = VERSION
core = 7.x
engine = phptemplate
stylesheets[all][] = css/layout.css
stylesheets[all][] = css/style.css
stylesheets[all][] = css/colors.css
@PavlaK
PavlaK / app.js
Last active August 29, 2015 14:20 — forked from skypanther/app.js
var Utils = {
/* modified version of https://gist.github.com/1243697
* adds detection of file extension rather than hard-coding .jpg as in the original
*/
_getExtension: function(fn) {
// from http://stackoverflow.com/a/680982/292947
var re = /(?:\.([^.]+))?$/;
var tmpext = re.exec(fn)[1];
return (tmpext) ? tmpext : '';
},