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 ($thread = $modx->getObject('TicketThread', array('resource' => $id))) { | |
echo $thread->get('comments'); | |
} |
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
{"small":{"w":360,"h":180,"q":90,"zc":"1","bg":"000000"}} |
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
Options +FollowSymlinks | |
RewriteBase / | |
RewriteRule ^robots.txt$ /robot.php?%{REQUEST_URI} |
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 | |
/** | |
* versionCleanX | |
* | |
* @author Scott Pronych, September 27, 2013 | |
* | |
* DESCRIPTION | |
* | |
* For use with VersionX to delete old 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 | |
if ($mode == 'new') { | |
if (strpos(trim($resource->pagetitle), ' ') === false) { | |
$url = 'https://www.youtube.com/watch?v=' . $resource->pagetitle; | |
$html = file_get_contents($url); | |
$dom = new DomDocument(); | |
$dom->loadHTML('<?xml version="1.0" encoding="UTF-8"?>'. $html); | |
if ($title = $dom->getElementById('eow-title')) { | |
$modx->log(1, $resource->pagetitle); | |
$video_id = $resource->pagetitle; |
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="news-items" id="newsItems"> | |
[[!+news-nav]] | |
<div class="rows" style="overflow: hidden;"> | |
[[!pdoPage? | |
&parents=`18` | |
&tpl=`newItemTpl` | |
&showHidden=`1` | |
&includeTVs=`image` | |
&limit=`4` | |
&sortby=`{"publishedon":"ASC"}` |
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? | |
&parents=`0` | |
&level=`0` | |
&limit=`6` | |
&where=`{"modResource.parent:!=":0}` | |
&sortby=`{"p_menuindex":"ASC", "publishedon":"DESC"}` | |
&ajaxMode=`default` | |
&leftJoin=`{ |
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
[[pdoResources? | |
&parents=`0` | |
&select=`{ | |
"modResource":"id, pagetitle", | |
"Children":"COUNT(Children.id) as count" | |
}` | |
&leftJoin=`{ | |
"Children":{"class":"modResource", "on":"modResource.id = Children.parent"} | |
}` | |
&sortby=`{"id":"ASC"}` |
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="modal fade" id="successModal" tabindex="-1" role="dialog" aria-labelledby="successModalLabel"> | |
<div class="modal-dialog" role="document"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | |
<h4 class="modal-title" id="successModalLabel">Спасибо</h4> | |
</div> | |
<div class="modal-body"> | |
</div> |
OlderNewer