completely remove the box without doing too much damage Selenium Color

the folder
app\design\frontend\default\jm_selenitemplate\pag e
contains file

  • 1column.phtml,
  • 2columns-left.phtml
  • 2columns-right
  • 3columns.phtml

modify the code

HTML Code:

	<div style="width: 50%;" class="ja-box-left">
		<div class="box">
			<div class="head"><h4>Seleni Color</h4></div>
		 	<?php echo $tmpTools->genToolMenu ($tmpTools->getParam('usertool_color'),'txt'); ?>
		</div> 
	</div>

in

HTML Code:

<div style="width: 50%;" class="ja-box-left">
<!--		<div class="box"> -->
		<!--  <div class="head"><h4>Seleni Color</h4></div>-->
		 	<?php echo $tmpTools->genToolMenu ($tmpTools->getParam('usertool_color'),'txt'); ?>
<!-- 		</div> -->
	</div>

open file
app\design\frontend\default\jm_selenitemplate\pag e\includestemplatetools.php
and modify the function getParam in

PHP Code:

    function genToolMenu($ja_tools, $imgext = 'gif'){

        if($ja_tools & 1){//show screen tools

            ?>

            <div class="box">

                <ul class="ja-usertools-screen">

                <?php                    

                
foreach ($this->_ja_screen_sizes as $ja_screen_size) {

                    echo 
"

                    <li><img style=\"cursor: pointer;\" alt=\"
$ja_screen_size\" src=\"".$this->skinurl()."/images/".strtolower($ja_screen_size).( ($this->getParam(JA_TOOL_SCREEN)==$ja_screen_size) ? "-hilite" "" ).".".$imgext."\" title=\"".$ja_screen_size."\" alt=\"".$ja_screen_size."\" id=\"ja-tool-".$ja_screen_size."\" onclick=\"switchTool('".$this->template."_".JA_TOOL_SCREEN."','$ja_screen_size');return false;\" /></li>

                    "
;

                }

                
?>

                </ul>

            </div>

        <?php 

        


        

        if (
$ja_tools 2){//show font tools

          
?>

            <div class="box">

                <ul class="ja-usertools-font">

                <li><img style="cursor: pointer;" title="Increase font size" src="<?php echo $this->skinurl();?>/images/user-increase.<?php echo $imgext;?>" alt="Increase font size" id="ja-tool-increase" onclick="switchFontSize('<?php echo $this->template."_".JA_TOOL_FONT;?>','inc'); return false;" /></li>

                <li><img style="cursor: pointer;" title="Default font size" src="<?php echo $this->skinurl();?>/images/user-reset.<?php echo $imgext;?>" alt="Default font size" id="ja-tool-reset" onclick="switchFontSize('<?php echo $this->template."_".JA_TOOL_FONT;?>',<?php echo $this->_params->get(JA_TOOL_FONT);?>); return false;" /></li>

                <li><img style="cursor: pointer;" title="Decrease font size" src="<?php echo $this->skinurl();?>/images/user-decrease.<?php echo $imgext;?>" alt="Decrease font size" id="ja-tool-decrease" onclick="switchFontSize('<?php echo $this->template."_".JA_TOOL_FONT;?>','dec'); return false;" /></li>

                </ul>

            </div>

              <script type="text/javascript">var CurrentFontSize=parseInt('<?php echo $this->getParam(JA_TOOL_FONT);?>');</script>                        

        <?php ?>

        

        <?php 

        
if ($ja_tools 4){//show color tools

            
?>

            <div class="box">

                <div class="head"><h4>Seleni Color</h4></div>

                <ul class="ja-usertools-color">

                <?php            

                
if ($imgext=='txt'){

                foreach (
$this->_ja_color_themes as $ja_color_theme

                    {

                    echo 
"

                    <li class=\""
.( ($this->getParam(JA_TOOL_COLOR)==$ja_color_theme) ? "hilite " "" ).$ja_color_theme."\"><a style=\"cursor: pointer;\" title=\"".$ja_color_theme." color\"  id=\"ja-tool-".$ja_color_theme."color\" onclick=\"switchTool('".$this->template."_".JA_TOOL_COLOR."','$ja_color_theme');return false;\">".ucfirst($ja_color_theme)."&nbsp;Color</a></li>

                    "
;

                    }

                }

                else 

                {

                    foreach (
$this->_ja_color_themes as $ja_color_theme

                    {

                    echo 
"

                    <li><img style=\"cursor: pointer;\" src=\""
.$this->skinurl()."/images/".strtolower($ja_color_theme).( ($this->getParam(JA_TOOL_COLOR)==$ja_color_theme) ? "-hilite" "" ).".".$imgext."\" title=\"".$ja_color_theme." color\" alt=\"".$ja_color_theme." color\" id=\"ja-tool-".$ja_color_theme."color\" onclick=\"switchTool('".$this->template."_".JA_TOOL_COLOR."','$ja_color_theme');return false;\" /></li>

                    "
;

                    }

                } 
?>

                </ul>

            </div>

        <?php

        
}

        

        if (
$ja_tools 8){//show LAYOUT tools

            
?>

            <div class="box">

                <ul class="ja-usertools-layout">

                <?php

                    
foreach ($this->_ja_layouts as $ja_layout) {

                        echo 
"

                        <li><img style=\"cursor: pointer;\" src=\""
.$this->skinurl()."/images/".strtolower($ja_layout).( ($this->getParam(JA_TOOL_LAYOUT)==$ja_layout) ? "-hilite" "" ).".".$imgext."\" title=\"$ja_layout\" alt=\"$ja_layout\" id=\"ja-tool-".$ja_layout."\" onclick=\"switchTool('".$this->template."_".JA_TOOL_LAYOUT."','$ja_layout');return false;\" /></li>

                        "
;

                    } 

                
?>

                </ul>

            </div>

        <?php

        
}

        if ($ja_tools 16){//show LAYOUT tools

            
?>

            <div class="box">

                <ul class="ja-usertools-body">

                <?php

                    
foreach ($this->_ja_body_themes as $ja_body_theme) {

                        echo 
"

                        <li><img style=\"cursor: pointer;\" src=\""
.$this->skinurl()."/images/".strtolower($ja_body_theme).( ($this->getParam(JA_TOOL_BODY)==$ja_body_theme) ? "-hilite" "" ).".".$imgext."\" title=\"$ja_body_theme\" alt=\"$ja_body_theme\" id=\"ja-tool-".$ja_body_theme."\" onclick=\"switchTool('".$this->template."_".JA_TOOL_BODY."','$ja_body_theme');return false;\" /></li>

                        "
;

                    } 

                
?>

                </ul>

            </div>

        <?php

        
}

      

        if (
$ja_tools 32){//show font tools

          
?>

            <div class="box">

                <ul class="ja-usertools-expand">

                <li id="ja-mainbody-resize"></li>

                </ul>

            </div>

              <?php

        
}

    

        if (
$ja_tools 64){//show font tools

              
?>

            <div class="box">

                <div class="ja-usertools-modfunc">

                <a href="" title="Reset Module Status" onclick="switchTool('ja-ordercolumn','-'); return false;" >Reset Module Status</a>

                </div>

            </div>

              <?php

        
}

    }



(the difference between the original function is few but scattered throughout the code … this way to change this function is not the way smarter … but it works)

This question is now closed

Written By

Comments