####Manager:
System Settings > ckeditor > Remove plugins
remove stylescombo
from the list
System Settings > ckeditor > CSS styles set
custom:/assets/styles.js
<?php | |
/** | |
* AndIf - for MODx Revolution | |
* | |
* Copyright 2011 by Luke Bagshaw (MODx forum user 'lucas') | |
* This is a modified (extended) version of the 'If' snippet, created by | |
* Jason Coward <jason@modx.com> and Shaun McCormick <shaun@modx.com> | |
* | |
* AndIf is free software; you can redistribute it and/or modify it under the terms | |
* of the GNU General Public License as published by the Free Software |
<?php | |
// Type: Snippet | |
$recipient = $hook->getValue('reason'); | |
if($recipient == 'one'){ | |
$email = ''; | |
} | |
elseif($recipient == 'two'){ | |
$email = ''; | |
} |
<!-- DEBUG --> | |
<div style="position: fixed; z-index:999; bottom:0;"> | |
<span class="badge badge-secondary d-none d-xl-block">XL</span> | |
<span class="badge badge-secondary d-none d-lg-block d-xl-none">LG</span> | |
<span class="badge badge-secondary d-none d-md-block d-lg-none">MD</span> | |
<span class="badge badge-secondary d-none d-sm-block d-md-none">SM</span> | |
<span class="badge badge-secondary d-block d-sm-none">XS</span> | |
</div> | |
<!-- /DEBUG --> |
<?php | |
/* | |
Requirements: MODX, phpthumbof | |
*/ | |
$folder = 'img/random/'; // change to your random img dir | |
$height = 120; // desired height in px | |
$width = 940; // desired width in px | |
$crop = 'C'; // zoom crop where? T,R,B,L,C (top,right,bottom,left,center) | |
// space seperated list of extensions |
<!-- DEBUG --> | |
<div style="position: fixed; z-index:999; bottom:0;"> | |
<span class="label label-default visible-xl-up hidden-lg-down">XL</span> | |
<span class="label label-success visible-lg-up hidden-xl-up hidden-md-down">LG</span> | |
<span class="label label-info visible-md-up hidden-lg-up hidden-sm-down">MD</span> | |
<span class="label label-primary visible-sm-up hidden-md-up hidden-xs-down">SM</span> | |
<span class="label label-warning visible-xs-up hidden-sm-up">XS</span> | |
</div> | |
<!-- /DEBUG --> |
// $modx->initialize('web'); | |
switch(strtolower(MODX_HTTP_HOST)) { | |
case 'www.example.com:80': | |
case 'www.example.com': | |
$modx->initialize('my-example-context'); // context for example.com | |
break; | |
case 'www.example2.com:80': | |
case 'www.example2.com': | |
$modx->initialize('my-example2-context'); // context for example2.com |
<?php | |
# Snippet to include file based templates | |
# USAGE: [[LoadTemplate? &tpl=`template.tpl`]] | |
$base_path = $modx->config['base_path']; | |
if ( !isset($tpl) || $tpl== "" ) return "Missing Template file!"; | |
$tpl = $base_path .'assets/templates/'.$tpl; // change to your tpl dir path | |
ob_start(); | |
include($tpl); | |
return ob_get_clean(); |