Ignore:
Timestamp:
Mar 24, 2013, 7:46:35 AM (11 years ago)
Author:
rvelices
Message:

feature 2836: display the number of comments/tags in the menubar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/menubar.inc.php

    r21040 r21817  
    192192    }
    193193
     194    $block->data['recent_pics'] =
     195      array(
     196        'URL' => make_index_url(array('section' => 'recent_pics')),
     197        'TITLE' => l10n('display most recent photos'),
     198        'NAME' => l10n('Recent photos'),
     199      );
     200
     201    $block->data['recent_cats'] =
     202      array(
     203        'URL' => make_index_url(array('section' => 'recent_cats')),
     204        'TITLE' => l10n('display recently updated albums'),
     205        'NAME' => l10n('Recent albums'),
     206      );
     207
    194208    $block->data['random'] =
    195209      array(
     
    199213        'REL'=> 'rel="nofollow"'
    200214      );
    201 
    202     $block->data['recent_pics'] =
    203       array(
    204         'URL' => make_index_url(array('section' => 'recent_pics')),
    205         'TITLE' => l10n('display most recent photos'),
    206         'NAME' => l10n('Recent photos'),
    207       );
    208 
    209     $block->data['recent_cats'] =
    210       array(
    211         'URL' => make_index_url(array('section' => 'recent_cats')),
    212         'TITLE' => l10n('display recently updated albums'),
    213         'NAME' => l10n('Recent albums'),
    214       );
    215 
    216215
    217216    $block->data['calendar'] =
     
    247246        'NAME' => l10n('Tags'),
    248247        'URL'=> get_root_url().'tags.php',
     248        'COUNTER' => get_nb_available_tags(),
    249249      );
    250250
     
    266266          'NAME'=>l10n('Comments'),
    267267          'URL'=> get_root_url().'comments.php',
     268          'COUNTER' => get_nb_available_comments(),
    268269        );
    269270    }
Note: See TracChangeset for help on using the changeset viewer.