Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Did you know that
Elxis 5.x
uses HTML5, CSS3 and pure javascript without external libraries such as jQuery?
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
What would be the header of the index.php ?
« previous
next »
Print
Pages: [
1
]
Author
Topic: What would be the header of the index.php ? (Read 5381 times)
armpouniotis
Sr. Member
Posts: 377
What would be the header of the index.php ?
«
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
Logged
Christos Armpouniotis
webgift
Elxis Team
Hero Member
Posts: 4193
Re: What would be the header of the index.php ?
«
Reply #1 on:
January 03, 2013, 11:58:46 »
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>
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
armpouniotis
Sr. Member
Posts: 377
Re: What would be the header of the index.php ?
«
Reply #2 on:
January 03, 2013, 12:50:05 »
Not about Elxis 2009.x
I want to know about the Nautilus 4.x template index.php file
Logged
Christos Armpouniotis
webgift
Elxis Team
Hero Member
Posts: 4193
Re: What would be the header of the index.php ?
«
Reply #3 on:
January 03, 2013, 13:27:48 »
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/
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
armpouniotis
Sr. Member
Posts: 377
Re: What would be the header of the index.php ?
«
Reply #4 on:
January 03, 2013, 13:42:34 »
thank you very much for your answer !
This is very helpful !
Christos
Logged
Christos Armpouniotis
webgift
Elxis Team
Hero Member
Posts: 4193
Re: What would be the header of the index.php ?
«
Reply #5 on:
January 03, 2013, 13:44:37 »
You are welcome, Christo!
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
What would be the header of the index.php ?