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'); | |
// Multiple if statements, or a switch statement, | |
// can handle as many environments as you need | |
if ($_SERVER['HTTP_HOST'] == "local-site.dev") { | |
$active_group = 'expressionengine'; | |
} else { | |
$active_group = 'enginehosting'; | |
} |
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
<IfModule mod_rewrite.c> | |
# Enable Rewrite Engine | |
# ------------------------------ | |
RewriteEngine On | |
RewriteBase / | |
# Redirect index.php Requests | |
# ------------------------------ | |
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC] |
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
################################################################################# | |
# | |
# - ExpressionEngine index.php ModRewrite Removal - | |
# compatible with Google Analytics Tracking | |
# | |
################################################################################## | |
RewriteEngine on |
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
In ft.assets.php add this to the top of the pre_process function: | |
/** | |
* Pre Process | |
*/ | |
function pre_process() | |
{ | |
// ------------------------------------------- | |
// Get the exp_assets_entries rows | |
// ------------------------------------------- |
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
/* The Grid ---------------------- */ | |
.lt-ie9 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; } | |
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; } | |
.lt-ie9 .row.large-collapse .column, | |
.lt-ie9 .row.large-collapse .columns { padding: 0; } | |
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; } | |
.lt-ie9 .row .row.large-collapse { margin: 0; } | |
.lt-ie9 .column, .lt-ie9 .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; } | |
.lt-ie9 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; } |
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
{{ if segment_2 == slug }} | |
<meta property="og:title" content="{{ title }}"> | |
<meta property="og:type" content="article"> | |
<meta property="og:description" content="{{ content|striptags|truncate:200 }}"> | |
<meta property="og:url" content="{{ permalink }}"> | |
<meta property="og:image" content="{{ _site_url }}{{ transform src='{{ featured_image }}' width='1200' height='600' action='smart' }}"> | |
<meta property="og:site_name" content="{{ _site_name }}"> | |
<meta property="fb:admins" content="722169618"> | |
<meta name="twitter:card" content="summary_large_image"> | |
<meta name="twitter:site" content="@pmeissner"> |
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
$('.modal').on(Gumby.click, function(e){ | |
var container = $('.content'); | |
if((!container.is(e.target) // if the target of the click isn't the container... | |
&& container.has(e.target).length === 0)) // ... nor a descendant of the container | |
{ | |
$('.modal .close').trigger('gumby.trigger'); | |
} | |
}); |