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
<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
<!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
/* 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
// Browser Class | |
$(document).ready(function() { | |
var agent = navigator.userAgent; | |
var browser; | |
if ( /Trident\/7.0/i.test(agent) ) { | |
browser = 'ie11'; | |
} | |
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
{exp:switchee variable="{segment_1}" parse="inward"} | |
{!-- French --} | |
{case value="fr"} | |
{switchee variable="{segment_2}" parse="inward"} | |
{case value="services-famille"} |
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
<? | |
$dbhost = 'localhost'; | |
$dbuser = 'db_user'; | |
$dbpass = 'db_pass'; | |
$dbname = 'db_name'; | |
$ftphost = 'ftp_host'; | |
$ftpuser = 'ftp_user'; | |
$ftppass = 'ftp_pass'; |
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
$(document).ready(function() { | |
if($('#bonus').length ) { | |
if ( /Android/i.test(navigator.userAgent) ) { | |
$('.store-ios').css('opacity', '.25'); | |
$('.store-bb').css('opacity', '.25'); | |
} | |
if ( /BlackBerry/i.test(navigator.userAgent) ) { | |
$('.store-ios').css('opacity', '.25'); | |
$('.store-android').css('opacity', '.25'); | |
} |
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
// Placeholder Focus Kill | |
$('.has-placeholder').on('focus', function() { | |
var $field = $(this); | |
$field.attr({placeholderinactive : $field.attr('placeholder')}).removeAttr('placeholder'); | |
}); | |
$('.has-placeholder').on('blur', function() { | |
var $field = $(this); | |
$field.attr({placeholder : $field.attr('placeholderinactive')}).removeAttr('placeholderinactive'); |
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
// JS | |
if (!Modernizr.input.placeholder) { | |
$('.placeholder-fallback').addClass('fallback'); | |
$('.has-placeholder').keyup(function() { | |
var fieldValue = $(this).val(); | |
var fieldname = $(this).attr('name'); | |
if (fieldValue === '') { |