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'); | |
/** | |
* ExpressionEngine - by EllisLab | |
* | |
* @package ExpressionEngine | |
* @author ExpressionEngine Dev Team | |
* @copyright Copyright (c) 2003 - 2011, EllisLab, Inc. | |
* @license http://expressionengine.com/user_guide/license.html | |
* @link http://expressionengine.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
cat ~/.ssh/id_rsa.pub | ssh remote_user@remote_host 'cat >> .ssh/authorized_keys' |
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 some global variables so we can use snippets EVERYWHERE | |
$new_global_vars = array( | |
'gv_channel_disable_all' => 'disable="categories|category_fields|custom_fields|member_data|pagination|trackbacks"', | |
'gv_channel_disable_most' => 'disable="categories|category_fields|member_data|pagination|trackbacks"', | |
'gv_channel_disable_news' => 'disable=categories|category_fields|member_data|trackbacks"', | |
'gv_channel_disable_basic' => 'disable="member_data|pagination|trackbacks"', | |
'gv_channel_disable' => 'disable="member_data|trackbacks"', | |
'gv_date_format' => '%M %j, %Y' | |
); |
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
{exp:my_plugin} | |
{!-- This conditional works --} | |
{if some_thing} | |
{some_thing} | |
{/if} | |
{!-- This one never works --} | |
{if other_things} | |
<ul> | |
{other_things} |
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
{exp:stash:set name="content"} | |
... | |
<section class="content-primary content"> | |
<div class="wrapper"> | |
{if work_carousel} | |
<section class="section-carousel section"> | |
<div class="section-content shiny"> | |
<ul class="grouping-carousel grouping"> |
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
/* | |
* 'Highly configurable' mutable plugin boilerplate | |
* Author: @markdalgleish | |
* Further changes, comments: @addyosmani | |
* Licensed under the MIT license | |
*/ | |
// Note that with this pattern, as per Alex Sexton's, the plugin logic | |
// hasn't been nested in a jQuery plugin. Instead, we just use | |
// jQuery for its instantiation. |
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
$cols: 12; | |
$gutter: 2%; | |
$one_col: (100% - ($gutter * ($cols - 1))) / $cols; | |
@mixin cols($num) { | |
width: ($one_col * $num) + ($gutter * ($num - 1)); | |
} | |
@mixin sub_cols($num_child, $num_parent) { | |
$parent_size: ($one_col * $num_parent) + ($gutter * ($num_parent - 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
{embed="_layouts/index"} | |
{preload_replace:channel="work"} | |
{exp:switchee variable="{segment_2}" parse="inward"} | |
{!-- Work listing --} | |
{case value=""} | |
{exp:stash:set_value name="title" value="Our Work | Viget"} | |
{exp:stash:set_value name="body_class" value="page-work page-primary page"} | |
{exp:stash:set_value name="body_page" value="work"} |
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
{embed="_layouts/blog" | |
blog_title="Inspire" | |
blog_slug="inspire" | |
blog_category_id="125" | |
blog_description="Design & Interaction" | |
blog_description_more="our three hundred foot view. Primarily written by/for UX designers, visual designers, and front-end developers." | |
meta_description="Viget’s Inspire blog: discussing all things design & interaction including wireframing, typography, Photoshop tips and techniques, CSS, HTML5, and jQuery." | |
rss="{gv_inspire_feed}" | |
} |
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'); | |
/** | |
* ExpressionEngine - by EllisLab | |
* | |
* @package ExpressionEngine | |
* @author ExpressionEngine Dev Team | |
* @copyright Copyright (c) 2003 - 2011, EllisLab, Inc. | |
* @license http://expressionengine.com/user_guide/license.html | |
* @link http://expressionengine.com |