{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 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
[18:53:34.801] Running build in Washington, D.C., USA (East) – iad1 | |
[18:53:34.906] Cloning github.com/translation-gang/nuxt.com (Branch: main, Commit: be54bbd) | |
[18:53:38.841] Cloning completed: 3.935s | |
[18:53:43.844] Restored build cache | |
[18:53:43.918] Running "vercel build" | |
[18:53:44.359] Vercel CLI 35.2.1 | |
[18:53:47.220] Detected `pnpm-lock.yaml` version 9 generated by pnpm 9 | |
[18:53:47.243] Installing dependencies... | |
[18:53:47.950] Lockfile is up to date, resolution step is skipped | |
[18:53:49.005] Progress: resolved 1, reused 0, downloaded 0, added 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
# 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 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
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 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
{} |
NewerOlder