Changeset 23719 for extensions/UserCollections
- Timestamp:
- Jul 1, 2013, 1:27:17 PM (11 years ago)
- Location:
- extensions/UserCollections
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserCollections/include/events.inc.php
r23551 r23719 73 73 74 74 // the content is different on collection edition page and no button on batch downloader set edition page 75 if ( (@$page['section'] == 'collections' and @$page['sub_section']=='edit') or @$page['section'] == 'download')75 if ( empty($pictures) or (@$page['section'] == 'collections' and @$page['sub_section']=='edit') or @$page['section'] == 'download') 76 76 { 77 77 return $tpl_thumbnails_var; … … 246 246 247 247 $data['U_LIST'] = USER_COLLEC_PUBLIC; 248 $data['U_CREATE'] = add_url_params(USER_COLLEC_PUBLIC, array('action'=>'new','col_id'=>'0','redirect'=>'true'));249 248 250 249 $block->set_title('<a href="'.USER_COLLEC_PUBLIC.'">'.l10n('Collections').'</a>'); -
extensions/UserCollections/include/ws_functions.inc.php
r23552 r23719 82 82 'default'=>array('id','name','url','path'), 83 83 'flags'=>WS_PARAM_FORCE_ARRAY, 84 'info'=>'Available options are: id, file, name, url, path, ate_creation, collection_add_date, filesize, width, height'84 'info'=>'Available options are: id, file, name, url, path, date_creation, collection_add_date, filesize, width, height' 85 85 ), 86 86 ), -
extensions/UserCollections/template/menublock.tpl
r23551 r23719 1 1 <dt>{$block->get_title()}</dt> 2 2 <dd> 3 <p> 3 <p>{strip} 4 4 {if $block->data.NB_COL == 0} 5 5 {'You have no collection'|@translate} 6 6 {else} 7 7 <a href="{$block->data.U_LIST}">{$pwg->l10n_dec('You have %d collection', 'You have %d collections', $block->data.NB_COL)}</a> 8 {/if}</p> 8 {/if} 9 {/strip}</p> 9 10 {if $block->data.collections} 10 <ul> {strip}11 {foreach from=$block->data.collections item=col} 11 <ul> 12 {foreach from=$block->data.collections item=col}{strip} 12 13 <li> 13 <a href="{$col.u_edit}" rel="nofollow">{$col.name}</a> 14 <a href="{$col.u_edit}">{$col.name}</a> 14 15 <span class="menuInfoCat">[<span class="nbImagesCollec-{$col.id}">{$col.nb_images}</span>]</span> 15 16 </li> 16 {/ foreach}17 {/strip}{/foreach} 17 18 {if isset($block->data.MORE)}<li class="menuInfoCat"><a href="{$block->data.U_LIST}">{'%d more...'|@translate|sprintf:$block->data.MORE}</a></li>{/if} 18 {/strip}</ul>19 </ul> 19 20 {/if} 20 <p><a href="{$block->data.U_CREATE}" rel="nofollow">{'Create a new collection'|@translate}</a></p>21 21 </dd>
Note: See TracChangeset
for help on using the changeset viewer.