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
Advance = Channel 12 = Category 124 | |
Engage = Channel 17 | |
Extend = Channel 4 = Category 126 | |
FourLabs = Channel 24 = Category 127 | |
Inspire = Channel 8 = Category 125 | |
-- Move advance posts to inspire | |
UPDATE exp_channel_titles | |
SET channel_id = 8 |
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 | |
public function profile_nearby_entries() | |
{ | |
$entry_id = $this->EE->TMPL->fetch_param('entry_id', NULL); | |
$prev_url_title = ''; | |
$next_url_title = ''; | |
$tagdata = $this->EE->TMPL->tagdata; | |
if($entry_id) { | |
$query = $this->EE->db->select('channel_titles.entry_id, channel_titles.url_title') |
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
(function (){ | |
var _self = SITE.thing = { | |
init: function() { | |
}, | |
anotherMethod: function() { | |
} |
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
(function( $ ){ | |
var methods = { | |
init: function(options) { | |
return this.each(function(){ | |
var $this = $(this), | |
data = $this.data('tabs'); | |
// If the plugin hasn't been initialized yet |
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
$('#verification').bind('submit', function(e) { | |
var $this = $(this), | |
month = parseInt($('#month').val(), 10), | |
day = parseInt($('#day').val(), 10), | |
year = parseInt($('#year').val(), 10), | |
today = new Date(), | |
theirDate = new Date((year + 21), (month - 1), day); | |
if(isNaN(month) || isNaN(day) || isNaN(year)) { | |
$this.append('<div class="error">We need your age.</div>'); |
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
;(function($) { | |
$.fn.tabs = function(options) { | |
return this.each(function() { | |
var tabs = {}; | |
tabs.init = function($base) { | |
var _this = this; | |
_this.$base = $base; | |
_this.$navTabs = _this.$base.find('.nav-tabs ul'); |
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
;(function($) { | |
$.fn.carousel = function(options) { | |
return this.each(function() { | |
var carousel = {}; | |
carousel.opts = $.extend({}, $.fn.carousel.defaults, options); | |
carousel.init = function($base) { | |
var _this = this, |
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
<members> | |
{exp:query sql="SELECT * FROM exp_members"} | |
<member> | |
<username>{username}</username> | |
<screen_name>{screen_name}</screen_name> | |
<password type="sha1">{password}</password> | |
<email>{email}</email> | |
<member_id>{member_id}</member_id> | |
<group_id>{group_id}</group_id> | |
</member> |
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:comment:entries weblog="blog" sort="asc" entry_id="{embed:entry_id}"} | |
<comment> | |
<comment_author>{name}</comment_author> | |
<comment_email>{email}</comment_email> | |
<comment_url>{url}</comment_url> | |
<comment_date>{comment_date format="%m/%d/%Y %h:%i:%s %A"}</comment_date> | |
<comment_text><![CDATA[{comment}]]></comment_text> | |
</comment> | |
{/exp:comment: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
<?xml version="1.0" encoding="UTF-8"?> | |
<items> | |
<item> | |
<author>Author Here</author> | |
<title>Title Here</title> | |
<date>08/16/2011 10:02:27 AM</date> | |
<summary><![CDATA[<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>]]></summary> | |
<body><![CDATA[<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaeca |