test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • esedic Friend
    #139098

    Hi!

    I want to add new div positioned inside or behind ja-subnav div – I want it to show itself with subnavigation.

    I’ve seen there is a conditional statement inside index.php:
    [PHP]
    <?php if ($hasSubnav) : ?>
    <div id=”ja-subnav” class=”clearfix”>
    <?php if ($jamenu) $jamenu->genMenu (1,1); ?>
    </div>
    <?php endif; ?>[/PHP]

    so I tried to modify it but no success.
    If I just add a div inside or behind ja-subnav like this
    [PHP]
    <?php if ($hasSubnav) : ?>
    <div id=”ja-subnav” class=”clearfix”>
    <?php if ($jamenu) $jamenu->genMenu (1,1); ?>
    </div>
    <div id=”mynewdiv”></div>
    <?php endif; ?>[/PHP]
    it is shown throughout all the pages, but I want it to be seen just when subnavigation is expanded.

    Any suggestions?

    Thanks for helping.

    ShannonN Friend
    #295872

    esedic;117562Hi!

    I want to add new div positioned inside or behind ja-subnav div – I want it to show itself with subnavigation.

    I’ve seen there is a conditional statement inside index.php:
    [php]
    <?php if ($hasSubnav) : ?>
    <div id=”ja-subnav” class=”clearfix”>
    <?php if ($jamenu) $jamenu->genMenu (1,1); ?>
    </div>
    <?php endif; ?>[/php]so I tried to modify it but no success.
    If I just add a div inside or behind ja-subnav like this
    [php]
    <?php if ($hasSubnav) : ?>
    <div id=”ja-subnav” class=”clearfix”>
    <?php if ($jamenu) $jamenu->genMenu (1,1); ?>
    </div>
    <div id=”mynewdiv”></div>
    <?php endif; ?>[/php]it is shown throughout all the pages, but I want it to be seen just when subnavigation is expanded.

    Any suggestions?

    Thanks for helping.

    Have you tried nesting the div
    <?php if ($hasSubnav) : ?>
    <div id=”ja-subnav” class=”clearfix”>
    <?php if ($jamenu) $jamenu->genMenu (1,1); ?>

    <div id=”mynewdiv”></div></div>

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

This topic contains 2 replies, has 2 voices, and was last updated by  ShannonN 15 years, 9 months ago.

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