This file contains 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
/* | |
========================================================================== | |
Import Bootstrap Stuff | |
========================================================================== | |
*/ | |
/* Core variables and mixins */ | |
@import "less/variables.less"; | |
@import "less/mixins/vendor-prefixes.less"; | |
@import "less/mixins/alerts.less"; |
This file contains 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="form-horizontal"> | |
<div class="form-group"><label class="control-label col-md-3">Full Name</label><div class="col-md-9">[text* your-name class:form-control]</div></div> | |
<div class="form-group"><label class="control-label col-md-3">Email Address</label><div class="col-md-9">[email* your-email class:form-control]</div></div> | |
<div class="form-group"><label class="control-label col-md-3">Subject</label><div class="col-md-9">[text your-subject class:form-control]</div></div> | |
<div class="form-group"><label class="control-label col-md-3">Message</label><div class="col-md-9">[textarea your-message x5 class:form-control]</div></div> | |
<div class="form-group"><div class="col-md-offset-3 col-md-9">[submit class:btn class:btn-primary "Send"]</div></div> | |
</div> |
This file contains 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="row"> | |
<div class="col-md-6 form-group"><label class="sr-only">Full Name</label>[text* your-name class:form-control placeholder "Full Name"]</div> | |
<div class="col-md-6 form-group"><label class="sr-only">Email Address</label>[email* your-email class:form-control placeholder "Email Address"]</div> | |
</div> | |
<div class="form-group"><label class="sr-only">Subject</label>[text your-subject class:form-control placeholder "Subject"]</div> | |
<div class="form-group"><label class="sr-only">Message</label>[textarea your-message x5 class:form-control placeholder "message"]</div> | |
<div class="form-group">[submit class:btn class:btn-primary "Send"]</div> |
This file contains 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
jQuery(document).ready(function ($) { | |
'use strict'; | |
/* | |
References | |
http://codeblow.com/questions/method-to-check-whether-tinymce-is-active-in-wordpress/ | |
https://wordpress.org/support/topic/tinymceactiveeditorgetcontentcontent-does-not-work-with-tinymce-advanced | |
*/ |
This file contains 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
$('.buy-now').on('click', function (event) { | |
event.preventDefault(); | |
var el = $(this), | |
item_download = el.attr('data-id'), | |
current_page = el.attr('data-current'), | |
item_price_id = false; | |
$.ajax({ | |
type: 'POST', |
This file contains 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
jQuery(document).ready(function ($) { | |
// The long version | |
var scrollOffset; | |
if ($('body').hasClass('admin-bar')) { | |
scrollOffset = 64; | |
} else { | |
scrollOffset = 32; | |
} |
This file contains 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
[ | |
{ | |
"State": "Austria", | |
"Adopted": "1999-01-01[15]", | |
"PreviousCurrency": "Schilling", | |
"ISO": "AT" | |
}, | |
{ | |
"State": "Belgium", | |
"Adopted": "1999-01-01[15]", |
This file contains 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> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Interstitial Tracking Page</title> | |
<!-- Google Analytics | https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced?hl=en --> | |
<script type="text/javascript"> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
This file contains 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
{ | |
"regions": { | |
"alsace": [67, 68], | |
"aquitaine": [40, 47, 33, 24, 64], | |
"auvergne": [43, 3, 15, 63], | |
"basse-normandie": [14, 61, 50], | |
"bourgogne": [21, 58, 71, 89], | |
"bretagne": [29, 35, 22, 56], | |
"centre": [45, 37, 41, 28, 36, 18], | |
"champagne-ardenne": [10, 8, 52, 51], |
This file contains 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
<?php | |
/* Strip out un-supported HTML tags */ | |
$content = strip_tags($content, '<strong><em><del><li><code><pre>'); | |
/* Properly format message */ | |
$content = str_replace(array('<strong>', '</strong>'), array('*', '*'), $content); | |
$content = str_replace(array('<em>', '</em>'), array('_', '_'), $content); | |
$content = str_replace(array('<del>', '</del>'), array('~', '~'), $content); | |
$content = str_replace(array('<li>', '</li>'), array('•', ''), $content); |
OlderNewer