How do I display, in a ColorBox popup, a caption AND a title (caption from image ‘alt’ attribute and title from ‘title’ attribute

I am trying to display in a ColorBox popup, a caption AND a title (caption from image ‘alt’ attribute and title from image ‘title’ attribute). The colorbox is opened when an image is clicked.

Here is an example of what I want to do.

screenshot

The img will be something like the following.

<img typeof="foaf:Image" src="https://localhost:4444/img.jpg" width="336"   height="254" alt="LEGEND / CAPTION balbalblalblalba balbalblalblalba balbalblalblalba" title="TITLE balbalblalblalba balbalblalblalba balbalblalblalba" class=""> 

Do you have any idea of how can I do that?

I am using:

  • Colorbox 7.x-2.10
  • Drupal 7.35

The colorbox module settings are the following.

screenshot