This file contains hidden or 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
{ | |
"valid_elements" : "h1,h2,h3,a[href|target|class],strong/b,em,u,s,p[class],span[!class],br,img[alt|class|width|height|!src],table[class],ul,li,ol,table[class],tr,td[rowspan|colspan],th,tbody,thead", | |
"valid_children" : "p[span|img|strong|em|u|s|b|a|#text],ul[li],ol[li],li[span|strong|b|a|em|u|#text|ul|ol]", | |
"formats": { | |
"alignleft": { | |
"selector": "p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table", | |
"classes": "text-left" | |
}, | |
"aligncenter": { | |
"selector": "p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table", |
This file contains hidden or 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 Calendar | |
*/ | |
abstract class Calendar | |
{ | |
protected $month = 0; | |
protected $year = 0; | |
protected $dates = array(); |
This file contains hidden or 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 | |
/* filter by TV of date format */ | |
/* &filters=`tvdate:mytv:=:2017-09-28` */ | |
include_once ('tv.filter.php'); | |
/** | |
* Created by PhpStorm. | |
* User: Pathologic | |
* Date: 28.09.17 | |
* Time: 13:09 | |
*/ |
This file contains hidden or 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 DLpaginate | |
*/ | |
class DLpaginate | |
{ | |
/** | |
* Script Name: *Digg Style Paginator Class | |
* Script URI: http://www.mis-algoritmos.com/2007/05/27/digg-style-pagination-class/ |
This file contains hidden or 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 | |
define('MODX_API_MODE', true); | |
include_once("index.php"); | |
$modx->db->connect(); | |
if (empty ($modx->config)) { | |
$modx->getSettings(); | |
} | |
include_once(MODX_BASE_PATH.'assets/plugins/simplegallery/lib/table.class.php'); | |
$modx->invokeEvent("OnManagerPageInit"); | |
$q = $modx->db->query("SELECT * FROM {$modx->getFullTableName('maxigallery')} ORDER BY `gal_id` ASC, `pos` ASC, `id` ASC"); |
This file contains hidden or 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 | |
/* Пример вызова: | |
[!GroupByLetter? | |
&parents=`24` | |
&depth=`3` | |
&showParent=`0` | |
&tpl=`@CODE:<a href="[+url+]">[+pagetitle+]</a><br>` | |
&wrapTpl=`@CODE:<h1>[+letter+]</h1>[+wrap+]` | |
&ownerTPL=`@CODE:[+dl.wrap+]` | |
!] |
This file contains hidden or 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 | |
/** | |
* SG2TV | |
* | |
* saves first or last image from SimpleGallery to TV | |
* | |
* @category plugin | |
* @version 1.0.0 | |
* @internal @properties &tvName=TV name;text; &templates=Templates;text; &position=Image to save;list;first,last;first | |
* @internal @events OnDocFormSave |
This file contains hidden or 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
/** | |
* modxlink.js | |
* | |
* Based on link.js but with resource search added. | |
* | |
* By default both pagetitle and alias are searched. | |
* | |
* Author: markwillis82 | |
* Date: 7/7/15 | |
* update 64j 8/11/17 |
This file contains hidden or 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 | |
/** | |
* parseTemplate | |
* | |
* to parse chunks with DLTemplate | |
* | |
* @category snippet | |
* @version 1.0.0 | |
* @author Pathologic (https://github.com/pathologic) | |
*/ |
This file contains hidden or 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 FastResource | |
{ | |
protected $fields = array(); | |
protected $tvs = array(); | |
protected $tvIds = array(); | |
protected $tvtpl = array(); | |
protected $tvDefaults = array(); | |
protected $modx = null; | |
public $newDoc = true; |
OlderNewer