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
CKEDITOR.editorConfig = function(config) { | |
config.scayt_autoStartup = true; | |
}; |
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
<script> | |
var menu = $('#contact-content'); | |
$('.sidebar #contact-heading').click(function(){ | |
var heading = $(this); | |
if ( $(window).width() < 600 ) { | |
if( menu.is(':visible') ) { | |
menu.slideUp('fast'); | |
if( heading.hasClass('open') ) { |
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
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTPS} =on | |
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
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
$('form[data-infield]').on('keyup', 'input[type="text"], input[type="email"], textarea', function(){ | |
var input = $(this); | |
input.toggleClass('not-empty', !!input.val()); | |
}); |
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
var exceptedLinks = [ | |
'.webinars .banner .share a', | |
'.someotherlink' | |
] | |
$('a').each(function() { | |
var link = $(this); | |
excepted = false; | |
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
$('a').each(function() { | |
// get this site's URL | |
var a = new RegExp('/' + window.location.host + '/'); | |
// check if the link is an actual web link | |
if(this.href.match(/^http/)){ | |
// check if the link contains this site's URL | |
if(!a.test(this.href)) { | |
$(this).click(function(event) { | |
event.preventDefault(); |
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:stash:parse process='end' no_results_prefix='rating'} | |
{exp:channel:entries | |
channel='{product_channels}' | |
entry_id='{stash:entry_ids}' | |
limit='7' | |
disable='member_data|category_fields' | |
orderby='title' | |
sort='asc' | |
paginate='both' | |
status='not closed' |
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
<IfModule mod_deflate.c> | |
# Force compression for mangled headers. | |
# http://developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping | |
<IfModule mod_setenvif.c> | |
<IfModule mod_headers.c> | |
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding | |
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding | |
</IfModule> | |
</IfModule> |
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
{!-- if the template is requested with Ajax, return JSON data. Otherwise, display a normal page --} | |
{if ajax} | |
{exp:http_header content_type='application/json'} | |
{"success": {if error == 1}false{if:else}true{/if}, "heading": "{heading}", "message": "{exp:low_replace find='NEWLINE'}{content}{/exp:low_replace}"} | |
{/if} | |
{if not_ajax} | |
{embed='_global/document_head' page_title='{heading}'} | |
<body class="single"> | |
{header} |
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
var formReturn = '.form-return'; | |
var $submitBtn = $(this).find('input[type="submit"]'); | |
$('form.ajax').ajaxForm({ | |
beforeSubmit: function(){ | |
$submitBtn.attr('value', 'Submitting...'); | |
}, | |
target: formReturn, | |
success: function(){ | |
$(formReturn).show(); |