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
// assuming jquery and the cookie plugin are already included. | |
$("html").addClass("js"); | |
$(document).ready(function() { | |
if ($.cookie('exp_alert_banner_newsletter')!='hide') { | |
$("p.alert").slideDown("slow"); | |
$("p.alert span.hidealert a").click(function() { | |
$("p.alert").slideUp("slow"); |
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 | |
// custom array merging | |
// if something exists in the custom array, it should overwrite the default | |
// otherwise take the default value | |
$default = array( | |
"key1" => "val1", | |
"key2" => "val2", | |
"key3" => array( |
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 | |
// custom array merging | |
// if something exists in the custom array, it should overwrite the default | |
// otherwise take the default value | |
$default = array( | |
"key1" => "val1", | |
"key2" => "val2", | |
"key3" => array( |
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 | |
// member_id not a required param, if member_id param not given | |
// it will use the current session's member_id, if a session doesn't | |
// exist, it'll return false | |
function _save_custom_member_field_value($field_name,$field_value,$member_id=false) | |
{ | |
// field_name required | |
if (empty($field_name) or is_null($field_name)) | |
{ |
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
var Resource = function(controller) { | |
// controller param required | |
var controller = controller ? controller : false; | |
if (!controller) { console.log("controller parameter required for resource"); return false; } | |
this.controller = controller; | |
}; | |
Resource.prototype = { | |
index: function(callback) { | |
var type = "GET"; |
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
window.onload = function() { | |
var v0 = new Vertex("0"); | |
var v1 = new Vertex("1"); | |
var v2 = new Vertex("2"); | |
var v3 = new Vertex("3"); | |
var v4 = new Vertex("4"); | |
var v5 = new Vertex("5"); | |
var v6 = new Vertex("6"); | |
var v7 = new Vertex("7"); |
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 | |
/* | |
required_if Custom Validation Method | |
// Example 1 - require field if another field has been set | |
// Require the Billing State field if Billing Country has a value | |
$val = Validation::forge(); | |
$val->add_callable('customvalidation'); |
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 Break_AjaxUI | |
{ | |
static $first = false; | |
function echo_something($bean,$event,$arguments) | |
{ | |
// echo something once | |
if (!self::$first) |
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 | |
$hook_version = 1; | |
$hook_array = Array(); | |
$hook_array['after_retrieve'] = Array(); | |
$hook_array['after_retrieve'][] = Array(50, 'Echo Something to break AjaxUI','custom/modules/Contacts/Break_AjaxUI.php','Break_AjaxUI', 'echo_something'); |
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 | |
$hook_version = 1; | |
$hook_array = Array(); | |
$hook_array['after_footer_ui'] = Array(); | |
$hook_array['after_footer_ui'][] = Array(50, 'Echo Something to break AjaxUI','custom/modules/Contacts/Break_AjaxUI.php','Break_AjaxUI', 'echo_something'); |
OlderNewer