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
{ | |
"name": "WordPress-Composer-Example", | |
"description": "", | |
"repositories": [ | |
{ | |
"type": "package", | |
"package": { | |
"name": "pantheon-systems/wordpress", | |
"version": "4.7.2", | |
"dist": { |
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 | |
if (isset($_POST['environment'])){ | |
$req = pantheon_curl('https://api.live.getpantheon.com/sites/self/settings', NULL, 8443); | |
$meta = json_decode($req['body'], true); | |
if($meta['allow_cacheserver'] != 1){ | |
$req = pantheon_curl('https://api.live.getpantheon.com/sites/self/settings', '{"allow_cacheserver":true}', 8443, 'PUT'); | |
} | |
} |
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
{ | |
"name" : "WordPress-Composer", | |
"description" : "Example managing WordPress with Composer", | |
"version" : "0.1.0", | |
"type" : "project", | |
"keywords" : [], | |
"minimum-stability" : "dev", | |
"repositories" : [ | |
{ | |
"type" : "composer", |
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
// ---- | |
// libsass (v3.1.0-beta) | |
// ---- | |
//BREAKPOINTS | |
$Mobile: 480px; | |
$Landscape: 801px; | |
$Desktop: 1400px; | |
//MEDIA QUERY MIXIN |
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
add_theme_support( 'typecase', array( | |
// array of simple options | |
'simple' => array( | |
// each array is an option | |
// these options are displayed in the main theme fonts panel section | |
array( | |
// the label displayed in customizer | |
'label' => 'Body Copy', | |
// the CSS selector to apply the font to | |
'selector' => 'body', |
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
// ---- | |
// libsass (v3.0.1) | |
// ---- | |
h1{ | |
font-size: 48px; | |
@media only screen and (max-width: 768px){ | |
font-size: 32px; | |
} | |
@media only screen and (max-width: 480px){ |
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
// Load plugins | |
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
minifyCss = require("gulp-minify-css"), | |
autoprefixer = require("gulp-autoprefixer"), | |
imagemin = require('gulp-imagemin'), | |
notify = require("gulp-notify"), | |
rename = require("gulp-rename"), | |
cmq = require('gulp-combine-media-queries'), | |
uglify = require('gulp-uglify'), |
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
/* SASS */ | |
$tablet_zoom: (768px / $Desktop) * 100%; | |
@media (min-width: $Mobile + 1px) and (max-width: $Desktop - 1px) { html { zoom: $tablet_zoom; } } | |
/* jQuery */ | |
/* TABLET ZOOM FIX */ | |
if ( size.indexOf("portrait") !==-1 || size.indexOf("landscape") !==-1 ){ | |
var html_zoom = ( ( ( $(window).width() - 10 ) / 970 ) * 100 ) + '%'; | |
console.log(html_zoom); | |
$('html').css('zoom', html_zoom); |
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
//BREAKPOINTS | |
$Mobile: 400px; | |
$Landscape: 800px; | |
$Desktop: 1025px; | |
//MEDIA QUERY MIXIN | |
@mixin respond($media) { | |
@if $media == mobile { | |
@media only screen and (max-width: $Mobile) { @content; } | |
}//mobile | |
@else if $media == portrait { |
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 | |
if($_POST['HandshakeKey'] == 'YOUR HANDSHAKE KEY GOES HERE') { | |
function post_lead() { | |
$wufoo_data = array (); | |
//first name | |
if(!empty($_POST['Field123'])){ | |
$wufoo_data['first_name'] = $_POST['Field123']; |