Kaynağa Gözat

removed "summary" from the profile menu dropdown and added "look and layout"

Signed-off-by: emanuele <[email protected]>
emanuele 12 yıl önce
ebeveyn
işleme
ef81dd1448

+ 5 - 5
Sources/Subs.php

@@ -3836,11 +3836,6 @@ function setupMenuContext()
 				'href' => $scripturl . '?action=profile',
 				'show' => $context['allow_edit_profile'],
 				'sub_buttons' => array(
-					'summary' => array(
-						'title' => $txt['summary'],
-						'href' => $scripturl . '?action=profile',
-						'show' => true,
-					),
 					'account' => array(
 						'title' => $txt['account'],
 						'href' => $scripturl . '?action=profile;area=account',
@@ -3852,6 +3847,11 @@ function setupMenuContext()
 						'show' => allowedTo(array('profile_extra_any', 'profile_extra_own')),
 						'is_last' => true,
 					),
+					'theme' => array(
+						'title' => $txt['theme'],
+						'href' => $scripturl . '?action=profile;area=theme',
+						'show' => allowedTo('profile_extra_any', 'profile_extra_own', 'profile_extra_any'),
+					),
 				),
 			),
 			'pm' => array(

+ 0 - 1
Themes/default/languages/Profile.english.php

@@ -170,7 +170,6 @@ $txt['change_authentication'] = 'From this section you can change how you login
 $txt['profileEdit'] = 'Modify Profile';
 $txt['account_info'] = 'These are your account settings. This page holds all critical information that identifies you on this forum. For security reasons, you will need to enter your (current) password to make changes to this information.';
 $txt['forumProfile_info'] = 'You can change your personal information on this page. This information will be displayed throughout ' . $context['forum_name_html_safe'] . '. If you aren\'t comfortable with sharing some information, simply skip it - nothing here is required.';
-$txt['theme'] = 'Look and Layout';
 $txt['theme_info'] = 'This section allows you to customize the look and layout of the forum.';
 $txt['notification'] = 'Notifications';
 $txt['notification_info'] = 'SMF allows you to be notified of replies to posts, newly posted topics, and forum announcements. You can change those settings here, or oversee the topics and boards you are currently receiving notifications for.';

+ 1 - 0
Themes/default/languages/index.english.php

@@ -737,6 +737,7 @@ $txt['visual_verification_request_new'] = 'Request another image';
 // Sub menu labels
 $txt['summary'] = 'Summary';
 $txt['account'] = 'Account Settings';
+$txt['theme'] = 'Look and Layout';
 $txt['forumprofile'] = 'Forum Profile';
 
 $txt['modSettings_title'] = 'Features and Options';