help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

Replace Time on Eventlist

Replace Time on Eventlist

5 years 9 months ago
#25823
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.

Re: Replace Time on Eventlist

5 years 6 months ago
#26147
Are you looking for the definition of those functions? - if yes they are in this file
Code:
\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
Code:
$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
Code:
\components\com_jem\language\

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

Time to create page: 0.401 seconds