Joomla 1.5 Почему заголовок в виде (имя сайта-название страницы-имя сайта)

Тема в разделе "Навигационная структура сайта", создана пользователем rdswork, 11.09.2010.

  1. Offline

    rdswork Недавно здесь

    Регистрация:
    11.09.2010
    Сообщения:
    1
    Симпатии:
    0
    Пол:
    Мужской
    Здравствуйте. Тема Yootheme Phoenix. Joomla 1.5/ Никак не могу разобраться с заголовком. Помогите пожалуйста. Заголовок в виде (имя сайта-название страницы-имя сайта). Нужно (имя сайта-имя страницы) Мой сайт mddrf.ru.

    Вот config.php который находится в папке моего шаблона.

    Код (PHP):
    1. <?php
    2. /**
    3. * @package   yoo_phoenix Template
    4. * @version   1.5.4 2009-07-15 12:36:45
    5. * @author    YOOtheme http://www.yootheme.com
    6. * @copyright Copyright (C) 2007 - 2009 YOOtheme GmbH
    7. */
    8.  
    9. /*
    10.     YOOtheme Template configuration
    11. */
    12.  
    13. // no direct access
    14. defined('_JEXEC') or die('Restricted access');
    15.  
    16. // include classes
    17. require_once(JPATH_ROOT."/templates/{$this->template}/lib/php/template.php");
    18. require_once(JPATH_ROOT."/templates/{$this->template}/lib/php/cache.php");
    19. require_once(JPATH_ROOT."/templates/{$this->template}/lib/renderer/modules.php");
    20.  
    21. // init vars
    22. $template =& YOOTemplate::getInstance();
    23. $template->setDocument($this);
    24.  
    25. // set title and params
    26. $this->setTitle($mainframe->getCfg('sitename').' | '.$this->getTitle());
    27. $this->params->bind($template->params->toArray());
    28.  
    29. // set template current color
    30. if ($template->getCurrentColor() != 'default') {
    31.     $this->params->set('color', $template->getCurrentColor());
    32. }
    33.  
    34. // set template css
    35. $color = $this->params->get('color');
    36. $this->addStyleDeclaration($template->getCSS());
    37. $this->addStyleSheet($template->url.'/css/template.css');
    38. if ($color != '' && $color != 'default') {
    39.     $color_url = $template->url.'/css/variations/';
    40.     $this->addStyleSheet($color_url.$color.'.css');
    41. }
    42. $this->addStyleSheet($template->url.'/css/custom.css');
    43.  
    44. // set mootools javascript lib
    45. if ($this->params->get('load_mootools')) {
    46.     $template->replaceMootools();
    47. }
    48.  
    49. // set template javascript
    50. if ($this->params->get('load_javascript')) {
    51.     $this->addScriptDeclaration($template->getJavaScript());
    52.     $this->addScript($template->url.'/lib/js/addons/base.js');
    53.     $this->addScript($template->url.'/lib/js/addons/accordionmenu.js');
    54.     $this->addScript($template->url.'/lib/js/addons/fancymenu.js');
    55.     $this->addScript($template->url.'/lib/js/addons/dropdownmenu.js');
    56.     $this->addScript($template->url.'/lib/js/template.js');
    57. }
    58.  
    59. // ie7 hacks
    60. if ($template->isIe(7)) {
    61.     $css = '<link rel="stylesheet" href="%s" type="text/css" />';
    62.     $ie7[] = sprintf($css, $template->url.'/css/ie7hacks.css');
    63.     $this->addCustomTag('<!--[if IE 7]>'.implode("\n", $ie7).'<![endif]-->');
    64. }
    65.  
    66. // ie6 hacks
    67. if ($template->isIe(6)) {
    68.     $css = '<link rel="stylesheet" href="%s" type="text/css" />';
    69.     $js = '<script type="text/javascript" src="%s"></script>';
    70.     $ie6[] = sprintf($css, $template->url.'/css/ie6hacks.css');
    71.     /* if ($color != '' && $color != 'default') {
    72.         $ie6[] = sprintf($css, $color_url.'-ie6hacks.css');
    73.     } */
    74.     $ie6[] = sprintf($js, $template->url.'/lib/js/addons/ie6fix.js');
    75.     $ie6[] = sprintf($js, $template->url.'/lib/js/addons/ie6png.js');
    76.     $ie6[] = sprintf($js, $template->url.'/lib/js/ie6fix.js');
    77.     $this->addCustomTag('<!--[if IE 6]>'.implode("\n", $ie6).'<![endif]-->');
    78. }
    79.  
    80. // set css class for specific columns
    81. $columns = null;
    82. if ($this->countModules('left')) $columns .= 'column-left';
    83. if ($this->countModules('right') && !class_exists('JEditor')) $columns .= ' column-right';
    84. if ($this->countModules('contentleft') && !class_exists('JEditor')) $columns .= ' column-contentleft';
    85. if ($this->countModules('contentright') && !class_exists('JEditor')) $columns .= ' column-contentright';
    86. $this->params->set('columns', $columns);
    87.  
    88. // stylesheet/script compression & caching
    89. if ($compression = $this->params->get('compression')) {
    90.     $gzip = $compression == 2;
    91.     $rule = new YOOCacheRule('/^.*\/templates\/'.$this->template.'\/.*$/');
    92.     $stylesheet = new YOOCacheStylesheet($this);
    93.     $stylesheet->addRule($rule);
    94.     $stylesheet->process($gzip);
    95.     $script = new YOOCacheScript($this);
    96.     $script->addRule($rule);
    97.     $script->process($gzip);
    98. }


    Вот index.php который находится в папке моего шаблона.

    Код (PHP):
    1. <?php
    2. /**
    3. * @package   yoo_phoenix Template
    4. * @version   1.5.4 2009-07-15 12:36:45
    5. * @author    YOOtheme http://www.yootheme.com
    6. * @copyright Copyright (C) 2007 - 2009 YOOtheme GmbH
    7. */
    8.  
    9. // no direct access
    10. defined('_JEXEC') or die('Restricted access');
    11.  
    12. JHTML::_('behavior.mootools');
    13.  
    14. // include config  
    15. include_once(dirname(__FILE__).'/config.php');
    16.    
    17. ?>
    18. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    19. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
    20. <head>
    21. <jdoc:include type="head" />
    22. <link rel="apple-touch-icon" href="<?php echo $template->url ?>/apple_touch_icon.png" />
    23. </head>
    24.  
    25. <body id="page" class="yoopage <?php echo $this->params->get('columns'); ?> <?php echo $this->params->get('itemcolor'); ?> <?php echo $this->params->get('toolscolor'); ?>">
    26.  
    27.     <?php if($this->countModules('absolute')) : ?>
    28.     <div id="absolute">
    29.         <jdoc:include type="yoomodules" name="absolute" />
    30.     </div>
    31.     <?php endif; ?>
    32.  
    33.     <div id="page-body">
    34.         <div class="wrapper">
    35.             <div class="wrapper-bg1">
    36.                 <div class="wrapper-bg2">
    37.  
    38.                     <div id="header">
    39.        
    40.                         <div id="toolbar">
    41.                        
    42.                             <?php if($this->params->get('date')) : ?>
    43.                             <div id="date">
    44.                                 <?php echo JHTML::_('date', 'now', JText::_('DATE_FORMAT_LC')) ?>
    45.                             </div>
    46.                             <?php endif; ?>
    47.                        
    48.                             <?php if($this->countModules('toolbarleft')) : ?>
    49.                             <div class="left">
    50.                                 <jdoc:include type="yoomodules" name="toolbarleft" style="yoo" />
    51.                             </div>
    52.                             <?php endif; ?>
    53.                            
    54.                             <?php if($this->countModules('toolbarright')) : ?>
    55.                             <div class="right">
    56.                                 <jdoc:include type="yoomodules" name="toolbarright" style="yoo" />
    57.                             </div>
    58.                             <?php endif; ?>
    59.                            
    60.                         </div>
    61.                        
    62.                         <div id="headerbar">
    63.                        
    64.                             <?php if($this->countModules('headerleft')) : ?>
    65.                             <div class="left">
    66.                                 <jdoc:include type="yoomodules" name="headerleft" style="yoo" />
    67.                             </div>
    68.                             <?php endif; ?>
    69.                            
    70.                             <?php if($this->countModules('headerright')) : ?>
    71.                             <div class="right">
    72.                                 <jdoc:include type="yoomodules" name="headerright" style="yoo" />
    73.                             </div>
    74.                             <?php endif; ?>
    75.                            
    76.                         </div>
    77.        
    78.                         <div id="menubar">
    79.                             <div class="menubar-2">
    80.                                 <div class="menubar-3"></div>
    81.                             </div>
    82.                         </div>
    83.        
    84.                         <?php if($this->countModules('logo')) : ?>     
    85.                         <div id="logo">
    86.                             <jdoc:include type="yoomodules" name="logo" />
    87.                         </div>
    88.                         <?php endif; ?>
    89.        
    90.                         <?php if($this->countModules('menu')) : ?>
    91.                         <div id="menu">
    92.                             <jdoc:include type="yoomodules" name="menu" style="yoo" />
    93.                         </div>
    94.                         <?php endif; ?>
    95.        
    96.                         <?php if($this->countModules('search')) : ?>
    97.                         <div id="search">
    98.                             <jdoc:include type="yoomodules" name="search" />
    99.                         </div>
    100.                         <?php endif; ?>
    101.            
    102.                         <?php if ($this->countModules('banner')) : ?>
    103.                         <div id="banner">
    104.                             <jdoc:include type="yoomodules" name="banner" />
    105.                         </div>
    106.                         <?php endif; ?>
    107.        
    108.                     </div>
    109.                     <!-- header end -->
    110.        
    111.                     <?php if ($this->countModules('top + topblock')) : ?>
    112.                     <div id="top">
    113.                
    114.                         <?php if($this->countModules('topblock')) : ?>
    115.                         <div class="topblock width100 float-left">
    116.                             <jdoc:include type="yoomodules" name="topblock" style="yoo" />
    117.                         </div>
    118.                         <?php endif; ?>
    119.            
    120.                         <?php if ($this->countModules('top')) : ?>
    121.                             <jdoc:include type="yoomodules" name="top" wrapper="topbox float-left" layout="<?php echo $this->params->get('top'); ?>" style="yoo" />
    122.                         <?php endif; ?>
    123.                                                
    124.                     </div>
    125.                     <!-- top end -->
    126.                     <?php endif; ?>
    127.        
    128.                     <div id="middle">
    129.                         <div id="middle-expand">
    130.                        
    131.                             <div id="main">
    132.                                 <div id="main-shift">
    133.                                
    134.                                     <?php if ($this->countModules('maintop')) : ?>
    135.                                     <div id="maintop">
    136.                                         <jdoc:include type="yoomodules" name="maintop" wrapper="maintopbox float-left" layout="<?php echo $this->params->get('maintop'); ?>" style="yoo" />                                
    137.                                     </div>
    138.                                     <!-- maintop end -->
    139.                                     <?php endif; ?>
    140.        
    141.                                     <div class="mainmiddle-wrapper-tl">
    142.                                         <div class="mainmiddle-wrapper-tr">
    143.                                             <div class="mainmiddle-wrapper-t">
    144.                                                 <div class="contentleft-bg">
    145.                                                     <div class="contentright-bg"></div>
    146.                                                 </div>
    147.                                             </div>
    148.                                         </div>
    149.                                     </div>
    150.        
    151.                                     <div class="mainmiddle-wrapper-m">
    152.                                         <div class="contentleft-bg">
    153.                                             <div class="contentright-bg">
    154.                
    155.                                                 <div id="mainmiddle">
    156.                                                     <div id="mainmiddle-expand">
    157.                                                    
    158.                                                         <div id="content">
    159.                                                             <div id="content-shift">
    160.                                                            
    161.                                                                 <?php if ($this->countModules('contenttop')) : ?>
    162.                                                                 <div id="contenttop">
    163.                                                                     <jdoc:include type="yoomodules" name="contenttop" wrapper="contenttopbox float-left" layout="<?php echo $this->params->get('contenttop'); ?>" style="yoo" />
    164.                                                                 </div>
    165.                                                                 <!-- contenttop end -->
    166.                                                                 <?php endif; ?>
    167.                                    
    168.                                                                 <?php if ($this->countModules('breadcrumbs')) : ?>
    169.                                                                 <div id="breadcrumbs">
    170.                                                                     <jdoc:include type="yoomodules" name="breadcrumbs" />
    171.                                                                 </div>
    172.                                                                 <?php endif; ?>
    173.                                    
    174.                                                                 <div class="floatbox">
    175.                                                                     <jdoc:include type="message" />
    176.                                                                     <jdoc:include type="component" />
    177.                                                                 </div>
    178.                                    
    179.                                                                 <?php if ($this->countModules('contentbottom')) : ?>
    180.                                                                 <div id="contentbottom">
    181.                                                                     <jdoc:include type="yoomodules" name="contentbottom" wrapper="contentbottombox float-left" layout="<?php echo $this->params->get('contentbottom'); ?>" style="yoo" />
    182.                                                                 </div>
    183.                                                                 <!-- mainbottom end -->
    184.                                                                 <?php endif; ?>
    185.                                                            
    186.                                                             </div>
    187.                                                         </div>
    188.                                                         <!-- content end -->
    189.                                                        
    190.                                                         <?php if($this->countModules('contentleft')) : ?>
    191.                                                         <div id="contentleft">
    192.                                                             <jdoc:include type="yoomodules" name="contentleft" style="yoo" />
    193.                                                         </div>
    194.                                                         <?php endif; ?>
    195.                                                        
    196.                                                         <?php if($this->countModules('contentright')) : ?>
    197.                                                         <div id="contentright">
    198.                                                             <jdoc:include type="yoomodules" name="contentright" style="yoo" />
    199.                                                         </div>
    200.                                                         <?php endif; ?>
    201.                                                        
    202.                                                     </div>
    203.                                                 </div>
    204.                                                 <!-- mainmiddle end -->
    205.                
    206.                                             </div>
    207.                                         </div>
    208.                                     </div>
    209.        
    210.                                     <div class="mainmiddle-wrapper-bl">
    211.                                         <div class="mainmiddle-wrapper-br">
    212.                                             <div class="mainmiddle-wrapper-b">
    213.                                                 <div class="contentleft-bg">
    214.                                                     <div class="contentright-bg"></div>
    215.                                                 </div>
    216.                                             </div>
    217.                                         </div>
    218.                                     </div>
    219.        
    220.                                     <?php if ($this->countModules('mainbottom')) : ?>
    221.                                     <div id="mainbottom">
    222.                                         <jdoc:include type="yoomodules" name="mainbottom" wrapper="mainbottombox float-left" layout="<?php echo $this->params->get('mainbottom'); ?>" style="yoo" />
    223.                                     </div>
    224.                                     <!-- mainbottom end -->
    225.                                     <?php endif; ?>
    226.                                
    227.                                 </div>
    228.                             </div>
    229.                            
    230.                             <?php if($this->countModules('left')) : ?>
    231.                             <div id="left">
    232.                                 <jdoc:include type="yoomodules" name="left" style="yoo" />
    233.                             </div>
    234.                             <?php endif; ?>
    235.                            
    236.                             <?php if($this->countModules('right')) : ?>
    237.                             <div id="right">
    238.                                 <jdoc:include type="yoomodules" name="right" style="yoo" />
    239.                             </div>
    240.                             <?php endif; ?>
    241.                            
    242.                         </div>
    243.                     </div>
    244.        
    245.                     <?php if ($this->countModules('bottom + bottomblock')) : ?>
    246.                     <div id="bottom">
    247.                            
    248.                         <?php if ($this->countModules('bottom')) : ?>
    249.                             <jdoc:include type="yoomodules" name="bottom" wrapper="bottombox float-left" layout="<?php echo $this->params->get('bottom'); ?>" style="yoo" />
    250.                         <?php endif; ?>
    251.                        
    252.                         <?php if($this->countModules('bottomblock')) : ?>
    253.                         <div class="bottomblock width100 float-left">
    254.                             <jdoc:include type="yoomodules" name="bottomblock" style="yoo" />
    255.                         </div>
    256.                         <?php endif; ?>
    257.                                    
    258.                     </div>
    259.                     <!-- bottom end -->
    260.                     <?php endif; ?>
    261.        
    262.                     <div id="footer">
    263.                         <a class="anchor" href="#page"></a>
    264.                         <jdoc:include type="yoomodules" name="footer" />
    265.                         <jdoc:include type="yoomodules" name="debug" />
    266.                     </div>
    267.                     <!-- footer end -->
    268.  
    269.                 </div>
    270.             </div>
    271.         </div>
    272.     </div>
    273. </body>
    274. <script type="text/javascript">
    275.  
    276.   var _gaq = _gaq || [];
    277.   _gaq.push(['_setAccount', 'UA-17497620-1']);
    278.   _gaq.push(['_trackPageview']);
    279.  
    280.   (function() {
    281.     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    282.     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    283.     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    284.   })();
    285.  
    286. </script>
    287. </html>


    Может дело в чем-то еще? Заранее спасибо.
     
    Последнее редактирование: 11.09.2010
  2.  
  3. woojin
    Offline

    woojin Местный Команда форума => Cпециалист <=

    Регистрация:
    31.05.2009
    Сообщения:
    3 206
    Симпатии:
    334
    Пол:
    Мужской
    Оффтопик (не в тему) - жми сюда!
     

Поделиться этой страницей

Загрузка...