Changeset 11334
- Timestamp:
- Jun 12, 2011, 7:54:34 PM (13 years ago)
- Location:
- extensions/SmartAlbums
- Files:
-
- 1 added
- 6 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/SmartAlbums/include/count_images.php
r11290 r11334 13 13 { 14 14 $filters = array(); 15 $page['errors'] = array(); 15 16 $limit_is_set = false; 17 16 18 foreach ($_POST['filters'] as $filter) 17 19 { -
extensions/SmartAlbums/include/functions.inc.php
r11333 r11334 28 28 $datas 29 29 ); 30 set_random_representant(array($cat_id)); 31 } 30 } 31 32 set_random_representant(array($cat_id)); 32 33 33 34 return $images; -
extensions/SmartAlbums/include/init_cat_list.php
r11333 r11334 94 94 global $smart_count; 95 95 96 $search[0] = ' <ul class="categoryActions">';97 $replacement[0] = $search[0].'96 $search[0] = '{if isset($category.U_SYNC) }'; 97 $replacement[0] = ' 98 98 {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]; 101 102 102 103 if ($smart_count > 0) … … 108 109 <form method="post" action="{$SMART_URL.all}"> 109 110 <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> 111 112 </form>'; 112 113 } -
extensions/SmartAlbums/include/init_cat_modify.php
r11333 r11334 7 7 function smart_cat_modify() 8 8 { 9 global $template ;9 global $template, $page; 10 10 include_once(SMART_PATH.'include/functions.inc.php'); 11 11 … … 31 31 pwg_query('DELETE FROM '.IMAGE_CATEGORY_TABLE.' WHERE category_id = '.$cat_id.' AND smart = true;'); 32 32 pwg_query('DELETE FROM '.CATEGORY_FILTERS_TABLE.' WHERE category_id = '.$cat_id.';'); 33 set_random_representant(array($cat_id)); 33 34 } 34 35 /* no filter selected */ -
extensions/SmartAlbums/language/en_UK/plugin.lang.php
r11290 r11334 21 21 $lang['This album is a SmartAlbum'] = 'This album is a SmartAlbum'; 22 22 $lang['Count'] = 'Count'; 23 $lang['Regenerate photos list of this SmartAlbum'] = 'Regenerate photos list of this SmartAlbum'; 24 $lang['Regenerate photos list of all SmartAlbums'] = 'Regenerate photos list of all SmartAlbums'; 23 25 24 26 ?> -
extensions/SmartAlbums/language/fr_FR/plugin.lang.php
r11333 r11334 1 1 <?php 2 2 3 $lang['%d photos associated to album «%s»'] = '%d photos associées à album «%s»';3 $lang['%d photos associated to album «%s»'] = '%d photos associées à l\'album «%s»'; 4 4 $lang['No filter selected'] = 'Aucun filter sélectionné'; 5 5 $lang['No tag selected'] = 'Aucun tag sélectionné'; … … 21 21 $lang['This album is a SmartAlbum'] = 'Cet album est un SmartAlbum'; 22 22 $lang['Count'] = 'Compter'; 23 $lang['Regenerate photos list of this SmartAlbum'] = 'Régénérer les photos de ce SmartAlbum'; 24 $lang['Regenerate photos list of all SmartAlbums'] = 'Régénérer les photos de tous les SmartAlbums'; 23 25 24 26 ?> -
extensions/SmartAlbums/main.inc.php
r11290 r11334 16 16 define('CATEGORY_FILTERS_TABLE', $prefixeTable.'category_filters'); 17 17 18 if (script_basename() == 'admin') 18 if (script_basename() == 'index') 19 { 20 add_event_handler('loc_end_section_init', 'smart_init_page_items'); 21 include_once(SMART_PATH.'include/init_page_items.php'); 22 } 23 else if (script_basename() == 'admin') 19 24 { 20 25 load_language('plugin.lang', SMART_PATH); 21 26 22 add_event_handler('loc_begin_cat_modify', 'smart_init_cat_modify'); 23 function smart_init_cat_modify() 24 { 25 include_once(SMART_PATH.'init_cat_modify.php'); 26 smart_cat_modify(); 27 } 27 add_event_handler('loc_begin_cat_modify', 'smart_cat_modify'); 28 include_once(SMART_PATH.'include/init_cat_modify.php'); 28 29 29 add_event_handler('loc_begin_cat_list', 'smart_init_cat_list'); 30 function smart_init_cat_list() 31 { 32 include_once(SMART_PATH.'init_cat_list.php'); 33 smart_cat_list(); 34 } 30 add_event_handler('loc_begin_cat_list', 'smart_cat_list'); 31 include_once(SMART_PATH.'include/init_cat_list.php'); 35 32 } 36 33 -
extensions/SmartAlbums/template/cat_modify.tpl
r11333 r11334 35 35 $('#SmartAlbum_options').toggle(); 36 36 $('input[name="countImages"]').toggle(); 37 $('.count_images_display').toggle(); 37 38 }); 38 39
Note: See TracChangeset
for help on using the changeset viewer.