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
# x-ua-xompatible header | |
add_header X-UA-Compatible IE=edge,chrome=1; | |
#default charset uft-8 | |
charset utf-8; | |
# allowed domains | |
set $rewrite_var 0; |
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
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 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 Settings | |
# ---------------------------------------------------------------------- | |
# php cgi 5.4.x | |
AddHandler php54-cgi .php | |
# set default timezone | |
php_value date.timezone "Europe/Berlin" |
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 | |
$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 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
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 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
// 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 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
<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 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
/** | |
* Babel CSS file | |
* | |
* @author Jakob Class <[email protected]> | |
* | |
* @package babel | |
*/ | |
#babel-box{ | |
background: rgba(230,230,230,.7); | |
margin: 0px 0 0; |
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 | |
// Add RTE for introtext if richtext option is enabled for the resource | |
// check "OnDocFormRender" event | |
$modx->regClientStartupHTMLBlock('<script>Ext.onReady(function() { | |
if(MODx.loadRTE) MODx.loadRTE("modx-resource-introtext"); | |
});</script>'); |
OlderNewer