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:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user