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 $rows|count > 3} | |
{html} | |
{/if} |
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 | |
$id = $modx->documentIdentifier; | |
$url = $modx->resource->get('id'); | |
$res = $modx->getObject('modResource',$url); | |
$output = $res->get('context_key'); | |
if ($output == 'web') { | |
$val = $modx->runSnippet('getImageList',array('tvname'=>directory,'tpl'=>'@CODE: [[+name]]','docid'=>25, 'outputSeparator'=>'||')); | |
print $val; |
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
{'!pdoMenu' | snippet : [ | |
'cache' => 1 | |
'cacheTime' => 3600 | |
'parents' => 0 | |
'level' => 2 | |
'hereClass' => 'uk-active' | |
'tplOuter' => '@INLINE <ul class="uk-navbar-nav uk-hidden-small">[[+wrapper]]</ul>' | |
'tpl' => '@INLINE <li[[+classes]]><a class="pure-menu-link" href="[[+link]]" [[+attributes]]>[[+menutitle]]</a></li>[[+wrapper]]' | |
'hereClass' => 'uk-active' | |
'rowClass' => '' |
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
Вывод ТВ параметры с определенного поля. | |
{1 | resource : 'url_section_4'} |
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 $dates = $detali|split:'||'} | |
{var $start = $dates[0]|date_format: '%d.%m.%Y'} | |
{var $finish = $dates[1]|date_format: '%d.%m.%Y'} | |
{var $time = "{$start} - {$finish}"} | |
{if $start == $finish} | |
{var $time = "{$start}"} | |
{/if} | |
{$time} |
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_expires.c> | |
ExpiresActive On | |
ExpiresDefault "access 7 days" | |
ExpiresByType application/javascript "access plus 1 year" | |
ExpiresByType text/javascript "access plus 1 year" | |
ExpiresByType text/css "access plus 1 year" | |
ExpiresByType text/html "access plus 7 day" | |
ExpiresByType text/x-javascript "access 1 year" | |
ExpiresByType image/gif "access plus 1 year" |
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
{'!MinifyX' | snippet : [ | |
'minifyCss' => 1 | |
'minifyJs' => 1 | |
'cssSources' => ' | |
assets/ksytal/css/theme.css, | |
assets/ksytal/css/custom.css, | |
assets/ksytal/css/component.css | |
' | |
'jsSources' => ' | |
assets/ksytal/js/jquery/jquery-1.11.3.min.js, |
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 $_modx->resource.seotitle == ''} | |
<title>{$_modx->resource.pagetitle}{if $_modx->config.name_title == 1}{$_modx->config.separator_title}{$_modx->config.site_name}{/if}</title> | |
{else} | |
<title>{$_modx->resource.seotitle}{if $_modx->config.name_title == 1}{$_modx->config.separator_title}{$_modx->config.site_name}{/if} | |
</title> | |
{/if} | |
</title> | |
{if $_modx->resource.seokeywords != ''}<meta name="keywords" content="{$_modx->resource.seokeywords}">`{/if} | |
{if $_modx->resource.seodescription != ''}<meta name="description" content="{$_modx->resource.seodescription}">{/if} |
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 | |
$year = (date("Y")); | |
$bild = $year - $modx->getOption('year'); | |
print $bild; | |
// Заводим в Client Config Year |
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 | |
$parentPageId = $modx->resource->get('id'); | |
$level = count($modx->getParentIds($parentPageId)); | |
echo $level; |