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
<script type="text/javascript"> | |
$(document).on('af_complete', function(event, response) { | |
var form = response.form; | |
// Если у формы определённый id | |
if (response.success == true) { | |
// Скрываем её! | |
form.hide(); | |
jQuery(".ok-mes").fadeIn(1000); | |
} |
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
[[If? | |
&operator=`EQ` | |
&subject=`[[*zv]]` | |
&operand=`no` | |
&then=`` | |
&else=`<span>Ура работает!</span> | |
`]] |
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
[[!FormIt? | |
&hooks=`spam,email,redirect` | |
&emailTo=`[email protected]` | |
&emailFrom=`[[++mail_smtp_user]]` | |
&emailTpl=`ContactTpl` | |
&redirectTo=`1` | |
&validate=`name:required, telefon:required, subject:required` | |
]] | |
<div class="form-obrat"> |
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
[[!getPage? | |
&elementClass=`modSnippet` | |
&element=`getResources` | |
&tpl=`blog-item` | |
&limit=`20` | |
&includeContent=`1` | |
&includeTVs=`1` | |
&processTVs=`1` | |
&hideContainers=`1` | |
&sortby=`menuindex` |
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
[[!Wayfinder? | |
&startId=`0` | |
&outerTpl=`ulTpl` | |
&rowTpl=`liTpl` | |
&innerTpl=`ulTpl` | |
&innerRowTpl=`iTpl` | |
&hereClass=`actives` | |
&firstClass=`` | |
&excludeDocs =`1` | |
&lastClass =`` |
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
<!-- 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 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 | |
$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 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="pdopage"> | |
<div class="rows"> | |
[[!pdoPage? | |
&elementClass=`modSnippet` | |
&element=`pdoResources` | |
&tpl=`blog-item` | |
&includeContent=`1` | |
&includeTVs=`1` | |
&processTVs=`1` | |
&hideContainers=`1` |
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 | |
$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 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 | |
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']; |
OlderNewer