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
<meta property="og:title" content="[[*pagetitle]]"/> | |
<meta property="og:site_name" content="[[++site_name]]"/> | |
<meta property="og:url" content="[[++site_url]][[*uri]]"/> | |
<meta property="og:description" content="[[*content:notags:limit=`200`]]"/> | |
<meta property="og:image" content="[[++site_url]][[*tvname]]"/> | |
<meta name="twitter:card" content="summary" /> | |
<meta name="twitter:title" content="[[*pagetitle]]" /> | |
<meta name="twitter:image:src" content="[[++site_url]][[*tvname]]" /> | |
<meta name="twitter:description" content="[[*content:notags:limit=`200`]]" /> | |
<link rel="image_src" href="[[++site_url]][[*image]]" /> |
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
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
{"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
<?php | |
if ($thread = $modx->getObject('TicketThread', array('resource' => $id))) { | |
echo $thread->get('comments'); | |
} |
NewerOlder