Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Ninja Lead Moderator
    #950395

    Hi,

    This way will help you to do that

    Open templates/ja_teline_v/tpls/blocks/header.php file

    find and change

    <div class="col calendar">
        <?php $date = JFactory::getDate('now', JFactory::getConfig()->get('offset')); ?>
        <div class="col-inner">
          <span class="number date"><?php echo $date->format('d', true) ?></span>
          <div class="text">
            <span class="day"><?php echo JText::_($date->format('D', true)) ?></span>, <span class="month"><?php  echo JText::_(strtoupper(date('F')).'_SHORT') ?></span>
          </div>
        </div>
    </div>

    to

    <div class="col calendar">
        <?php $date = JFactory::getDate('now', JFactory::getConfig()->get('offset')); ?>
        <div class="col-inner">
          <span class="number date"><?php echo $date->format('d', true) ?></span>
          <div class="text">
            <span class="day"><?php echo JText::_($date->format('D', true)) ?></span>, <span class="month"><?php  echo JText::_(strtoupper(date('F')).'_SHORT') ?>  <span class="year"><?php  echo JText::_(strtoupper(date('Y'))) ?> <span class="time"><?php echo JText::_($date->format('H:i', true)) ?></span></span>
          </div>
        </div>
    </div>

    Regards

    takis1984 Friend
    #950808

    thank you! it works great you missed one but it’s ok.

    <span class="day"><?php echo JText::($date->format(‘D’, true)) ?>, <span class="month"><?php echo JText::(strtoupper(date(‘F’)).’SHORT’) ?> <span class="year"><?php echo JText::(strtoupper(date(‘Y’))) ?> <span class="time"><?php echo JText::_($date->format(‘H:i’, true)) ?>
    ** if someone else what to use it.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  takis1984 8 years, 2 months ago.

The topic ‘Show date/time on top right corner instead of just date’ is closed to new replies.