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 gulp = require('gulp'), | |
gutil = require('gulp-util'), | |
coffee = require('gulp-coffee'), | |
browserify = require('gulp-browserify'), | |
compass = require('gulp-compass'), | |
connect = require('gulp-connect'), | |
gulpif = require('gulp-if'), | |
uglify = require('gulp-uglify'), | |
minifyHTML = require('gulp-minify-html'), | |
concat = require('gulp-concat'); |
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": "example", | |
"version": "0.0.1", | |
"description": "Example Workflow", | |
"author": "Nicholas Dixon", | |
"devDependencies": { | |
"gulp": "^3.9.1", | |
"gulp-browserify": "^0.5.1", | |
"gulp-coffee": "^2.3.3", | |
"gulp-compass": "^2.1.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
<?php session_start() ?> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Web Design North Yorkshire</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"> | |
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,700|Roboto+Slab' rel='stylesheet' type='text/css'> | |
<link rel="stylesheet" href="css/style.css"> |
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 | |
// Set varable for getting the excert of the custom post | |
$my_excerpt = get_the_excerpt(); | |
// Sets the number of posts to display, if it is the front page (home), then 4 posts show, if not then all posts show. | |
$num_posts = ( is_front_page() ) ? 4 : -1; | |
$args = array( | |
'post_type' => 'portfolio', | |
'posts_per_page' => $num_posts |
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 | |
add_theme_support( 'post-thumbnails' ); | |
// Controls the length of the Posts and Custom Posts | |
function wpt_excerpt_length( $length ) { | |
return 26; | |
} | |