This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
This file contains hidden or 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
# On branch official-1.3 | |
# Changes not staged for commit: | |
# (use "git add <file>..." to update what will be committed) | |
# (use "git checkout -- <file>..." to discard changes in working directory) | |
# | |
# modified: public_html/_add-ons/redactor/css/redactor.css | |
# modified: public_html/_add-ons/redactor/ft.redactor.php | |
# modified: public_html/_add-ons/redactor/hooks.redactor.php | |
# modified: public_html/_add-ons/redactor/js/fullscreen.js | |
# modified: public_html/_add-ons/redactor/js/redactor.min.js |
This file contains hidden or 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"); | |
if (e.currentTarget.host != window.location.host) { | |
_gaq.push(['_trackEvent', 'Outbound Links', e.currentTarget.host, url, 0]); | |
if (e.metaKey || e.ctrlKey) { | |
var newtab = true; | |
} | |
if (!newtab) { | |
e.preventDefault(); |
This file contains hidden or 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
{exp:stash:set name="blocks" parse="inward"} | |
{ov_blocks} | |
<div class="block{switch="| even"} size-{block_image_size}" id="block-{row_count}"> | |
<div class="img">{exp:ce_img:single src="{block_image}" width="{block_image_size}" max_width="{block_image_size}" quality="72" alt="size:{block_image_size}"}</div> | |
{if block_headline}<h2>{block_headline}</h2>{/if} | |
{if block_content}{block_content}{/if} | |
</div> | |
{/ov_blocks} | |
{/exp:stash:set} |
This file contains hidden or 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
{exp:ce_img:pair | |
src="{block_image}" | |
width="{if '{block_image_size}'=='large'}293{if:elseif '{block_image_size}'=='small'}137{if:else}215{/if}" | |
max_width="{if '{block_image_size}'=='large'}293{if:elseif '{block_image_size}'=='small'}137{if:else}215{/if}" | |
quality="72" | |
} | |
<img src="{made}" width="{width}" height="{height}"> | |
{/exp:ce_img:pair} |