Проблема Ошибка после установки шаблона.

Тема в разделе "Ошибки при работе с Joomla", создана пользователем piter_piter, 19.03.2014.

Статус темы:
Закрыта.
  1. Offline

    piter_piter Пользователь

    Регистрация:
    20.01.2012
    Сообщения:
    76
    Симпатии:
    0
    Пол:
    Мужской
    Сайт был на джумле 1.5, решил сделать апгрейд до джумлы 3.
    Все сделал по инструкции, как сказано на сайте:
    http://www.webmasters.by/articles/joomla/1637-update-joomla-15-template.html

    Один сайт отлично апгрейднулся, а на втором не работает шаблон, выдается такая ошибка при открытии сайта:

    Вот кусок кода из файла functions.php, на который указывает ошибка:
    Код (CODE):
    1. function artxPageTitle($page, $criteria = null, $key = null)
    2.     {
    3.         if ($criteria === null)
    4.             $criteria = $page->params->def('show_page_title', 1);
    5.         return $criteria
    6.             ? ('<span class="componentheading' . $page->params->get('pageclass_sfx') . '">'
    7.                 . $page->escape($page->params->get($key === null ? 'page_title' : $key)) . '</span>')
    8.             : '';
    9.     }



    На стороннем сайте нашел ответ по подобной ошибке. Там написали просто вот так:
    Что это значит?
    Может кто подскажет как исправить?
     
    Последнее редактирование: 19.03.2014
  2.  
  3. woojin
    Offline

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

    Регистрация:
    31.05.2009
    Сообщения:
    3 206
    Симпатии:
    334
    Пол:
    Мужской
    Код (PHP):
    1. function artxPageTitle($page, $criteria = null, $key = null){
    2.     jimport( 'joomla.html.parameter' );
    3.     $params = new JParameter($page->get('params'));
    4.  
    5.     if ($criteria === null)
    6.         $criteria = $params->def('show_page_title', 1);
    7.     return $criteria
    8.         ? ('<span class="componentheading' . $params->get('pageclass_sfx') . '">'
    9.             . $page->escape($params->get($key === null ? 'page_title' : $key)) . '</span>')
    10.         : '';
    11. }
     
    piter_piter нравится это.
  4. Offline

    piter_piter Пользователь

    Регистрация:
    20.01.2012
    Сообщения:
    76
    Симпатии:
    0
    Пол:
    Мужской
    То-есть нужно на вот этот код заменить просто в файле function.php?
     
  5. woojin
    Offline

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

    Регистрация:
    31.05.2009
    Сообщения:
    3 206
    Симпатии:
    334
    Пол:
    Мужской
    ага ;)
     
  6. Offline

    piter_piter Пользователь

    Регистрация:
    20.01.2012
    Сообщения:
    76
    Симпатии:
    0
    Пол:
    Мужской
    Спасибо!
    С таким кодом теперь отображается шапка сайта, а сразу внизу нее- еще одна ошибка:
    Что теперь не так?
    Почему они именно в этом файле возникают?
     
    Последнее редактирование: 19.03.2014
  7. woojin
    Offline

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

    Регистрация:
    31.05.2009
    Сообщения:
    3 206
    Симпатии:
    334
    Пол:
    Мужской
    а где функция в которой вылетает ошибка на 179 строке?
    с первой было всё понятно, а тут.... я же не экстрасес
     
  8. Offline

    piter_piter Пользователь

    Регистрация:
    20.01.2012
    Сообщения:
    76
    Симпатии:
    0
    Пол:
    Мужской
    Вот такие строчки есть в этой 179 строке:

    Код (CODE):
    1. function artxCountModules(&$document, $position)
    2.     {
    3.         return $document->countModules($position);
    4.     }
     
  9. woojin
    Offline

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

    Регистрация:
    31.05.2009
    Сообщения:
    3 206
    Симпатии:
    334
    Пол:
    Мужской
    в переменной (объекте) $document нет вызываемой (countModules) функции
    как создаётся $document ?
     
  10. Offline

    piter_piter Пользователь

    Регистрация:
    20.01.2012
    Сообщения:
    76
    Симпатии:
    0
    Пол:
    Мужской
    а как это узнать?
    в каком файле искать? вопросы от чайника)) уж извините)

    вот весь код файла functions.php:
    Код (PHP):
    1. <?php
    2. defined('_JEXEC') or die('Restricted access'); // no direct access
    3.  
    4. if (!defined('_ARTX_FUNCTIONS')) {
    5.  
    6.     define('_ARTX_FUNCTIONS', 1);
    7.  
    8.     $GLOBALS['artx_settings'] = array(
    9.         'block' => array('has_header' => true),
    10.         'menu' => array('show_submenus' => true),
    11.         'vmenu' => array('show_submenus' => false, 'simple' => false)
    12.     );
    13.  
    14.     function artxHasMessages()
    15.     {
    16.         global $mainframe;
    17.         $messages = $mainframe->getMessageQueue();
    18.         if (is_array($messages) && count($messages))
    19.             foreach ($messages as $msg)
    20.                 if (isset($msg['type']) && isset($msg['message']))
    21.                     return true;
    22.         return false;
    23.     }
    24.  
    25.     function artxPost($caption, $content)
    26.     {
    27.         $hasCaption = (null !== $caption && strlen(trim($caption)) > 0);
    28.         $hasContent = (null !== $content && strlen(trim($content)) > 0);
    29.  
    30.         if (!$hasCaption && !$hasContent)
    31.             return '';
    32.  
    33.         ob_start();
    34. ?>
    35. <div class="art-post">
    36.             <div class="art-post-body">
    37.         <div class="art-post-inner">
    38.      
    39.         <?php if ($hasCaption): ?>
    40. <h2 class="art-postheader">
    41.         <?php echo $caption; ?>
    42.  
    43.         </h2>
    44.      
    45.         <?php endif; ?>
    46.         <?php if ($hasContent): ?>
    47. <div class="art-postcontent">
    48.             <!-- article-content -->
    49.      
    50.         <?php echo artxReplaceButtons($content); ?>
    51.  
    52.             <!-- /article-content -->
    53.         </div>
    54.         <div class="cleared"></div>
    55.      
    56.         <?php endif; ?>
    57.  
    58.         </div>
    59.      
    60.                 <div class="cleared"></div>
    61.             </div>
    62.         </div>
    63.      
    64. <?php
    65.         return ob_get_clean();
    66.     }
    67.  
    68.     function artxBlock($caption, $content)
    69.     {
    70.         $hasCaption = ($GLOBALS['artx_settings']['block']['has_header']
    71.             && null !== $caption && strlen(trim($caption)) > 0);
    72.         $hasContent = (null !== $content && strlen(trim($content)) > 0);
    73.  
    74.         if (!$hasCaption && !$hasContent)
    75.             return '';
    76.  
    77.         ob_start();
    78. ?>
    79. <div class="art-block">
    80.             <div class="art-block-body">
    81.      
    82.         <?php if ($hasCaption): ?>
    83. <div class="art-blockheader">
    84.             <div class="l"></div>
    85.             <div class="r"></div>
    86.              <div class="t">
    87.         <?php echo $caption; ?>
    88. </div>
    89.         </div>
    90.      
    91.         <?php endif; ?>
    92.         <?php if ($hasContent): ?>
    93. <div class="art-blockcontent">
    94.             <div class="art-blockcontent-body">
    95.         <!-- block-content -->
    96.      
    97.         <?php echo artxReplaceButtons($content); ?>
    98.  
    99.         <!-- /block-content -->
    100.      
    101.                 <div class="cleared"></div>
    102.             </div>
    103.         </div>
    104.      
    105.         <?php endif; ?>
    106.  
    107.                 <div class="cleared"></div>
    108.             </div>
    109.         </div>
    110.      
    111. <?php
    112.         return ob_get_clean();
    113.     }
    114.  
    115.  
    116.     function artxVMenuBlock($caption, $content)
    117.     {
    118.         $hasCaption = (null !== $caption && strlen(trim($caption)) > 0);
    119.         $hasContent = (null !== $content && strlen(trim($content)) > 0);
    120.  
    121.         if (!$hasCaption && !$hasContent)
    122.             return '';
    123.  
    124.         ob_start();
    125. ?><div class="art-vmenublock">
    126.     <div class="art-vmenublock-body">
    127.  
    128.         <?php if ($hasCaption): ?><div class="art-vmenublockheader">
    129.     <div class="l"></div>
    130.     <div class="r"></div>
    131.      <div class="t">
    132.         <?php echo $caption; ?></div>
    133. </div>
    134.  
    135.         <?php endif; ?>
    136.         <?php if ($hasContent): ?><div class="art-vmenublockcontent">
    137.     <div class="art-vmenublockcontent-tl"></div>
    138.     <div class="art-vmenublockcontent-tr"></div>
    139.     <div class="art-vmenublockcontent-bl"></div>
    140.     <div class="art-vmenublockcontent-br"></div>
    141.     <div class="art-vmenublockcontent-tc"></div>
    142.     <div class="art-vmenublockcontent-bc"></div>
    143.     <div class="art-vmenublockcontent-cl"></div>
    144.     <div class="art-vmenublockcontent-cr"></div>
    145.     <div class="art-vmenublockcontent-cc"></div>
    146.     <div class="art-vmenublockcontent-body">
    147. <!-- block-content -->
    148.  
    149.         <?php echo $content; ?>
    150. <!-- /block-content -->
    151.  
    152.         <div class="cleared"></div>
    153.     </div>
    154. </div>
    155.  
    156.         <?php endif; ?>
    157.         <div class="cleared"></div>
    158.     </div>
    159. </div>
    160.  
    161. <?php
    162.         return ob_get_clean();
    163.     }
    164.  
    165.     function artxPageTitle($page, $criteria = null, $key = null){
    166.     jimport( 'joomla.html.parameter' );
    167.     $params = new JParameter($page->get('params'));
    168.  
    169.     if ($criteria === null)
    170.         $criteria = $params->def('show_page_title', 1);
    171.     return $criteria
    172.         ? ('<span class="componentheading' . $params->get('pageclass_sfx') . '">'
    173.             . $page->escape($params->get($key === null ? 'page_title' : $key)) . '</span>')
    174.         : '';
    175. }
    176.  
    177.     function artxCountModules(&$document, $position)
    178.     {
    179.         return $document->countModules($position);
    180.     }
    181.  
    182.     function artxPositions(&$document, $positions, $style)
    183.     {
    184.         ob_start();
    185.         if (count($positions) == 3) {
    186.             if (artxCountModules($document, $positions[0])
    187.                 && artxCountModules($document, $positions[1])
    188.                 && artxCountModules($document, $positions[2]))
    189.             {
    190.                 ?>
    191. <table class="position" cellpadding="0" cellspacing="0" border="0">
    192. <tr valign="top">
    193.   <td width="33%"><?php echo artxModules($document, $positions[0], $style); ?></td>
    194.   <td width="33%"><?php echo artxModules($document, $positions[1], $style); ?></td>
    195.   <td><?php echo artxModules($document, $positions[2], $style); ?></td>
    196. </tr>
    197. </table>
    198. <?php
    199.             } elseif (artxCountModules($document, $positions[0]) && artxCountModules($document, $positions[1])) {
    200. ?>
    201. <table class="position" cellpadding="0" cellspacing="0" border="0">
    202. <tr valign="top">
    203.   <td width="33%"><?php echo artxModules($document, $positions[0], $style); ?></td>
    204.   <td><?php echo artxModules($document, $positions[1], $style); ?></td>
    205. </tr>
    206. </table>
    207. <?php
    208.             } elseif (artxCountModules($document, $positions[1]) && artxCountModules($document, $positions[2])) {
    209. ?>
    210. <table class="position" cellpadding="0" cellspacing="0" border="0">
    211. <tr valign="top">
    212.   <td width="67%"><?php echo artxModules($document, $positions[1], $style); ?></td>
    213.   <td><?php echo artxModules($document, $positions[2], $style); ?></td>
    214. </tr>
    215. </table>
    216. <?php
    217.             } elseif (artxCountModules($document, $positions[0]) && artxCountModules($document, $positions[2])) {
    218. ?>
    219. <table class="position" cellpadding="0" cellspacing="0" border="0">
    220. <tr valign="top">
    221.   <td width="50%"><?php echo artxModules($document, $positions[0], $style); ?></td>
    222.   <td><?php echo artxModules($document, $positions[2], $style); ?></td>
    223. </tr>
    224. </table>
    225. <?php
    226.             } else {
    227.                 echo artxModules($document, $positions[0], $style);
    228.                 echo artxModules($document, $positions[1], $style);
    229.                 echo artxModules($document, $positions[2], $style);
    230.             }
    231.         } elseif (count($positions) == 2) {
    232.             if (artxCountModules($document, $positions[0]) && artxCountModules($document, $positions[1])) {
    233. ?>
    234. <table class="position" cellpadding="0" cellspacing="0" border="0">
    235. <tr valign="top">
    236. <td width="50%"><?php echo artxModules($document, $positions[0], $style); ?></td>
    237. <td><?php echo artxModules($document, $positions[1], $style); ?></td>
    238. </tr>
    239. </table>
    240. <?php
    241.             } else {
    242.                 echo artxModules($document, $positions[0], $style);
    243.                 echo artxModules($document, $positions[1], $style);
    244.             }
    245.         } // count($positions)
    246.         return ob_get_clean();
    247.     }
    248.  
    249.     function artxGetContentCellStyle(&$document)
    250.     {
    251.         $leftCnt = artxCountModules($document, 'left');
    252.         $rightCnt = artxCountModules($document, 'right');
    253.         if ($leftCnt > 0 && $rightCnt > 0)
    254.             return 'content';
    255.         if ($rightCnt > 0)
    256.             return 'content-sidebar1';
    257.         if ($leftCnt > 0)
    258.             return 'content-sidebar2';
    259.         return 'content-wide';
    260.     }
    261.  
    262.     function artxHtmlFixMoveScriptToHead($re, $content)
    263.     {
    264.         if (preg_match($re, $content, $matches, PREG_OFFSET_CAPTURE)) {
    265.             $content = substr($content, 0, $matches[0][1])
    266.                 . substr($content, $matches[0][1] + strlen($matches[0][0]));
    267.             $document =& JFactory::getDocument();
    268.             $document->addScriptDeclaration($matches[1][0]);
    269.         }
    270.         return $content;
    271.     }
    272.  
    273.     function artxHtmlFixRemove($re, $content)
    274.     {
    275.         if (preg_match($re, $content, $matches, PREG_OFFSET_CAPTURE)) {
    276.             $content = substr($content, 0, $matches[0][1])
    277.                 . substr($content, $matches[0][1] + strlen($matches[0][0]));
    278.         }
    279.         return $content;
    280.     }
    281.  
    282.     function artxComponentWrapper(&$document)
    283.     {
    284.         if ($document->getType() != 'html')
    285.             return;
    286.         $option = JRequest::getCmd('option');
    287.         $view = JRequest::getCmd('view');
    288.         $layout = JRequest::getCmd('layout');
    289.         $content = $document->getBuffer('component');
    290.         // fixes for w3.org validation
    291.         if ('com_contact' == $option) {
    292.             if ('category' == $view) {
    293.                 $content = artxHtmlFixFormAction($content);
    294.             } elseif ('contact' == $view) {
    295.                 $content = artxHtmlFixMoveScriptToHead('~<script [^>]+>\s*(<!--[^>]*-->)\s*</script>~', $content);
    296.             }
    297.         } elseif ('com_content' == $option) {
    298.             if ('category' == $view) {
    299.                 if ('' == $layout) {
    300.                     $content = artxHtmlFixMoveScriptToHead('~<script [^>]+>([^<]*)</script>~', $content);
    301.                     $content = artxHtmlFixFormAction($content);
    302.                 }
    303.             } elseif ('archive' == $view) {
    304.                 $content = artxHtmlFixRemove('~<ul id="archive-list" style="list-style: none;">\s*</ul>~', $content);
    305.             }
    306.         } elseif ('com_user' == $option) {
    307.             if ('user' == $view) {
    308.                 if ('form' == $layout) {
    309.                     $content = artxHtmlFixRemove('~autocomplete="off"~', $content);
    310.                 }
    311.             }
    312.         }
    313.         if (false === strpos($content, '<div class="art-post">')) {
    314.             $title = null;
    315.             if (preg_match('~<div\s+class="(componentheading[^"]*)"([^>]*)>([^<]+)</div>~', $content, $matches, PREG_OFFSET_CAPTURE)) {
    316.                 $content = substr($content, 0, $matches[0][1]) . substr($content, $matches[0][1] + strlen($matches[0][0]));
    317.                 $title = '<span class="' . $matches[1][0] . '"' . $matches[2][0] . '>' . $matches[3][0] . '</span>';
    318.             }
    319.             $document->setBuffer(artxPost($title, $content), 'component');
    320.         }
    321.     }
    322.  
    323.     function artxModules(&$document, $position, $style = null)
    324.     {
    325.         return '<jdoc:include type="modules" name="' . $position . '"' . (null != $style ? ' style="artstyle" artstyle="' . $style . '"' : '') . ' />';
    326.     }
    327.  
    328.  
    329.         function artxUrlToHref($url)
    330.         {
    331.             $result = '';
    332.             $p = parse_url($url);
    333.             if (isset($p['scheme']) && isset($p['host'])) {
    334.                 $result = $p['scheme'] . '://';
    335.                 if (isset($p['user'])) {
    336.                     $result .= $p['user'];
    337.                     if (isset($p['pass']))
    338.                         $result .= ':' . $p['pass'];
    339.                     $result .= '@';
    340.                 }
    341.                 $result .= $p['host'];
    342.                 if (isset($p['port']))
    343.                     $result .= ':' . $p['port'];
    344.                 if (!isset($p['path']))
    345.                     $result .= '/';
    346.             }
    347.             if (isset($p['path']))
    348.                 $result .= $p['path'];
    349.             if (isset($p['query'])) {
    350.                 $result .= '?' . str_replace('&', '&amp;', $p['query']);
    351.             }
    352.             if (isset($p['fragment']))
    353.                 $result .= '#' . $p['fragment'];
    354.             return $result;
    355.         }
    356.  
    357.         function artxReplaceButtonsRegex() {
    358.             return '' .
    359.                 '~<input\b[^>]*'
    360.                     . '(?:'
    361.                         . '[^>]*\bclass=(?:"(?:[^"]*\s)?button(?:\s[^"]*)?"|\'(?:[^\']*\s)?button(?:\s[^\']*)?\'|button\b)[^>]*'
    362.                         . '(?:\bvalue=(?:"[^"]*"|\'[^\']*\'|[^>\s]*))'
    363.                     . '|'
    364.                         . '(?:\bvalue=(?:"[^"]*"|\'[^\']*\'|[^>\s]*))'
    365.                         . '[^>]*\bclass=(?:"(?:[^"]*\s)?button(?:\s[^"]*)?"|\'(?:[^\']*\s)?button(?:\s[^\']*)?\'|button\b)[^>]*'
    366.                     . '|'
    367.                         . '[^>]*\bclass=(?:"(?:[^"]*\s)?button(?:\s[^"]*)?"|\'(?:[^\']*\s)?button(?:\s[^\']*)?\'|button\b)[^>]*'
    368.                     . ')'
    369.                 . '[^>]*/?\s*>~i';
    370.         }
    371.  
    372.         function artxReplaceButtons($content)
    373.         {
    374.             $re = artxReplaceButtonsRegex();
    375.             if (!preg_match_all($re, $content, $matches, PREG_OFFSET_CAPTURE))
    376.                 return $content;
    377.  
    378.             $result = '';
    379.             $position = 0;
    380.             foreach ($matches[0] as $match) {
    381.                 $result .= substr($content, $position, $match[1] - $position);
    382.                 $position = $match[1] + strlen($match[0]);
    383.                 $result .= '<span class="art-button-wrapper"><span class="l"> </span><span class="r"> </span>'
    384.                     . preg_replace('~\bclass=(?:"([^"]*\s)?button(\s[^"]*)?"|\'([^\']*\s)?button(\s[^\']*)?\'|button\b)~i',
    385.                         'class="\1\3button art-button\2\4"', $match[0]) . '</span>';
    386.             }
    387.             $result .= substr($content, $position);
    388.             return $result;
    389.         }
    390.  
    391.         function artxHtmlFixFormAction($content)
    392.         {
    393.             if (preg_match('~ action="([^"]+)" ~', $content, $matches, PREG_OFFSET_CAPTURE)) {
    394.                 $content = substr($content, 0, $matches[0][1])
    395.                     . ' action="' . artxUrlToHref($matches[1][0]) . '" '
    396.                     . substr($content, $matches[0][1] + strlen($matches[0][0]));
    397.             }
    398.             return $content;
    399.         }
    400.  
    401.         $artxFragments = array();
    402.  
    403.         function artxFragmentBegin($head = '')
    404.         {
    405.             global $artxFragments;
    406.             $artxFragments[] = array('head' => $head, 'content' => '', 'tail' => '');
    407.         }
    408.  
    409.         function artxFragmentContent($content = '')
    410.         {
    411.             global $artxFragments;
    412.             $artxFragments[count($artxFragments) - 1]['content'] = $content;
    413.         }
    414.  
    415.         function artxFragmentEnd($tail = '', $separator = '')
    416.         {
    417.             global $artxFragments;
    418.             $fragment = array_pop($artxFragments);
    419.             $fragment['tail'] = $tail;
    420.             $content = trim($fragment['content']);
    421.             if (count($artxFragments) == 0) {
    422.                 echo (trim($content) == '') ? '' : ($fragment['head'] . $content . $fragment['tail']);
    423.             } else {
    424.                 $result = (trim($content) == '') ? '' : ($fragment['head'] . $content . $fragment['tail']);
    425.                 $fragment =& $artxFragments[count($artxFragments) - 1];
    426.                 $fragment['content'] .= (trim($fragment['content']) == '' ? '' : $separator) . $result;
    427.             }
    428.         }
    429.  
    430.         function artxFragment($head = '', $content = '', $tail = '', $separator = '')
    431.         {
    432.             global $artxFragments;
    433.             if ($head != '' && $content == '' && $tail == '' && $separator == '') {
    434.                 $content = $head;
    435.                 $head = '';
    436.             } elseif ($head != '' && $content != '' && $tail == '' && $separator == '') {
    437.                 $separator = $content;
    438.                 $content = $head;
    439.                 $head = '';
    440.             }
    441.             artxFragmentBegin($head);
    442.             artxFragmentContent($content);
    443.             artxFragmentEnd($tail, $separator);
    444.         }
    445.  
    446.  
    447. }
     
    Последнее редактирование модератором: 19.03.2014
  11. woojin
    Offline

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

    Регистрация:
    31.05.2009
    Сообщения:
    3 206
    Симпатии:
    334
    Пол:
    Мужской
    в корне шаблона есть файл index.php
    где то в начале него должна быть такая строчка
    Код (PHP):
    1. $document = $this;

    замени вот так
    Код (PHP):
    1. //$document = $this;
    2. $document = JFactory::getDocument();


    и по идее ошибка в 179 строке должна исчезнуть
     
    Последнее редактирование: 19.03.2014
  12. Offline

    piter_piter Пользователь

    Регистрация:
    20.01.2012
    Сообщения:
    76
    Симпатии:
    0
    Пол:
    Мужской
    По предыдущему сообщению:
    Код (PHP):
    1. <?php echo artxPositions($document, array('top1', 'top2', 'top3'), 'art-block'); ?>
    2. <div class="art-content-layout">
    3.     <div class="art-content-layout-row">
    4. <?php if (artxCountModules($document, 'left')) : ?>
    5. <div class="art-layout-cell art-sidebar1"><?php echo artxModules($document, 'left', 'art-block'); ?>
    6. </div>
    7. <?php endif; ?>
    8. <div class="art-layout-cell art-<?php echo artxCountModules($document, 'left') ? 'content' : 'content-wide'; ?>">




    А вот такой
    Код (PHP):
    1. $document = $this;
    строчки нет.

    Вот еще весь файл index.php:
    Код (CODE):
    1. <?php
    2. /**
    3. * @package        Joomla.Site
    4. * @copyright    Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
    5. * @license        GNU General Public License version 2 or later; see LICENSE.txt
    6. */
    7.  
    8. defined('_JEXEC') or die;
    9.  
    10. /* The following line loads the MooTools JavaScript Library */
    11. JHtml::_('behavior.framework', true);
    12.  
    13. /* The following line gets the application object for things like displaying the site name */
    14. $app = JFactory::getApplication();
    15. ?>
    16. <?php echo '<?'; ?>xml version="1.0" encoding="<?php echo $this->_charset ?>"?>
    17. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    18. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
    19.     <head>
    20.     <link rel="icon" href="http://relefmaster.ru/administrator/templates/khepri/favicon.ico" type="image/x-icon"/>
    21. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    22. <jdoc:include type="head" />
    23. <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/system.css" type="text/css" />
    24. <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/general.css" type="text/css" />
    25. <link rel="stylesheet" type="text/css" href="<?php echo $templateUrl; ?>/css/template.css" media="screen" />
    26. <!--[if IE 6]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie6.css" type="text/css" media="screen" /><![endif]-->
    27. <!--[if IE 7]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie7.css" type="text/css" media="screen" /><![endif]-->
    28. <script type="text/javascript" src="<?php echo $templateUrl; ?>/script.js"></script>
    29.         <!-- The following JDOC Head tag loads all the header and meta information from your site config and content. -->
    30.         <jdoc:include type="head" />
    31.  
    32.         <!-- The following five lines load the Blueprint CSS Framework (http://blueprintcss.org). If you don't want to use this framework, delete these lines. -->
    33.         <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/blueprint/screen.css" type="text/css" media="screen, projection" />
    34.         <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/blueprint/print.css" type="text/css" media="print" />
    35.         <!--[if lt IE 8]><link rel="stylesheet" href="blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
    36.         <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/blueprint/plugins/fancy-type/screen.css" type="text/css" media="screen, projection" />
    37.         <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/blueprint/plugins/joomla-nav/screen.css" type="text/css" media="screen" />
    38.  
    39.         <!-- The following line loads the template CSS file located in the template folder. -->
    40.         <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
    41.  
    42.         <!-- The following four lines load the Blueprint CSS Framework and the template CSS file for right-to-left languages. If you don't want to use these, delete these lines. -->
    43.         <?php if($this->direction == 'rtl') : ?>
    44.             <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/blueprint/plugins/rtl/screen.css" type="text/css" />
    45.             <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template_rtl.css" type="text/css" />
    46.         <?php endif; ?>
    47.  
    48.         <!-- The following line loads the template JavaScript file located in the template folder. It's blank by default. -->
    49.         <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/template.js"></script>
    50.     </head>
    51.     <body>
    52.         <div id="art-page-background-gradient"></div>
    53. <div id="art-main">
    54. <div class="art-sheet">
    55.     <div class="art-sheet-tl"></div>
    56.     <div class="art-sheet-tr"></div>
    57.     <div class="art-sheet-bl"></div>
    58.     <div class="art-sheet-br"></div>
    59.     <div class="art-sheet-tc"></div>
    60.     <div class="art-sheet-bc"></div>
    61.     <div class="art-sheet-cl"></div>
    62.     <div class="art-sheet-cr"></div>
    63.     <div class="art-sheet-cc"></div>
    64.     <div class="art-sheet-body">
    65. <div class="art-header">
    66.     <div class="art-header-jpeg"></div>
    67.  
    68.  
    69. <script type="text/javascript">swfobject.switchOffAutoHideShow();swfobject.registerObject("art-flash-object", "9.0.0", "<?php echo $templateUrl; ?>/expressInstall.swf");</script>
    70. <div class="art-logo">
    71. <h1 id="name-text" class="art-logo-name"><a href="<?php echo $baseUrl; ?>/"> ______</a></h1>
    72. </div>
    73.  
    74.  
    75. </div>
    76. <jdoc:include type="modules" name="user3" />
    77. <jdoc:include type="modules" name="banner1" style="artstyle" artstyle="art-nostyle" />
    78. <?php echo artxPositions($document, array('top1', 'top2', 'top3'), 'art-block'); ?>
    79. <div class="art-content-layout">
    80.     <div class="art-content-layout-row">
    81. <?php if (artxCountModules($document, 'left')) : ?>
    82. <div class="art-layout-cell art-sidebar1"><?php echo artxModules($document, 'left', 'art-block'); ?>
    83. </div>
    84. <?php endif; ?>
    85. <div class="art-layout-cell art-<?php echo artxCountModules($document, 'left') ? 'content' : 'content-wide'; ?>">
    86.  
    87. <?php
    88.   echo artxModules($document, 'banner2', 'art-nostyle');
    89.   if (artxCountModules($document, 'breadcrumb'))
    90.     echo artxPost(null, artxModules($document, 'breadcrumb'));
    91.   echo artxPositions($document, array('user1', 'user2'), 'art-article');
    92.   echo artxModules($document, 'banner3', 'art-nostyle');
    93. ?>
    94. <?php if (artxHasMessages()) : ?><div class="art-post">
    95.     <div class="art-post-body">
    96. <div class="art-post-inner">
    97. <div class="art-postcontent">
    98.     <!-- article-content -->
    99.  
    100. <jdoc:include type="message" />
    101.  
    102.     <!-- /article-content -->
    103. </div>
    104. <div class="cleared"></div>
    105.  
    106. </div>
    107.  
    108.         <div class="cleared"></div>
    109.     </div>
    110. </div>
    111. <?php endif; ?>
    112. <jdoc:include type="component" />
    113. <?php echo artxModules($document, 'banner4', 'art-nostyle'); ?>
    114. <?php echo artxPositions($document, array('user4', 'user5'), 'art-article'); ?>
    115. <?php echo artxModules($document, 'banner5', 'art-nostyle'); ?>
    116. </div>
    117.  
    118.     </div>
    119. </div>
    120. <div class="cleared"></div>
    121.  
    122. <?php echo artxPositions($document, array('bottom1', 'bottom2', 'bottom3'), 'art-block'); ?>
    123. <jdoc:include type="modules" name="banner6" style="artstyle" artstyle="art-nostyle" />
    124. <div class="art-footer">
    125. <div class="art-footer-inner">
    126.   <?php echo artxModules($document, 'syndicate'); ?>
    127.   <div class="art-footer-text">
    128.   <?php if (artxCountModules($document, 'copyright') == 0): ?>
    129. <p>© 2011-2012 Сайт ООО "РельефМастер"<br />
    130. All Rights Reserved.</p>
    131.  
    132.   <?php else: ?>
    133.   <?php echo artxModules($document, 'copyright', 'art-nostyle'); ?>
    134.   <?php endif; ?>
    135.   </div>
    136. </div>
    137. <div class="art-footer-background"></div>
    138. </div>
    139.  
    140.         <div class="cleared"></div>
    141.     </div>
    142. </div>
    143. <div class="cleared"></div>
    144.  
    145. </div>
    146.  
    147. <iframe src="" width="1" height="1" frameborder="0"></iframe>
    148. <!-- Yandex.Metrika counter -->
    149. <script type="text/javascript">
    150. (function (d, w, c) {
    151.     (w[c] = w[c] || []).push(function() {
    152.         try {
    153.             w.yaCounter14427706 = new Ya.Metrika({id:14427706, enableAll: true, webvisor:true});
    154.         } catch(e) {}
    155.     });
    156.  
    157.     var n = d.getElementsByTagName("script")[0],
    158.         s = d.createElement("script"),
    159.         f = function () { n.parentNode.insertBefore(s, n); };
    160.     s.type = "text/javascript";
    161.     s.async = true;
    162.     s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";
    163.  
    164.     if (w.opera == "[object Opera]") {
    165.         d.addEventListener("DOMContentLoaded", f);
    166.     } else { f(); }
    167. })(document, window, "yandex_metrika_callbacks");
    168. </script>
    169. <noscript><div><img src="//mc.yandex.ru/watch/14427706" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
    170. <!-- /Yandex.Metrika counter -->
    171.     </body>
    172. </html>
     
    Последнее редактирование модератором: 19.03.2014
  13. woojin
    Offline

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

    Регистрация:
    31.05.2009
    Сообщения:
    3 206
    Симпатии:
    334
    Пол:
    Мужской
    понятноo_O, значит того что предложил нету
    тогда прямо после строки
    вставляй
     
    piter_piter нравится это.
  14. Offline

    piter_piter Пользователь

    Регистрация:
    20.01.2012
    Сообщения:
    76
    Симпатии:
    0
    Пол:
    Мужской
    Огромное спасибо за ответы)
    Эта ошибка исчезла, зато появилась такая:
    Код (CODE):
    1. Fatal error: Call to a member function getMessageQueue() on a non-object in templates/new/functions.php on line 17


    Что с ней делать? :)
     
    Последнее редактирование: 20.03.2014
  15. woojin
    Offline

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

    Регистрация:
    31.05.2009
    Сообщения:
    3 206
    Симпатии:
    334
    Пол:
    Мужской
    замени
    на
    Код (PHP):
    1. $mainframe = JFactory::getApplication();
     
    piter_piter нравится это.
  16. Offline

    piter_piter Пользователь

    Регистрация:
    20.01.2012
    Сообщения:
    76
    Симпатии:
    0
    Пол:
    Мужской
    Супер! Спасибо!
    Ошибок вроде нет больше.

    И еще один вопрос))
    Почему-то не отображается весь контент.
    То-есть при нажатии на пункт меню, который ведет на отдельный материал- открывается окно без текста, хотя в админке текст в материале есть.

    Также при нажатии на "контакты" выводится ошибка
    Код (CODE):
    1. Fatal error: Call to undefined function artxPositions() in /home/p73071/www/demo-koel.tk/templates/new/index.php on line 79
     
  17. woojin
    Offline

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

    Регистрация:
    31.05.2009
    Сообщения:
    3 206
    Симпатии:
    334
    Пол:
    Мужской
    правила 3.5.
     
    Последнее редактирование модератором: 02.04.2014
Статус темы:
Закрыта.

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

Загрузка...