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 | |
$modx->regClientStartupHTMLBlock('<style> | |
#modx-resource-tabs__seo-tab { | |
border-color: #658F1A; | |
background: url(/manager/templates/default/images/modx-theme/tabs/tab-bg.svg) #658F1A; | |
background: -moz-linear-gradient(center bottom,#658F1A 0%,#8BAF4C 100%) repeat scroll 0 0 transparent; | |
background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#8BAF4C),color-stop(100%,#658F1A)); | |
background: -webkit-linear-gradient(center bottom,#658F1A 0%,#8BAF4C 100%); | |
background: -o-linear-gradient(center bottom,#658F1A 0%,#8BAF4C 100%); | |
background: -ms-linear-gradient(center bottom,#658F1A 0%,#8BAF4C 100%); |
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 content = ''; | |
content += '<h3>Hinweise</h3>'; | |
content += '<p>Hinweistext</p>'; | |
content += '<style>.hdkInfo-panel p {margin-bottom: 10px; line-height:1.6;} .hdkInfo-panel h4 {margin-top: 15px; margin-bottom: 5px;}</style>'; | |
var hdkInfo = function(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
// Get the images | |
$corePath = $modx->getOption('moregallery.core_path', null, $modx->getOption('core_path') . 'components/moregallery/'); | |
$moreGallery = $modx->getService('moregallery', 'moreGallery', $corePath . 'model/moregallery/'); | |
$c = $modx->newQuery('mgImage'); | |
$c->where(array( | |
'resource' => $resource->get('id'), | |
)); | |
$c->sortby('sortorder', 'ASC'); | |
$c->limit('1'); |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-s | |
RewriteRule ^(.*)$ rest/index.php?_rest=$1 [QSA,NC,L] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^(.*)$ rest/index.php [QSA,NC,L] | |
</IfModule> |
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
/** | |
* Babel CSS file | |
* | |
* @author Jakob Class <jakob.class@class-zec.de> | |
* | |
* @package babel | |
*/ | |
#babel-box{ | |
background: rgba(230,230,230,.7); | |
margin: 0px 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
<? | |
$c = $modx->newQuery('modResource'); | |
$resources = $modx->getCollection('modResource', $c); | |
foreach ($resources as $res) { | |
$properties = $res->getProperties('contentblocks'); | |
if (empty($properties)) continue; | |
if (empty($properties['content'])) continue; |
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
<script type="text/javascript"> | |
(function () { | |
"use strict"; | |
// once cached, the css file is stored on the client forever unless | |
// the URL below is changed. Any change will invalidate the cache | |
var css_href = './index_files/web-fonts.css'; | |
// a simple event handler wrapper | |
function on(el, ev, callback) { | |
if (el.addEventListener) { | |
el.addEventListener(ev, callback, 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
<?php | |
switch ($modx->event->name) { | |
// "refresh cache" part | |
case 'OnContextSave': | |
case 'OnContextRemove': | |
case 'OnSiteRefresh': | |
$contexts = array(); | |
$cacheKey = 'xrouting_contextmap'; |
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
if ($child instanceof ArticlesContainer) { | |
$date = $this->modx->runSnippet('getResources',array( | |
'showHidden' => '1', | |
'parents' => $id, | |
'depth' => '1', | |
'limit' => '1', | |
'published' => '1', | |
'sortby' => '{"publishedon":"DESC"}', | |
'tpl' => 'getResources.publishedon' | |
)); |
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 Settings | |
# ---------------------------------------------------------------------- | |
# php cgi 5.4.x | |
AddHandler php54-cgi .php | |
# set default timezone | |
php_value date.timezone "Europe/Berlin" |
OlderNewer