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
if(IN_MANAGER_MODE!='true' && !$modx->hasPermission('exec_module')) die('<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the MODX Content Manager instead of accessing this file directly.'); | |
$moduleurl = 'index.php?a=112&id='.$_GET['id'].'&'; | |
$txt = $modx->runSnippet('DocLister', array( 'controller' => 'onetable', | |
'table' => 'evoshop_orders', | |
'idField' => 'id', | |
'tpl' => '@CODE:<tr><td>[+id+]</td><td>[+orderdata+]</td><td><b>[+price+]</b></td><td>[+date+]</td><td>[+email+]</td><td>[+phone+]</td><td align="center"><a href="'.$moduleurl.'action=remove&eid=[+id+]"><i class="fa fa-trash-o"></i></a></td></tr>', | |
'orderBy'=>'id ASC', | |
'selectFields'=>'id,price,date,email,phone,content', |
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
<?php | |
$content = $data['content']; | |
$itemsArr = json_decode($content, true); | |
foreach($itemsArr as $k => $v){ | |
$evoShopItems .='<li><b><a target="_blank" href='.$modx->config['site_url'].$v['link'].'>'.$v['name'].'</a></b> x '.$v['quantity'].' шт, <b>'.$v['price'].'</b> руб</li>'; | |
$total = $total + ($v['quantity']*$v['price']); | |
} | |
$evoShopItems .= '</ul>'; | |
$data['orderdata'] = $evoShopItems; |
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
<?php | |
if(!defined('MODX_BASE_PATH')) {die('What are you doing? Get out of here!');} | |
//параметры | |
$files = isset($files) ? $files : ''; // Список файлов (css, scss, less) | |
$minify = isset($minify) ? $minify : '1'; //сжымать и минифицировать файлы | |
$folder = isset($folder) ? $folder : ''; // папка для сгенерированных стилей по умолчанию в корень | |
//$inline = isset($inline) ? $inline : ''; // инлайн код стилей | |
//$parse = isset($parse) ? $parse : '0'; //обрабатывать ли теги MODX |
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
<?php | |
define('MODX_API_MODE', true); | |
define('MODX_BASE_PATH', __DIR__ . '/'); | |
define('MODX_BASE_URL', '/'); | |
define('MODX_SITE_URL', 'http://sitename.ru/'); | |
include_once("index.php"); | |
$modx->db->connect(); | |
if (empty ($modx->config)) { | |
$modx->getSettings(); |
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
<?php | |
/*USAGE: | |
DocLister?prepare=`zerobased` | |
call in @TPL: [+iteration_zerobased+] | |
*/ | |
$data['iteration_zerobased'] = $data['iteration']-1; | |
return ($data); |
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
see https://gist.github.com/sashabeep/401be029521c6a8c698c9bbd3dbc50a0 |
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
<?php | |
/** | |
* ДАННЫЕ ДЛЯ ПОДКЛЮЧЕНИЯ К ПЛАТЕЖНОМУ ШЛЮЗУ | |
* | |
* USERNAME Логин магазина, полученный при подключении. | |
* PASSWORD Пароль магазина, полученный при подключении. | |
* GATEWAY_URL Адрес платежного шлюза. | |
* RETURN_URL Адрес, на который надо перенаправить пользователя | |
* в случае успешной оплаты. |
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
$('.owl-carousel-carousel').owlCarousel({ | |
loop:true, | |
margin:20, | |
nav:true, | |
dots:false, | |
responsive:{ | |
0:{ | |
items:1 | |
}, | |
600:{ |
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
... | |
$this->data['pagebuilder'] = $this->evo->runSnippet('PageBuilder', ['renderTo' => 'array'])[0]; | |
... |
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
@media only screen and (min-width: 481px) { | |
.grid-group-wrapper.row { | |
display: flex; | |
flex-wrap: wrap; | |
} | |
.grid-group-wrapper.row:after, | |
.grid-group-wrapper.row:before { | |
display: flex; | |
} |
OlderNewer