Новости Joomla

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

Ole4ka

  • Захожу иногда
  • 74
  • 4 / 0
Хочу в готовом шаблоне изменить шапку.Вставляю туда свою картинку ( в index.php  c помощью Dreamveawer ),  сохраняю, а её на локалке в шаблоне не видно... В чём дело? Помогите разобраться!
*

Aleks_El_Dia

  • Живу я здесь
  • 3671
  • 353 / 0
  • AEDStudio Joomla! Direction
Re: Как изменить шапку шаблона?
« Ответ #1 : 03.02.2009, 20:34:28 »
Дай хоть кусок кода сюда что ли...
Спам придумали боги в отместку за наши молитвы (с) Рома Воронежский
На молоко: Z369038872422 || R210017695494 || U247040729215 || ЯД 410011288250383
Мигрирую сайты, переношу расширения J!1.0->J!1.5->J!2.5. Более 50 успешных миграций.
*

Ole4ka

  • Захожу иногда
  • 74
  • 4 / 0
Re: Как изменить шапку шаблона?
« Ответ #2 : 03.02.2009, 21:00:39 »
Вот весь код из шаблона.Не знаю, какая именно часть нужна, поэтому скинула всё....

<?php
/**
   * @copyright Copyright (C) 2006 - 2008 JoomlaShine.com
   * @author JoomlaShine.com
   * @license Commercial Proprietary
   * Please visit http://www.joomlashine.com for more information
*/

// no direct access
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Template version 2.0 for Joomla! 1.0.x -->
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo _LANGUAGE; ?>" xml:lang="<?php echo _LANGUAGE; ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php
   if ( $my->id ) {
      initEditor();
   }
   mosShowHead();

   require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/php/jsn_utils.php");

   /****************************************************************/
   /* TEMPLATE PARAMETERS */

   /* Template color */
   $template_color = "blue"; // blue | red | green | violet | orange | grey

   /* Template font style based on website type */
   $template_font = 1; // 1 - Business / Corporation | 2 - Personal / Blog | 3 - Online News / Magazines;
   
   /* Path to logo image starting from the Joomla! root folder (! without preceding slash !). */
   $logo_path = "templates/jsn_epic_pro/images/logo.png";

   /* Logo width specified in pixels. */
   $logo_width = "250px";

   /* Logo height specified in pixels. */
   $logo_height = "75px";

   /* URL where logo image should link to (! without preceding slash !). Leave this box empty if you want your logo to be clickable. */
   $logo_link = "index.php";

   /* Slogan text to be attached to the logo image ALT text for SEO purpose. */
   $logo_slogan = "";

   /* Overall template width specified in pixels (for fixed width) or percentage (for fluid width). */
   $template_width = "960px";

   /* Left column width specified in percentage within range (18% - 33%).
      Only whole number is allowed, for example 25% - correct, 25.5% - incorrect */
   $left_width = "23%";

   /* Right column width specified in percentage within range (18% - 33%).
      Only whole number is allowed, for example 25% - correct, 25.5% - incorrect */
   $right_width = "23%";

   /* Menu icons to be shown in Icon Menu */
   $menu_icons = "home,info,image,download,mail,comment";

   /* Definition whether to show pathway or not */
   $show_pathway = "yes"; // yes | no

   /* Definition whether to enable font size selector or not */
   $enable_fontresizer = "yes"; // yes | no

   /* Definition whether to enable auto icon link or not. Icons can still be assigned to links by class attribute even if this option is turned off */
   $enable_iconlinks = "yes"; // yes | no

   /* Definition whether to enable PNG fix feature for IE6 or not.
      This parameter should be turned off only when there are incompatibility issues. */
   $enable_pngfix = "yes"; // yes | no

   /* Definition whether to enable additional style for Community Builder extension.
      You can turn off this parameter if you want to use specific Community Builder template. */
   $enable_style_cb = "yes"; // yes | no

   /* Definition whether to enable additional style for DocMan extension.
      You can turn off this parameter if you want to use specific DocMan template. */
   $enable_style_docman = "yes"; // yes | no

   /* Definition whether to enable additional style for Virtue Mart extension.
      You can turn off this parameter if you want to use specific Virtue Mart template. */
   $enable_style_vm = "yes"; // yes | no

   /* Definition whether to enable additional style for JEvents extension.
      You can turn off this parameter if you want to use specific JEvents template. */
   $enable_style_jevents = "yes"; // yes | no

   /* Definition whether to enable additional style for RSGallery2 extension.
      You can turn off this parameter if you want to use specific RSGallery2 template. */
   $enable_style_rsg2 = "yes"; // yes | no

   /* Definition how to display PHP error reporting.
      This parameter should be used only in template testing cases. */
   $error_repoting = "default"; // default | on | off


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

   /* Private use only */
   $content_fonts = array(
      array(75, 'Arial, Helvetica, sans-serif'),
      array(80, '"Trebuchet MS", Helvetica, sans-serif'),
      array(85, '"Times New Roman", Times, serif')
      );
   
   $heading_fonts = array(
      'Verdana, Geneva, sans-serif',
      'Georgia, serif',
      '"Palatino Linotype", Palatino, serif'
      );
   
   $template_path = $mosConfig_live_site."/templates/".$mainframe->getTemplate();
   $left_width = round($left_width);
   $right_width = round($right_width);
   $has_right = mosCountModules('right');
   $has_left = mosCountModules('left');
   $has_user8 = mosCountModules('user8');
   $has_user9 = mosCountModules('user9');

   $logo_image = $mosConfig_live_site."/".$logo_path;
   $logo_text = $mosConfig_sitename.($logo_slogan != ''?' - '.$logo_slogan:'');

   switch($error_repoting) {
      case "off":
         error_reporting(0);
         break;

      case "on":
         error_reporting(E_ALL);
         break;
   }

   // Parameter filter
   $template_font -= 1;
   $template_width = intval($template_width);
   $template_width .= ($template_width < 100)?"%":"px";
   $left_width = intval($left_width)."%";
   $right_width = intval($right_width)."%";
   $logo_width = intval($logo_width)."px";
   $logo_height = intval($logo_height)."px";
   $logo_link = ($logo_link != "")?$mosConfig_live_site."/".$logo_link:"";
