Problème avec template ja dravity
Réduire
X
-
Re : Problème avec template ja dravity
Bonjour,
Et bienvenue sur le forum
Le problème est certainement une erreur quelque part dans le portage. Tuto ici: http://magazine.joomla.org/issues/is...e-to-Joomla-25Pas de demande de support par MP.
S'il n'y a pas de solution, c'est qu'il n'y a pas de problème (Devise Shadok)
-
Re : Problème avec template ja dravity
Merci pour la réponse, j'ai effectué les différentes étapes mais toujours le meme probleme !
Je mets le code du fichier templateDetails.xml:
Code:<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE install PUBLIC "-//Joomla! 2.5//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/2.5/template-install.dtd"> <extension version="2.5" type="template" client="site" method="upgrade"> <name>JA_Dravity_j25</name> <creationDate>20 Feb 08</creationDate> <author>JoomlArt.com</author> <copyright>JoomlArt Design Team</copyright> <authorEmail>webmaster@joomlart.com</authorEmail> <authorUrl>www.joomlart.com</authorUrl> <version>1.0</version> <description>JA Dravity for Joomla 2.5 JA template</description> <files> <filename>index.html</filename> <filename>index.php</filename> <filename>component.php</filename> <filename>ja_templatetools_1.5.php</filename> <filename>ja_vars_1.5.php</filename> <filename>templateDetails.xml</filename> <filename>template_thumbnail.png</filename> <filename>template_preview.png</filename> <filename>error.php</filename> <filename>favicon.ico</filename> <folder>css</folder> <folder>images</folder> <folder>html</folder> <folder>ja_menus</folder> <folder>ja_menus/ja_cssmenu</folder> <folder>ja_menus/ja_cssmenu/img</folder> <folder>ja_menus/ja_moomenu</folder> <folder>ja_menus/ja_moomenu/img</folder> <folder>ja_menus/ja_scriptdlmenu</folder> <folder>ja_menus/ja_scriptdlmenu/img</folder> <folder>ja_menus/ja_splitmenu</folder> <folder>ja_menus/ja_splitmenu/img</folder> <folder>js</folder> </files> <languages folder="language"> <language tag="en-GB">en-GB.tpl_ja_dravity.ini</language> <language tag="en-GB">admin/en-GB.tpl_ja_dravity.ini</language> </languages> <positions> <position>hornav</position> <position>breadcrumbs</position> <position>banner</position> <position>left</position> <position>top</position> <position>user1</position> <position>user2</position> <position>user3</position> <position>user4</position> <position>user5</position> <position>user6</position> <position>user7</position> <position>user8</position> <position>user9</position> <position>ja-news</position> <position>footer</position> <position>syndicate</position> <position>debug</position> </positions> <config> <fields name="params"> <fieldset name="advanced"> <field name="logoType" type="list" default="image" label="Logo type" description="LOGO TYPE DESCRIPTION"> <option value="image">Image</option> <option value="text">Text</option> </field> <field name="logoText" type="text" default="" size="50" label="Logo text" description="LOGO TEXT DESCRIPTION" /> <field name="sloganText" type="text" default="" size="50" label="Slogan" description="SLOGAN DESCRIPTION" /> <field name="ja_font" type="list" default="3" label="Font size" description="FONT SIZE DESCRIPTION"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> </field> <field name="usertool" type="list" default="2" label="Show font tools" description="Show font tools allow user to adjust font size"> <option value="0">Hide</option> <option value="2">Show</option> </field> <field name="ja_screen" type="list" default="950" label="Template Width" description="TEMPLATE WIDTH DESCRIPTION"> <option value="narrow">Narrow Screen</option> <option value="wide">Wide Screen</option> </field> <field name="ja_color" type="list" default="default" label="Color Variation" description="Color variation to use"> <option value="default">Default</option> <option value="cyan">Cyan</option> <option value="pink">Pink</option> </field> <field name="menutype" type="menu" default="mainmenu" label="Menu Type" description="MENU TYPE DESCRIPTION" /> <field name="ja_menu" type="list" default="2" label="Menu Module" description="MENU'S TYPE"> <option value="split">Split Menu</option> <option value="css">CSS Menu</option> <option value="moo">Moo Menu</option> <option value="dropline">Dropline Menu</option> </field> <field name="showComponent" type="radio" default="1" label="Show Component" description="SHOW COMPONENT DESCRIPTION"> <option value="0">No</option> <option value="1">Yes</option> </field> </fieldset> </fields> </config> </extension>
Commentaire
-
Re : Problème avec template ja dravity
voici le fichier index.php
Code:<?php /** * @copyright Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved. * @license GNU/GPL, see LICENSE.php * Joomla! is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // no direct access defined( '_JEXEC' ) or die( 'Restricted access' ); JHtml::_('behavior.framework',true); include_once (dirname(__FILE__).DS.'ja_vars_1.5.php'); ?> <!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" /> <?php JHTML::_('behavior.mootools'); ?> <link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/system.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/general.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/template.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/typo.css" type="text/css" /> <script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/ja.script.js"></script> <!-- Menu head --> <?php $jamenu->genMenuHead(); ?> <link href="<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo $tmpTools->getParam(JA_TOOL_COLOR); ?>.css" rel="stylesheet" type="text/css" /> <!--[if lte IE 6]> <style type="text/css"> .clearfix {height: 1%;} img {border: none;} h1.logo a, span.title-r, #ja-col1-center, .narrow #ja-col1-center, #ja-col1-top, .narrow #ja-col1-top, .title-r {background-position: -1000px;} </style> <![endif]--> <!--[if gte IE 7.0]> <style type="text/css"> .clearfix {display: inline-block;} </style> <![endif]--> <?php if ($tmpTools->isIE6()) { ?> <!--[if lte IE 6]> <script type="text/javascript"> var siteurl = '<?php echo $tmpTools->baseurl();?>'; window.addEvent ('load', makeTransBG); function makeTransBG() { makeTransBg($$('h1.logo a')); makeTransBg($('ja-col1-top')); makeTransBg($('ja-col1-center'), '', 'scale'); makeTransBg($$('.title-r')); makeTransBg($$('#ja-cssmenu li ul'), '', 'scale', 0, 2); } </script> <![endif]--> <?php } ?> </head> <body id="bd" class="<?php echo $tmpTools->getParam(JA_TOOL_SCREEN);?> fs<?php echo $tmpTools->getParam(JA_TOOL_FONT);?>" > <a name="Top" id="Top"></a> <ul class="accessibility"> <li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-content" title="<?php echo JText::_("Skip to content");?>"><?php echo JText::_("Skip to content");?></a></li> <li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-mainnav" title="<?php echo JText::_("Skip to main navigation");?>"><?php echo JText::_("Skip to main navigation");?></a></li> <li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-col1" title="<?php echo JText::_("Skip to 1st column");?>"><?php echo JText::_("Skip to 1st column");?></a></li> <li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-col2" title="<?php echo JText::_("Skip to 2nd column");?>"><?php echo JText::_("Skip to 2nd column");?></a></li> </ul> <div id="ja-wrapper"<?php if($tmpTools->isFrontPage()) : ?> class="home-deco"<?php endif ; ?>> <!-- BEGIN: HEADER --> <div id="ja-headerwrap"> <div id="ja-header" class="clearfix"> <?php $siteName = $tmpTools->sitename(); if ($tmpTools->getParam('logoType')=='image') { ?> <h1 class="logo"> <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a> </h1> <?php } else { $logoText = (trim($tmpTools->getParam('logoText'))=='') ? $config->sitename : $tmpTools->getParam('logoText'); $sloganText = (trim($tmpTools->getParam('sloganText'))=='') ? JText::_('SITE SLOGAN') : $tmpTools->getParam('sloganText'); ?> <h1 class="logo-text"> <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a> </h1> <p class="site-slogan"><?php echo $sloganText;?></p> <?php } ?> <?php if($this->countModules('user4')) : ?> <div id="ja-search"> <jdoc:include type="modules" name="user4" /> </div> <?php endif; ?> </div> </div> <!-- END: HEADER --> <!-- BEGIN: MAIN NAVIGATION --> <div id="ja-mainnavwrap"<?php if ($hasSubnav) { ?> style="height: 60px;"<?php } ?>> <div id="ja-mainnav" class="clearfix"> <?php $jamenu->genMenu (0); ?> </div> <?php if ($hasSubnav) { ?> <div id="ja-subnav" class="clearfix"> <?php $jamenu->genMenu (1,1); ?> </div> <?php } ?> <!-- BEGIN: USER TOOLS --> <?php if ($tmpTools->getParam(JA_TOOL_USER)) { ?> <div id="ja-usertools"> <?php $tmpTools->genToolMenu($tmpTools->getParam(JA_TOOL_USER)); ?> </div> <?php } ?> <!-- END: USER TOOLS --> </div> <!-- END: MAIN NAVIGATION --> <div id="ja-containerwrap<?php echo $divid; ?>"> <div id="ja-container" class="clearfix"> <?php if ($ja_left) { ?> <div id="ja-col1"> <div id="ja-col1-top"> </div> <div id="ja-col1-center"><div id="ja-col1-bot"> <jdoc:include type="modules" name="left" style="xhtml" /> </div></div></div> <?php } ?> <!-- BEGIN: CONTENT --> <div id="ja-content"> <div class="ja-innerpad clearfix"> <jdoc:include type="message" /> <?php if(!$tmpTools->isFrontPage()) : ?> <div id="ja-breadcrumb"> <jdoc:include type="module" name="breadcrumbs" /> </div> <?php endif ; ?> <div id="ja-current-content"> <?php $params = &$mainframe->getParams(); // parameters $intro = $params->def('num_intro_articles', 4); $leading = $params->def('num_leading_articles', 1); if (!$tmpTools->isFrontPage() || $intro || $leading) { ?> <jdoc:include type="component" /> <?php } if ( $tmpTools->isFrontPage() && $this->countModules("ja-news") ) { ?> <div id="ja-newswrap"> <jdoc:include type="modules" name="ja-news" style="raw" /> </div> <?php } ?> </div> <?php if($this->countModules('banner')) : ?> <!-- BEGIN: BANNER --> <div id="ja-banner"> <jdoc:include type="modules" name="banner" /> </div> <!-- END: BANNER --> <?php endif; ?> </div> </div> <!-- END: CONTENT --> <?php //if ($ja_left || $ja_right) { ?> <!-- BEGIN: COLUMNS --> <?php //if ($ja_right) { ?> <!--<div id="ja-col2"> <jdoc:include type="modules" name="right" style="xhtml" /> </div>--> <?php //} ?> <br /> <!-- END: COLUMNS --> <?php //} ?> </div></div> <?php $spotlight = array ('user1','user2','user5','user6','user7','user8'); $botsl = $tmpTools->calSpotlight ($spotlight,99.9); if( $botsl ) { ?> <!-- BEGIN: BOTTOM SPOTLIGHT --> <div id="ja-botslwrap"> <div id="ja-botsl" class="clearfix"> <?php if( $this->countModules('user1') ) {?> <div class="ja-box<?php echo $botsl['user1']['class']; ?>" style="width: <?php echo $botsl['user1']['width']; ?>;"> <jdoc:include type="modules" name="user1" style="xhtml" /> </div> <?php } ?> <?php if( $this->countModules('user2') ) {?> <div class="ja-box<?php echo $botsl['user2']['class']; ?>" style="width: <?php echo $botsl['user2']['width']; ?>;"> <jdoc:include type="modules" name="user2" style="xhtml" /> </div> <?php } ?> <?php if( $this->countModules('user5') ) {?> <div class="ja-box<?php echo $botsl['user5']['class']; ?>" style="width: <?php echo $botsl['user5']['width']; ?>;"> <jdoc:include type="modules" name="user5" style="xhtml" /> </div> <?php } ?> <?php if( $this->countModules('user6') ) {?> <div class="ja-box<?php echo $botsl['user6']['class']; ?>" style="width: <?php echo $botsl['user6']['width']; ?>;"> <jdoc:include type="modules" name="user6" style="xhtml" /> </div> <?php } ?> <?php if( $this->countModules('user7') ) {?> <div class="ja-box<?php echo $botsl['user7']['class']; ?>" style="width: <?php echo $botsl['user7']['width']; ?>;"> <jdoc:include type="modules" name="user7" style="xhtml" /> </div> <?php } ?> <?php if( $this->countModules('user8') ) {?> <div class="ja-box<?php echo $botsl['user8']['class']; ?>" style="width: <?php echo $botsl['user8']['width']; ?>;"> <jdoc:include type="modules" name="user8" style="xhtml" /> </div> <?php } ?> </div> </div> <!-- END: BOTTOM SPOTLIGHT --> <?php } ?> <!-- BEGIN: FOOTER --> <div id="ja-footerwrap"> <div id="ja-footer" class="clearfix"> <jdoc:include type="modules" name="user3" /> <jdoc:include type="modules" name="footer" /> </div> </div> <!-- END: FOOTER --> </div> <jdoc:include type="modules" name="debug" /> </body> </html>
Commentaire
-
Re : Problème avec template ja dravity
Bonsoir,
Les templates JoomlArt sont plus complexes que l'exemple pris sur le tutoriel. Les modifications seront plus ardus à faire et une bonne connaissance en php est un impératif. L'auteur n'a pas pris la peine de sortir une version pour la 2.5, il avait sans doute des raisons.
Il existe tellement de templates nouvelles générations, qu'il serait sans doute plus judicieux de partir sur ceux-ci. Si les mains dans le cambouis ne te dérange pas, part sur un framework comme Gantry, JaT3, Warp etc. c'est gratuit et te permet de créer un template à ta convenance.
Commentaire
Annonce
Réduire
Aucune annonce pour le moment.
Commentaire