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
{foreach $options as $name => $values} | |
<div class="sm-text"><b>{('ms2_product_' ~ $name) | lexicon}</b></div> | |
{foreach $values as $value index=$index} | |
<label> | |
<input type="radio" value="{$values[$index]}" name="options[{$name}]" {if $index == 0}checked="checked"{/if}/> | |
{$values[$index]} |
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
/** v 1.1.0 */ | |
var quickview = { | |
config: {}, | |
defaults: { | |
selectors: { | |
view: 'quickview-view', | |
close: 'quickview-close btn-danger', | |
next: 'quickview-next btn-info', | |
prev: 'quickview-prev btn-info' |
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
<h1>[[*pagetitle]]</h1> | |
<div id="msProduct" class="row"> | |
<div class="col-md-6"> | |
[[!msGallery]] | |
</div> | |
<div class="col-md-6"> | |
<form class="form-horizontal ms2_form msoptionsprice-product" method="post"> | |
<input type="hidden" name="id" value="[[*id]]"/> | |
<div class="form-group"> | |
<label class="col-md-2 control-label">[[%ms2_product_article]]:</label> |
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
<div class="row ms2_product"> | |
<div class="col-md-2"> | |
{if $thumb?} | |
<img src="{$thumb}" alt="{$pagetitle}" title="{$pagetitle}"/> | |
{else} | |
<img src="{'assets_url' | option}components/minishop2/img/web/ms2_small.png" | |
srcset="{'assets_url' | option}components/minishop2/img/web/[email protected] 2x" | |
alt="{$pagetitle}" title="{$pagetitle}"/> | |
{/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
/** | |
* Created by mvoevodskiy on 20.07.16. | |
*/ | |
$(document).on('ready', function() { | |
msal.orig_price = 0; | |
msal.additional_price = 0; | |
if (msal.price_target === undefined) { | |
msal.price_target = '#price'; | |
} | |
if (msal.price_orig_target === undefined) { |
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
{$_modx->lexicon->load('minishop2:product')} | |
<div id="msCart"> | |
{if !count($products)} | |
{'ms2_cart_is_empty' | lexicon} | |
{else} | |
<div class="table-responsive"> | |
<table class="table table-striped"> | |
<tr class="header"> | |
<th class="image"> </th> |
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
#!/bin/sh | |
cd | |
cd www/name | |
git pull |
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 | |
define('MODX_API_MODE', true); | |
require dirname(dirname(__FILE__)) . '/index.php'; | |
// sh | |
$hookfile = MODX_BASE_PATH . '.hooks/gitlab-pull.sh'; | |
$buildfile = MODX_BASE_PATH . 'name/_build/build.transport.php'; | |
// refs | |
$ref = 'refs/heads/master'; |
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
[mysqld] | |
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |
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
<div id="msGallery" class="msoptionsprice-gallery"> | |
{if $files?} | |
<div class="fotorama" | |
data-nav="thumbs" | |
data-thumbheight="45" | |
data-allowfullscreen="true" | |
data-swipe="true" | |
data-autoplay="160000"> | |
{foreach $files as $file} | |
<a href="{$file['url']}" target="_blank" data-rid="{$file['product_id']}" data-iid="{$file['id']}"> |