Elxis CMS Forum
Support => Elxis 4.x/5.x DEV => Topic started by: armpouniotis on January 03, 2013, 11:17:25
-
hi there !
can someone tell me, in order to make a new template, what should I include in the "index.php" file ???
Thank you in advance
Christos
-
Elxis 2009.x
<?php
/**
* @version: 1.0
* @package: Elxis
* @subpackage: Third-Party Templates/ templates_name
* @author: authors_name
* @link: authors_link
* @email: authors_email
* @description: Short_description
* @license: license
* Elxis CMS is a Free Software
*******************************************/
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
echo '<?xml version="1.0" encoding="utf-8"?' .'>'."\n";
?>
<!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" lang="<?php echo _LANGUAGE; ?>" xml:lang="<?php echo _LANGUAGE; ?>"<?php echo (_GEM_RTL) ? ' dir="rtl"' : ''; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead();
if ($my->id) { initEditor(); }
?>
</head>
<body<?php echo $mainframe->onLoad(); ?>>
</body>
</html>
-
Not about Elxis 2009.x
I want to know about the Nautilus 4.x template index.php file
-
Please choose the proper section of the forum before submit a topic.
<?php
/**
* @version 1.0
* @package Elxis CMS
* @subpackage Templates / template_name
* @author author_name
* @copyright copyrights_
* @license License_name_and_url
* @description Elxis CMS is free software. Read the license for copyright notices and details
*******************************************************************/
defined('_ELXIS_') or die ('Direct access to this location is not allowed');
$eLang = eFactory::getLang();
$eDoc = eFactory::getDocument();
$elxis = eFactory::getElxis();
echo $eDoc->getDocType()."\n";
?>
<html<?php echo $eDoc->htmlAttributes(); ?>>
<head>
<?php $eDoc->showHead(); ?>
<link rel="stylesheet" href="<?php echo $elxis->secureBase(); ?>/templates/folder_name/css/template<?php echo $eLang->getinfo('RTLSFX'); ?>.css" type="text/css" />
</head>
<body>
</body>
</html>
You have to create a template.css and template-rtl.css file under the directory folder_name/css/
-
thank you very much for your answer !
This is very helpful !
Christos
-
You are welcome, Christo!