0 Пользователей и 1 Гость просматривают эту тему.
  • 2 Ответов
  • 2013 Просмотров
*

MarinaE

  • Новичок
  • 4
  • 0 / 0
Помогите, пожалуйста, чайнику.
Сайт собственно вот http://balansprofi.in.ua/
Шаблон позволяет менять цвет, размер шрифта, ширину страницы, и положение боковой колоники (слева или справа).

Подскажите, пожалуйста,  как установить эти параметры по умолчанию (те которые я выберу).  Возможность выбора "tools help" (правый верхний угол)  я отключу. Как отключить знаю.

Привожу страницу  index.php шаблона. Подозреваю, что это, наверно, устанавливается где-то здесь



<?php
/**
*** A Commercial Template by JoomlaJunkie.com
*** @version 2.0 - JJ Absolute Flush
*** @copyright (C) 2005-2006 by - JoomlaJunkie
*** @web http://www.joomlajunkie.com
**/
defined( '_JEXEC' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php
if ( $my->id ) initEditor();
// ***************************************************
// Change this variable below to configure the template
// ***************************************************
$menu_type = $this->params->get('menu_type');                      // suckerfish | module
$menu_name = $this->params->get('menu_name');                   // mainmenu by default, can be any Joomla menu name


$use_colorswitcher = $this->params->get('use_colorswitcher');      // Show Color Switcher: yes | no
//** If no, then what would you like the default color to be?
$default_color = $this->params->get('default_color');                       // Default Color: blue | red | green | pink | orange

$show_fontresizer = $this->params->get('show_fontresizer');        // Show Font Resizer: yes | no

//** If no, then what would you like the default font size to be?

$default_fontsize = $this->params->get('default_fontsize');        // Default Font Size: mediumText | largeText | xLargeText


$show_sidebarswitcher = $this->params->get('show_sidebarswitcher');// Show Sidebar Switch: yes | no
//** If no, which side should the sidebar be displayed on?
$default_sidebarposition = $this->params->get('default_sidebarposition');   // Sidebar Position: left | right


$show_widthresizer = $this->params->get('show_widthresizer');      // Show Width Resizer: yes | no
//** If no, what should the default width be?
$default_width = $this->params->get('default_width');              // Default Width: narrow | wide


$show_helpicon = $this->params->get('show_helpicon');              // Display Help icon: yes | no
$show_displayoptions = $this->params->get('show_displayoptions');  // Show Display Options:  yes | no

// *************************************************

$style_color = $_COOKIE["style_color"] ? $_COOKIE["style_color"] : $default_color;
$style_size = $_COOKIE["style_size"] ? $_COOKIE["style_size"] : $default_width;
$font_size = $_COOKIE["font_size"] ? $_COOKIE["font_size"] : $default_fontsize;
$style_sidebar = $_COOKIE["style_sidebar"] ? $_COOKIE["style_sidebar"] : $default_sidebarposition;



if ($menu_type != "module") {
   require("templates/" . $this->template . "/jj_" . $menu_type . ".php");
}

// *************************************************
?>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/print.css" rel="stylesheet" type="text/css" media="print" />

<!--[if IE]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ie.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if IE 7]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->
<link rel="shortcut icon" href="<?php echo $mainframe->getCfg('live_site');?>/images/favicon.ico" />
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/jquery.absolute-v2.js"></script>
<script language="javascript" type="text/javascript">
<!--
var embedAFCSS = '<' + 'style type="text/css" media="screen">'
+ '@import "<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template_css.css";'
+ '</' + 'style>';
document.write(embedAFCSS);
-->
</script>
<!--noscript>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template_css_nojs.css" rel="stylesheet" type="text/css" media="screen" />
</noscript-->

<script type="text/javascript">
   var $j = jQuery.noConflict();
</script>

<script type="text/javascript" language="javascript">
function createCookie(name,value,days) {
     if (days) {
       var date = new Date();
       date.setTime(date.getTime()+(days*24*60*60*1000));
       var expires = "; expires="+date.toGMTString();
     }
     else expires = "";
     document.cookie = name+"="+value+expires+"; path=/";
   }
   
