Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Giannis Maroulis Friend
    #171292

    Anyone have a clue on how to do this How to change the position width of “cols-mass1” in Ja Norite Template

    Thanks

    Giannis Maroulis

    khoand Friend
    #427334

    Hi,
    You login backend > Extensions > Template Manager > ja_norite – Default > LAYOUTS.Edit Default. You find this code:

    <blocks name="middle" colwidth="20"> < change this line (20%)
    <block name="right-mass-top" style="jarounded" >right-mass-top</block>
    <block name="right2">left</block>
    </blocks>

    Giannis Maroulis Friend
    #427336

    Thanks for the reply but i cant figured out, you mean to edit the default.php from template > ja_norite > layouts??

    I have done it thanks a lot “khoand” i just change the line [PHP]$this->_basewidth = 20; change it to $this->_basewidth = 10;[/PHP]

    [PHP]<?php
    /*
    # ————————————————————————
    # JA Norite template for Joomla 1.5.x
    # ————————————————————————
    # Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
    # @license – PHP files are GNU/GPL V2. CSS / JS are Copyrighted Commercial,
    # bound by Proprietary License of JoomlArt. For details on licensing,
    # Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.
    # Author: JoomlArt.com
    # Websites: http://www.joomlart.comhttp://www.joomlancers.com
    # Redistribution, Modification or Re-licensing of this file in part of full,
    # is bound by the License applied.
    # ————————————————————————
    */

    // no direct access
    defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );
    $this->_basewidth = 20;
    $positions = array (
    ‘left1’ =>”,
    ‘left2’ =>”,
    ‘left-mass-top’ =>”,
    ‘left-mass-bottom’ =>”,
    ‘right1′ =>’left’,
    ‘right2′ =>’right’,
    ‘right-mass-top’ =>’cols-mass1′,
    ‘right-mass-bottom’ =>’cols-mass2′,
    ‘content-mass-top’ =>”,
    ‘content-mass-bottom’ =>’banner’,
    ‘content-top’ =>”,
    ‘content-bottom’ =>”,
    ‘inset1’ =>”,
    ‘inset2’ =>”
    );
    $this->customwidth(‘right2’, 19); //<== override right2 column width to 19%. Must call before call definePosition. Can call many time to override many columns.
    $this->definePosition ($positions);
    ?>

    <?php if ($this->isIE() && ($this->getParam(‘direction’)==’rtl’ || $this->direction == ‘rtl’)) { ?>
    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”>
    <?php } else { ?>
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
    <?php } ?>

    <html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”<?php echo $this->language; ?>” lang=”<?php echo $this->language; ?>”>

    <head>
    <?php $this->loadBlock(‘head’) ?>
    </head>

    <body id=”bd” class=”fs<?php echo $this->getParam(JA_TOOL_FONT);?> <?php echo $this->browser();?>”>

    <div id=”ja-wrapper” <?php if ($this->isFrontPage()): ?>class=”ja-home”<?php endif; ?>>
    <a name=”Top” id=”Top”></a>

    <!– HEADER –>
    <?php $this->loadBlock(‘header’) ?>
    <!– //HEADER –>

    <?php $this->loadBlock(‘topsl’) ?>

    <!– MAIN CONTAINER –>
    <div id=”ja-container” class=”wrap <?php echo $this->getColumnWidth(‘cls_w’); ?>”>
    <div class=”main clearfix”>

    <div id=”ja-mainbody” style=”width:<?php echo $this->getColumnWidth(‘mw’) ?>%”>
    <?php $this->loadBlock(‘main’) ?>
    <?php $this->loadBlock(‘left’) ?>
    </div>

    <?php $this->loadBlock(‘right’) ?>

    </div>
    </div>
    <!– //MAIN CONTAINER –>

    <?php $this->loadBlock(‘botsl’) ?>

    <!– FOOTER –>
    <?php $this->loadBlock(‘footer’) ?>
    <!– //FOOTER –>

    </div>

    <jdoc:include type=”modules” name=”debug” />

    <?php if ($this->isIE6()) : ?>
    <?php $this->loadBlock(‘ie6/ie6warning’) ?>
    <?php endif; ?>

    </body>

    </html>
    [/PHP]

    Giannis Maroulis

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

This topic contains 3 replies, has 2 voices, and was last updated by  Giannis Maroulis 12 years, 12 months ago.

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