From b53704f00f0a3b26c942f636e84c9428d52e1aaf Mon Sep 17 00:00:00 2001 From: loviuz Date: Sat, 29 Jun 2024 01:37:08 +0200 Subject: [PATCH] Miglioramento icona utente generico --- assets/src/img/user.png | Bin 0 -> 8750 bytes include/top.php | 11 +++-------- modules/utenti/info.php | 13 +++---------- 3 files changed, 6 insertions(+), 18 deletions(-) create mode 100644 assets/src/img/user.png diff --git a/assets/src/img/user.png b/assets/src/img/user.png new file mode 100644 index 0000000000000000000000000000000000000000..0996c6b8343205fe75681c985711c58934abce60 GIT binary patch literal 8750 zcmW++1z1!~8@;>K(hJfc4bmVW-QB5#bayurOLwn?bfa{awB#Zwt#pGRr3eE5e*g2_ zxpQmo%)B#ioHG-rrJ;z6MS%qX0Isr`YIJ5FSV>8@nx1ps*S|0PiJ zyN){KLvn9<18-e7TW>!LPaD9`&yUN&)yd1s!rg|;&C@RTOpF2mXaQw8>DT^wKl20p zjTUmA`VP2OISre3INO+nHE8J==@>acG6q;-sE`@0RW*l|)j6~-DZv5_QNGFf$5n@e zr2vun%vPMW2Kbx>dst*cCMTVBm{4QuO5Dzmrq=c9chmp2(74lEH{RLYUx@`2D2a$1 zyuVrK{F8UZ6{!;+pm2D2$TMQy8K>N@4)FoGhe^L;VFSGdrLqBwv-^QS#q5(J@I~>7 z2Gt&4>P~6~o7@Blf)f@_4j{%oa}j&-tak(aI62i|98~ac)bf+q#07JAUKTyD0V<61 za)uD52R)5Qe1H#7C#SYkQc_~Xi`6mb@PWkwukE8);tPu-^E6o&wav+ak~WjlG1S}0 z@LqXXKGkTCv6oH@BEkb>L`!%StvGQPD{LZO?q<^Fj(M;8?p6+@0|x=OZDfRT~W4M%l170v?| z3m43ns}?N==mvSV&sK$&b#;lCeFq{xT!4j%c*j{Q_;n$sk{vJ|4rW74MiQcdzrx9 zEG+vgUTqAY^p(Jw-Wptu6%%y#@K_Gt=E5?L3)m`;2;XEKyVU&d>X)!OQYJh9e`!W? zJi%Z=7%&Z&cPcmpMfkDdk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?uu&b0&(9)i$jLM_kmaaPoUW!W|1)Ia5v;$4?tO7 KL#|H7Jp6xl!*r_v literal 0 HcmV?d00001 diff --git a/include/top.php b/include/top.php index 864c33903..bae8e5fef 100755 --- a/include/top.php +++ b/include/top.php @@ -469,15 +469,10 @@ if (Auth::check()) {
'; - $user_photo = $user->photo; - if ($user_photo) { - echo ' - '.$user['username'].''; - } else { - echo ' - '; - } + $user_photo = $user->photo ?: $rootdir.'/assets/dist/img/user.png'; + echo ' + '.$user['username'].'
diff --git a/modules/utenti/info.php b/modules/utenti/info.php index 1d732802b..466b02d48 100755 --- a/modules/utenti/info.php +++ b/modules/utenti/info.php @@ -44,23 +44,16 @@ $module = Module::where('name', 'Utenti e permessi')->first(); echo '
-
+

'.$user['username'].'

'.$user['gruppo'].'
'; -$user_photo = $user->photo; -if ($user_photo) { - echo ' - '.$user['username'].''; -} else { - echo ' - '; -} - +$user_photo = $user->photo ?: $rootdir.'/assets/dist/img/user.png'; echo ' + '.$user['username'].'