{foreach $_modx->resource.slider | fromJSON as $slide}
{if $slide@index in list [3,8,10]}
{set $cls = 'm-ibook--1_3'}
{set $thumb = 'w=450&h=250&zc=1'}
{set $thumbWebp = 'w=450&h=250&zc=1&zc=1&bg=none&f=webp'}
{elseif $slide@index in list [0,7,9]}
{set $cls = 'm-ibook--3_3'}
{set $thumb = 'w=450&h=650&zc=1'}
{set $thumbWebp = 'w=450&h=650&zc=1&zc=1&bg=none&f=webp'}
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
# add snippet into <head> | |
[[BabelLinks? | |
&tpl=`babelCanonicalTag` | |
&showCurrent=`1` ]] | |
# create chunk with name babelCanonicalTag | |
<link rel="alternate" hreflang="[[+cultureKey]]" href="[[+url]]"> |
// vk comunity wall api
//==================================================
const tempFunc = {};
const vkApiBlocks = document.querySelectorAll('.s-vk-wall__list');
vkApiBlocks.forEach((vkApiBlock) => {
const comunityUrl = vkApiBlock.dataset.comunityUrl;
const vkComunityId = parseInt(vkApiBlock.dataset.comunityId);
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
import Swiper from "swiper/bundle"; | |
import "swiper/swiper-bundle.css"; | |
window.addEventListener( | |
"load", | |
() => { | |
// swiper | |
var slider = document.querySelectorAll(".swiper-container"); | |
for (let index = 0; index < slider.length; index++) { | |
slider[index].classList.add("swiper-container-" + index); |
[[!if?
&subject=`[[!#GET.page]]`
&operator=`!empty`
&then=`- Страница [[!#GET.page]]`
]]
{if $.get.page}
<?php
define('MODX_API_MODE', true);
require_once __DIR__ . '/../core/config/config.inc.php';
require_once MODX_CORE_PATH . 'model/modx/modx.class.php';
$modx = new modX();
$modx->initialize('web');
$modx->getService('error', 'error.modError', '', '');
$modx->error->message = null;
$q = $modx->newQuery('modResource');
<?php
$cart_status = $order->ms2->cart->status();
$order_status = $order->get();
$min_price_order = $modx->getOption('min_price_order');
if ($modx->event->name == 'msOnSubmitOrder'){
if ($cart_status['total_cost'] < $min_price_order && $order_status['delivery'] == 2) {
$modx->event->output('Минимальная сумма заказа для выбранного способа доставки ' . $min_price_order . ' рублей!');
}
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
{} |
<form method="post" action="{$_modx->makeUrl($_modx->resource.id)}" class="ajax_form" id="testingForm" name="testingForm">
<input type="hidden" name="startTime" value="">
<input type="hidden" name="finishTime" value="">
<div class="testingForm--header">
<div class="form-row">
<div class="col">
<div class="form-group">
NewerOlder