From 523b04a31552ea257ec646a73eaf48dee40819fa Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 31 May 2015 17:31:15 +0200 Subject: [PATCH] Work on finishing --- htdocs/core/class/html.form.class.php | 7 ++++--- htdocs/main.inc.php | 2 +- htdocs/product/stock/product.php | 4 ++-- htdocs/theme/eldy/style.css.php | 8 +++++--- htdocs/user/class/user.class.php | 5 +++-- 5 files changed, 15 insertions(+), 11 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index e67315adebb..53f77262db1 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -4794,9 +4794,10 @@ class Form * @param int $width Width of photo * @param int $height Height of photo (auto if 0) * @param int $caneditfield Add edit fields + * @param string $photologo CSS name to use on img for photo * @return string HTML code to output photo */ - static function showphoto($modulepart,$object,$width=100,$height=0,$caneditfield=0) + static function showphoto($modulepart,$object,$width=100,$height=0,$caneditfield=0,$cssclass='photowithmargin') { global $conf,$langs; @@ -4839,13 +4840,13 @@ class Form { // TODO Link to large image $ret.=''; - $ret.=''; + $ret.='Photo'; $ret.=''; } else if ($altfile && file_exists($dir."/".$altfile)) { $ret.=''; - $ret.=''; + $ret.='Photo alt'; $ret.=''; } else diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 7c9b90a8737..13ef97c514e 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1439,7 +1439,7 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a // User photo $toprightmenu.='
'; $toprightmenu.='