New layout and display labels

This commit is contained in:
Manuel Cillero 2017-07-26 09:58:33 +02:00
parent 6a3eb66d19
commit e666049d60
2 changed files with 6 additions and 3 deletions

View file

@ -14,6 +14,8 @@
* @see template_preprocess_user_picture() * @see template_preprocess_user_picture()
*/ */
?> ?>
<?php if ($picture): ?>
<div class="picture"> <div class="picture">
<?php print $picture; ?> <?php print $picture; ?>
</div> </div>
<?php endif; ?>

View file

@ -662,7 +662,7 @@ function user_user($type, &$edit, &$account, $category = NULL) {
'#type' => 'user_profile_category', '#type' => 'user_profile_category',
'#attributes' => array('class' => 'user-member'), '#attributes' => array('class' => 'user-member'),
'#weight' => 5, '#weight' => 5,
'#title' => t('History'), '#title' => $account->name,
); );
$account->content['summary']['member_for'] = array( $account->content['summary']['member_for'] = array(
'#type' => 'user_profile_item', '#type' => 'user_profile_item',
@ -1108,7 +1108,7 @@ function user_menu() {
); );
$items['user/%user/view'] = array( $items['user/%user/view'] = array(
'title' => 'View', 'title' => 'Desktop',
'type' => MENU_DEFAULT_LOCAL_TASK, 'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10, 'weight' => -10,
); );
@ -1124,7 +1124,7 @@ function user_menu() {
); );
$items['user/%user_category/edit'] = array( $items['user/%user_category/edit'] = array(
'title' => 'Edit', 'title' => 'Edit profile',
'page callback' => 'user_edit', 'page callback' => 'user_edit',
'page arguments' => array(1), 'page arguments' => array(1),
'access callback' => 'user_edit_access', 'access callback' => 'user_edit_access',
@ -1132,6 +1132,7 @@ function user_menu() {
'type' => MENU_LOCAL_TASK, 'type' => MENU_LOCAL_TASK,
'load arguments' => array('%map', '%index'), 'load arguments' => array('%map', '%index'),
'file' => 'user.pages.inc', 'file' => 'user.pages.inc',
'weight' => 99,
); );
$items['user/%user_category/edit/account'] = array( $items['user/%user_category/edit/account'] = array(