11/07/2016 at 1:41 pm
#398957
Keymaster
@ K C
re: I did try and look through to find a template that uses the logo but did not see it.
Both the cMap and Market templates display both the logo and image. The logo is displayed by default on the card with the photo displayed in the bio area content tray.
re: nomenclature for the logo so I can request it from data and include it on the page
In all the templates, if you open the card.php and card-single.php files you’ll find code similar to this:
$entry->getImage(
array(
'image' => $atts['image'],
'width' => $atts['image_width'],
'height' => $atts['image_height'],
'zc' => $atts['image_crop_mode'],
'fallback' => array(
'type' => $atts['image_fallback'],
'string' => $atts['str_image'],
),
)
);
This is the image code. You can use similar code to add the other image:
Display the logo:
$entry->getImage( array( 'image' => 'logo' ) );
Display the photo:
$entry->getImage( array( 'image' => 'photo' ) );
Hope that helps!
