Ignore:
Timestamp:
Jun 12, 2011, 7:54:34 PM (13 years ago)
Author:
mistic100
Message:

private items are not displayed in SmartAlbums (according to user permissions)

File:
1 moved

Legend:

Unmodified
Added
Removed
  • extensions/SmartAlbums/include/init_cat_list.php

    r11333 r11334  
    9494  global $smart_count;
    9595 
    96   $search[0] = '<ul class="categoryActions">';
    97   $replacement[0] = $search[0].'
     96  $search[0] = '{if isset($category.U_SYNC) }';
     97  $replacement[0] = '
    9898{if isset($SMART_URL[$category.ID])}
    99         <li><a href="{$SMART_URL[$category.ID]}" title="{\'regenerate photos list\'|@translate}"><img src="{$SMART_PATH}template/refresh.png" class="button" alt="{\'regenerate photos list\'|@translate}"></a></li>
    100 {/if}';
     99        <li><a href="{$SMART_URL[$category.ID]}" title="{\'Regenerate photos list of this SmartAlbum\'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/synchronize.png" class="button" alt="{\'regenerate photos list\'|@translate}"></a></li>
     100{/if}'
     101.$search[0];
    101102
    102103  if ($smart_count > 0)
     
    108109<form method="post" action="{$SMART_URL.all}">
    109110  <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
    110   <p><input class="submit" type="submit" value="{\'regenerate photos list of all SmartAlbums\'|@translate}"></p>
     111  <p><input class="submit" type="submit" value="{\'Regenerate photos list of all SmartAlbums\'|@translate}"></p>
    111112</form>';
    112113  }
Note: See TracChangeset for help on using the changeset viewer.