?>
<link href="<?php echo $template_path; ?>/css/template_css.css" rel="stylesheet" type="text/css" media="screen" />
<?php
   // Loading specific CSS color file
   if($template_color != "blue") echo '<link href="'.$template_path.'/css/template_'.$template_color.'.css" rel="stylesheet" type="text/css" media="screen" />';

   // Loading specific CSS file for auto icon links
   if($enable_iconlinks == "yes") echo '<link href="'.$template_path.'/css/jsn_iconlinks.css" rel="stylesheet" type="text/css" media="screen" />';
   
   // Inline CSS styles  for external extensions
   if($enable_style_cb == "yes") {
      echo '<link href="'.$template_path.'/ext/cb/style.css" rel="stylesheet" type="text/css" media="screen" />';
      if($template_color != "blue") echo '<link href="'.$template_path.'/ext/cb/style_'.$template_color.'.css" rel="stylesheet" type="text/css" media="screen" />';
   }
   if($enable_style_docman == "yes") {
      echo '<link href="'.$template_path.'/ext/docman/style.css" rel="stylesheet" type="text/css" media="screen" />';
      if($template_color != "blue") echo '<link href="'.$template_path.'/ext/docman/style_'.$template_color.'.css" rel="stylesheet" type="text/css" media="screen" />';
   }
   if($enable_style_vm == "yes") {
      echo '<link href="'.$template_path.'/ext/vm/style.css" rel="stylesheet" type="text/css" media="screen" />';
   }
   if($enable_style_jevents == "yes") {
      echo '<link href="'.$template_path.'/ext/jevents/style.css" rel="stylesheet" type="text/css" media="screen" />';
      if($template_color != "blue") echo '<link href="'.$template_path.'/ext/jevents/style_'.$template_color.'.css" rel="stylesheet" type="text/css" media="screen" />';
   }
   if($enable_style_rsg2 == "yes") {
      echo '<link href="'.$template_path.'/ext/rsg2/style.css" rel="stylesheet" type="text/css" media="screen" />';
   }

   // Inline CSS styles for template layout
   echo '<style type="text/css">';

   // Setup template width parameter
   echo '
   #jsn-page {
      width: '.$template_width.';
   }
   ';

   // Adjustment of header area according to the logo height parameter
   echo '
   #jsn-header {
      height: '.$logo_height.';
   }
   ';

   if($enable_fontresizer == "yes") {
   echo '
   #jsn-pinset {
      right: 86px;
   }
   ';
   }

   // Setup width of promo area
   $tw = 100;
   $lw = intval($left_width);
   $rw = intval($right_width);
   if ($has_user9)   $tw -= ($lw + 0.06);
   if ($has_user8) $tw -= ($rw + 0.06);

   echo '
   #jsn-puser9 {
      float: left;
      width: '.$lw.'%;
   }
   #jsn-pheader {
      float: left;
      width: '.$tw.'%;
   }
   #jsn-puser8 {
      float: right;
      width: '.$rw.'%;
   }
   ';

   // Setup width of content area
   $tw = 100;
   if ($has_left) {
      $tw -= ($lw + 0.06);
      echo '
   #jsn-content_inner1 {
      background: transparent url('.$template_path.'/images/bg/leftside'.$lw.'-bg-full.png) repeat-y '.$lw.'% top;
      padding: 0;
   }
   #jsn-maincontent_inner {
      padding-left: 0;
   }
   ';
   }

   if ($has_right) {
      $tw -= ($rw + 0.06);
      echo '
   #jsn-content_inner2 {
      background: transparent url('.$template_path.'/images/bg/rightside'.$rw.'-bg-full.png) repeat-y '.(100-$rw).'% top;
      padding: 0;
   }
   #jsn-maincontent_inner {
      padding-right: 0;
   }
   ';
   }

   echo '
   #jsn-leftsidecontent {
      float: left;
      width: '.$lw.'%;
   }
   #jsn-maincontent {
      float: left;
      width: '.$tw.'%;
   }
   #jsn-rightsidecontent {
      float: right;
      width: '.$rw.'%;
   }
   ';

   // Setup icons for Icon Menu
   $icons = explode(",", $menu_icons);
   $icons_length = count($icons);
   for($i=0;$i<$icons_length;$i++){
      echo '
         ul.menu-icon li.order'.($i+1).' a:link,
         ul.menu-icon li.order'.($i+1).' a:visited {
            background-image: url('.$template_path.'/images/icon-module-'. $icons[$i].'.png);
         }
         ';
   }

   // Setup template width parameter
   echo '
   #jsn-master {
      font-size: '.$content_fonts[$template_font][0].'%;
      font-family: '.$content_fonts[$template_font][1].';
   }
   
   h1, h2, h3, h4, h5, h6,
   ul.menu-suckerfish a,
   .componentheading, .contentheading {
      font-family: '.$heading_fonts[$template_font].' !important;
   }
   ';
   
   echo '</style>';

   // Setup core javascript library
   echo '<script type="text/javascript" src="'.$template_path.'/js/jsn_script.js"></script>';
   
   // Setup javascript if font resizer is enabled
   if($enable_fontresizer == "yes") {
   echo '
   <script type="text/javascript">
      var defaultFontSize = '.$content_fonts[$template_font][0].';
   </script>
   <script type="text/javascript" src="'.$template_path.'/js/jsn_epic.js"></script>
   ';
   }
