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
<div class="info-kabinet"> | |
<h1>[[!+modx.user.id:userinfo=`username`]]</h1> | |
<p><strong>Адрес: </strong>[[!+modx.user.id:userinfo=`address`]]</p> | |
<p><strong>Телефон: </strong>[[!+modx.user.id:userinfo=`phone`]]</p> | |
<p><strong>E-mail: </strong>[[!+modx.user.id:userinfo=`email`]]</p> | |
<h2>Обо мне</h2> | |
<p>[[!+modx.user.id:userinfo=`comment`]]</p> | |
</div> |
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 ($_POST['a<?php | |
if ($_POST['action'] != 'grete-task'){ | |
return $form; | |
} | |
// Сниппет будет получать данные из формы методом POST | |
$title = isset($_POST['title']) && $_POST['title']!='' ? $_POST['title'] : 'Новое задание'; | |
$content = $_POST['content']; | |
$introtext = $_POST['introtext']; | |
$description = $_POST['description']; |
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 | |
$count = 0; | |
$parent = isset($parent) ? (integer) $parent : 0; | |
if ($parent > 0) { | |
$criteria = array( | |
'parent' => $parent, | |
'deleted' => false, | |
'published' => true, | |
); | |
$count = $modx->getCount('modResource', $criteria); |
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
<div id="pdopage"> | |
<div class="rows"> | |
[[!pdoPage? | |
&elementClass=`modSnippet` | |
&element=`pdoResources` | |
&tpl=`blog-item` | |
&includeContent=`1` | |
&includeTVs=`1` | |
&processTVs=`1` | |
&hideContainers=`1` |
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 | |
$userId = $modx->user->id; | |
$user = $modx->getObject('modUser', $userId); | |
$profile = $user->getOne('Profile'); | |
$oldPhoto = $profile->get('photo'); | |
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_FILES['photo'])) { | |
$newimagePath = 'assets/uploads/profiles/' . $userId . '/'; // . $_FILES['photo']['name']; | |
if (!is_dir($newimagePath) ){ |
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
<!-- FILTER --> | |
<div class="filter-blok"> | |
<script type="text/javascript" src="/assets/components/tag_manager2/js/web/filters.js"></script> | |
<div id="filters"> | |
[[tmFilters? | |
&filterOuterTpl=`tm2_filterOuterTpl` | |
&filterTpl=`tm2_filterTpl` | |
&filterNumericOuterTpl=`tm2_filterOuterTpl` | |
&filterNumericTpl=`tm2_filterNumericTpl` | |
&filtersType=`filters_simple` |
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
[[!Wayfinder? | |
&startId=`0` | |
&outerTpl=`ulTpl` | |
&rowTpl=`liTpl` | |
&innerTpl=`ulTpl` | |
&innerRowTpl=`iTpl` | |
&hereClass=`actives` | |
&firstClass=`` | |
&excludeDocs =`1` | |
&lastClass =`` |
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
[[!getPage? | |
&elementClass=`modSnippet` | |
&element=`getResources` | |
&tpl=`blog-item` | |
&limit=`20` | |
&includeContent=`1` | |
&includeTVs=`1` | |
&processTVs=`1` | |
&hideContainers=`1` | |
&sortby=`menuindex` |
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
[[!FormIt? | |
&hooks=`spam,email,redirect` | |
&emailTo=`mail@yandex.ru` | |
&emailFrom=`[[++mail_smtp_user]]` | |
&emailTpl=`ContactTpl` | |
&redirectTo=`1` | |
&validate=`name:required, telefon:required, subject:required` | |
]] | |
<div class="form-obrat"> |
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? | |
&operator=`EQ` | |
&subject=`[[*zv]]` | |
&operand=`no` | |
&then=`` | |
&else=`<span>Ура работает!</span> | |
`]] |
NewerOlder