diff --git a/modules/node/node.module b/modules/node/node.module index 5534d0b3cf2c..48872f50f844 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1225,11 +1225,11 @@ function template_preprocess_node(&$variables) { // Display post information only on certain node types. if (variable_get('node_submitted_' . $node->type, TRUE)) { $variables['submitted'] = theme('node_submitted', $node); - $variables['picture'] = theme_get_setting('toggle_node_user_picture') ? theme('user_picture', $node) : ''; + $variables['user_picture'] = theme_get_setting('toggle_node_user_picture') ? theme('user_picture', $node) : ''; } else { $variables['submitted'] = ''; - $variables['picture'] = ''; + $variables['user_picture'] = ''; } // Gather node classes. diff --git a/modules/node/node.tpl.php b/modules/node/node.tpl.php index fbae3ca80fd5..8aa31ca04943 100644 --- a/modules/node/node.tpl.php +++ b/modules/node/node.tpl.php @@ -11,8 +11,7 @@ * print a subset such as render($content['field_example']). Use * hide($content['field_example']) to temporarily suppress the printing of a * given element. - * - $picture: The authors picture of the node output from - * theme_user_picture(). + * - $user_picture: The node author's picture from user-picture.tpl.php. * - $date: Formatted creation date (use $created to reformat with * format_date()). * - $name: Themed username of node author output from theme_username(). @@ -65,23 +64,25 @@ * @see template_process() */ ?> -
+
- + - -

- - -
- - + +

- -
- -
+ +
+ + + + + +
+ +
+
- +

diff --git a/modules/profile/profile-listing.tpl.php b/modules/profile/profile-listing.tpl.php index 48051a41d4ab..cf8802d524c9 100644 --- a/modules/profile/profile-listing.tpl.php +++ b/modules/profile/profile-listing.tpl.php @@ -11,7 +11,7 @@ * * Available variables: * - $account: User's account object. - * - $picture: Image configured for the account linking to the users page. + * - $user_picture: Image configured for the account linking to the users page. * - $name: User's account name linking to the users page. * - $profile: Keyed array of all profile fields that are set as visible * in member list pages (configured by site administrators). It also needs @@ -38,7 +38,7 @@ */ ?>

- +
diff --git a/modules/profile/profile.module b/modules/profile/profile.module index db81eb3720e9..9bdc8f00c970 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -533,7 +533,7 @@ function profile_category_access($account, $category) { */ function template_preprocess_profile_block(&$variables) { - $variables['picture'] = theme('user_picture', $variables['account']); + $variables['user_picture'] = theme('user_picture', $variables['account']); $variables['profile'] = array(); // Supply filtered version of $fields that have values. foreach ($variables['fields'] as $field) { @@ -557,7 +557,7 @@ function template_preprocess_profile_block(&$variables) { */ function template_preprocess_profile_listing(&$variables) { - $variables['picture'] = theme('user_picture', $variables['account']); + $variables['user_picture'] = theme('user_picture', $variables['account']); $variables['name'] = theme('username', $variables['account']); $variables['profile'] = array(); // Supply filtered version of $fields that have values. diff --git a/modules/user/user-picture.tpl.php b/modules/user/user-picture.tpl.php index c0f7e1ac760e..328f9c1bae31 100644 --- a/modules/user/user-picture.tpl.php +++ b/modules/user/user-picture.tpl.php @@ -7,7 +7,7 @@ * user's account. * * Available variables: - * - $picture: Image set by the user or the site's default. Will be linked + * - $user_picture: Image set by the user or the site's default. Will be linked * depending on the viewer's permission to view the users profile page. * - $account: Array of account information. Potentially unsafe. Be sure to * check_plain() before use. @@ -15,8 +15,8 @@ * @see template_preprocess_user_picture() */ ?> - -
- + +
+
diff --git a/modules/user/user-rtl.css b/modules/user/user-rtl.css index 219b0cf7c4c9..ed3f23aa88b9 100644 --- a/modules/user/user-rtl.css +++ b/modules/user/user-rtl.css @@ -11,7 +11,7 @@ clear: left; } -.profile .picture { +.profile .user-picture { float: left; margin: 0 0 1em 1em; } diff --git a/modules/user/user.css b/modules/user/user.css index 1a55b4fc5a6f..878f9831702e 100644 --- a/modules/user/user.css +++ b/modules/user/user.css @@ -34,7 +34,7 @@ clear: both; margin: 1em 0; } -.profile .picture { +.profile .user-picture { float: right; /* LTR */ margin: 0 1em 1em 0; /* LTR */ } diff --git a/modules/user/user.module b/modules/user/user.module index d36e270a2380..584e7ce74077 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1153,7 +1153,7 @@ function user_block_view($delta = '') { * @see user-picture.tpl.php */ function template_preprocess_user_picture(&$variables) { - $variables['picture'] = ''; + $variables['user_picture'] = ''; if (variable_get('user_pictures', 0)) { $account = $variables['account']; if (!empty($account->picture)) { @@ -1177,14 +1177,14 @@ function template_preprocess_user_picture(&$variables) { if (isset($filepath)) { $alt = t("@user's picture", array('@user' => $account->name ? $account->name : variable_get('anonymous', t('Anonymous')))); if (module_exists('image') && $style = variable_get('user_picture_style', '')) { - $variables['picture'] = theme('image_style', $style, $filepath, $alt, $alt, array(), FALSE); + $variables['user_picture'] = theme('image_style', $style, $filepath, $alt, $alt, array(), FALSE); } else { - $variables['picture'] = theme('image', $filepath, $alt, $alt, array(), FALSE); + $variables['user_picture'] = theme('image', $filepath, $alt, $alt, array(), FALSE); } if (!empty($account->uid) && user_access('access user profiles')) { $attributes = array('attributes' => array('title' => t('View user profile.')), 'html' => TRUE); - $variables['picture'] = l($variables['picture'], "user/$account->uid", $attributes); + $variables['user_picture'] = l($variables['user_picture'], "user/$account->uid", $attributes); } } } diff --git a/themes/garland/node.tpl.php b/themes/garland/node.tpl.php index d76e37224e64..935d6273013c 100644 --- a/themes/garland/node.tpl.php +++ b/themes/garland/node.tpl.php @@ -1,34 +1,39 @@ -
+
- - -

- + + + +

+
- +
-
-
- -
+
+
+
+ - + -
diff --git a/themes/garland/style-rtl.css b/themes/garland/style-rtl.css index 5f9c1b308e39..71fb9be81ca0 100644 --- a/themes/garland/style-rtl.css +++ b/themes/garland/style-rtl.css @@ -206,7 +206,8 @@ ul.links li, ul.inline li { padding-left: 0; } -.picture, .comment .submitted { +.user-picture, +.comment .submitted { padding-left: 0; float: left; clear: left; diff --git a/themes/garland/style.css b/themes/garland/style.css index c72a341a5ef1..4f277451f0e3 100644 --- a/themes/garland/style.css +++ b/themes/garland/style.css @@ -674,7 +674,8 @@ ul.links li, ul.inline li { padding-left: 1em; } -.picture, .comment .submitted { +.user-picture, +.comment .submitted { float: right; /* LTR */ clear: right; /* LTR */ padding-left: 1em; /* LTR */