?>
<!--[if lte IE 6]>
<link href="<?php echo $template_path; ?>/css/jsn_fixie6.css" rel="stylesheet" type="text/css" />
<?php if($enable_pngfix == "yes") {?>
<style type="text/css">
   img {  behavior: url(<?php echo $template_path;?>/js/iepngfix.htc); }
</style>
<?php } ?>
<![endif]-->
<!--[if lte IE 7]>
<script type="text/javascript" src="<?php echo $template_path; ?>/js/suckerfish.js"></script>
<![endif]-->
<!--[if IE 7]>
<link href="<?php echo $template_path; ?>/css/jsn_fixie7.css" rel="stylesheet" type="text/css" />
<![endif]-->
<title>Камины и печи</title></head>
<body id="jsn-master">
   <div id="jsn-page">
      <div id="jsn-header">
         <div id="jsn-logo">
          <?php if ($logo_link != "") echo '<a href="'.$logo_link.'" title="'.$logo_text.'">'; ?><?php if ($logo_link != "") echo '</a>'; ?>
         </div>
         <?php if (mosCountModules( 'top' ) > 0) { ?>
         <div id="jsn-ptop"><?php mosLoadModules('top', -2); ?></div>
         <?php } ?>
      </div>
      <div id="jsn-body">
         <?php if (jsnCountPositions(array('toolbar', 'inset')) || $enable_fontresizer == "yes") { ?>
         <div id="jsn-mainmenu">
            <?php if (mosCountModules( 'toolbar' ) > 0) { ?>
            <div id="jsn-ptoolbar"><?php mosLoadModules('toolbar', -2); ?></div>
            <?php } ?>
            <?php if (mosCountModules( 'inset' ) > 0) { ?>
            <div id="jsn-pinset"><?php mosLoadModules('inset', -2); ?></div>
            <?php } ?>
            <?php if ($enable_fontresizer == "yes") { ?>
            <div id="jsn-fontresizer">
               <ul class="hlist">
                  <li><a onclick="jsnChangeFontSize(-1);" title="Decrease font size" href="javascript:void(0)"><img alt="Decrease font size" src="<?php echo $template_path; ?>/images/font-decrease.png"/></a></li>
                  <li><a onclick="jsnResetFontSize();" title="Reset font size to default" href="javascript:void(0)"><img alt="Reset font size to default" src="<?php echo $template_path; ?>/images/font-reset.png"/></a></li>
                  <li><a onclick="jsnChangeFontSize(1);" title="Increase font size" href="javascript:void(0)"><img alt="Increase font size" src="<?php echo $template_path; ?>/images/font-increase.png"/></a></li>
               </ul>
           </div>
            <?php } ?>
         </div>
         <?php } ?>
         <?php
            if(jsnCountPositions(array('header', 'user8', 'user9'))) {
         ?>
         <div id="jsn-promo">
            <?php if (mosCountModules( 'user9' ) > 0) { ?>
            <div id="jsn-puser9" class="jsn-column"><div id="jsn-puser9_inner"><?php mosLoadModules('user9', -2); ?></div></div>
            <?php } ?>
            <?php if (mosCountModules( 'header' ) > 0) { ?>
            <div id="jsn-pheader" class="jsn-column"><?php mosLoadModules('header', -2); ?></div>
            <?php } ?>
            <?php if (mosCountModules( 'user8' ) > 0) { ?>
            <div id="jsn-puser8" class="jsn-column"><div id="jsn-puser8_inner"><?php mosLoadModules('user8', -2); ?></div></div>
            <?php } ?>
            <div class="clearbreak"></div>
         </div>
         <?php } ?>
         <div id="jsn-content"><div id="jsn-content_inner1"><div id="jsn-content_inner2">
            <?php if (mosCountModules( 'left' ) > 0) { ?>
            <div id="jsn-leftsidecontent" class="jsn-column">
               <div id="jsn-pleft"><?php mosLoadModules('left', -3); ?></div>
            </div>
            <?php } ?>
            <div id="jsn-maincontent" class="jsn-column"><div id="jsn-maincontent_inner">
               <?php if ($show_pathway == "yes") { ?>
               <div id="jsn-pathway"><?php mosPathWay(); ?></div>
               <?php } ?>
               <?php
                  $positionCount = jsnCountPositions(array('user1', 'user2'));
                  if($positionCount){
                     $grid_suffix = "_grid".$positionCount;
               ?>
               <div id="jsn-usermodules1"><div id="jsn-usermodules1_inner<?php echo $grid_suffix; ?>">
                  <?php if (mosCountModules( 'user1' ) > 0) { ?>
                  <div id="jsn-puser1<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-puser1"><?php mosLoadModules('user1', -2); ?></div></div>
                  <?php } ?>
                  <?php if (mosCountModules( 'user2' ) > 0) { ?>
                  <div id="jsn-puser2<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-puser2"><?php mosLoadModules('user2', -2); ?></div></div>
                  <?php } ?>
                  <div class="clearbreak"></div>
               </div></div>
               <?php } ?>
               <div id="jsn-mainbody">
                  <?php mosMainBody(); ?>
               </div>
               <?php
               $positionCount = jsnCountPositions(array('user3', 'user4'));
               if($positionCount){
                  $grid_suffix = "_grid".$positionCount;
               ?>
               <div id="jsn-usermodules2"><div id="jsn-usermodules2_inner<?php echo $grid_suffix; ?>">
                  <?php if (mosCountModules( 'user3' ) > 0) { ?>
                  <div id="jsn-puser3<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-puser3"><?php mosLoadModules('user3', -2); ?></div></div>
                  <?php } ?>
                  <?php if (mosCountModules( 'user4' ) > 0) { ?>
                  <div id="jsn-puser4<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-puser4"><?php mosLoadModules('user4', -2); ?></div></div>
                  <?php } ?>
                  <div class="clearbreak"></div>
               </div></div>
               <?php } ?>
               <?php if (mosCountModules( 'banner' ) > 0) { ?>
               <div id="jsn-banner"><?php mosLoadModules('banner', -2); ?></div>
               <?php } ?>
            </div></div>
            <?php if (mosCountModules( 'right' ) > 0) { ?>
            <div id="jsn-rightsidecontent" class="jsn-column">
               <div id="jsn-pright"><?php mosLoadModules('right', -3); ?></div>
            </div>
            <?php } ?>
            <div class="clearbreak"></div>
         </div></div></div>
         <?php
         $positionCount = jsnCountPositions(array('user5', 'user6', 'user7'));
         if($positionCount){
            $grid_suffix = "_grid".$positionCount;
         ?>
         <div id="jsn-usermodules3"><div id="jsn-usermodules3_inner<?php echo $grid_suffix; ?>">
            <?php if (mosCountModules( 'user5' ) > 0) { ?>
            <div id="jsn-puser5<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-puser5"><?php mosLoadModules('user5', -2); ?></div></div>
            <?php } ?>
            <?php if (mosCountModules( 'user6' ) > 0) { ?>
            <div id="jsn-puser6<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-puser6"><?php mosLoadModules('user6', -2); ?></div></div>
            <?php } ?>
            <?php if (mosCountModules( 'user7' ) > 0) { ?>
            <div id="jsn-puser7<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-puser7"><?php mosLoadModules('user7', -2); ?></div></div>
            <?php } ?>
            <div class="clearbreak"></div>
         </div></div>
         <?php } ?>
      </div>
      <?php
         $positionCount = jsnCountPositions(array('footer', 'bottom'));
         if($positionCount){
            $grid_suffix = "_grid".$positionCount;
      ?>
      <div id="jsn-footer">
         <?php if (mosCountModules( 'footer' ) > 0) { ?>
         <div id="jsn-pfooter<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-pfooter"><?php mosLoadModules('footer', -2); ?></div></div>
         <?php } ?>
         <?php if (mosCountModules( 'bottom' ) > 0) { ?>
         <div id="jsn-pbottom<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-pbottom"><?php mosLoadModules('bottom', -2); ?></div></div>
         <?php } ?>
         <div class="clearbreak"></div>
      </div>
      <?php } ?>
   </div>
   <?php mosLoadModules('debug', -2); ?>
