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

Sj_worldnews: DATE formate - how to change?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Sj_worldnews: DATE formate - how to change?

Sj_worldnews: DATE formate - how to change? 11 years, 7 months ago #9047

Hi you Smart

how can i change date format in this form like in attachment:

From: Ponedjeljak, Srp 23 2012
to: Ponedjeljak, 23. Spr, 2012.

color is not important..

Attachment date-change.png not found

The topic has been locked.

Re: Sj_worldnews: DATE formate - how to change? 11 years, 7 months ago #9048

One more question: How can i add ČŠĐĆ to the Oswald font....i saw on Google font that this option possible is. How, please*
The topic has been locked.

Re: Sj_worldnews: DATE formate - how to change? 11 years, 7 months ago #9050

i 've solved this problem with a font caracters but this DATE format i m waiting for help.
The topic has been locked.

Re: Sj_worldnews: DATE formate - how to change? 11 years, 7 months ago #9071

  • SA Thuy
Dear marc trimble,

1. About Format Date:
- Please open the category_item.php fille (in folder your site/templates/sj_worldnews/html/com_k2/templates/yt-theme/) and find:

<div class="catItemDateCreated">
		<?php echo JHTML::_('date', $this->item->created , JText::_('l, M d Y')); ?>	
</div>

change to:
<div class="catItemDateCreated">
		<?php echo JHTML::_('date', $this->item->created , JText::_('l, d. M, Y')); ?>	
</div>

- Please open the theme1.php file( in folder: yoursite/templates/sj_worldnews/html/mod_sj_megak2news) and find:
<span class="moduleItemDateCreated"><?php echo JHtml::date($item0['date'], 'l, M d Y'); ?></span>

change to:
<span class="moduleItemDateCreated"><?php echo JHtml::date($item0['date'], 'l, d. M, Y'); ?></span>


-Please add
DATE_FORMAT_LC5="l, d. M, Y"

into file en-GB.ini(yoursite/language/en-GB/en-GB.ini).
then:
-Open default.php (templates/sj_worldnews/html/mod_k2_content/Default/default.php) and find:
<span class="moduleItemDateCreated"><?php echo JHTML::_('date', $item->created, JText::_('DATE_FORMAT_LC1')); ?></span>

change to:
<span class="moduleItemDateCreated"><?php echo JHTML::_('date', $item->created, JText::_('DATE_FORMAT_LC5')); ?></span>


-Open comments.php (templates/sj_worldnews/html/mod_k2_comments/comments.php) and find:
<span class="lcCommentDate">
                    <?php if($params->get('commentDateFormat') == 'relative'): ?>
                    <?php echo $comment->commentDate; ?>
                    <?php else: ?>
                     <?php echo JHTML::_('date', $comment->commentDate, JText::_('DATE_FORMAT_LC1')); ?>
                    <?php endif; ?>
                </span>

change to:
<span class="lcCommentDate">
                    <?php if($params->get('commentDateFormat') == 'relative'): ?>
                    <?php echo $comment->commentDate; ?>
                    <?php else: ?>
                     <?php echo JHTML::_('date', $comment->commentDate, JText::_('DATE_FORMAT_LC5')); ?>
                    <?php endif; ?>
                </span>



Thanks
Last Edit: 11 years, 7 months ago by .
The topic has been locked.

Re: Sj_worldnews: DATE formate - how to change? 11 years, 7 months ago #9072

  • SA Thuy
Dear marc trimble,

You could log in backend, in Style Settings of Template Manager, you can choise Oswald google font.

Thanks
The topic has been locked.

Re: Sj_worldnews: DATE formate - how to change? 11 years, 7 months ago #9171

Thank u SaTuy.

All best
Last Edit: 11 years, 7 months ago by mtrimble. Reason: solved
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.22 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