This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Non-Small screens */ | |
@media only screen and (min-width: 641px) { | |
} | |
/* Large screens */ | |
@media only screen and (min-width: 1025px) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
{if '{exp:browser_detect:browser}' == 'IE8'} | |
<html class="no-js lt-ie9" lang="en"> | |
{if:elseif '{exp:browser_detect:browser}' == 'IE9'} | |
<html class="no-js lt-ie10" lang="en"> | |
{if:else} | |
<html class="no-js" lang="en"> | |
{/if} | |
<head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="wygwam"> | |
{exp:grid_images}{page_text}{/exp:grid_images} | |
</div> | |
{page_images} | |
{if page_images:image_size == '1/2 Left'} | |
{exp:ce_img:pair src="{page_images:image}" width="640" allow_scale_larger="no" crop="no" quality="70"}<meta class="grid_images" id="grid_source_{page_images:count}" data-src="{made}" data-float="left" data-width="half">{/exp:ce_img:pair} | |
{if:elseif page_images:image_size == '1/2 Right'} | |
{exp:ce_img:pair src="{page_images:image}" width="640" allow_scale_larger="no" crop="no" quality="70"}<meta class="grid_images" id="grid_source_{page_images:count}" data-src="{made}" data-float="right" data-width="half">{/exp:ce_img:pair} | |
{if:else} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="wygwam"> | |
{exp:grid_images}{page_text}{/exp:grid_images} | |
</div> | |
{page_images} | |
{if page_images:image_size == '1/2 Left'} | |
<meta class="grid_images" id="grid_source_{page_images:count}" data-src="{page_images:image}" data-float="left" data-width="half"> | |
{if:elseif page_images:image_size == '1/2 Right'} | |
<meta class="grid_images" id="grid_source_{page_images:count}" data-src="{page_images:image}" data-float="right" data-width="half"> | |
{if:else} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Grid Images | |
$(document).ready(function() { | |
if($('.grid_images').length && $('.grid_image').length) { | |
$('.grid_image').each(function() { | |
var gridID = $(this).attr('id'); | |
gridID = gridID.replace('grid_image_', ''); | |
var gridImage = $('#grid_source_' + gridID).attr('data-src'); | |
var gridFloat = $('#grid_source_' + gridID).attr('data-float'); | |
var gridWidth = $('#grid_source_' + gridID).attr('data-width'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.grid_image_left { float: left; padding-right: 30px; } | |
.grid_image_right { float: right; padding-left: 30px; } | |
.grid_image_half { width: 50%; } | |
.grid_image_full { width: 100%; } | |
.grid_image img { margin-bottom: 30px; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// IE8 Font Awesome Fix | |
if ($('html').hasClass('lt-ie9')) { | |
$(document).ready(function() { | |
setTimeout(function() { | |
$('.fa').each(function() { | |
$(this).parent().trigger('focus'); | |
}); | |
$('html, body').animate({ scrollTop: 0 }, 0); | |
}, 500); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Parallax | |
$(document).ready(function(){ | |
parallax(); | |
$window = $(window); | |
$window.scroll(function() { | |
parallax(); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function saCSV($table, filename) { | |
var $rows = $table.find('tr:has(td)'); | |
var column_delimiter_temp = String.fromCharCode(11); | |
var row_delimiter_temp = String.fromCharCode(0); | |
var column_delimiter = '","'; | |
var row_delimiter = '"\r\n"'; | |
var csv = '"'+ $rows.map(function (i, row) { | |
var $row = $(row); | |
var $col = $row.find('td'); | |
return $col.map(function (j, col) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add to header or function file: | |
<?php | |
// URL Segments and Master ID | |
// | |
// Segment Variables: $GLOBALS['segment']['1'], $GLOBALS['segment']['2'], etc. | |
// Master ID Variable: $GLOBALS['master_id'] | |
global $segment; | |
global $master_id; |