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 class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
<script> |
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> | |
<title> Color fade example</title> | |
<link href='https://fonts.googleapis.com/css?family=Raleway:400,800|Rock+Salt' rel='stylesheet' type='text/css'> | |
<style> | |
body{ | |
padding: 0; | |
margin: 0; |
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
<html> | |
<head> | |
<link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'> | |
<style> | |
body{font-family: Lato;} | |
caption{font-size: 22pt; margin: 10px 0 20px 0; font-weight: 700;} | |
table.calendar{width:100%; border:1px solid #000;} | |
td.day{width: 14%; height: 140px; border: 1px solid #000; vertical-align: top;} | |
td.day span.day-date{font-size: 14pt; font-weight: 700;} | |
th.header{background-color: #003972; color: #fff; font-size: 14pt; padding: 5px;} |
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
function my_event_template($single_template) { | |
global $post; | |
if ($post->post_type == 'event') { | |
return dirname( __FILE__ ) . '/single-event.php'; | |
return $single_template; | |
} | |
add_filter( "single_template", "my_event_template" ) ; |
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
var project = 'twentyfifteen_child', | |
parentTheme = 'twentyfifteen', | |
gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
notify = require('gulp-notify'), | |
header = require('gulp-header'), | |
plumber = require('gulp-plumber'); | |
gulp.task('sass', function () { | |
return gulp.src('./themes/' + project + '/scss/style.scss') |
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 | |
/* | |
* Code adapted from https://www.smashingmagazine.com/2011/10/create-custom-post-meta-boxes-wordpress | |
* Created May 2016. | |
* | |
*/ | |
/* Fire our meta box setup function on the post editor screen. */ | |
add_action( 'load-post.php', 'lc_emailer_post_meta_boxes_setup' ); |
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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
<script> | |
jQuery(document).ready(function($) { | |
$.getJSON("http://sites.lorainccc.edu/mylccc/wp-json/wp/v2/posts/?filter[category_name]=mycampus", function (data) { | |
$.each(data, function( index ){ | |
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
npm install gulp --save-dev | |
npm install browser-sync --save-dev | |
npm install gulp-autoprefixer --save-dev | |
npm install gulp-changed --save-dev | |
npm install gulp-combine-media-queries --save-dev | |
npm install gulp-concat --save-dev | |
npm install gulp-debug --save-dev | |
npm install gulp-filter --save-dev | |
npm install gulp-header --save-dev | |
npm install gulp-newer --save-dev |
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
if ( !function_exists( 'populate_roles' ) ) { | |
require_once( ABSPATH . 'wp-admin/includes/schema.php' ); | |
} | |
populate_roles(); |
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
#slider { | |
margin: 2em auto; | |
width: 960px; | |
overflow: hidden; | |
} | |
#slider-wrapper { | |
width: 9999px; | |
height: 300px; | |
position: relative; |