diff options
| -rw-r--r-- | admin_trees_manage.php | 62 | ||||
| -rw-r--r-- | admin_users.php | 5 | ||||
| -rw-r--r-- | index.php | 4 | ||||
| -rw-r--r-- | index_edit.php | 233 | ||||
| -rw-r--r-- | library/WT/Theme/Administration.php | 4 |
5 files changed, 173 insertions, 135 deletions
diff --git a/admin_trees_manage.php b/admin_trees_manage.php index 3f3a65cc99..ece7afb7ef 100644 --- a/admin_trees_manage.php +++ b/admin_trees_manage.php @@ -282,18 +282,12 @@ $controller->pageHeader(); <div class="col-sm-6 col-md-3"> <h4> <?php echo WT_I18N::translate('Family tree'); ?> + — + <a href="index.php?ctype=gedcom&ged=<?php echo WT_Filter::escapeHtml($tree->tree_name); ?>"> + <?php echo WT_I18N::translate('View'); ?> + </a> </h4> <ul class="fa-ul"> - <!-- HOME PAGE --> - <li> - <i class="fa fa-li fa-home"></i> - <a href="index.php?ctype=gedcom&ged=<?php echo WT_Filter::escapeHtml($tree->tree_name); ?>"> - <?php echo WT_I18N::translate('Home page'); ?> - <span class="sr-only"> - <?php echo WT_Filter::escapeHtml($tree->tree_name); ?> - </span> - </a> - </li> <!-- PREFERENCES --> <li> <i class="fa fa-li fa-cogs"></i> @@ -314,31 +308,16 @@ $controller->pageHeader(); </span> </a> </li> - <!-- SET AS DEFAULT --> - <?php if (count(WT_Tree::getAll()) > 1): ?> + <!-- HOME PAGE BLOCKS--> <li> - <i class="fa fa-li fa-star"></i> - <?php if ($tree->tree_name == WT_Site::getPreference('DEFAULT_GEDCOM')): ?> - <?php echo WT_I18N::translate('Default family tree'); ?> - <?php else: ?> - <a href="#" onclick="document.defaultform<?php echo $tree->tree_id; ?>.submit();"> - <?php echo WT_I18N::translate('Set as default'); ?> + <i class="fa fa-li fa-th-large"></i> + <a href="index_edit.php?gedcom_id=<?php echo $tree->tree_id; ?>"> + <?php echo WT_I18N::translate('Change the “Home page” blocks'); ?> <span class="sr-only"> <?php echo WT_Filter::escapeHtml($tree->tree_name); ?> </span> </a> - <form name="defaultform<?php echo $tree->tree_id; ?>" method="POST" action="admin_trees_manage.php"> - <input type="hidden" name="action" value="setdefault"> - <input type="hidden" name="ged" value="<?php echo WT_Filter::escapeHtml($tree->tree_name); ?>"> - <?php echo WT_Filter::getCsrf(); ?> - <!-- A11Y - forms need submit buttons, but they look ugly here --> - <button class="sr-only" type="submit"> - <?php echo WT_I18N::translate('Set as default'); ?> - </button> - </form> - <?php endif; ?> </li> - <?php endif; ?> <!-- DELETE --> <li> <i class="fa fa-li fa-trash-o"></i> @@ -358,6 +337,31 @@ $controller->pageHeader(); </button> </form> </li> + <!-- SET AS DEFAULT --> + <?php if (count(WT_Tree::getAll()) > 1): ?> + <li> + <i class="fa fa-li fa-star"></i> + <?php if ($tree->tree_name == WT_Site::getPreference('DEFAULT_GEDCOM')): ?> + <?php echo WT_I18N::translate('Default family tree'); ?> + <?php else: ?> + <a href="#" onclick="document.defaultform<?php echo $tree->tree_id; ?>.submit();"> + <?php echo WT_I18N::translate('Set as default'); ?> + <span class="sr-only"> + <?php echo WT_Filter::escapeHtml($tree->tree_name); ?> + </span> + </a> + <form name="defaultform<?php echo $tree->tree_id; ?>" method="POST" action="admin_trees_manage.php"> + <input type="hidden" name="action" value="setdefault"> + <input type="hidden" name="ged" value="<?php echo WT_Filter::escapeHtml($tree->tree_name); ?>"> + <?php echo WT_Filter::getCsrf(); ?> + <!-- A11Y - forms need submit buttons, but they look ugly here --> + <button class="sr-only" type="submit"> + <?php echo WT_I18N::translate('Set as default'); ?> + </button> + </form> + <?php endif; ?> + </li> + <?php endif; ?> </ul> </div> <div class="col-sm-6 col-md-3"> diff --git a/admin_users.php b/admin_users.php index f3682d02cb..4caf5e4b19 100644 --- a/admin_users.php +++ b/admin_users.php @@ -190,15 +190,14 @@ case 'loadrows': $user_name = $datum[2]; if ($user_id != Auth::id()) { - $admin_options = '<li class="divider">' . '<li><a onclick="modalDialog(\'index_edit.php?user_id=' . $user_id . '\', \'' . /* I18N: %s is a user's name. */ - WT_I18N::translate('Change the blocks on this user’s “My page”') . '\');" href="#"><i class="fa fa-fw fa-th-large"></i> ' . WT_I18N::translate('Change the blocks on this user’s “My page”') . '</a></li>' . '<li><a href="#" onclick="return masquerade(' . $user_id . ')"><i class="fa fa-fw fa-user"></i> ' . /* I18N: Pretend to be another user, by logging in as them */ + $admin_options = '<li><a href="#" onclick="return masquerade(' . $user_id . ')"><i class="fa fa-fw fa-user"></i> ' . /* I18N: Pretend to be another user, by logging in as them */ WT_I18N::translate('Masquerade as this user') . '</a></li>' . '<li><a href="#" onclick="delete_user(\'' . WT_I18N::translate('Are you sure you want to delete “%s”?', WT_Filter::escapeJs($user_name)) . '\', \'' . WT_Filter::escapeJs($user_id) . '\');"><i class="fa fa-fw fa-trash-o"></i> ' . WT_I18N::translate('Delete') . '</a></li>'; } else { // Do not delete ourself! $admin_options = ''; } - $datum[0] = '<div class="btn-group"><button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-pencil"></i> <span class="caret"></span></button><ul class="dropdown-menu" role="menu"><li><a href="?action=edit&user_id=' . $user_id . '"><i class="fa fa-fw fa-pencil"></i> ' . WT_I18N::translate('Edit') . '</a></li></li>' . $admin_options . '</ul></div>'; + $datum[0] = '<div class="btn-group"><button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-pencil"></i> <span class="caret"></span></button><ul class="dropdown-menu" role="menu"><li><a href="?action=edit&user_id=' . $user_id . '"><i class="fa fa-fw fa-pencil"></i> ' . WT_I18N::translate('Edit') . '</a></li><li class="divider"><li><a href="index_edit.php?user_id=' . $user_id . '"><i class="fa fa-fw fa-th-large"></i> ' . WT_I18N::translate('Change the blocks on this user’s “My page”') . '</a></li>' . $admin_options . '</ul></div>'; // $datum[1] is the user ID // $datum[2] is the user name // $datum[3] is the real name @@ -142,9 +142,9 @@ if ($blocks['side']) { echo '<div id="link_change_blocks">'; if ($ctype === 'user') { - echo '<a href="#" onclick="return modalDialog(\'index_edit.php?user_id=' . Auth::id() . '\', \'', WT_I18N::translate('Change the blocks on this page'), '\');">', WT_I18N::translate('Change the blocks on this page'), '</a>'; + echo '<a href="index_edit.php?user_id=' . Auth::id() . '">', WT_I18N::translate('Change the blocks on this page'), '</a>'; } elseif ($ctype === 'gedcom' && WT_USER_GEDCOM_ADMIN) { - echo '<a href="#" onclick="return modalDialog(\'index_edit.php?gedcom_id=' . WT_GED_ID . '\', \'', WT_I18N::translate('Change the blocks on this page'), '\');">', WT_I18N::translate('Change the blocks on this page'), '</a>'; + echo '<a href="index_edit.php?gedcom_id=' . WT_GED_ID . '">', WT_I18N::translate('Change the blocks on this page'), '</a>'; } if ($WT_TREE->getPreference('SHOW_COUNTER')) { diff --git a/index_edit.php b/index_edit.php index 9b0f478877..66684ba1e5 100644 --- a/index_edit.php +++ b/index_edit.php @@ -22,20 +22,41 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA use WT\Auth; +use WT\Theme; define('WT_SCRIPT_NAME', 'index_edit.php'); require './includes/session.php'; -$controller = new WT_Controller_Ajax; +$controller = new WT_Controller_Page; // Only one of $user_id and $gedcom_id should be set -$user_id = WT_Filter::get('user_id', WT_REGEX_INTEGER, WT_Filter::post('user_id', WT_REGEX_INTEGER)); +$user_id = WT_Filter::get('user_id', WT_REGEX_INTEGER, WT_Filter::post('user_id', WT_REGEX_INTEGER)); +$gedcom_id = WT_Filter::get('gedcom_id', WT_REGEX_INTEGER, WT_Filter::post('gedcom_id', WT_REGEX_INTEGER)); if ($user_id) { $gedcom_id = null; - $can_reset = $user_id > 0; + if ($user_id < 0) { + $controller->setPageTitle(WT_I18N::translate('Set the default blocks for new users')); + $can_reset = false; + } else { + $controller->setPageTitle(WT_I18N::translate('Change the “My page” blocks')); + $can_reset = true; + } +} else { + if ($gedcom_id < 0) { + $controller->setPageTitle(WT_I18N::translate('Set the default blocks for new family trees')); + $can_reset = false; + } else { + $controller->setPageTitle(WT_I18N::translate('Change the “Home page” blocks')); + $can_reset = true; + } +} + +if ($user_id < 0 || $gedcom_id < 0 || Auth::isAdmin() && $user_id != Auth::id()) { + // We're doing this from an admin page. Use the admin theme, and return there afterwards. + Theme::theme(new \WT\Theme\Administration)->init($WT_SESSION, $SEARCH_SPIDER, $WT_TREE); + $return_to = 'admin_trees_manage.php?ged='; } else { - $gedcom_id = WT_Filter::get('gedcom_id', WT_REGEX_INTEGER, WT_Filter::post('gedcom_id', WT_REGEX_INTEGER)); - $can_reset = $gedcom_id > 0; + $return_to = 'index.php'; } // Only an admin can edit the "default" page @@ -46,9 +67,8 @@ if ( $gedcom_id > 0 && !Auth::isManager(WT_Tree::get($gedcom_id)) || $user_id && Auth::id() != $user_id && !Auth::isAdmin() ) { - $controller->pageHeader(); - $controller->addInlineJavascript('window.location.reload();'); - + header('Location: ' . WT_SERVER_NAME . WT_SCRIPT_PATH . $return_to); + return; } @@ -134,7 +154,8 @@ if ($action === 'update') { } } } - + header('Location: ' . WT_SERVER_NAME . WT_SCRIPT_PATH . $return_to); + return; } @@ -267,98 +288,112 @@ $controller $controller->addInlineJavascript( 'block_descr["advice1"] = "' . WT_I18N::translate('Highlight a block name and then click on one of the arrow icons to move that highlighted block in the indicated direction.') . '";' ); - ?> -<form name="config_setup" method="post" action="index_edit.php?action=update" onsubmit="select_options(); return modalDialogSubmitAjax(this);" > -<input type="hidden" name="user_id" value="<?php echo $user_id; ?>"> -<input type="hidden" name="gedcom_id" value="<?php echo $gedcom_id; ?>"> -<table border="1" id="change_blocks"> -<?php -// NOTE: Row 1: Column legends -echo '<tr>'; - echo '<td class="descriptionbox center vmiddle" colspan="2">'; - echo '<b>', WT_I18N::translate('Main section blocks'), '</b>'; + +<?php if ($return_to !== 'index.php'): ?> +<ol class="breadcrumb small"> + <li><a href="admin.php"><?php echo WT_I18N::translate('Control panel'); ?></a></li> + <?php if ($user_id): ?> + <li><a href="admin_users.php"><?php echo WT_I18N::translate('User administration'); ?></a></li> + <?php else: ?> + <li><a href="admin_trees_manage.php"><?php echo WT_I18N::translate('Manage family trees'); ?></a></li> + <?php endif; ?> + <li class="active"><?php echo $controller->getPageTitle(); ?></li> +</ol> +<?php endif; ?> + +<h1><?php echo $controller->getPageTitle(); ?></h1> + +<form name="config_setup" method="post" action="index_edit.php?action=update" onsubmit="select_options();" > + <input type="hidden" name="user_id" value="<?php echo $user_id; ?>"> + <input type="hidden" name="gedcom_id" value="<?php echo $gedcom_id; ?>"> + <table border="1" id="change_blocks"> + <tr> + <?php + // NOTE: Row 1: Column legends + echo '<td class="descriptionbox center vmiddle" colspan="2">'; + echo '<b>', WT_I18N::translate('Main section blocks'), '</b>'; + echo '</td>'; + echo '<td class="descriptionbox center vmiddle" colspan="3">'; + echo '<b>', WT_I18N::translate('Available blocks'), '</b>'; + echo '</td>'; + echo '<td class="descriptionbox center vmiddle" colspan="2">'; + echo '<b>', WT_I18N::translate('Right section blocks'), '</b>'; + echo '</td>'; + echo '</tr>'; + echo '<tr>'; + // NOTE: Row 2 column 1: Up/Down buttons for left (main) block list + echo '<td class="optionbox center vmiddle">'; + echo '<a onclick="move_up_block(\'main_select\');" title="', WT_I18N::translate('Move up'), '"class="', $IconUarrow, '"></a>'; + echo '<br>'; + echo '<a onclick="move_down_block(\'main_select\');" title="', WT_I18N::translate('Move down'), '"class="', $IconDarrow, '"></a>'; + echo '<br><br>'; + echo help_link('block_move_up'); echo '</td>'; - echo '<td class="descriptionbox center vmiddle" colspan="3">'; - echo '<b>', WT_I18N::translate('Available blocks'), '</b>'; + // NOTE: Row 2 column 2: Left (Main) block list + echo '<td class="optionbox center">'; + echo '<select multiple="multiple" id="main_select" name="main[]" size="10" onchange="show_description(\'main_select\');">'; + foreach ($blocks['main'] as $block_id=>$block_name) { + echo '<option value="', $block_id, '">', $all_blocks[$block_name]->getTitle(), '</option>'; + } + echo '</select>'; echo '</td>'; - echo '<td class="descriptionbox center vmiddle" colspan="2">'; - echo '<b>', WT_I18N::translate('Right section blocks'), '</b>'; + // NOTE: Row 2 column 3: Left/Right buttons for left (main) block list + echo '<td class="optionbox center vmiddle">'; + echo '<a onclick="move_left_right_block(\'main_select\', \'right_select\');" title="', WT_I18N::translate('Move right'), '"class="', $IconRDarrow, '"></a>'; + echo '<br>'; + echo '<a onclick="move_left_right_block(\'main_select\', \'available_select\');" title="', WT_I18N::translate('Remove'), '"class="', $IconRarrow, '"></a>'; + echo '<br>'; + echo '<a onclick="move_left_right_block(\'available_select\', \'main_select\');" title="', WT_I18N::translate('Add'), '"class="', $IconLarrow, '"></a>'; + echo '<br><br>'; + echo help_link('block_move_right'); echo '</td>'; -echo '</tr>'; -echo '<tr>'; -// NOTE: Row 2 column 1: Up/Down buttons for left (main) block list -echo '<td class="optionbox center vmiddle">'; - echo '<a onclick="move_up_block(\'main_select\');" title="', WT_I18N::translate('Move up'), '"class="', $IconUarrow, '"></a>'; - echo '<br>'; - echo '<a onclick="move_down_block(\'main_select\');" title="', WT_I18N::translate('Move down'), '"class="', $IconDarrow, '"></a>'; - echo '<br><br>'; - echo help_link('block_move_up'); -echo '</td>'; -// NOTE: Row 2 column 2: Left (Main) block list -echo '<td class="optionbox center">'; - echo '<select multiple="multiple" id="main_select" name="main[]" size="10" onchange="show_description(\'main_select\');">'; - foreach ($blocks['main'] as $block_id=>$block_name) { - echo '<option value="', $block_id, '">', $all_blocks[$block_name]->getTitle(), '</option>'; - } - echo '</select>'; -echo '</td>'; -// NOTE: Row 2 column 3: Left/Right buttons for left (main) block list -echo '<td class="optionbox center vmiddle">'; - echo '<a onclick="move_left_right_block(\'main_select\', \'right_select\');" title="', WT_I18N::translate('Move right'), '"class="', $IconRDarrow, '"></a>'; - echo '<br>'; - echo '<a onclick="move_left_right_block(\'main_select\', \'available_select\');" title="', WT_I18N::translate('Remove'), '"class="', $IconRarrow, '"></a>'; - echo '<br>'; - echo '<a onclick="move_left_right_block(\'available_select\', \'main_select\');" title="', WT_I18N::translate('Add'), '"class="', $IconLarrow, '"></a>'; - echo '<br><br>'; - echo help_link('block_move_right'); -echo '</td>'; -// Row 2 column 4: Middle (Available) block list -echo '<td class="optionbox center">'; - echo '<select id="available_select" name="available[]" size="10" onchange="show_description(\'available_select\');">'; - foreach ($all_blocks as $block_name=>$block) { - echo '<option value="', $block_name, '">', $block->getTitle(), '</option>'; - } - echo '</select>'; -echo '</td>'; -// NOTE: Row 2 column 5: Left/Right buttons for right block list -echo '<td class="optionbox center vmiddle">'; - echo '<a onclick="move_left_right_block(\'right_select\', \'main_select\');" title="', WT_I18N::translate('Move left'), '"class="', $IconLDarrow, '"></a>'; - echo '<br>'; - echo '<a onclick="move_left_right_block(\'right_select\', \'available_select\');" title="', WT_I18N::translate('Remove'), '"class="', $IconLarrow, '"></a>'; - echo '<br>'; - echo '<a onclick="move_left_right_block(\'available_select\', \'right_select\');" title="', WT_I18N::translate('Add'), '"class="', $IconRarrow, '"></a>'; - echo '<br><br>'; - echo help_link('block_move_right'); -echo '</td>'; -// NOTE: Row 2 column 6: Right block list -echo '<td class="optionbox center">'; - echo '<select multiple="multiple" id="right_select" name="right[]" size="10" onchange="show_description(\'right_select\');">'; - foreach ($blocks['side'] as $block_id=>$block_name) { - echo '<option value="', $block_id, '">', $all_blocks[$block_name]->getTitle(), '</option>'; + // Row 2 column 4: Middle (Available) block list + echo '<td class="optionbox center">'; + echo '<select id="available_select" name="available[]" size="10" onchange="show_description(\'available_select\');">'; + foreach ($all_blocks as $block_name=>$block) { + echo '<option value="', $block_name, '">', $block->getTitle(), '</option>'; + } + echo '</select>'; + echo '</td>'; + // NOTE: Row 2 column 5: Left/Right buttons for right block list + echo '<td class="optionbox center vmiddle">'; + echo '<a onclick="move_left_right_block(\'right_select\', \'main_select\');" title="', WT_I18N::translate('Move left'), '"class="', $IconLDarrow, '"></a>'; + echo '<br>'; + echo '<a onclick="move_left_right_block(\'right_select\', \'available_select\');" title="', WT_I18N::translate('Remove'), '"class="', $IconLarrow, '"></a>'; + echo '<br>'; + echo '<a onclick="move_left_right_block(\'available_select\', \'right_select\');" title="', WT_I18N::translate('Add'), '"class="', $IconRarrow, '"></a>'; + echo '<br><br>'; + echo help_link('block_move_right'); + echo '</td>'; + // NOTE: Row 2 column 6: Right block list + echo '<td class="optionbox center">'; + echo '<select multiple="multiple" id="right_select" name="right[]" size="10" onchange="show_description(\'right_select\');">'; + foreach ($blocks['side'] as $block_id=>$block_name) { + echo '<option value="', $block_id, '">', $all_blocks[$block_name]->getTitle(), '</option>'; + } + echo '</select>'; + echo '</td>'; + // NOTE: Row 2 column 7: Up/Down buttons for right block list + echo '<td class="optionbox center vmiddle">'; + echo '<a onclick="move_up_block(\'right_select\');" title="', WT_I18N::translate('Move up'), '"class="', $IconUarrow, '"></a>'; + echo '<br>'; + echo '<a onclick="move_down_block(\'right_select\');" title="', WT_I18N::translate('Move down'), '"class="', $IconDarrow, '"></a>'; + echo '<br><br>'; + echo help_link('block_move_up'); + echo '</td>'; + echo '</tr>'; + // NOTE: Row 3 columns 1-7: Summary description of currently selected block + echo '<tr><td class="descriptionbox wrap" colspan="7"><div id="instructions">'; + echo WT_I18N::translate('Highlight a block name and then click on one of the arrow icons to move that highlighted block in the indicated direction.'); + echo '</div></td></tr>'; + if ($can_reset) { + echo '<tr><td class="topbottombar" colspan="4">'; + echo '<input type="checkbox" name="default" value="1">', WT_I18N::translate('Restore the default block layout'), '</td>'; + echo '<td class="topbottombar" colspan="3">'; + } else { + echo '<td class="topbottombar" colspan="7">'; } - echo '</select>'; -echo '</td>'; -// NOTE: Row 2 column 7: Up/Down buttons for right block list -echo '<td class="optionbox center vmiddle">'; - echo '<a onclick="move_up_block(\'right_select\');" title="', WT_I18N::translate('Move up'), '"class="', $IconUarrow, '"></a>'; - echo '<br>'; - echo '<a onclick="move_down_block(\'right_select\');" title="', WT_I18N::translate('Move down'), '"class="', $IconDarrow, '"></a>'; - echo '<br><br>'; - echo help_link('block_move_up'); -echo '</td>'; -echo '</tr>'; -// NOTE: Row 3 columns 1-7: Summary description of currently selected block -echo '<tr><td class="descriptionbox wrap" colspan="7"><div id="instructions">'; -echo WT_I18N::translate('Highlight a block name and then click on one of the arrow icons to move that highlighted block in the indicated direction.'); -echo '</div></td></tr>'; -if ($can_reset) { - echo '<tr><td class="topbottombar" colspan="4">'; - echo '<input type="checkbox" name="default" value="1">', WT_I18N::translate('Restore the default block layout'), '</td>'; - echo '<td class="topbottombar" colspan="3">'; -} else { - echo '<td class="topbottombar" colspan="7">'; -} -echo '<input type="submit" value="', WT_I18N::translate('save'), '">'; -echo '</td></tr></table>'; -echo '</form>'; + echo '<input type="submit" value="', WT_I18N::translate('save'), '">'; + echo '</td></tr></table>'; + echo '</form>'; diff --git a/library/WT/Theme/Administration.php b/library/WT/Theme/Administration.php index 851a615999..5f2261cf34 100644 --- a/library/WT/Theme/Administration.php +++ b/library/WT/Theme/Administration.php @@ -85,7 +85,7 @@ class Administration extends BaseTheme { ); if (count(WT_Tree::getAll()) > 1) { - $submenus[] = new WT_Menu(/* I18N: Menu entry */ WT_I18N::translate('Set the default blocks for new family trees'), '#', '', 'return modalDialog(\'index_edit.php?gedcom_id=-1\', \'' . WT_I18N::translate('Set the default blocks for new family trees') . '\')'); + $submenus[] = new WT_Menu(/* I18N: Menu entry */ WT_I18N::translate('Set the default blocks for new family trees'), 'index_edit.php?gedcom_id=-1'); $submenus[] = new WT_Menu(/* I18N: Menu entry */ WT_I18N::translate('Merge family trees'), 'admin_trees_merge.php'); } @@ -101,7 +101,7 @@ class Administration extends BaseTheme { new WT_Menu(/* I18N: Menu entry */ WT_I18N::translate('Add a new user'), 'admin_users.php?action=edit'), new WT_Menu(/* I18N: Menu entry */ WT_I18N::translate('Send broadcast messages'), 'admin_users_bulk.php'), new WT_Menu(/* I18N: Menu entry */ WT_I18N::translate('Delete inactive users'), 'admin_users.php?action=cleanup'), - new WT_Menu(/* I18N: Menu entry */ WT_I18N::translate('Set the default blocks for new users'), '#', '', 'return modalDialog(\'index_edit.php?user_id=-1\', \'' . WT_I18N::translate('Set the default blocks for new users') . '\')'), + new WT_Menu(/* I18N: Menu entry */ WT_I18N::translate('Set the default blocks for new users'), 'index_edit.php?user_id=-1'), )); } |
