danix
's git repository
home
/
my projects
/
danixland-covid-italy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0f19eae
)
modificato: danixland-covid-italy.php
release_22102020-1904
author
danix
<danix@danix.xyz>
Thu, 22 Oct 2020 17:04:49 +0000
(19:04 +0200)
committer
danix
<danix@danix.xyz>
Thu, 22 Oct 2020 17:04:49 +0000
(19:04 +0200)
danixland-covid-italy.php
patch
|
blob
|
blame
|
history
diff --git
a/danixland-covid-italy.php
b/danixland-covid-italy.php
index
33b5de9
..
a4e2bac
100644
(file)
--- a/
danixland-covid-italy.php
+++ b/
danixland-covid-italy.php
@@
-223,7
+223,7
@@
class dnxcovita_Widget extends WP_Widget {
if ( is_numeric($value) ) {
$latest_content = number_format($value, 0, ',', '˙');
$diff = $value - $yesterday_data[0][$key];
if ( is_numeric($value) ) {
$latest_content = number_format($value, 0, ',', '˙');
$diff = $value - $yesterday_data[0][$key];
- $diff_plusminus = (is_numeric($diff) && round($diff) > 1) ? '<span class="
dnxcovita_goingup">↗</span> +' : '<span class="
dnxcovita_goingdown">↘</span> −';
+ $diff_plusminus = (is_numeric($diff) && round($diff) > 1) ? '<span class="
wp-exclude-emoji dnxcovita_goingup">↗</span> +' : '<span class="wp-exclude-emoji
dnxcovita_goingdown">↘</span> −';
$diff_content = $diff_plusminus . number_format($diff, 0, ',', '˙');
}
// Now we have all the values formatted so we can output the definition list
$diff_content = $diff_plusminus . number_format($diff, 0, ',', '˙');
}
// Now we have all the values formatted so we can output the definition list