set_prefilter('picture', 'add_info_photo_preT'); } function add_info_photo_preT($content, &$smarty) { global $conf, $user; $replastandard='
{\'Author\'|@translate} | {$INFO_AUTHOR} |
---|---|
{\'Created on\'|@translate} | {$INFO_CREATION_DATE} |
{\'Posted on\'|@translate} | {$INFO_POSTED_DATE} |
{\'Dimensions\'|@translate} | {$INFO_DIMENSIONS} |
{\'File\'|@translate} | {$INFO_FILE} |
{\'Filesize\'|@translate} | {$INFO_FILESIZE} |
{\'Tags\'|@translate} | {foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}{$tag.name}{/foreach} |
{\'Albums\'|@translate} |
|
{\'Visits\'|@translate} | {$INFO_VISITS} |
{\'Rating score\'|@translate} | {if $rate_summary.count} {$rate_summary.score} ({$rate_summary.count|@translate_dec:\'%d rate\':\'%d rates\'}) {else} {\'no rate\'|@translate} {/if} |
{if isset($rating.USER_RATE)}{\'Update your rating\'|@translate}{else}{\'Rate this photo\'|@translate}{/if} | |
{\'Who can see this photo?\'|@translate} | {combine_script id=\'core.scripts\' load=\'async\' path=\'themes/default/js/scripts.js\'} {footer_script require=\'jquery\'}{strip} function setPrivacyLevel(id, level){ (new PwgWS(\'{$ROOT_URL}\')).callService( "pwg.images.setPrivacyLevel", { image_id:id, level:level}, { method: "POST", onFailure: function(num, text) { alert(num + " " + text); }, onSuccess: function(result) { jQuery(\'#privacyLevelBox .switchCheck\').css(\'visibility\',\'hidden\'); jQuery(\'#switchLevel\'+level).prev(\'.switchCheck\').css(\'visibility\',\'visible\'); jQuery(\'#privacyLevelLink\').text(jQuery(\'#switchLevel\'+level).text()); } } ); } (SwitchBox=window.SwitchBox||[]).push("#privacyLevelLink", "#privacyLevelBox"); {/strip}{/footer_script} |
{\'Description\'|@translate} | {$COMMENT_IMG} |
{$addinfophotos.AIPWORDING} | {$addinfophotos.AIPDATA} |
{$label} | {$value} |
---|