0
Welcome Guest! Login
0 items Join Now

New 2.5 Article Images Not In Gantry Template?

    • LiEs's Avatar
    • LiEs
    • Sr. Rocketeer
    • Posts: 238
    • Thanks: 0

    New 2.5 Article Images Not In Gantry Template?

    Posted 12 years 11 months ago
    • OPEN blog_item.php
      Paste
      $images = json_decode($this->item->images);
      AFTER
      // Create a shortcut for params.

      FIND
      <?php echo $this->item->introtext; ?>
      BEFORE add
       
      <?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="img-intro-<?php echo htmlspecialchars($imgfloat); ?>">
          <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; ?>
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: New 2.5 Article Images Not In Gantry Template?

    Posted 12 years 11 months ago
    • Thank you for this info. I am sure it will be valuable to our members :)
    • Check my services at: Mihha-Vision

Time to create page: 0.060 seconds