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 | |
//*********************************** | |
// 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;курс |
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 | |
//OnManagerTreePrerender,OnManagerTreeRender | |
//Autor: Dmi3yy | |
//Version: 0.1 | |
if($_SESSION['mgrRole']=='1') { | |
$e = &$modx->Event; | |
if($e->name == 'OnManagerTreePrerender'){ | |
$output = ' | |
<style> |
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 include '../inc/header.php'; ?> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-6"> | |
<h3><a name="ditto" href="#wayfinder">Wayfinder</a></h3> | |
<h4><a name="wayfinderpar" href="#wayfinderpar">Parameters</a></h4> | |
<pre class="prettyprint lang-php"> | |
//Шаблон родителей текущего пункта меню | |
&activeParentRowTpl=`false` | |
//Шаблон вывода категории |
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 | |
/* | |
* Замена PHx для обработки плейсхолдеров | |
* Версия: 0.1 | |
* Пример: [[ph? &fn=`mydate` &input=`[*pub_date*]` &options=`%d-%m-%Y %H:%M`]] | |
* Автор: Dmi3yy (dmi3yy@gmail.com) | |
*/ | |
$output = isset($input)?$input:''; | |
$options = isset($options)?$options:''; | |
$fn = isset($fn)?$fn:'none'; |
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 | |
/** | |
* @copyright 2013 Dmi3yy | |
* @version 0.2 | |
* @license http://opensource.org/licenses/MIT MIT License | |
* @author Dmi3yy <dmi3yy@gmail.com> | |
* @link http://dmi3yy.com author home page | |
*/ | |
$sql = 'SELECT DISTINCT `value` FROM '.$modx->getFullTableName('site_tmplvar_contentvalues').' WHERE tmplvarid = '.$field_id; | |
$result = $modx->db->query( $sql ); |
NewerOlder