Changeset 5304 for trunk/picture.php


Ignore:
Timestamp:
Mar 24, 2010, 1:39:34 AM (15 years ago)
Author:
patdenice
Message:

Feature 1533: Allow activation or deactivation of download icon.
Add display configuration for picture properties.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r5293 r5304  
    658658            add_url_params(
    659659              $picture[$which_image]['url'], $slideshow_url_params),
    660           'U_DOWNLOAD' => @$picture['current']['download_url'],
    661660          )
    662661        )
    663662      );
     663    if ($conf['picture_download_icon'] and !empty($picture['current']['download_url']))
     664    {
     665      $template->append($which_image, array('U_DOWNLOAD' => $picture['current']['download_url']), true);
     666    }
    664667  }
    665668}
     
    919922
    920923$template->assign($infos);
     924$template->assign('display_info', unserialize($conf['picture_informations']));
    921925
    922926// related tags
Note: See TracChangeset for help on using the changeset viewer.