Changeset 2874876
- Timestamp:
- 03/05/2023 07:44:05 AM (3 years ago)
- File:
-
- 1 edited
-
hebrewdates/trunk/hebrewdate.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hebrewdates/trunk/hebrewdate.php
r405189 r2874876 117 117 } 118 118 switch ($originalRequest) { 119 case the_time:120 case get_the_time:121 case get_comment_time:119 case 'the_time': 120 case 'get_the_time': 121 case 'get_comment_time': 122 122 $format = get_settings('time_format'); 123 123 debug_print("Assuming time_format (|$format|)..."); 124 124 break; 125 case the_date:126 case get_the_date:127 case get_comment_date:125 case 'the_date': 126 case 'get_the_date': 127 case 'get_comment_date': 128 128 $format = get_settings('date_format'); 129 129 debug_print("Assuming date_format... (|$format|)..."); … … 184 184 debug_print("But no time..."); 185 185 switch ($originalRequest) { 186 case get_comment_time:187 case get_comment_date:186 case 'get_comment_time': 187 case 'get_comment_date': 188 188 debug_print("Assuming a comment..."); 189 189 $content_parsed['hour']= get_comment_time('H'); 190 190 $content_parsed['minute'] = get_comment_time('i'); 191 191 break; 192 case the_time:193 case get_the_time:194 case the_date:195 case get_the_date:192 case 'the_time': 193 case 'get_the_time': 194 case 'the_date': 195 case 'get_the_date': 196 196 debug_print("Checking: post or comment? "); 197 197 if (get_comment_time('z')) { … … 288 288 289 289 debug_print("About to convert $year-$month-$day (and $year-$endMonth-$endDay archive-style)..."); 290 list ($hebrewMonth, $hebrewDay, $hebrewYear) = split('/', jdtojewish(gregoriantojd($month, $day, $year)));291 list ($endHebrewMonth, $endHebrewDay, $endHebrewYear) = split('/', jdtojewish(gregoriantojd($endMonth, $endDay, $year)));290 list ($hebrewMonth, $hebrewDay, $hebrewYear) = explode ('/', jdtojewish(gregoriantojd($month, $day, $year))); 291 list ($endHebrewMonth, $endHebrewDay, $endHebrewYear) = explode ('/', jdtojewish(gregoriantojd($endMonth, $endDay, $year))); 292 292 293 293 switch ($archiveFormat) { … … 334 334 if (!empty($endMonth) && ($endMonth != $month)) { 335 335 $endHebrewMonthString = getHebrewMonthString($spelling, $endMonth, $endYear); 336 } else { 337 $endHebrewMonthString = ""; 336 338 } 337 339 … … 348 350 $endHebrewYearString = $endYear; 349 351 } 352 } else { 353 $endHebrewYearString = ""; 350 354 } 351 355 … … 354 358 debug_print("D:$hebrewDayString M:$hebrewMonthString EM:$endHebrewMonthString Y:$hebrewYearString EY:$endHebrewYearString..."); 355 359 360 $convertedDate = ""; 356 361 357 362 /* Begin building the actual string */ … … 502 507 $jOnes = array("", "א", "ב", "ג", "ד", 503 508 "ה", "ו", "ז", "ח", "ט"); 509 510 $sb = ""; 504 511 505 512 if($day < 10) { //single digit days get single quote appended
Note: See TracChangeset
for help on using the changeset viewer.