test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Alice Ching Friend
    #159666

    Hi, I added a custom position right above the featured products module. The new position is call hp-banner. However how do I add the rounded border style to this new position. Please show me how to modify the below main.php Thank you.

    [PHP]
    <!– CONTENT –>

    <div id=”ja-main” style=”width:<?php echo $this->getColumnWidth(‘m’) ?>%”>

    <div class=”inner clearfix”>

    <!—->
    <?php if ( $this->countModules(‘hp-banner’) ) { ?>
    <div id=”hpbanner”>
    <jdoc:include type=”modules” name=”hp-banner” style=”JAxhtml” />
    </div>
    <?php } ?>

    <!—->

    <?php if ( !$this->isContentEdit() && ($this->countModules(‘vm-fp’) || $this->countModules(‘ja-slider’)) ) { ?>

    <div id=”ja-productwrap” class=”ja-rounded-box clearfix”>

    <?php if ( $this->countModules(‘vm-fp’) ) { ?>

    <div id=”ja-fp”>

    <jdoc:include type=”modules” name=”vm-fp” style=”JAxhtml” />

    </div>

    <?php } ?>

    <?php if ( $this->countModules(‘ja-slider’) ) { ?>

    <div id=”ja-slider”>

    <jdoc:include type=”modules” name=”ja-slider” style=”JAxhtml” />

    </div>

    <?php } ?>

    <div class=”rounded-box ja-rounded-box-tl”></div>

    <div class=”rounded-box ja-rounded-box-tr”></div>

    <div class=”rounded-box ja-rounded-box-bl”></div>

    <div class=”rounded-box ja-rounded-box-br”></div>

    </div>

    <?php } ?>

    <jdoc:include type=”message” />

    <?php

    $mass_top = $this->getPositionName (‘content-mass-top’);

    if($this->countModules($mass_top)) : ?>

    <div class=”ja-mass ja-mass-top clearfix”>

    <jdoc:include type=”modules” name=”<?php echo $mass_top;?>” style=”JAxhtml” />

    </div>

    <?php endif; ?>

    <div id=”ja-contentwrap” class=”<?php echo $this->getColumnWidth(‘cls_m’); ?>”>

    <?php

    $inset1 = $this->getPositionName (‘inset1’);

    $inset2 = $this->getPositionName (‘inset2’);

    ?>

    <div id=”ja-content” style=”width:<?php echo $this->getColumnWidth(‘cw’) ?>%”>

    <div id=”ja-current-content” class=”ja-rounded-box clearfix”>

    <?php

    $content_top = $this->getPositionName (‘content-top’);

    if($this->countModules($content_top)) : ?>

    <div class=”ja-content-top clearfix”>

    <jdoc:include type=”modules” name=”<?php echo $content_top;?>” style=”JAxhtml” />

    </div>

    <?php endif; ?>

    <?php $contents = $this->getBuffer(‘component’);

    if (!preg_match (‘/<div class=”blog”>s*</div>/’,$contents)) :?>

    <div class=”ja-content-main clearfix”>

    <jdoc:include type=”component” />

    </div>

    <?php endif; ?>

    <?php

    $content_bottom = $this->getPositionName (‘content-bottom’);

    if($this->countModules($content_bottom)) : ?>

    <div class=”ja-content-bottom clearfix”>

    <jdoc:include type=”modules” name=”<?php echo $content_bottom;?>” style=”JAxhtml” />

    </div>

    <?php endif; ?>

    <div class=”rounded-box ja-rounded-box-tl”></div>

    <div class=”rounded-box ja-rounded-box-tr”></div>

    <div class=”rounded-box ja-rounded-box-bl”></div>

    <div class=”rounded-box ja-rounded-box-br”></div>

    </div>

    <?php if($this->countModules($inset1)) : ?>

    <div class=”ja-col column ja-inset1″ style=”width:<?php echo $this->getColumnWidth(‘i1’) ?>%”>

    <jdoc:include type=”modules” name=”<?php echo $inset1;?>” style=”JAxhtml” />

    </div>

    <?php endif; ?>

    </div>

    <?php if($this->countModules($inset2)) : ?>

    <div class=”ja-col column ja-inset2″ style=”width:<?php echo $this->getColumnWidth(‘i2’) ?>%”>

    <jdoc:include type=”modules” name=”<?php echo $inset2;?>” style=”JAxhtml” />

    </div>

    <?php endif; ?>

    </div>

    <?php

    $mass_bottom = $this->getPositionName (‘content-mass-bottom’);

    if($this->countModules($mass_bottom)) : ?>

    <div class=”ja-mass ja-mass-bottom clearfix”>

    <jdoc:include type=”modules” name=”<?php echo $mass_bottom;?>” style=”JAxhtml” />

    </div>

    <?php endif; ?>

    </div>

    </div>

    <!– //CONTENT –>
    [/PHP]

    Css Magician Friend
    #375320

    please add
    <div id="hpbanner">
    <jdoc:include type="modules" name="hp-banner" style="JArounded" />
    </div>
    <?php } ?>

    not use Jaxhtml

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

This topic contains 2 replies, has 2 voices, and was last updated by  Css Magician 13 years, 10 months ago.

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