Skip to content

Instantly share code, notes, and snippets.

View terryupton's full-sized avatar

Terry Upton terryupton

View GitHub Profile
I have the following in my .htaccess file
```
<IfModule mod_rewrite.c>
Options +FollowSymlinks
# Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteBase /
# ------------------------------------------------------------------------------
# | Redirect to top level /index.php to the root (www) |
<!-- main mini menu -->
<div id="mini-menu" class="hidden absolute pin-t pin-x min-h-full bg-petrol p-4 mr-24 z-50" data-target="mini-menu.nav">
<!-- back/close buttons -->
<div class="mb-4" data-target="mini-menu.buttons">
<a href="#" class="hidden no-underline text-petrol-light" data-action="click->mini-menu#navigate" data-target="mini-menu.backButton">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" class="fill-current h-6 w-6"><polygon points="3.828 9 9.899 2.929 8.485 1.515 0 10 .707 10.707 8.485 18.485 9.899 17.071 3.828 11 20 11 20 9 3.828 9"/></svg>
</a>
</div>
<!-- menu wrapper -->
{% cache globally using key "navMega" for 1 year %}
<div class="relative hidden lg:block w-full z-50" data-controller="mega-menu">
<div class="sitecontainer">
<nav class="pb-4">
{% for entry in navigation.level(1) %}
{% if loop.first %}
<ul class="list-reset flex justify-between">
<li class="pr-6 // border-r border-white-25">
<a href="{{ siteUrl() }}" class="hover:text-lime {% if craft.request.firstSegment == '' %}text-lime{% else %}text-white{% endif %}" data-action="mouseover->mega-menu#close">
<div class="w-5 // h-5 // fill-current // mr-2">
Craft\Exception
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 {
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);
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