Skip to content

Instantly share code, notes, and snippets.

View terryupton's full-sized avatar

Terry Upton terryupton

View GitHub Profile
The transform “twitterLarge” cannot be found!
/home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/services/AssetTransformsService.php(588)
576 {
577 return null;
578 }
579 else if (is_string($transform))
580 {
581 $transformModel = $this->getTransformByHandle($transform);
The transform “twitterLarge” cannot be found!
/home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/services/AssetTransformsService.php(588)
576 {
577 return null;
578 }
579 else if (is_string($transform))
580 {
581 $transformModel = $this->getTransformByHandle($transform);
The transform “twitterLarge” cannot be found!
/home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/services/AssetTransformsService.php(588)
576 {
577 return null;
578 }
579 else if (is_string($transform))
580 {
581 $transformModel = $this->getTransformByHandle($transform);
The transform “twitterLarge” cannot be found!
/home/vagrant/sites/Plowman Craven V4/plowmancraven.co.uk/craft/app/services/AssetTransformsService.php(588)
576 {
577 return null;
578 }
579 else if (is_string($transform))
580 {
581 $transformModel = $this->getTransformByHandle($transform);
@terryupton
terryupton / youtube.class.php
Created December 14, 2015 13:58
youtube.class revised for Perch to use correct thumbnail image.
<?php
/**
* A field type for YouTube videos
*
* version 2.0
*
* @package default
* @author Drew McLellan
*/
class PerchFieldType_youtube extends PerchAPI_FieldType
@terryupton
terryupton / SassMeister-input-HTML.html
Created October 27, 2015 10:08
Generated by SassMeister.com.
<div class="header__color-bars">
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
</div>
@terryupton
terryupton / Class Name Suggestions
Last active August 29, 2015 14:25
Class Name Suggestions
//Modules
.news-teaser
//Navigation
.menu
.menu--main
.menu--footer
@terryupton
terryupton / Event Tracking Google Analytics
Last active February 27, 2019 19:40
Event Tracking Google Analytics
ga('send','event','CTA','Get A Quote Button','On Page Location?')
// /* ==========================================================================
// //GOOGLE ANALYTICS TRACKING EVENTS
//
// ========================================================================== */
if(typeof (ga) !== "undefined") {
$('.track-cta').on('click', function() {
ga('send', 'event', 'Call to Action', $(this).data('title'), $(this).data('placement'));
@terryupton
terryupton / gist:e7637360fedc8e82b43e
Last active August 29, 2015 14:23
Set Last Modified Header
<?php
//MODIFIED HEADER DATE
##################################################################################
function set_headerdate() {
$format = "%a, %d %b %Y %H:%M:%S %z";
// First check if there is a blog post date
if (function_exists('perch_blog_post_field') && function_exists('perch_get') && perch_blog_post_field(perch_get('s'), 'postDateTime', true)) {
$result = perch_blog_post_field(perch_get('s'), 'postDateTime', true);
@terryupton
terryupton / gist:e86ad289dd96f1bc8234
Created June 1, 2015 11:46
PHP Associative Array
<section class="section // section--base // section--fixed">
<div class="container">
<?php
//Array (Feature Title, Feature Description, Icon Class);
$adverts = array (
array('No Call Out Charge','Free quotation for all jobs','no-callout'),
array('Qualified Plumbers','Qualified Gas Safe Engineers','tick'),
array('Free Quotations','No obligation free quotations','contract'),