This is puzzling me - I added a second image control which woks in cornerstone as expected. But If I try to output it, instead of recieving the url the src shows just (unknown) …
Are two images not possible in the same custom element?
Here, my code snippets:
<?php
//controls.php
return array(
'image' => array(
'type' => 'image',
'ui' => array(
'title' => __( 'Image', 'my-extension' ),
'tooltip' => __( 'Choose an image to display above your content.', 'my-extension' ),
)
),
'image_logo' => array(
'type' => 'image',
'ui' => array(
'title' => __( 'Logo', 'my-extension' ),
'tooltip' => __( 'Choose an logo to display under the title image.', 'my-extension' ),
)
)
};
?>
<?php
//shortcode.php
echo "
<div >
<img src='{$image}'>
<img src='{$image_logo}'>
</div>
";
?>