Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • kidsrepublik Friend
    #996767

    Are there any possibilities to get the accordion secction all tabs closed at the beggingin?

    Pankaj Sharma Moderator
    #996805

    Hi
    Go to /templates/ja_mono/acm/accordion/tmpl/style-1.php line 31
    Find and remove the below code.

    <?php if($i==0) echo 'in' ?>

    save and check.

    kidsrepublik Friend
    #997110

    ok thats works,

    but the tab looks blue with – symbol, the appearance must be grey and + symbol.

    Pankaj Sharma Moderator
    #997242

    Hi
    may I have the screenshot please , how you would like to display the module ?

    brusamolino Friend
    #999961

    Hi
    ive deleted this code but i have the same problem

    The first tab must be grey with plus icon like the second…

    thanks Luca


    1. accordation
    Pankaj Sharma Moderator
    #1000074

    Hi @brusamolino
    Kindly post the URL of site here.

    brusamolino Friend
    #1000263
    This reply has been marked as private.
    Pankaj Sharma Moderator
    #1000604

    Hi
    I fixed it directly on your site .
    Here is the modified code of this acm file

    <?php
    /**
     * ------------------------------------------------------------------------
     * JA Mono Template
     * ------------------------------------------------------------------------
     * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
     * @license - Copyrighted Commercial Software
     * Author: J.O.O.M Solutions Co., Ltd
     * Websites:  http://www.joomlart.com -  http://www.joomlancers.com
     * This file may not be redistributed in whole or significant part.
     * ------------------------------------------------------------------------
    */
    defined('_JEXEC') or die;
    ?>
    <div class="acm-accordion panel-group" id="acm-accordion<?php echo $module->id; ?>" role="tablist" aria-multiselectable="true">
      <div class="block-desc"><?php echo $helper->get('block-intro'); ?></div>
      <?php $count = $helper->getRows('data.accordion-name'); ?>
      <?php for ($i=0; $i<$count; $i++) : ?>
      <div class="panel panel-default">
        <div class="panel-heading" role="tab" id="heading-<?php echo $module->id; ?><?php echo $i ?>">
          <h4 class="panel-title">
            <a class="panel-collapse collapsed" data-toggle="collapse" data-parent="#acm-accordion<?php echo $module->id; ?>" href="#collapse-<?php echo $module->id; ?><?php echo $i ?>" aria-expanded="false" aria-controls="collapse-<?php echo $module->id; ?><?php echo $i ?>">
    
              <span class="marker">
                <span class="marker-close"><i class="fa fa-plus"></i></span>
                <span class="marker-open"><i class="fa fa-minus"></i></span>
              </span>
              <?php echo $helper->get('data.accordion-name', $i) ; ?>
            </a>
          </h4>
        </div>
        <div id="collapse-<?php echo $module->id; ?><?php echo $i ?>" class="panel-collapse collapse" role="tabpanel" aria-labelledby="#acm-accordion<?php echo $module->id; ?>" aria-expanded="<?php if($i==0) echo 'false' ?>">
          <div class="panel-body"><?php echo $helper->get('data.accordion-desc', $i) ; ?></div>
        </div>
      </div>
      <?php endfor ?>
    </div>
Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 7 replies, has 3 voices, and was last updated by  Pankaj Sharma 7 years, 3 months ago.

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