Welcome, Guest
Username: Password: Remember me

TOPIC: Intro image - intro text

Intro image - intro text 1 year 8 months ago #8379

  • kovacshazi
  • kovacshazi's Avatar
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Why not working this code:
<div class="row-fluid">
<?php if (isset($images->image_intro) && !empty($images->image_intro)): ?>
<?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
<div class="img-intro-<?php echo htmlspecialchars($imgfloat); ?> col-lg-4 col-lg-reset col-md-4 col-md-reset col-sm-4 col-sm-reset col-xs-12 col-xs-reset">
<?php if ($images->image_intro_caption):
echo 'class="caption"'.' title="' . htmlspecialchars($images->image_intro_caption) . '"';
endif; ?>
src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
<?php endif; ?>

<?php if (isset($images->image_intro) && !empty($images->image_intro)) { ?>
<div class="col-lg-8 col-lg-reset col-md-8 col-md-reset col-sm-8 col-sm-reset col-xs-12 col-xs-reset">
<?php } ELSE { ?>

<div class="col-lg-12 col-lg-reset col-md-12 col-md-reset col-sm-12 col-sm-reset col-xs-12 col-xs-reset">
<?php }?>
<?php echo $this->item->introtext; ?>

When I edit the article, I put the picture as intro and full image in 'images and links' tab. This picture should appear in the bolded (accentuated) line of the code part I've inserted above. But it isn't there, it is placed simply to the intro text. Could you tell me why this happens?
The administrator has disabled public write access.
Time to create page: 0.111 seconds