function JJDynamicColors(default_color){
/***************************************
Color Specific CSS:
- Header
- Module Headers
***************************************/
var _JJ_moduletable_bg = {blue:"#3A78A5", red:"#9A0101", green:"#7D981B", pink:"#D52F72", orange:"#E44C0F"};
var _JJ_color_style = readCookie("style_color");   
if (!_JJ_color_style) {
_JJ_color_style = default_color;
}

/* Headers */
$j("body."+_JJ_color_style+" #header").css({ background: "#eee url(<?php echo $this->baseurl ?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/"+_JJ_color_style+"/header.png) top left no-repeat" });
/* Menu */
$j("body."+_JJ_color_style+" #nav").css({ background: _JJ_moduletable_bg[_JJ_color_style]+" url(<?php echo $this->baseurl ?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/"+_JJ_color_style+"/menu-off.jpg) repeat-x" });
/* Module Headers */
$j("body."+_JJ_color_style+" #sidebar .moduletable h3, body."+_JJ_color_style+" #sidebar .moduletable-login h3, body."+_JJ_color_style+" #sidebar .moduletable_menu h3").css({ background: _JJ_moduletable_bg[_JJ_color_style]+" url(<?php echo $this->baseurl ?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/"+_JJ_color_style+"/moduleheader.png) repeat-x" });
/* Sidebar Nav */
$j("body."+_JJ_color_style+" #sidebar .menu li a, body."+_JJ_color_style+" #sidebar .menu-sidenav2 li a, body."+_JJ_color_style+" #sidebar .menu-sidenav3 li a").css({ background: "transparent url(<?php echo $this->baseurl ?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/"+_JJ_color_style+"/sidebarnavbullet.gif) 3% 50% no-repeat" });
/* Content H1's */
$j("body."+_JJ_color_style+" #content h1, body."+_JJ_color_style+" #content h3, body."+_JJ_color_style+" #content h5,").css({ color: ""+_JJ_moduletable_bg[_JJ_color_style]+""});
/* Highlights */
$j("body."+_JJ_color_style+" #content span.highlight").css({ background: ""+_JJ_moduletable_bg[_JJ_color_style]+""});
}

$j(function(){
<?php if ($use_colorswitcher == "no") { ?>
    eraseCookie('style_color');
    createCookie('style_color', '<?php echo $default_color; ?>', 89600);
<?php } ?>
JJDynamicColors('<?php echo $default_color; ?>');
});

$j(document).ready(function() {
   $j("a.help-link").toggle(function() {
      $j(".helpWrap").animate({
         height: 'show',
         opacity: 'show'
      }, 'slow');
   }, function() {
      $j(".helpWrap").animate({
         height: 'hide',
         opacity: 'hide'
      }, 'slow');
   });
});
</script>
<?php if ($this->countModules('left') <= 0) : ?>
<style type="text/css">
#wrapper #main {background:none;}
#wrapper #content {float:none;width:760px;}
body.wide #wrapper #content {float:none;width:980px;}
#wrapper #main div.padding{padding:20px;background-image:none;}
#wrapper #main { background: transparent none!important; }
</style>
<?php endif; ?>

</head>
<body class="<?php echo trim(sprintf("%s %s %s %s",  $style_color, $style_size, $font_size, $style_sidebar));
?>">

