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
# Remove Trailing Slash | |
# ------------------------------ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_URI} (.*)$ | |
RewriteRule ^(.+)/$ http://www.yourdomain.com/$1 [R=301,NC,L] |
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
<channel> | |
<title><![CDATA[{{ folder }}]]></title> | |
<link>{{ _site_url }}/{{ folder }}</link> | |
<description>{{ _site_name }} {{ folder }}</description> | |
<dc:language>en-us</dc:language> | |
<dc:creator>{{ contact_email }}</dc:creator> | |
<dc:rights>Copyright {{ current_date format='Y' }}</dc:rights> | |
<dc:date>{{ current_date format="Y-m-d\TH:i:s\Z" }}</dc:date> | |
<admin:generatorAgent rdf:resource="http://statamic.com/" /> |
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
/** ------------------------------------- | |
/** Create a Breadcrumb Trail | |
/** -------------------------------------*/ | |
function breadcrumb() | |
{ | |
$site_pages = $this->sql->get_site_pages(); | |
if ( ! $site_pages) | |
return FALSE; |
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
#added by Nevin Lyne - DoS protection against /entry/vote-ajax URL | |
Redirect 403 /entry/vote-ajax | |
RewriteEngine On | |
RewriteBase / | |
# For SLP Site | |
RewriteCond %{HTTP_HOST} ^slp.pbinsight.com$ | |
RewriteCond %{REQUEST_FILENAME} !slp/ | |
RewriteRule ^(.*)$ slp/$1 |
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
CKEDITOR.stylesSet.add( 'editor_styles', | |
[ | |
// Block Styles | |
//{ name: 'Blue Title', element: 'h2', styles: { 'color': 'Blue' } }, | |
{ name: 'Legal Text', element: 'p', attributes: { 'class': 'legal' } }, | |
{ name: 'CTA Button', element: 'a', attributes: { 'class': 'ctabutton' } }, | |
{ name: 'Citation', element: 'span', attributes: { 'class': 'cite' } }, | |
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
<!-- gallery.yaml --> | |
include: | |
- .meta | |
type: | |
prefix: number | |
fields: | |
_template: | |
display: Template | |
type: hidden | |
default: gallery |
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
// Track outbound links in GA via events | |
$("a").on('click',function(e){ | |
var url = $(this).attr("href"); | |
var target = $(this).attr("target"); | |
if (e.currentTarget.host !== window.location.host) { | |
var newtab; | |
try { | |
_gaq.push(['_trackEvent', 'Outbound Links', e.currentTarget.host, url, 0]); | |
} catch(err) {} | |
if (target || e.metaKey || e.ctrlKey) { // If there's a target specified or if the user is holding down a new tab key |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* List Linker Plugin | |
* | |
* @package ExpressionEngine | |
* @subpackage Addons | |
* @category Plugin | |
* @author Adam Wiggall | |
* @link http://turnandface.com |