08/05/2014 at 7:53 am
#299633
Keymaster
@ Roy
To change the image from the photo to the logo you would use:
[connections image='logo']
Thinking about this a little more, the default for Slim Plus will be to crop and resize proportionally to best fit the specified dimensions, maintaining the aspect ratio. This is generally fine for photos, not good for logos because they will get cut off.
Probably the best thing to do is edit the card.php file. Change these lines:
$entry->getImage( array(
'image' => $atts['image'],
'height' => 120,
'width' => 100,
'fallback' => array(
'type' => $atts['image_fallback'],
'string' => $atts['str_image']
)
)
);
to this:
$entry->getImage( array(
'image' => $atts['image'],
'height' => 120,
'width' => 100,
'fallback' => array(
'type' => $atts['image_fallback'],
'string' => $atts['str_image']
),
'zc' => 2,
)
);
Now, the logos will be resized proportionally to fit entire image into the specified dimensions and add margins if required.
That should do the trick nicely. Hope that helps!
