Changeset 23746


Ignore:
Timestamp:
Jul 2, 2013, 9:59:34 PM (11 years ago)
Author:
flop25
Message:

bug:2808
add "Your Favorites" to the filters of the Batch Manager

Location:
trunk/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/batch_manager.php

    r19920 r23746  
    169169  }
    170170
     171  if ('favorites' == $_SESSION['bulk_manager_filter']['prefilter'])
     172  {
     173    $query = '
     174SELECT image_id
     175  FROM '.FAVORITES_TABLE.'
     176  WHERE user_id = '.$user['id'].'
     177;';
     178    array_push(
     179      $filter_sets,
     180      array_from_query($query, 'image_id')
     181      );
     182  }
     183
    171184  if ('last import'== $_SESSION['bulk_manager_filter']['prefilter'])
    172185  {
  • trunk/admin/batch_manager_global.php

    r20489 r23746  
    433433$prefilters = array(
    434434  array('ID' => 'caddie', 'NAME' => l10n('Caddie')),
     435  array('ID' => 'favorites', 'NAME' => l10n('Your favorites')),
    435436  array('ID' => 'last import', 'NAME' => l10n('Last import')),
    436437  array('ID' => 'with no album', 'NAME' => l10n('With no album')),
  • trunk/admin/themes/default/template/intro.tpl

    r13244 r23746  
    3030        jQuery(".warnings ul").append('<li>'+ext_need_update_msg+'</li>');
    3131    }
    32   }); 
     32  });
     33  jQuery('.tips').cluetip({
     34    multiple: true,
     35                width: 300,
     36                splitTitle: '|',
     37                positionBy: 'bottomTop',
     38    attribute:'data-help'
     39        });
    3340});
    3441{/literal}
     
    4754    </ul>
    4855  </dd>
    49 
     56<a href="javascript:void(0)" class="externalLink tips" data-help="{'Piwigo Announcements Newsletter'|@translate}|{'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'|@translate|@htmlspecialchars|@nl2br}">TRIGGER</a>
     57<span data-help="TITLE|BLABLA">TEXT</span>
    5058  <dt>{'Environment'|@translate}</dt>
    5159  <dd>
Note: See TracChangeset for help on using the changeset viewer.