Skip to content

Instantly share code, notes, and snippets.

View Dmi3yy's full-sized avatar

Dmytro Lukianenko Dmi3yy

View GitHub Profile
<?php
$core->event->params['TplMainOwner'] = '@CODE: <ul id="nav" class="menu level-1">[+dl.wrap+]</ul>';
$core->event->params['TplSubOwner'] = '@CODE: <ul class="sub-menu level-[+dl.currentDepth+]">[+dl.wrap+]</ul>';
$core->event->params['TplOneItem'] ='@CODE: <li id="menu-item-[+id+]" class="menu-item [+dl.class+]"><a href="[+url+]" title="[+e.title+]">[+title+]</a>[+dl.submenu+]</li>';
$core->event->params['addWhereList'] = 'c.hidemenu = 0';
$currentDepth = getkey($core->event->params, 'currentDepth', 1);
$currentTpl = getkey($core->event->params, 'TplDepth'.$currentDepth);
if(empty($currentTpl)){
$currentTpl = getkey($core->event->params, 'TplOneItem', '@CODE: <li>[+pagetitle+]</li>');

#Release 1.0.13 from 03.03.2014.

This release includes quite a few changes and improvements that would make simpler of creating sites on MODX EVO.

Fixes: 44
Refactoring: 42
Improvements: 24
Security: 1

//<?php
//***********************************
// TVCurrencyConverter plugin v1.1 for MODx 1.0.x
//***********************************
// Eugeny `zk` Krylov - http://nopreset.ru
// Support topic: http://modx-shopkeeper.ru/forum/viewtopic.php?id=239
//***********************************
// Description: TV Currency Converter
// Configuration: &tv_price=TV цены;string;цена &tv_valuta=TV цены в валюте;string;доллары &id_curr=id ресурса с курсом;string;1 &tv_curr=TV курса;string;курс