08/22/2014 at 3:44 pm
#301611
Keymaster
@ Hilary
By commenting out and adding the variables for the image size (unless you added the support for those variables in the slim-plus.php file) will cause the template to use the dimensions entered for the medium image size on the Connections : Settings admin page under the Images tab. If you want 225x150px image, I suggest you use this code instead:
$entry->getImage( array(
'image' => $atts['image'],
'height' => 150,
'width' => 225,
'fallback' => array(
'type' => $atts['image_fallback'],
'string' => $atts['str_image']
)
)
);
If you want to adjust which crop mode is used you can use this:
$entry->getImage( array(
'image' => $atts['image'],
'height' => 150,
'width' => 225,
'zc' => 3,
'fallback' => array(
'type' => $atts['image_fallback'],
'string' => $atts['str_image']
)
)
);
Notice the addition of the zc option. You can set this to 0, 1, 2 or 3. It sounds like you want crop mode 3.
I hope that helps!
