Last active
November 22, 2017 08:39
-
-
Save ydenissov/981dd08a175d7a7a16e58333e1e45a56 to your computer and use it in GitHub Desktop.
Phpthumb wrapper for DocLister n Evolution CMS
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 | |
[[DocLister? | |
&prepare=`thumb` | |
&thumbOptions=`w=100,h100,zc=1` | |
&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