06/28/2016 at 8:28 am
#380774
Participant
Hi Steven
Very sorry that I’m back again but I am not having any luck with this. Here is my code for the card.php file (which I have created in the override location as per the “Update Safe” instructions. I also tried it in the original card.php as well in case something is wrong with my override but I’m not having any luck here either.
This is my code extract:
<?php $entry->getContentBlock( $atts['content'], $atts, $template ); ?>
<div class="cn-clear" style="display:table;margin: 10px 0;width:100%;">
<div style="display:table-cell;vertical-align:middle;">
<?php
if ( $atts['show_categories'] ) {
$entry->getCategoryBlock(
array(
'separator' => ', ',
'label' => __( $atts['str_category_label'], 'cnt_cmap' ),
)
);
$entry->getExcerpt();
}
?>
</div>
<div style="display:table-cell;text-align:right;vertical-align:middle;">
<?php
if ( $atts['show_last_updated'] ) {
cnTemplatePart::updated(
array(
'timestamp' => $entry->getUnixTimeStamp(),
'style' => array(
'font-variant' => 'small-caps',
)
)
);
}
?>
</div>
</div>
