Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

time translation template Smart News
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: time translation template Smart News

time translation template Smart News 11 years, 10 months ago #7403

  • noumidianews
  • OFFLINE
  • Single Product
  • Expert Boarder
  • Posts: 88
  • Karma: 1
hello
sorry about closed after the date template
Smart News
www.smartaddons.com/forum/4-news-and-announcements/4069-top-left-position-add-header-template-smart-news?limit=6&start=12#7356

translation to the date the code you gave me works well
echo "<span class=\"date\">".JHtml::_('date', $date, JText::_('DATE_FORMAT_LC2'))."</span> -- <span class=\"gmdate\">Updated ".gmdate("h:i:s A", $sec+$tz)." GMT</span>";

but stuck on Monday
not change the date
cordially
Last Edit: 11 years, 10 months ago by noumidianews.
The topic has been locked.

Re: time translation template Smart News 11 years, 10 months ago #7444

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Dear Youness tallih,

Could you please send your site url to us?

Thanks
Ticket System | Join our Clubs to download our extensions and templates
The topic has been locked.

Re: time translation template Smart News 11 years, 10 months ago #7445

  • noumidianews
  • OFFLINE
  • Single Product
  • Expert Boarder
  • Posts: 88
  • Karma: 1
hello
here is the site url
alsoft-informatique.com/news/
Today is Thursday, but on Wednesday the site
thank you
The topic has been locked.

Re: time translation template Smart News 11 years, 10 months ago #7454

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Dear Youness tallih,

Please go to "templates/smart_news25(17)/includes/yt_template.class.php", finding:

echo "<span class=\"date\">".JHtml::_('date', $date, JText::_('DATE_FORMAT_LC2'))."</span> -- <span class=\"gmdate\">Updated ".gmdate("h:i:s A", $sec+$tz)." GMT</span>";


=>

echo "<span class=\"date\">".date(JText::_('DATE_FORMAT_LC2'))."</span> -- <span class=\"gmdate\">Updated ".gmdate("h:i:s A", $sec+$tz)." GMT</span>";


Thanks
Ticket System | Join our Clubs to download our extensions and templates
The topic has been locked.

Re: time translation template Smart News 11 years, 10 months ago #7470

  • noumidianews
  • OFFLINE
  • Single Product
  • Expert Boarder
  • Posts: 88
  • Karma: 1
I changed the code but now in English
The topic has been locked.

Re: time translation template Smart News 11 years, 10 months ago #7472

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Dear Youness tallih,

Please try to replace the following code lines

echo "<span class=\"date\">".date(JText::_('DATE_FORMAT_LC2'))."</span> -- <span class=\"gmdate\">Updated ".gmdate("h:i:s A", $sec+$tz)." GMT</span>";


with

echo "<span class=\"date\">".JHtml::_('date', 'now', JText::_('DATE_FORMAT_LC2'))."</span> -- <span class=\"gmdate\">Updated ".gmdate("h:i:s A", $sec+$tz)." GMT</span>";


Thanks
Ticket System | Join our Clubs to download our extensions and templates
The topic has been locked.
  • Page:
  • 1
  • 2
Time to create page: 0.24 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes