Last active
December 16, 2015 23:50
-
-
Save jpdevries/5516772 to your computer and use it in GitHub Desktop.
Using phpthumb in a MODX CMP
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
$modAuth = $this->modx->user->getUserToken('mgr'); | |
$thumbQuery = http_build_query(array( | |
'src' => $image['urlAbsolute'], | |
'w' => 360, | |
'h' => 270, | |
'HTTP_MODAUTH' => $modAuth, | |
//'f' => $thumbnailType, | |
'q' => 80, | |
'wctx' => 'mgr', | |
'zc' => 1 | |
//'source' => $this->get('id'), | |
)); | |
$thumb = $this->modx->getOption('connectors_url', null, MODX_CONNECTORS_URL).'system/phpthumb.php?'.urldecode($thumbQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment