diff --git a/admin/batch_manager_global.php b/admin/batch_manager_global.php index 50395a193..6b8c0c065 100644 --- a/admin/batch_manager_global.php +++ b/admin/batch_manager_global.php @@ -476,6 +476,7 @@ $template->assign( 'PWG_TOKEN' => get_pwg_token(), 'U_DISPLAY'=>$base_url.get_query_string_diff(array('display')), 'F_ACTION'=>$base_url.get_query_string_diff(array('cat','start','tag','filter')), + 'ADMIN_PAGE_TITLE' => l10n('Batch Manager'), ) ); diff --git a/admin/batch_manager_unit.php b/admin/batch_manager_unit.php index 74493e959..50d463246 100644 --- a/admin/batch_manager_unit.php +++ b/admin/batch_manager_unit.php @@ -109,6 +109,7 @@ $template->assign( 'U_ELEMENTS_PAGE' => $base_url.get_query_string_diff(array('display','start')), 'F_ACTION' => $base_url.get_query_string_diff(array()), 'level_options' => get_privacy_level_options(), + 'ADMIN_PAGE_TITLE' => l10n('Batch Manager'), ) ); diff --git a/admin/extend_for_templates.php b/admin/extend_for_templates.php index e898d15af..00bffd2d6 100644 --- a/admin/extend_for_templates.php +++ b/admin/extend_for_templates.php @@ -184,6 +184,7 @@ foreach ($tpl_extension as $file => $conditions) // +-----------------------------------------------------------------------+ // | html code display | // +-----------------------------------------------------------------------+ +$template->assign('ADMIN_PAGE_TITLE', l10n('Extend for templates')); $template->assign_var_from_handle('ADMIN_CONTENT', 'extend_for_templates'); ?> \ No newline at end of file diff --git a/admin/history.php b/admin/history.php index ed7951f1d..69a2d6c46 100644 --- a/admin/history.php +++ b/admin/history.php @@ -113,6 +113,7 @@ $template->assign( $template->assign('display_thumbnails', $display_thumbnails); $template->assign('display_thumbnail_selected', $form['display_thumbnail']); $template->assign('guest_id', $conf['guest_id']); +$template->assign('ADMIN_PAGE_TITLE', l10n('History')); // +-----------------------------------------------------------------------+ // | html code display | diff --git a/admin/languages_installed.php b/admin/languages_installed.php index 117aa6569..8b0cf4e06 100644 --- a/admin/languages_installed.php +++ b/admin/languages_installed.php @@ -116,6 +116,7 @@ DELETE } $template->assign('isWebmaster', (is_webmaster()) ? 1 : 0); +$template->assign('ADMIN_PAGE_TITLE', l10n('Languages')); $template->assign_var_from_handle('ADMIN_CONTENT', 'languages'); ?> diff --git a/admin/languages_new.php b/admin/languages_new.php index 4528d9fcc..ca397ca64 100644 --- a/admin/languages_new.php +++ b/admin/languages_new.php @@ -108,6 +108,7 @@ else { $page['errors'][] = l10n('Can\'t connect to server.'); } +$template->assign('ADMIN_PAGE_TITLE', l10n('Languages')); $template->assign_var_from_handle('ADMIN_CONTENT', 'languages'); ?> \ No newline at end of file diff --git a/admin/menubar.php b/admin/menubar.php index 943c92221..9cd8a1d62 100644 --- a/admin/menubar.php +++ b/admin/menubar.php @@ -155,6 +155,7 @@ $action = get_root_url().'admin.php?page=menubar'; $template->assign(array('F_ACTION'=>$action)); $template->assign('isWebmaster', (is_webmaster()) ? 1 : 0); +$template->assign('ADMIN_PAGE_TITLE', l10n('Menu Management')); $template->set_filename( 'menubar_admin_content', 'menubar.tpl' ); $template->assign_var_from_handle( 'ADMIN_CONTENT', 'menubar_admin_content'); diff --git a/admin/notification_by_mail.php b/admin/notification_by_mail.php index d6b556b43..19f0bd8df 100644 --- a/admin/notification_by_mail.php +++ b/admin/notification_by_mail.php @@ -725,6 +725,8 @@ switch ($page['mode']) } } +$template->assign('ADMIN_PAGE_TITLE', l10n('Send mail to users')); + // +-----------------------------------------------------------------------+ // | Sending html code | // +-----------------------------------------------------------------------+ diff --git a/admin/permalinks.php b/admin/permalinks.php index eaebb6c64..56b336434 100644 --- a/admin/permalinks.php +++ b/admin/permalinks.php @@ -181,6 +181,7 @@ $template->assign(array( 'PWG_TOKEN' => $pwg_token, 'U_HELP' => get_root_url().'admin/popuphelp.php?page=permalinks', 'deleted_permalinks' => $deleted_permalinks, + 'ADMIN_PAGE_TITLE' => l10n('Albums'), )); $template->assign_var_from_handle('ADMIN_CONTENT', 'permalinks'); diff --git a/admin/photos_add_applications.php b/admin/photos_add_applications.php index 2957c0ca0..efe1a31e1 100644 --- a/admin/photos_add_applications.php +++ b/admin/photos_add_applications.php @@ -19,5 +19,7 @@ if (!defined('PHOTOS_ADD_BASE_URL')) // | sending html code | // +-----------------------------------------------------------------------+ +$template->assign('ADMIN_PAGE_TITLE', l10n('Upload Photos')); + $template->assign_var_from_handle('ADMIN_CONTENT', 'photos_add'); ?> \ No newline at end of file diff --git a/admin/photos_add_ftp.php b/admin/photos_add_ftp.php index c420c34d3..004242fa7 100644 --- a/admin/photos_add_ftp.php +++ b/admin/photos_add_ftp.php @@ -27,6 +27,7 @@ $template->assign( // +-----------------------------------------------------------------------+ // | sending html code | // +-----------------------------------------------------------------------+ +$template->assign('ADMIN_PAGE_TITLE', l10n('Upload Photos')); $template->assign_var_from_handle('ADMIN_CONTENT', 'photos_add'); ?> \ No newline at end of file diff --git a/admin/plugins_installed.php b/admin/plugins_installed.php index 9defc87fb..18101971a 100644 --- a/admin/plugins_installed.php +++ b/admin/plugins_installed.php @@ -194,6 +194,7 @@ $template->assign( 'show_details' => $show_details, 'max_inactive_before_hide' => isset($_GET['show_inactive']) ? 999 : 8, 'isWebmaster' => (is_webmaster()) ? 1 : 0, + 'ADMIN_PAGE_TITLE' => l10n('Plugins'), ) ); diff --git a/admin/plugins_new.php b/admin/plugins_new.php index a3e3447bf..9b8fb3f1c 100644 --- a/admin/plugins_new.php +++ b/admin/plugins_new.php @@ -185,6 +185,7 @@ if (!$beta_test and preg_match('/(beta|RC)/', PHPWG_VERSION)) { $template->assign('BETA_URL', $base_url.'&beta-test=true'); } +$template->assign('ADMIN_PAGE_TITLE', l10n('Plugins')); $template->assign_var_from_handle('ADMIN_CONTENT', 'plugins'); ?> \ No newline at end of file diff --git a/admin/rating.php b/admin/rating.php index 679ab4dcb..c18e7235a 100644 --- a/admin/rating.php +++ b/admin/rating.php @@ -162,7 +162,7 @@ $user_options = array( $template->assign('user_options', $user_options ); $template->assign('user_options_selected', array(@$_GET['users']) ); - +$template->assign('ADMIN_PAGE_TITLE', l10n('Rating')); $query = ' SELECT i.id, diff --git a/admin/rating_user.php b/admin/rating_user.php index c65da8e96..f58427ea5 100644 --- a/admin/rating_user.php +++ b/admin/rating_user.php @@ -245,7 +245,8 @@ $template->assign( array( 'image_urls' => $image_urls, 'TN_WIDTH' => ImageStdParams::get_by_type(IMG_SQUARE)->sizing->ideal_size[0], 'NB_ELEMENTS' => $nb_elements, - ) ); + 'ADMIN_PAGE_TITLE' => l10n('Rating'), + )); $template->set_filename('rating', 'rating_user.tpl'); $template->assign_var_from_handle('ADMIN_CONTENT', 'rating'); diff --git a/admin/tags.php b/admin/tags.php index 6d74caeef..c8add65fc 100644 --- a/admin/tags.php +++ b/admin/tags.php @@ -150,7 +150,8 @@ $template->assign( 'first_tags' => array_slice($all_tags, 0, $per_page), 'data' => $all_tags, 'total' => count($all_tags), - 'per_page' => $per_page + 'per_page' => $per_page, + 'ADMIN_PAGE_TITLE' => l10n('Tags'), ) ); diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl index 57d69a680..614701abc 100644 --- a/admin/themes/default/template/batch_manager_global.tpl +++ b/admin/themes/default/template/batch_manager_global.tpl @@ -345,9 +345,6 @@ var sliders = { {combine_css path="admin/themes/default/fontello/css/animation.css" order=10} {* order 10 is required, see issue 1080 *}
- -

{'Batch Manager'|@translate}

-
diff --git a/admin/themes/default/template/batch_manager_unit.tpl b/admin/themes/default/template/batch_manager_unit.tpl index d57128442..61a94d49a 100644 --- a/admin/themes/default/template/batch_manager_unit.tpl +++ b/admin/themes/default/template/batch_manager_unit.tpl @@ -35,8 +35,6 @@ jQuery("a.preview-box").colorbox( { }()); {/footer_script} -

{'Batch Manager'|@translate}

-
diff --git a/admin/themes/default/template/extend_for_templates.tpl b/admin/themes/default/template/extend_for_templates.tpl index 818096ba4..5c6d7f5e3 100644 --- a/admin/themes/default/template/extend_for_templates.tpl +++ b/admin/themes/default/template/extend_for_templates.tpl @@ -1,5 +1,3 @@ -

{'Extend for templates'|@translate}

-
{if isset($extents)}

{'Replacement of original templates by customized templates from template-extension subfolder'|@translate}

diff --git a/admin/themes/default/template/history.tpl b/admin/themes/default/template/history.tpl index 862999858..6d21c8cef 100644 --- a/admin/themes/default/template/history.tpl +++ b/admin/themes/default/template/history.tpl @@ -52,8 +52,6 @@ const guest_id = {$guest_id}; {combine_script id='jquery.confirm' load='footer' require='jquery' path='themes/default/js/plugins/jquery-confirm.min.js'} {combine_css path="admin/themes/default/fontello/css/animation.css" order=10} {* order 10 is required, see issue 1080 *} -

{'History'|@translate}

-
diff --git a/admin/themes/default/template/languages_installed.tpl b/admin/themes/default/template/languages_installed.tpl index 33d7a2945..6b0b8807c 100644 --- a/admin/themes/default/template/languages_installed.tpl +++ b/admin/themes/default/template/languages_installed.tpl @@ -15,10 +15,6 @@ $(".delete-lang-button").each(function() { }); {/footer_script} -
-

{'Languages'|@translate}

-
- {foreach from=$language_states item=language_state}
diff --git a/admin/themes/default/template/languages_new.tpl b/admin/themes/default/template/languages_new.tpl index 8bf7de753..d25346edc 100644 --- a/admin/themes/default/template/languages_new.tpl +++ b/admin/themes/default/template/languages_new.tpl @@ -9,10 +9,6 @@ jQuery().ready(function(){ldelim} }); {/footer_script} -
-

{'Languages'|@translate}

-
- {if $isWebmaster == 1} {if !empty($languages)} diff --git a/admin/themes/default/template/menubar.tpl b/admin/themes/default/template/menubar.tpl index 0260b1173..c6d399710 100644 --- a/admin/themes/default/template/menubar.tpl +++ b/admin/themes/default/template/menubar.tpl @@ -33,10 +33,6 @@ jQuery(document).ready(function(){ } {/html_style} -
-

{'Menu Management'|@translate}

-
-
{if not empty($plugins)} diff --git a/admin/themes/default/template/rating.tpl b/admin/themes/default/template/rating.tpl index 243a84417..880b595a1 100644 --- a/admin/themes/default/template/rating.tpl +++ b/admin/themes/default/template/rating.tpl @@ -32,9 +32,12 @@ checkCatFilter(); jQuery("select[name=cat]").change(function(){ checkCatFilter(); }); -{/footer_script} -

{'Rating'|@translate}{$NB_ELEMENTS}

+$(document).ready(function() { + $('h1').append("{$NB_ELEMENTS}") +}); + +{/footer_script}
diff --git a/admin/themes/default/template/rating_user.tpl b/admin/themes/default/template/rating_user.tpl index 1584e7f7c..55fe8540f 100644 --- a/admin/themes/default/template/rating_user.tpl +++ b/admin/themes/default/template/rating_user.tpl @@ -36,8 +36,11 @@ body .ui-tooltip { } {/html_style} - -

{'Rating'|@translate}{$NB_ELEMENTS}

+{footer_script} +$(document).ready(function() { + $('h1').append("{$NB_ELEMENTS}") +}); +{/footer_script}
diff --git a/admin/themes/default/template/tags.tpl b/admin/themes/default/template/tags.tpl index 4987d8a80..0dc80dd2d 100644 --- a/admin/themes/default/template/tags.tpl +++ b/admin/themes/default/template/tags.tpl @@ -29,6 +29,11 @@ var str_selection_done = '{'The %d tags on this page are selected'|@translate}'; var str_tag_selected = '{'%d tag selected'|@translate}'; var str_tags_found = '{'%d tags found'|@translate}'; var str_tag_found = '{'%d tag found'|@translate}'; + +$(document).ready(function() { + $("h1").append('{$total}'); +}); + {/footer_script} {combine_script id='common' load='footer' path='admin/themes/default/js/common.js'} @@ -66,10 +71,6 @@ var str_tag_found = '{'%d tag found'|@translate}'; {/function} {/function} -
-

{'Tags'|@translate} {$total}

-
-