Skip to content

Instantly share code, notes, and snippets.

(function(angular) {
'use strict';
angular.module('store', ['ngRoute'])
.controller('MainController', ['$scope','$route','$routeParams','$location', function($scope, $route, $routeParams, $location) {
$scope.$route = $route;
$scope.$location = $location;
$scope.$routeParams = $routeParams;
}])
{
"name": "anon",
"version": "1.0.0",
"description": "Anon package.json file, very basic",
"author": "Nick Toye <nick.toye@anon.co.uk>",
"scripts": { "test": "node test/all.js" },
"main": "Gruntfile.js",
"repository": {
"type": "git",
"url": "http://gitlab.sofaworks.co.uk/nick.toye/sw-mercury.git"
module.exports = {
eslint: {
options: {
format: require('eslint-json')
},
target: [
'src/js/global.js'
]
}
}
<?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'
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
<!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;}
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}
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Varela+Round);
table {
border-collapse: collapse;
border-spacing: 0;
}
td {
padding: 0;
}
<!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">
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