shorting dtime.js

This commit is contained in:
2024-06-12 13:57:10 +03:00
parent 0832e1504e
commit ea64a55218
2 changed files with 14 additions and 169 deletions

View File

@@ -283,10 +283,11 @@ class Discordian_Date_Widget extends WP_Widget {
$body = apply_filters('widget_text', $instance['body']);
ob_start();
echo "<div class=\"discordian_date_func\" style=\"width:100%;text-align:center;font-size:18px;line-height:36px;padding-top:40px;padding-bottom:40px;\"> Today is ";
echo "<div class=\"discordian_date_func\" style=\"width:100%;text-align:center;font-size:18px;line-height:36px;padding-top:40px;padding-bottom:40px;\">";
if (get_option('dtime_widget')) echo "<h1 style=\"font-size: 255%\" id=\"dtime\"></h1>";
echo "Today is ";
echo get_ddate($content, $format, "now").".";
if ($holiday) echo "<br><b>".$holiday."</b>";
if (get_option('dtime_widget')) echo "<br><h1 style=\"font-size: 255%\" id=\"dtime\">5:55:55</h1>";
echo "</div>";
$body2 = ob_get_contents();
ob_end_clean();
@@ -433,7 +434,7 @@ Examples<br>
</td>
</tr>
<tr valign="top">
<th scope="row">Use Erisian start of the day - <a href="https://www.reddit.com/r/Time/comments/fhys8v/erisian_time/">starts 5 Christian hours later than the day in London</a>:</th>
<th scope="row">Use Erisian start of the day - <a href="https://discordia.fandom.com/wiki/Erisian_Time">starts 5 Christian hours later than the day in London</a>:</th>
<td>
<fieldset>
<legend class="screen-reader-text">