[[msOptionsColor?options=`color`]]
{if $product.options?}
{set $colors = $_modx->runSnippet('!msOptionsColor',[
'product' => $product.id,
<?php | |
/** @var modX $modx */ | |
/** @var array $scriptProperties */ | |
switch ($modx->event->name) { | |
case 'OnDocFormSave': | |
/* | |
id ресурса откуда копируем |
jQuery(document).ready(function ($) { | |
if (typeof $.fn.quickview.methodActions == 'object') { | |
$.fn.quickview.methodActions = $.extend(true, | |
$.fn.quickview.methodActions, | |
{show: {'custom.callbacks': function () { | |
$(".slides").responsiveSlides({ | |
auto: true, | |
pause:true, |
<?php | |
if ($modx->event->name != 'msopOnModificationSave') { | |
return; | |
} | |
$modification = $modx->getOption('modification', $scriptProperties); | |
if (!$modification) { | |
return; | |
} |
<?php | |
/* @var array $scriptProperties */ | |
if ($modx->event->name != "psOnSubscriptionSave") { | |
return; | |
} | |
$mode = $modx->getOption('mode', $scriptProperties); | |
$subscription = $modx->getOption('subscription', $scriptProperties); |
<div id="mslistorders"> | |
{if !count($orders)} | |
{'mslistorders_orders_empty' | lexicon} | |
{else} | |
<div class="table-responsive"> | |
<table class="table table-striped"> | |
<tr class="header"> | |
<th class="num">{'mslistorders_num' | lexicon}</th> | |
<th class="createdon">{'mslistorders_createdon' | lexicon}</th> | |
<th class="updatedon">{'mslistorders_updatedon' | lexicon}</th> |
if (!window.FB) window.FB = { | |
_apiKey: null, | |
_session: null, | |
_userStatus: "unknown", | |
_logging: true, | |
_inCanvas: window.location.search.indexOf("fb_sig_in_iframe=1") > -1 || window.location.search.indexOf("session=") > -1 || window.location.search.indexOf("signed_request=") > -1 || window.name.indexOf("iframe_canvas") > -1 || window.name.indexOf("app_runner") > -1, | |
_https: window.name.indexOf("_fb_https") > -1, | |
_domain: { | |
api: "https://api.facebook.com/", | |
api_read: "https://api-read.facebook.com/", |
<div class="row ms2_product"> | |
<div class="col-md-8"> | |
<form method="post" class="ms2_form"> | |
<a href="{$rid | url}">{$product_pagetitle}</a> | |
{if $_pls['small']?} | |
<img src="{$_pls['small']}" alt="{$product_pagetitle}" title="{$product_pagetitle}"/> | |
{else} | |
<img src="{'assets_url' | option}components/minishop2/img/web/ms2_small.png" | |
srcset="{'assets_url' | option}components/minishop2/img/web/ms2_small@2x.png 2x" |
<?php | |
/** @var modX $modx */ | |
/** @var array $scriptProperties */ | |
$tpl = $modx->getOption('tpl', $scriptProperties, 'tpl.msOptions'); | |
if (!empty($input) && empty($product)) { | |
$product = $input; | |
} | |
if (!empty($name) && empty($options)) { | |
$options = $name; | |
} |
``` | |
[[!msOptions? | |
&options=`tags` | |
&tpl=`tpl.msOptions.pasta` | |
]] | |
``` | |
tpl.msOptions.pasta | |
``` |