Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • palos Friend
    #195890

    Hi there!

    How should I change the date format to Year. month date. at the Top Panel?
    …or simply switch it off?

    (nothing changed after changing frontend language so I think it must be hardcoded :/)

    pavit Moderator
    #527291

    Hi

    You can manage date opening this file templatesja_nex_t3tplsblockstop-header.php at line 15

    <div class="span3">
    <p class="ja-day">
    <span class="date"><?php echo date ('d') ?></span>
    <span class="month"><?php echo JText::_(strtoupper(date ('F'))) ?></span>
    <span class="year"><?php echo date ('Y') ?></span>
    </p>
    </div>

    you can change it to

    <div class="span3">
    <p class="ja-day">
    <span class="date"><?php echo date ('Y') ?></span>
    <span class="month"><?php echo JText::_(strtoupper(date ('F'))) ?></span>
    <span class="year"><?php echo date ('d') ?></span>
    </p>
    </div>

    palos Friend
    #527338

    Thank you pavit!

    Is there any way to show the name of day in the frontend language (but not in english)
    (if I use “l” (lowercase ‘L’) – A full textual representation of a day it remains english but when I code with strftime it destroys the site grid (?!?))

    <?php
    setlocale(LC_ALL, 'de_DE.UTF8');
    echo(strftime('%Y. %B %d. %A'));
    ?>

    :-[

    pavit Moderator
    #527345

    Hi

    After you installed your language and made it as default change it as shown below

    <p class="ja-day">
    <span class="year"><?php echo date ('Y') ?></span>
    <span class="month"><?php echo JText::_(strtoupper(date ('F'))) ?></span>
    <span class="date"><?php echo JText::_(strtoupper(date ('l'))) ?> <?php echo date ( 'd') ?></span>
    </p>

    palos Friend
    #527352

    Perfect, thank you!:)

    palos Friend
    #527647

    What about getting events from a Google Calendar in the Top Panel?
    I am not a real coder so I can insert it to a page but not here but would try it.:-[

    Something like this:
    <iframe src=”https://www.google.com/calendar/embed?mode=AGENDA&height=600&wkst=2&hl=hu&bgcolor=%23ffffff&src=blablabla&color=%23BE6D00&style=” border-width:0 ” width=”705″ height=”600″ frameborder=”0″ scrolling=”no”></iframe>

    Ninja Lead Moderator
    #528073

    You can add script above into the Top Panel using html custom module.

    Simply navigate to Admin site -> Extensions -> Module Manager -> Create custom html module and paste entirely script above into this module. Then assign this module with top-menu position.

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

This topic contains 7 replies, has 3 voices, and was last updated by  Ninja Lead 10 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum