داداشم این کد داخلش نبود/ من کل کدش رو میزارم ببینین کجاش مشکله اگه میشه درستش رو بهم بدین من متاسفانه php بلد نیستم
<?php
/*
* ------------------------------------------------------------------------
* Copyright (C) 2009 - 2013 The YouTech JSC. All Rights Reserved.
* @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
* Author: The YouTech JSC
* Websites: http://www.smartaddons.com - http://www.cmsportal.net
* ------------------------------------------------------------------------
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
include_once (J_TEMPLATEDIR.J_SEPARATOR.'includes'.J_SEPARATOR.'lib'.J_SEPARATOR.'template.php');
include_once (J_TEMPLATEDIR.J_SEPARATOR.'includes'.J_SEPARATOR.'lib'.J_SEPARATOR.'renderxml.php');
// Object of class YtTemplate
global $yt;
$doc = JFactory::getDocument();
$Itemid = JRequest::getInt('Itemid');
// Array param for cookie
$params_cookie = array(
'direction',
'fontSize',
'fontName',
'templateColor',
'bgcolor',
'linkcolor',
'textcolor',
'header-bgimage',
'header-bgcolor',
'spotlight5-bgcolor',
'footer-bgcolor',
'footer-bgimage',
'layout',
'menustyle',
'googleWebFont',
'activeNotice'
);
$yt = new YtTemplate($this, $params_cookie);
// Get param template
$fontName = $yt->getParam('fontName');
$fontSize = $yt->getParam('fontSize');
$responsive = $yt->getParam('responsive');
$layout = $yt->getParam('templateLayout');
$templateColor = $yt->getParam('templateColor');
$direction = $yt->getParam('direction');
$menustyle = $yt->getParam('menustyle');
$overrideLayouts = trim($yt->getParam('overrideLayouts'));
$setGeneratorTag = $yt->getParam('setGeneratorTag');
$googleWebFont = $yt->getParam('googleWebFont');
$googleWebFontTargets = $yt->getParam('googleWebFontTargets');
$showCpanel = $yt->getParam('showCpanel');
// Include Class YtRenderXML
if($layout=='-1' || $layout=='') die(JTEXT::_("SELECT_LAYOUT_NOW"));
// Parse layout
$boolOverride = false;
$overrideLayouts = explode(' ', $overrideLayouts);
if( count($overrideLayouts)>=1 ) {
for($i=0; $i<count($overrideLayouts); $i++){
$layoutItemArray[] = explode('=', $overrideLayouts[$i]);
}
if( !empty($layoutItemArray) ){
foreach($layoutItemArray as $item){
if($Itemid == $item[0]){
$boolOverride = true; $layoutItem = trim($item[1]);
}
}
}
}
if($boolOverride == true){
$yt_render = new YtRenderXML($layoutItem.'.xml');
}else{
$yt_render = new YtRenderXML($layout.'.xml');
}
// Set GeneratorTag
$this->setGenerator($setGeneratorTag);
// Javascript of joomla core
if(J_VERSION <= 2){
JHTML::_('behavior.mootools');
}
// Include jQuery & bootstrap's javascript
if(J_VERSION >= 3){
JHtml::_('bootstrap.framework');
}elseif(J_VERSION <= 2){
if (!defined('SMART_JQUERY')){
define('SMART_JQUERY', 1);
$doc->addScript($yt->templateurl().'js/jquery.min.js');
$doc->addScript($yt->templateurl().'js/jquery-noconflict.js');
}
$doc->addScript($yt->templateurl().'asset/bootstrap/js/bootstrap.min.js');
}
?>