<div id="wrapper">
   <div id="options-wrap">
        <h2><a href="<?php echo $mainframe->getCfg('live_site');?>index.php"><?php echo $mainframe->getCfg('sitename');?></a></h2>   
        <?php if ($show_displayoptions == "yes") : ?>
            <div id="displayOptions">
                <h3>Display Options</h3>
                <?php if ($show_fontresizer == "yes") : ?>         
                <h4>Text Size</h4>
                <ul id="text-size" class="fontsizer horizontal clearfix">
                    <li><a href="#" rel="mediumText" id="textMedium" class="fontswitch active-option" title="Medium Font Size (Default)">Medium Font Size (Default)</a></li>
                    <li><a href="#" rel="largeText" id="textLarge" class="fontswitch" title="Large Font Size">Large Font Size</a></li>
                    <li><a href="#" rel="xLargeText" id="textXLarge" class="fontswitch" title="X-Large Font Size">X-Large Font Size</a></li>
                </ul>
            <?php endif; ?>
                <?php if ($show_sidebarswitcher == "yes") : ?>
                <h4>Sidebar Postion</h4>
                <ul id="sidebar-position" class="fontsizer horizontal clearfix">
                    <li><a href="#" rel="left" id="sidebarLeft" class="sidebarswitch active-option" title="Sidebar Left">Sidebar Left</a></li>
                    <li><a href="#" rel="right" id="sidebarRight" class="sidebarswitch" title="Sidebar Right">Sidebar Right</a></li>
                </ul>
            <?php endif; ?>
                <?php if ($show_widthresizer == "yes") : ?>
                <h4>Layout</h4>
                <ul id="navigation-position" class="fontsizer horizontal clearfix">
                    <li><a href="#" rel="narrow" id="widthNarrow" class="sizeswitch active-option" title="1000px Width">1000px Width</a></li>
                    <li><a href="#" rel="wide" id="widthWide" class="sizeswitch" title="800px Width">800px Width</a></li>
                </ul>
            <?php endif; ?>
                <?php if ($use_colorswitcher == "yes") : ?>
                <h4>Color Options</h4>
                <ul id="color-scheme" class="fontsizer horizontal clearfix">
                    <li><a href="#" rel="blue" id="colorBlue" class="styleswitch active-option" title="Blue Theme">Switch to blue color scheme</a></li>
                    <li><a href="#" rel="red" id="colorRed" class="styleswitch" title="Red Theme">Switch to red color scheme</a></li>
                    <li><a href="#" rel="green" id="colorGreen" class="styleswitch" title="Green Theme">Switch to green color scheme</a></li>
                    <li><a href="#" rel="pink" id="colorPink" class="styleswitch" title="Pink Theme">Switch to pink color scheme</a></li>
                    <li><a href="#" rel="orange" id="colorOrange" class="styleswitch" title="Orange Theme">Switch to orange color scheme</a></li>
                </ul>
                 <?php endif; ?>   
      </div>
   <?php endif; ?>   
    <p class="nojs-alert"><strong>NOTE:</strong> To use the advanced features of this site you need javascript turned on.</p>      
   </div>
   <div id="header">   
    <?php if($this->countModules('header')) : ?>
         <jdoc:include type="modules" name="header" style="xhtml"/>
    <?php endif; ?>      
      <?php if ($show_helpicon == "yes") : ?>
        <a href="#" class="help-link">Help</a>
      <div class="helpWrap">
         <div class="help-contents">
            <ul>
               <li class="help-blue">Blue Theme</li>
               <li class="help-red">Red Theme</li>
               <li class="help-green">Green Theme</li>
               <li class="help-pink">Pink Theme</li>
               <li class="help-yellow">Orange Theme</li>
            </ul>
            <ul>
               <li class="help-narrow">800px Width</li>
               <li class="help-wide">1000px Width</li>
               <li class="help-sidebar">Sidebar Position</li>
               <li class="help-text">Adjust Text Size</li>
            </ul>
            <h3>Display Options Help</h3>
         </div>
      </div>
   <?php endif; ?>
   </div>
   
   <div id="nav">
     <?php if ($menu_type == "suckerfish") mosShowSuckerFishMenu($menu_name);   ?>
   </div>
   <div id="sitePath">
    <jdoc:include type="modules" name="breadcrumb" style="raw"/>
    <div id="searchBox-js">   
      <jdoc:include type="modules" name="user4" style="raw"/>
    </div>   
   </div>
   
   <div id="main">
      <div id="content">
         <div class="padding">
        <?php if($this->countModules('top')) : ?>
        <div id="inset">
          <jdoc:include type="modules" name="top" style="xhtml"/>
        </div>
        <?php endif; ?>
            
            <?php if($this->countModules('user1') || $this->countModules('user2') ) : ?>
            <table cellspacing="10" cellpadding="0" class="newsboxes">
               <tr valign="top">
                  <?php if($this->countModules('user1')) : ?>
                  <td class="newsLeft"><jdoc:include type="modules" name="user1" style="xhtml"/></td>
                  <?php endif; ?>
                  <?php if($this->countModules('user2')) : ?>
                  <td class="newsRight"><jdoc:include type="modules" name="user2" style="xhtml"/></td>
                  <?php endif; ?>
               </tr>
            </table>
            <?php endif; ?>

        <jdoc:include type="component" style="html"/>
            
                  <?php if($this->countModules('user6')) : ?>
                     <div id="bottomInset">
                         <jdoc:include type="modules" name="user6" style="raw"/>
                      </div>
                  <?php endif; ?>
         </div>
      </div>
      <?php if($this->countModules('left')) : ?>
      <div id="sidebar">
         <jdoc:include type="modules" name="left" style="xhtml"/>
         <jdoc:include type="modules" name="user5" style="xhtml"/>
   </div>
      <?php endif; ?>
      <br clear="all" />
   </div>

   <div id="footer">
         <div id="joomlajunkie-swish"><a href="http://balansprofi.in.ua/" title="BalansProfi">BalansProfi</a>
       </div>

       <div id="nav-and-credits">
          <div class="left"><?php if ($this->countModules('footer')>0) : ?> <jdoc:include type="modules" name="footer" style="raw"/><?php endif; ?></div>
          <div class="right">
         <?php $mosConfig_live_site = JURI :: base(); ?>
             
         </div>
       </div>
      <div id="copyright">
          <div class="left">Copyright &copy; <a href="http://balansprofi.in.ua/" title="BalansProfi">BalansProfi EC</a> - All Rights Reserved</div>
          <div class="right">Designed by <a href="http://balansprofi.in.ua/" title="joomlajunkie">MarynaDesign</a></div>
       </div>
   </div>
   <div id="footershadow"></div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      <p style="text-align: center;"><span style="font-size: 2px;"><a href="http://joomfile.com" target="_blank" title="Joomla">Joomla</a>&nbsp<a href="http://inotur.com" target="_blank" title="inotur">inotur</a></span></p>
