Skip to content

Instantly share code, notes, and snippets.

Nick Toye NickToye

Block or report user

Report or block NickToye

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:7d3c168517d8094f5554
<?php
/*
Template Name: Daily Results Page
*/
?>
<?php get_header(); ?>
<div class="wrapper">
<main>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
View gist:de34508137964f19bcdc
<a href="{route="projects/view" project="{url_title}"}" class="btn btn--primary">View Project</a>
View gist:7701e9eab0c020680a55
TEMPLATE DEBUGGING
(0.000012 / 7.44MB) - Begin Template Processing -
(0.000040 / 7.44MB) URI: projects/quality-nishikigoi
(0.000053 / 7.44MB) Path.php Template: /
(0.000068 / 7.44MB) Retrieving Template
(0.000080 / 7.44MB) Parsing Template URI
(0.009966 / 7.71MB) Retrieving Template from Database: projects/view
(0.010718 / 7.71MB) Template Found
(0.010761 / 7.72MB) Determining Template Access Privileges
(0.011245 / 7.72MB) Retrieving Template from File
View gist:0aa93583eadf96ba6af9
<!doctype html>
<html lang="en">
{head}
<body class="articles">
{embed="includes/header"}
{exp:channel:entries channel="articles" dynamic="no" url_title="{segment:article}" status="open|featured"}
<section class="block block--intro">
View gist:5f24299b0f84820ab62d
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Varela+Round);
table {
border-collapse: collapse;
border-spacing: 0;
}
td {
padding: 0;
}
View gist:c50e03c5f602f6079070
I have a Custom Post Type called Company, the rewrite slug is saying Company, but I want it to say Companies.
I have a Custom Taxonomy called Companies, and the rewrite slug is saying Companies.
I basically want to have a URL structure like this:
www.greenfinder.co.uk/companies/{company-category}/{company-name}
View gist:861114c7b579e5e9303c
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Template 9</title>
<style type="text/css">
/* Client-specific Styles */
#outlook a {padding:0;} /* Force Outlook to provide a "view in browser" menu link. */
body{width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0;}
View gist:2abedeea60dc87b6950f
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| ExpressionEngine Config Items
|--------------------------------------------------------------------------
|
| The following items are for use with ExpressionEngine. The rest of
| the config items are for use with CodeIgniter, some of which are not
| observed by ExpressionEngine, e.g. 'permitted_uri_chars'
View gist:bddd2b3918c0e0f6f7b0
function checkPostcode(postcode) {
$('.postcode_success').hide();
$('.postcode_fail').hide();
postcode = postcode.replace(/\s/g, '');
postcode = postcode.toUpperCase();
var postcodes = ["CV370AA","CV370AG","CV370AL","CV370AN","CV370AP","CV370AQ","CV370AR","CV370AT","CV370AU","CV370AX","CV370BB","CV370BD","CV370BE","CV370BG","CV370BH","CV370BJ","CV370BL","CV370BQ","CV370DA","CV370DB","CV370DD","CV370DE","CV370DF","CV370DH","CV370DJ","CV370DL","CV370DN","CV370DP","CV370DQ","CV370DQ","CV370DR","CV370DS","CV370DS","CV370DT","CV370DU","CV370DW","CV370DX","CV370DZ","CV370EA","CV370ED","CV370EE","CV370EF","CV370EQ","CV370NP","CV370NR","CV370NS","CV370NT","CV370QE","CV370QP","CV370QR","CV370QS","CV370QT","CV370QU","CV370QZ","CV370RE","CV370RF","CV370RH","CV370RR","CV370RS","CV370RU","CV370RX","CV370RY","CV370RZ","CV370SG","CV370TA","CV370TB","CV370TD","CV370TE","CV370TF","CV370TG","CV370TH","CV370TJ","CV370TL","CV370TN","CV370TP","CV370TQ","CV370TS","CV370TT","CV370TU","CV370TW","CV370TX","CV370UB","CV370UD","CV
View gist:caff15635360cf4fa470
module.exports = {
eslint: {
options: {
format: require('eslint-json')
},
target: [
'src/js/global.js'
]
}
}
You can’t perform that action at this time.