Ignore:
Timestamp:
Jul 23, 2012, 1:50:41 PM (12 years ago)
Author:
mistic100
Message:

feature 2703: make it easy for plugins to add tabs in admin screens
centralize all core tabs in one file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_options.php

    r16925 r16928  
    140140$tabsheet = new tabsheet();
    141141$tabsheet->set_id('cat_options');
    142 // TabSheet initialization
    143 $opt_link = $link_start.'cat_options&section=';
    144 $tabsheet->add('status', l10n('Public / Private'), $opt_link.'status');
    145 $tabsheet->add('visible', l10n('Lock'), $opt_link.'visible');
    146 if ($conf['activate_comments'])
    147 {
    148   $tabsheet->add('comments', l10n('Comments'), $opt_link.'comments');
    149 }
    150 if ($conf['allow_random_representative'])
    151 {
    152   $tabsheet->add('representative', l10n('Representative'), $opt_link.'representative');
    153 }
    154 // TabSheet selection
    155142$tabsheet->select($page['section']);
    156 // Assign tabsheet to template
    157143$tabsheet->assign();
    158144
Note: See TracChangeset for help on using the changeset viewer.