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 | |
// __call() test | |
// =========================================================================== | |
class MyBaseClass { | |
function _call($method, $args) | |
{ | |
echo($args[0]); | |
return TRUE; |
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 | |
// Code trimmed out while porting Playa to a FieldFrame extension | |
// =========================================================================== | |
/** | |
* Extension Constructor | |
* | |
* @param array $settings | |
* @since version 1.0.0 | |
*/ |
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
// What I did | |
$myField.resizable({ | |
handles: ['.ui-resizable-handle'], // I already have this as a jQuery object, but passing it threw an error | |
alsoResize: '#'+myFieldId+' .scrollPane', // No way to specify the containment, so I had to add prepend the field ID. (allowing a jQuery object would fix that as well) | |
containment: 'parent', // This keeps the width from getting wider | |
resize: function() { | |
$(this).width('100%'); // This keeps the width from getting narrower | |
$('.scrollPane', this).width('100%'); // This keeps the alsoResize elements from changing widths | |
} |
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
!(/\.(?!htaccess|gitignore)[^/]*|\.(tmproj|o|pyc)|/Icon\r|/svn-commit(\.[2-9])?\.tmp)$ |
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
// P&T link automations | |
var ee_affiliate_name = 'brandonkelly', | |
external_re = new RegExp('^https?://(?!'+document.location.hostname+')'), | |
external_ee_re = new RegExp('^(https?://(secure\\.)?expressionengine.com\\/)([^#]*)(#(\\w+))?$'), | |
ee_affiliate_re = new RegExp('^index\\.php\\?affiliate='+ee_affiliate_name); | |
$('a').each(function(){ | |
// is this an external link? | |
if (this.href.match(external_re)) { |
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:channel:entries channel="ee" url_title="{segment_3}" limit="1"} | |
{if no_results}{embed="site/404"}{/if} | |
{exp:docs:page entry_id="{entry_id}" url_title="{segment_4}"} | |
{if no_page}{embed="site/404"}{/if} | |
{embed="site/-header" title="{title} - Docs - {docs_page_title}" id="{url_title}-docs" class="ee docs"} | |
<header class="clearafter"> | |
<hgroup class="left"> |
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
A Guide to Fieldtype Settings in EE2 | |
display_global_settings() | |
- $this->settings | |
- fieldtype's global settings | |
display_settings($data) | |
- $this->settings | |
- fieldtype's global settings |
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
/** | |
* tabfocus event plugin for jQuery | |
* | |
* Mimics the focus() event, except it's only | |
* called when focus wasn't assigned via a click | |
* | |
* ------------------------------------------- | |
* Usage | |
* ------------------------------------------- | |
* |
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
After clicking Changes > Install Terminal Utility…, add this to ~/.gitconfig: | |
[diff] | |
tool = changes-app | |
[difftool "changes-app"] | |
cmd = /usr/bin/chdiff $LOCAL $REMOTE | |
[difftool] |
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
// ------------------------------------------- | |
// Include the Sheet resources in PHP | |
// ------------------------------------------- | |
if (! class_exists('Assets_helper')) | |
{ | |
require PATH_THIRD.'assets/helper.php'; | |
} | |
$assets_helper = new Assets_helper; |
OlderNewer