Changeset 32155


Ignore:
Timestamp:
May 1, 2020, 7:43:17 PM (4 years ago)
Author:
ddtddt
Message:

[photos_from_one_year_ago] add stuffs module

Location:
extensions/photos_from_one_year_ago
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/photos_from_one_year_ago/language/en_UK/plugin.lang.php

    r32125 r32155  
    2121$lang['Photos from one year ago'] = 'Photos from one year ago';
    2222$lang['Displays photos from one year ago'] = 'Displays photos from one year ago';
     23$lang['more photos'] = 'more photos';
     24$lang['Display X photos from one year ago in the gallery or a album'] = 'Display X photos from one year ago in the gallery or a album';
    2325
  • extensions/photos_from_one_year_ago/language/fr_FR/plugin.lang.php

    r32125 r32155  
    2222$lang['Photos from one year ago'] = 'Photos d\'il y a un an';
    2323$lang['Displays photos from one year ago'] = 'Affiche les photos d\'il y a un an';
     24$lang['more photos'] = 'plus de photos';
     25$lang['Display X photos from one year ago in the gallery or a album'] = 'Afficher les X photos d\'il y a 1 ans de la galerie ou de l\'album';
  • extensions/photos_from_one_year_ago/main.inc.php

    r32152 r32155  
    6060function section_init_pfoya()
    6161{
    62   global $tokens, $page, $conf;
    63  
     62  global $tokens, $page, $conf,$template;
     63  $template->assign('PFOAYALINK',make_index_url(array('section' => 'photos_from_one_year_ago')));
    6464  if (!in_array('photos_from_one_year_ago', $tokens))
    6565  {
    6666    return;
    6767  }
     68 
    6869 
    6970  $page['section'] = 'photos_from_one_year_ago';
     
    121122  return $tpl_thumbnails_var;
    122123}
    123 
    124 
    125 
    126124 
    127125}
    128126
     127add_event_handler('get_stuffs_modules', 'register_pfoya_module');
    129128
     129function register_pfoya_module($modules){
     130  array_push($modules, array(
     131    'path' => PFOYA_PATH.'/blockhome',
     132    'name' => l10n('Photos from one year ago'),
     133    'description' => l10n('Display X photos from one year ago in the gallery or a album'),
     134    )
     135  );
     136  return $modules;
     137}
    130138
    131139
Note: See TracChangeset for help on using the changeset viewer.