1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-17 20:01:47 +02:00

{SETIMAGE} can now set Height and also crop the image. eg. {SETIMAGE: w=300&h=200&crop=1}

This commit is contained in:
Cameron
2013-03-24 03:03:31 -07:00
parent 0ebbb7f15f
commit e2dffbe0f7
2 changed files with 17 additions and 2 deletions

View File

@@ -4,6 +4,9 @@
function setimage_shortcode($parm, $mode='')
{
e107::getParser()->thumbWidth = vartrue($parm['w'],100);
e107::getParser()->thumbHeight = vartrue($parm['h'],0);
e107::getParser()->thumbCrop = vartrue($parm['crop'],0);
}
?>