</body>
</html>
*

Aleks_El_Dia

  • Живу я здесь
  • 3671
  • 353 / 0
  • AEDStudio Joomla! Direction
Re: Как изменить шапку шаблона?
« Ответ #3 : 03.02.2009, 22:46:17 »
В вашем шаблоне картинки вставляются в стилях css. В этом коде их нет.
Спам придумали боги в отместку за наши молитвы (с) Рома Воронежский
На молоко: Z369038872422 || R210017695494 || U247040729215 || ЯД 410011288250383
Мигрирую сайты, переношу расширения J!1.0->J!1.5->J!2.5. Более 50 успешных миграций.
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Как изменить отображение?

Автор aprelika

Ответов: 1
Просмотров: 2519
Последний ответ 14.11.2013, 11:10:01
от aprelika
Не могу на сайте изменить картинку в шапке!

Автор bezimeni89

Ответов: 13
Просмотров: 5817
Последний ответ 17.11.2012, 12:19:11
от bezimeni89
Как изменить кодировку на одной странице сайта

Автор Olegs

Ответов: 13
Просмотров: 9278
Последний ответ 07.06.2011, 19:01:06
от Olegs
как изменить количество колонок в материале?

Автор Van4o

Ответов: 1
Просмотров: 3155
Последний ответ 22.12.2010, 20:57:52
от vikingg
Как изменить ширину боковых колонок

Автор odessit34

Ответов: 10
Просмотров: 5893
Последний ответ 19.10.2010, 17:01:06
от odessit34