test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • duddit2 Friend
    #199601

    On the events timeline view I want to add images (make the intro image appear), as basically the events on our site will all have flyers and we want a thumbnail version to show on the main page.

    Anyone know what I will need to edit to do this?

    Saguaros Moderator
    #542234

    Hi

    You can open the file: templatesja_muzichtmlcom_contentcategoryevent_item.php and add this snippet of code to show the intro image:
    [PHP]
    <?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
    <?php $imgfloat = (empty($images->float_intro)) ? $params->get(‘float_intro’) : $images->float_intro; ?>
    <div class=”pull-<?php echo htmlspecialchars($imgfloat); ?> item-image”> <img
    <?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); ?>”/> </div>
    <?php endif; ?>
    [/PHP]

    http://prntscr.com/42iki9

    It will look like this in frontend: http://prntscr.com/42ikmw

    Hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Saguaros 10 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum