### SNIPPETS ###
#patterns More-or-Less Mixins
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <title>Single-Column Responsive Email Template</title> | |
| <style> | |
| @media only screen and (min-device-width: 541px) { | |
| .content { |
| <?php | |
| /************************************************** | |
| Custom configuration bootstrap file for ExpressionEngine | |
| 1) Place config.php above site root | |
| 2) Require this bootstrap file at the bottom of the config and database files: | |
| system/expressionengine/config/config.php | |
| Example: require(realpath(dirname(__FILE__) . '/../../../config.php')); |
### OPTIMISATION ###
##IMAGES preload
I freaking love working with technologies like Grunt and Gulp, and wanted to share how to get my current EE front-end workflow set up. With a few tweaks, this can also be used with virtually any other sites (I've used it with Laravel, static sites, Craft, etc).
| #!/bin/bash | |
| # File: exp_permissions.sh | |
| # Description: Sets permssions on a ExpressionEngine 2 install | |
| # | |
| # Copyright 2010 George Ornbo (Shape Shed) | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # |
CONTENT:
| (function($){ | |
| $(function(){ | |
| var $form = $('#search'), // Search form | |
| $target = $('#results'), // Results container | |
| rp = 'search/ajax-results'; // Template for results only | |
| // Function to execute on success | |
| var success = function(data, status, xhr) { | |
| $target.html(data); | |
| }; |