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
<?php | |
/** | |
* Take advantage of Mix's cache busting function | |
*/ | |
function asset( $path ) { | |
// Asset manifest file from Mix | |
$manifest = get_template_directory_uri() . '/dist/mix-manifest.json'; | |
$manifest_array = json_decode(file_get_contents($manifest), 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
rewrite ^(/.*)\.html(\?.*)?$ $1$2 permanent; | |
rewrite ^/(.*)/$ /$1 permanent; | |
try_files $uri/index.html $uri.html $uri/ $uri =404; |
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
<?php | |
/** | |
* Implements hook_process_html | |
*/ | |
function templatenamespace_process_html(&$vars) { | |
$search = array('scripts' => 'src=', 'styles' => 'href=', 'styles' => '@import\surl\('); | |
foreach ( $search as $var => $word ) { | |
if ( !empty($vars[$var]) ) { |
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_action( 'wp_dashboard_setup', 'register_my_dashboard_widget' ); | |
function register_my_dashboard_widget() { | |
wp_add_dashboard_widget( | |
'my_dashboard_widget', | |
'My Dashboard Widget', |
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
$small-screen: 480px; | |
$medium-screen: 768px; | |
$large-screen: 960px; | |
$huge-screen: 1232px; | |
$breakpoints: ( | |
'small': ( max-width: $small-screen ), | |
'small-up': ( min-width: $small-screen ), | |
'medium': ( max-width: $medium-screen ), | |
'medium-up': ( min-width: $medium-screen ), |
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
{ | |
"name": "vrweb", | |
"version": "0.0.1", | |
"description": "Front end tasks for rezFusion", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"repository": { | |
"type": "git", | |
"url": "git://github.com/bluetent/vrweb-D7" |
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
/** | |
* Front end tasks. | |
*/ | |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var plumber = require('gulp-plumber'); | |
var sass = require('gulp-sass'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var autoprefixer = require('gulp-autoprefixer'); |
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
# Requre a specific version in this file: | |
# gem 'zurb-foundation', '=4.3.1' | |
require 'zurb-foundation' | |
# Require any additional compass plugins here. | |
class Splitter | |
MAX_SELECTORS_DEFAULT = 4095 |
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
<button class="image-stack"></button> | |
<button class="home"></button> | |
<button class="select-image"></button> | |
<button class="launch-camera"></button> | |
<button class="my-location"></button> |
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
@mixin respond-to($media) { | |
@media #{$media} { | |
@content | |
} | |
} | |
@mixin respond-to-fallback($media, $wrapper-class) { | |
.#{$wrapper-class} & { | |
@content; | |
} |
NewerOlder