JimmyLo
User
 Hero Member
| Posts: 27 |   | Karma: 1
|
Re:Possible to show Category Description if it's e - 2008/01/16 18:56
hi theo! Here's the code, hope it helps:
| Code: |
// Generic blog empty display
// the following line commented out by JLo 7/20/2007
// echo _EMPTY_BLOG;
// the following added by JLo 7/20/2007, so that we can have description even if the blog is empty
$col_with = 100 / $columns; // width of each column
$width = 'width="'. intval( $col_with ) .'%"';
echo '<table class="blog' . $params->get( 'pageclass_sfx' ) . '" cellpadding="0" cellspacing="0">';
// Secrion/Category Description & Image
if ( $menu && $menu->componentid && ( $descrip || $descrip_image ) ) {
$link = $mosConfig_live_site .'/images/stories/'. $description->image;
echo '<tr>';
echo '<td valign="top">';
if ( $descrip_image && $description->image ) {
echo '<img src="'. $link .'" align="'. $description->image_position .'" hspace="6" alt="" />';
}
if ( $descrip && $description->description ) {
echo $description->description;
}
echo '<br/><br/>';
echo '</td>';
echo '</tr>';
echo '</table>';
}
// end JLo additions
|
|