</div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      <div style="display: none;"><a href="http://suomik.com" target="_blank" title="Finland">Finland</a>&nbsp<a href="http://inotur.com" target="_blank" title="inotur">inotur</a>&nbsp<a href="http://picma.ru" target="_blank" title="picma">picma</a></div>
</body>
</html>
*

motokraft

  • Завсегдатай
  • 1326
  • 72 / 13
Шаблон позволяет менять цвет, размер шрифта, ширину страницы, и положение боковой колоники (слева или справа).

у тебя он что то слетает, при выборе цвета он не меняется, и после перезагрузки страницы меняется на пару секунд и возващается на зеленый...

=====

сделай скин страницы настроек шаблона в админке... Я думаю что это можно скрыть в настройках шаблона... А если и нет то это легко сделать...
...
*

MarinaE

  • Новичок
  • 4
  • 0 / 0
motokraft, точно, это все меняется в настройках шаблона в админке..
уже сделала
Большое тебе спасибо ^-^ !
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Как создать новый блок в шаблоне?

Автор moov

Ответов: 7
Просмотров: 6083
Последний ответ 17.12.2018, 14:08:12
от arma
Как оставить модуль слайдшоу вшитый в шаблон, только на главной странице ?

Автор akteon25

Ответов: 4
Просмотров: 3235
Последний ответ 13.05.2016, 13:25:23
от akteon25
Поменять цвет блоков в шаблоне

Автор nuon

Ответов: 7
Просмотров: 3558
Последний ответ 10.01.2016, 23:11:34
от nuon
Ребят - В шаблоне Default

Автор Djaga

Ответов: 4
Просмотров: 1783
Последний ответ 10.12.2015, 08:01:47
от Djaga
Замена фона в шаблоне Joomla

Автор Jons$

Ответов: 7
Просмотров: 11270
Последний ответ 12.10.2015, 15:49:09
от darkghost