This has been updated here to reflect the coming changes to the Fusion Tables API.
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
App.Router = Backbone.Router.extend({ | |
routes : { | |
"" : "home" | |
,"/" : "home" | |
,"!" : "home" | |
,"!/" : "home" | |
,"!/:username" : "show_user" | |
,":username" : "show_user" | |
,":username/" : "show_user" |
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 | |
class ExtendedChannel { | |
public __construct() | |
{ | |
$this->EE = &get_instance(); | |
} | |
public function extended_entries() | |
{ |
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
################################################################################# | |
# | |
# - ExpressionEngine index.php ModRewrite Removal - | |
# compatible with Google Analytics Tracking | |
# | |
################################################################################## | |
RewriteEngine on |
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
// This will execute the exp:tag if first segment is empty | |
{if segment_1 != ''} | |
{exp:class:method} | |
{if var == "foo"} | |
Lorem | |
{if:else} | |
Ipsum | |
{/if} | |
{/exp:class:method} |
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
private function param($param, $default = FALSE, $boolean = FALSE, $required = FALSE) | |
{ | |
$name = $param; | |
$param = $this->EE->TMPL->fetch_param($param); | |
if($required && !$param) show_error('You must define a "'.$name.'" parameter in the '.__CLASS__.' tag.'); | |
if($param === FALSE && $default !== FALSE) | |
{ | |
$param = $default; |
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
{!-- page load stats, for debugging --} | |
{if logged_in && member_group == "1"} | |
<div style="overflow:visible;position: absolute; top:0; left: 0; position: fixed; background-color: #000; color: #fff; font-size: 16px; padding: 5px; font-family:Arial, Helvetica, sans-serif;"> | |
{elapsed_time} seconds / {total_queries} queries | |
<a href='javascript:;' onclick="$(this).parent().fadeOut(200);" style='position:absolute; bottom:-18px; right:0px;height:10px;background-color:#282828;color:#fff;display:block;font-size:11px;text-decoration:none;padding:3px;'>Close</a> | |
</div> | |
{/if} |
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'); | |
class Email_Template { | |
public $to, | |
$from, | |
$cc, | |
$bcc, | |
$channel_id, | |
$categories, |
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
{!-- MAKE SURE UNIQUE IDs = YES --} | |
{exp:structure:nav add_level_classes="yes" add_span="yes" add_unique_ids="yes" css_class="nav" css_id="nav_full" current_class="active" include_ul="yes" max_depth="5" mode="full" status="Open"} | |
{!-- This technique uses GWCODE Cats but you could do it the normal way --} | |
{!-- we're hiding the div that contains the stuff we want --} | |
<div style="display:none" id="prod_cats"> | |
{!-- This technique uses GWCODE Cats but you could do it the normal way --} |
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:structure:nav max_depth="2" show_depth="2" current_class="active" css_class="nav" has_children_class="dropdown"} | |
<script> | |
$(function() { | |
$('ul li.dropdown').each(function() { | |
$(this).children('ul').addClass("dropdown-menu"); // add children dropdown menu class | |
$(this).children('a').append('<b class="caret"></b>') // add caret icon | |
$(this).clone().prependTo($(this).find('ul')).removeClass('dropdown active').children('ul').remove(); // clone parent link into child menu | |
$(this).children('a').attr('data-toggle', 'dropdown').attr('href', '#').addClass("dropdown-toggle"); // add data attributes to hook up Bootstrap | |
}); |