Skip to content

Instantly share code, notes, and snippets.

@ydenissov ydenissov/thumbs.php
Last active Nov 22, 2017

What would you like to do?
Phpthumb wrapper for DocLister n Evolution CMS
&tpl=`@CODE: <a href="[+tv.image+]"><img src="[+thumb+]"></a>`
// thumb snippet
$data['thumb'] = $modx->runSnippet('phpthumb', Array(
'input' => $data['tv.image'],
'options'=> $_DocLister->getCFGDef('thumbOptions')
return $data;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.