سلام.
یه فایل templateDetails.xml ساختم و یک فایل index.php
محتویات templateDetails.xml به این صورت :
کد:<?xml version="1.0" encoding="utf-8"?> <extension version="1.6" type="template"> <name>mynewtemplate</name> <creationDate>2012-02-02</creationDate> <author>Shahab Matapour</author> <authorEmail>sh.matapour@gmail.com</authorEmail> <authorUrl>http://www.studio-design.co</authorUrl> <copyright>Shahab Matapour 2012</copyright> <license>GNU/GPL</license> <version>1.0.2</version> <description>My New Template</description> <files> <filename>index.php</filename> <filename>templateDetails.xml</filename> <folder>images</folder> <folder>css</folder> </files> <positions> <position>breadcrumb</position> <position>left</position> <position>right</position> <position>top</position> <position>user1</position> <position>user2</position> <position>user3</position> <position>user4</position> <position>footer</position> </positions> </extension>
محتویات فایل ایندکس :
مرحله بعد این بود که فایلهای خودمو گذاشتم کنار اینا و زیپ کردم.ولی نشناختکد:<?php defined( '_JEXEC' ) or die( 'Restricted access' );?> <!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" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/mynewtemplate/css/template.css" type="text/css" /> </head> <body> <jdoc:include type="modules" name="top" /> <jdoc:include type="component" /> <jdoc:include type="modules" name="bottom" /> </body> </html>




پاسخ با نقل قول
علاقه مندی ها (Bookmarks)