test
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • Aratype Friend
    #170074

    After working on this grate template, I think that JA designers forgot to add some excellent fonctions:

    Date
    Last update of the site

    Login, creat an account

    as in JA Social

    What you think? it could be added to this template?

    Thanking you in advance

    pavit Moderator
    #421650

    Hi aratype

    at this link there is a guide on how to add a new position for the ja_portfolio template for the ja_erio will be the same

    Aratype Friend
    #421704

    Thank you Pavit…

    After testing the ergonomy of this site I would propose to not add ja-login position.

    Is it possible to divide the request in 2 parts:

    Login, creat an account

    I would like to put them in the breadcomb of the first page only.

    Date and Last update

    I would like to put them in the Main menu “top.mainnav”

    How could I do this gymnastics?

    Thanking you in advance

    Aratype

    pavit Moderator
    #421707

    Hi aratype

    I’ll make a couple of tests about your request

    I think it’s possible to do for all, my only doubt is for Ja_Login only in first page but i think that we can obtain this with the Layout override

    Let me some time to test

    Thanks

    Aratype Friend
    #421734

    Many thanks Pavit. I know it is a challenge… I have this idea in order to use free space in something more interesting.

    pavit Moderator
    #421753

    Hi aratype

    well i have found this solution

    1) Ja_Login module in breadcrumbs (to have it only in Home page you must assign the module only to Home)

    goto your topbar.php you have now

    ?>
    <?php $this->genBlockBegin ($block) ?>

    <p class="ja-day">
    <?php
    echo "<span class="day">".JText::_(strtoupper(date ('l')))."</span>";
    echo "<span class="date">, ".date ('m')." ".date ('d').date ('S')."</span>";
    ?>
    </p>
    <?php if($this->countModules('ja-login')) : ?>
    <div id="ja-headtools" class="ja-headtool">
    <ul>
    <jdoc:include type="modules" name="ja-login" />
    </ul>
    </div>
    <?php endif; ?>
    <?php $this->genBlockEnd ($block) ?>

    copy these lines of code in your pluginssystemjat3jat3base-themesdefaultblocks navhelper.php

    <?php if($this->countModules('ja-login')) : ?>
    <div id="ja-headtools" class="ja-headtool">
    <ul>
    <jdoc:include type="modules" name="ja-login" />
    </ul>
    </div>
    <?php endif; ?>

    delete them from topbar.php

    so your new navhelper.php will be like this

    ?>
    <?php
    //detect view on mobile - show switch to mobile tools
    $layout_switcher = $this->loadBlock('usertools/layout-switcher');
    if ($layout_switcher) {
    $layout_switcher = '<li class="layout-switcher">'.$layout_switcher.'</li>';
    }
    ?>
    <div class="ja-breadcrums">
    <jdoc:include type="module" name="breadcrumbs" />
    </div>

    <ul class="ja-links">

    <?php echo $layout_switcher ?>
    <li class="top"><a href="<?php echo $this->getCurrentURL();?>#Top" title="<?php echo JText::_("BACK_TO_TOP") ?>"><?php echo JText::_('TOP') ?></a></li>
    </ul>
    <?php if($this->countModules('ja-login')) : ?>
    <div id="ja-headtools" class="ja-headtool">
    <ul>
    <jdoc:include type="modules" name="ja-login" />
    </ul>
    </div>
    <?php endif; ?>
    <ul class="no-display">
    <li><a href="<?php echo $this->getCurrentURL();?>#ja-content" title="<?php echo JText::_("SKIP_TO_CONTENT");?>"><?php echo JText::_("SKIP_TO_CONTENT");?></a></li>
    </ul>

    goto your template.css and find this line of code

    #ja-headtools {
    position: absolute;
    right: 15px;
    top: 5px;
    }

    modify it in

    #ja-headtools {
    position: absolute;
    right: 85px;
    top: 10px;
    }

    in the same file template.css find this line of code

    #ja-user-register, #ja-user-login {
    background: url("../images/ja-login-bg.gif") repeat-x scroll left bottom #FFFFFF;
    border: 1px solid #A1D5E9;
    border-radius: 5px 5px 5px 5px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.4);
    color: #333333;
    display: none;
    height: auto;
    overflow: hidden;
    padding: 10px 15px;
    position: absolute;
    right: -15px;
    text-align: left;
    top: 21px; <-----------------------change this to bottom: 35px;
    z-index: 999;
    }

    <blockquote>Date and Last update

    I would like to put them in the Main menu “top.mainnav”</blockquote>

    You have your mainnav rtlized so i think the Date and last update will be positioned to the first left available position in the menu right ?

    Aratype Friend
    #421760

    Many thanks for all this!!!

    I think the best position for the date and last update will be the left side as the right side is filled with the Menu…

    pavit Moderator
    #421808

    Ok

    Try this settings

    in your pluginssystemjat3jat3base-themesdefaultblocksmainnav.php now you have

    // No direct access
    defined('_JEXEC') or die;
    ?>

    <?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?>

    <!-- jdoc:include type="menu" level="0" / -->
    <?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
    <div id="ja-subnav" class="clearfix">
    <?php $jamenu->genMenu (1); ?>
    <!-- jdoc:include type="menu" level="1" / -->
    </div>
    <?php endif;?>
    <ul class="no-display">
    <li><a href="<?php echo $this->getCurrentURL();?>#ja-content" title="<?php echo JText::_("SKIP_TO_CONTENT");?>"><?php echo JText::_("SKIP_TO_CONTENT");?></a></li>
    </ul>

    change to

    // No direct access
    defined('_JEXEC') or die;
    ?>
    <p class="ja-day">
    <?php
    echo "<span class="day">".JText::_(strtoupper(date ('l')))."</span>";
    echo "<span class="date">, ".date ('m')." ".date ('d').date ('S')."</span>";
    ?>
    </p>
    <p class="ja-updatetime"><span><?php echo JText::_('Last update')?></span><em><?php echo T3Common::getLastUpdate(); ?></em></p>
    <?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?>

    <!-- jdoc:include type="menu" level="0" / -->
    <?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
    <div id="ja-subnav" class="clearfix">
    <?php $jamenu->genMenu (1); ?>
    <!-- jdoc:include type="menu" level="1" / -->
    </div>
    <?php endif;?>
    <ul class="no-display">
    <li><a href="<?php echo $this->getCurrentURL();?>#ja-content" title="<?php echo JText::_("SKIP_TO_CONTENT");?>"><?php echo JText::_("SKIP_TO_CONTENT");?></a></li>
    </ul>

    then go to /templates/ja_erio/css/template.css in the mainnav section around line 945 add these lines

    #ja-mainnav .ja-day {
    background: url none no-repeat right center;
    display: block;
    float: left;
    margin-left: 5px;
    padding-right: 10px;
    color:#FFF
    }

    #ja-mainnav .ja-updatetime {
    float: left;
    padding: 0 10px;
    color:#FFF
    }

    #ja-mainnav .ja-updatetime em {
    margin-left: 5px;
    font-style: normal;
    color: #fff;
    }

    Aratype Friend
    #421891

    Many thanks!

    I could apply it and customize it as indicated in the thread: http://www.joomlart.com/forums/topic/localizing-date-and-last-update-time-on-top-of-page/

    Remarque: “Last update” wording need to be customized in mainnav.php file

    Regarding Ja_Login module in breadcrumbs:

    As the main page have no activated breadcrumb (logic as we are in the main page) the breadcrumbs are activated in other pages…

    I think we have to create a second breadcrumb to be applied only on the main page and NOT include the name of the page but only JA_Login. Is it possible to do that or it is absurd?

    pavit Moderator
    #422130

    Hi aratype

    I think you can disable the breadcrumb module for the home page

    and then put a new topbar in the breadcrumbs position only for the home page with the Ja_login module

    Aratype Friend
    #422428

    Many thanks Pavit,

    I have to think again about the places of this as I noticed that Lastupdate would change the height of Top Menu and cause problems to Mega
    menu…

    We will have next step dev after the lunch of RTL site on the next week…

    Many thanks for your nice collaboration…

    pavit Moderator
    #422441

    I’m glad of helped you on this project

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

This topic contains 12 replies, has 2 voices, and was last updated by  pavit 13 years, 1 month ago.

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