Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Replace Time on Eventlist

Replace Time on Eventlist 3 months 1 week ago #25823

  • jose45
  • jose45's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 47
  • Karma: 1
  • Thank you received: 6
Hi,
i have to seperate Date & Time-Info:

date-version:
echo JemOutput::formatShortDateTime($row->dates, NULL,$row->enddates, NULL, $this->jemsettings->showtime);
echo JemOutput::formatSchemaOrgDateTime($row->dates, NULL,$row->enddates, NULL);

time-part:
echo JemOutput::formatShortDateTime(NULL, $row->times,NULL, $row->endtimes, $this->jemsettings->showtime);
echo JemOutput::formatSchemaOrgDateTime(NULL, $row->times,NULL, $row->endtimes);

the time-part with NULL on the first place brings a unnecessary info ("still open"). Where can I turn it off?

thx, j.

Please Log in or Create an account to join the conversation.

Replace Time on Eventlist 1 month 6 days ago #26147

Are you looking for the definition of those functions? - if yes they are in this file
\components\com_jem\classes\output.class.php
In function formatDateTime() there is else clause around line 1195 that unconditionally adds text to output if your date is NULL
$output .= '<span class="jem_date-1">'.JText::_('COM_JEM_OPEN_DATE').'</span>';
If you simply want to override "Open Date" text, the text constant COM_JEM_OPEN_DATE can be found in relevant language folder\file in this folder
\components\com_jem\language\

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.165 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......