Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • dreamcatcher29 Friend
    #127662

    hi,

    ich install the ja corona template an allways works finde, but the type is too big in firefox. where can i change the font size decrease and increase max. 2 steps and the default font size?

    i use joomla 1.0.15 with these parameters:

    <?php
    /**
    * @copyright Copyright (C) 2005 – 2007 Open Source Matters. All rights reserved.
    * @license GNU/GPL, see LICENSE.php
    * Joomla! is free software. This version may have been modified pursuant
    * to the GNU General Public License, and as distributed it includes or
    * is derivative of works licensed under the GNU General Public License or
    * other free or open source software licenses.
    * See COPYRIGHT.php for copyright notices and details.
    */

    // no direct access
    defined( ‘_VALID_MOS’ ) or die( ‘Restricted access’ );
    include_once (dirname(__FILE__).DS.’/ja_templatetools_1.0x.php’);

    # BEGIN: TEMPLATE CONFIGURATIONS ##########
    ####################################
    #support extra color themes
    $ja_screen_sizes = array (‘narrow’, ‘wide’); // You can add more color array if needed
    $ja_color_themes = array(‘default’,’black’); // You can add more color array if needed
    ####################################
    $_params = new mosParameters(”);
    # Change the width of the template
    $_params->set(JA_TOOL_SCREEN,’wide’); // wide, narrow
    # default color
    $_params->set(JA_TOOL_COLOR,’black’); //blank for default, else pick one of in extra color themes $ja_color_themes
    #font size default
    $_params->set(JA_TOOL_FONT,1);
    # Enable users option
    $_params->set(JA_TOOL_USER,2); // 0: 0: disable all; 2: font tool; 4: color tool; 6: font + color;
    # Choose your prefer Menu Type
    $_params->set(JA_TOOL_MENU,’dropline’); // split, dropline, slide
    # Joomla menutype used in main navigation
    $_params->set(‘menutype’,’mainmenu’); // split, moo, css, dropline

    # Template Logo
    $_params->set(‘logoType’, ‘image’); // image, text
    $_params->set(‘logoText’, ”); // used if logoType is text
    $_params->set(‘sloganText’, ‘Your slogan’); // used if logoType is text
    # END: TEMPLATE CONFIGURATIONS ##########

    $tmpTools = new JA_Tools(‘ja_corona’, $_params, array(JA_TOOL_MENU));
    $tmpTools->setScreenSizes($ja_screen_sizes);
    $tmpTools->setColorThemes($ja_color_themes);

    # Auto Collapse Divs Functions ##########
    $ja_left = mosCountModules(‘left’);
    $ja_right = mosCountModules(‘right’);

    if ( $ja_left && $ja_right ) {
    //2 columns
    $divid = ”;
    } elseif ( ($ja_left || $ja_right) ) {
    //One column
    $divid = ‘-c’;
    } else {
    //Full
    $divid = ‘-f’;
    }

    $curidx = $tmpTools->getCurrentMenuIndex();
    //if ($curidx) $curidx–;

    //Calculate the width of template
    $tmpWidth = ”;
    $tmpWrapMin = ‘100%’;
    switch ($tmpTools->getParam(JA_TOOL_SCREEN)){
    case ‘auto’:
    $tmpWidth = ‘97%’;
    break;
    case ‘fluid’:
    $tmpWidth = intval($tmpTools->getParam(‘ja_screen_width’));
    $tmpWidth = $tmpWidth ? $tmpWidth.’%’ : ‘90%’;
    break;
    case ‘fix’:
    $tmpWidth = intval($tmpTools->getParam(‘ja_screen_width’));
    $tmpWrapMin = $tmpWidth ? ($tmpWidth+1).’px’ : ‘751px’;
    $tmpWidth = $tmpWidth ? $tmpWidth.’px’ : ‘750px’;
    break;
    default:
    $tmpWidth = intval($tmpTools->getParam(JA_TOOL_SCREEN));
    $tmpWrapMin = $tmpWidth ? ($tmpWidth+1).’px’ : ‘751px’;
    $tmpWidth = $tmpWidth ? $tmpWidth.’px’ : ‘750px’;
    break;
    }

    //Main navigation
    $ja_menutype = $tmpTools->getParam(JA_TOOL_MENU);
    include_once( dirname(__FILE__).DS.’ja_menus/Base.class.php’ );
    $japarams = JA_Base::createParameterObject(”);
    $japarams->set( ‘menutype’, $tmpTools->getParam(‘menutype’, ‘mainmenu’) );
    $japarams->set( ‘menu_images_align’, ‘left’ );
    $japarams->set( ‘menupath’, $tmpTools->templateurl() .’/ja_menus’);
    $japarams->set(‘menu_title’, 1);
    switch ($ja_menutype) {
    case ‘css’:
    $menu = “CSSmenu”;
    include_once( dirname(__FILE__).DS.’ja_menus/’.$menu.’.class.php’ );
    break;
    case ‘moo’:
    $menu = “Moomenu”;
    include_once( dirname(__FILE__).DS.’ja_menus/’.$menu.’.class.php’ );
    break;
    case ‘slide’:
    $menu = “Slidemenu”;
    //Options for slide menu
    //Navwidth: the width of main navigation in pixel
    //offwidth: the hidden width
    //showactive: show/hide the active item
    $options = “{
    navwidth: 0,
    offwidth: 64,
    showactive: true
    }”;
    $japarams->set(‘options’, $options);
    include_once( dirname(__FILE__).DS.’ja_menus/’.$menu.’.class.php’ );
    break;
    case ‘dropline’:
    $menu = “DLmenu”;
    include_once( dirname(__FILE__).DS.’ja_menus/’.$menu.’.class.php’ );
    break;
    case ‘trans’:
    $menu = “Transmenu”;
    include_once( dirname(__FILE__).DS.’ja_menus/’.$menu.’.class.php’ );
    break;
    case ‘split’:
    default:
    $menu = “Splitmenu”;
    include_once( dirname(__FILE__).DS.’ja_menus/’.$menu.’.class.php’ );
    break;
    }
    $menuclass = “JA_$menu”;
    $jamenu = new $menuclass ($japarams);

    $hasSubnav = false;
    if ($jamenu->hasSubMenu (1) && $jamenu->showSeparatedSub )
    $hasSubnav = true;
    //End for main navigation

    $ja_tool_width = 0;
    switch ($tmpTools->getParam(JA_TOOL_USER)) {
    case 0: $ja_tool_width = 0; break;
    case 1: $ja_tool_width = 47; break;
    case 2: $ja_tool_width = 64; break;
    case 3: $ja_tool_width = 110; break;
    case 4: $ja_tool_width = 64; break;
    case 5: $ja_tool_width = 110; break;
    case 6: $ja_tool_width = 130; break;
    case 7: $ja_tool_width = 175; break;
    }

    ?>

    you can see the website on http://www.mo75.de

    regards,
    michael

    Sherlock Friend
    #245857

    you can change default font size here

    #font size default
    $_params->set(JA_TOOL_FONT,3);

    And about decrease and increase, you must change in ja.csript.js(templatesja_coronajs)
    Search function switchFontSize
    you will see:

    case 'inc':
    if (CurrentFontSize+1 < 7)

    And

    case 'dec':
    if (CurrentFontSize-1 > 0)

    you can change 7 and 0 as you want

    dreamcatcher29 Friend
    #245858

    i see, that in your demo side is no problem with the font size. is allways fine in my firefox browser. why?

    regards
    michael

    dreamcatcher29 Friend
    #245865

    ok,

    it works, when i remove the decrease and increase buttons. ist’s ok.

    thanks for your fast replay!

    regards
    michael

    celius Friend
    #252580

    I had the same problem. The frontpage showed normal font, but when i pushed the menu to go to another part of the site the font was alot bigger. I disabled the decrease and increase buttons and it’s the same fontsize all over.

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

This topic contains 5 replies, has 3 voices, and was last updated by  celius 16 years, 3 months ago.

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