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 | |
function parse_quote($matches) { | |
$bbcode = ''; | |
preg_match_all('/(\w*?)=\'(.*?)\'/msi', $matches[1], $attr_matches); | |
$attributes = array_combine($attr_matches[1], $attr_matches[2]); | |
if(!empty($attributes)) | |
{ | |
$attribute_strings = array(); | |
foreach($attributes as $key => $value) | |
{ |
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
/*<![CDATA[*/ | |
$(document).ready( function(){ | |
var images = $(document).find('.to_load img'); | |
$.each( images, function( idx, value){ | |
var original = $(this); | |
$(this).addClass('hidden'); | |
$('<span class="img_loader"> </span>').insertBefore( original ); | |
var src = $(this).attr('src'); | |
var $img = new Image(); | |
$($img).delay( 500 ).load( 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
var firstCombo = new Ext.form.ComboBox({ | |
store: store_combo_1, | |
typeAhead: true, | |
forceSelection: true, | |
triggerAction: 'all', | |
emptyText:'Select a state...', | |
selectOnFocus:true, | |
id:'combo1' | |
}); |
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 | |
/** | |
* Handles plugin events for ModxPress | |
* | |
* @package modxpress | |
*/ | |
$corePath = $modx->getOption('modxpress.core_path',null,$modx->getOption('core_path').'components/modxpress/'); | |
switch ($modx->event->name) { | |
case 'OnManagerPageInit': | |
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 template desc panel base class | |
* | |
* @class MODx.DescPanel | |
* @extends Ext.Panel | |
* @param {Object} config An object of options. | |
* @xtype modx-desc-panel | |
*/ | |
MODx.DescPanel = function(config) { | |
config = config || {}; |
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 | |
include 'config.core.php'; | |
include MODX_CORE_PATH . 'model/modx/modx.class.php'; | |
$modx = new modX(); | |
$modx->initialize('web'); | |
$modx->setLogTarget(XPDO_CLI_MODE ? 'ECHO' : 'HTML'); | |
$modx->setLogLevel(xPDO::LOG_LEVEL_INFO); | |
$tstart = $modx->getMicroTime(); |
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
Ext.namespace('Ext.ux.dd'); | |
Ext.ux.dd.BigBrotherGridDD = Ext.extend(Ext.util.Observable, { | |
copy: true | |
,scrollable: true | |
,constructor: function(config){ | |
if (config) | |
Ext.apply(this, config); | |
// this.addEvents({ |
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 breadcrumbs = function($state, $stateParams) { | |
return { | |
restrict: 'E', | |
templateUrl: '/path/to/breadcrumbs.html', | |
replace: true, | |
compile: function(tElement, tAttrs) { | |
return function($scope, $elem, $attr) { | |
$scope.show = function(state){ | |
if(!angular.isDefined(state.data)){ | |
return false; |
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
<!DOCTYPE html> | |
<html ng-app> | |
<head> | |
<title>Example</title> | |
</head> | |
<body> | |
<nav class="main-nav" data-main-menu data-root="index"></nav> | |
<script type="text/javascript" src="angular.js"></script> |
OlderNewer