09/12/2013 at 11:18 am
#269048
Keymaster
@ Ed
The only way to do this is to edit the core card.php template PHP file. This file can be found here:
../wp-content/plugins/cmap/
If you have some basic understanding of PHP making this tweak should be pretty straight forward.
Look for this block of code:
if ( $atts['enable_note'] && $entry->getNotes() != '' ) {
echo '<div class="cn-notes" id="note-block-' , $entry->getRuid() , '" style="display: none;">';
if ( $atts['enable_note_head'] ) echo '<h4>' , $atts['str_note_head'] , '</h4>';
$entry->getNotesBlock();
echo '<div class="cn-clear"></div>';
echo '</div>';
}
Change it to this:
if ( $atts['enable_note'] && $entry->getNotes() != '' ) {
echo '<div class="cn-notes" id="note-block-' , $entry->getRuid() , '">';
if ( $atts['enable_note_head'] ) echo '<h4>' , $atts['str_note_head'] , '</h4>';
$entry->getNotesBlock();
echo '<div class="cn-clear"></div>';
echo '</div>';
}
And then move it to where you want it to be shown.
You should also remove this sections of code since it is now longer needed:
if ( ( $atts['enable_note'] && $entry->getNotes() != '' ) && ( $atts['enable_bio'] && $entry->getBio() != '' ) ) {
echo ' | ';
}
if ( $atts['enable_note'] && $entry->getNotes() != '' ) {
printf( '<a class="cn-note-anchor toggle-div" id="note-anchor-%1$s" href="#" data-uuid="%1$s" data-div-id="note-block-%1$s" data-str-show="%2$s" data-str-hide="%3$s">%2$s</a>',
$entry->getRuid(),
$atts['str_note_show'],
$atts['str_note_hide']
);
}
Hope that helps.
