Elxis CMS Forum

International zone => Türkiye => Topic started by: ahdes on August 02, 2008, 02:18:23

Title: Elxis Tema Rehberi
Post by: ahdes on August 02, 2008, 02:18:23
Tipik bir elxis temasında var olan dosyalar

css/
       index.html
       template_css.css
images/
    index.html
    logo.png
    arrow.png
    indent.png
    module_header.jpg
    background.gif
index.php
template_thumbnail.png
templateDetails.xml

Temanızın yapımı bittiğinde, paket olarak zipleyerek yüklemeye hazır hale getirin.

Zip paketinin adı; tpl_tema_ismi_version.zip
Title: Re: Elxis Tema Rehberi
Post by: ahdes on August 02, 2008, 02:26:25
index.php dosyası

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Tema standarlarını gösterir.

Code: [Select]
<?php
defined
( &#39;_VALID_MOS&#39; ) or die( &#39;Direct Access to this location is not allowed.&#39; );
echo &#39;<?xml version="1.0" encoding="UTF-8"?&#39; .&#39;>&#39;._LEND;
?>

<!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) ? &#39; dir="rtl"&#39; : &#39;&#39;; ?>>

Code: [Select]
<?phpphp başlangıç kodu

Code: [Select]
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );Dosyaya direk erişimi engelleyen ve güvenlik için mutlaka temanızda olması gereken kod.

Code: [Select]
echo '<?xml version="1.0" encoding="UTF-8"?' .'>'._LEND;xml versiyon ve karakter seti tanımı

Code: [Select]
?>Php kod kapaması

Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
DOCTYPE tanım satırı.

Code: [Select]
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo _LANGUAGE?>"
xml:lang="<?php echo _LANGUAGE?>"<?php echo (_GEM_RTL) ? &#39; dir="rtl"&#39; : &#39;&#39;; ?>>
XHTML ad alanı ,dil ve XML dil bildirimi ve metin yönü.
Title: Re: Elxis Tema Rehberi
Post by: ahdes on August 02, 2008, 02:56:23
Code: [Select]
<head>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO?>" />
<?php mosShowHead(); ?>
<link href="<?php echo $mainframe->getCfg(&#39;live_site&#39;); ?>/templates/<?php echo $mainframe-
>
getTemplate(); ?>
/css/template_css<?php echo (_GEM_RTL) ? &#39;-rtl&#39; : &#39;&#39;; ?>.css"
rel="stylesheet" type="text/css" media="all" />
<?php if ($my->id) { initEditor(); } ?>
</head>

Code: [Select]
<head>html başlık alanı başlangıcı

Code: [Select]
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO?>" />Karakter seti kümesi ve sayfa içerik türü (metin-html).
Herhangi bir dil için önerilen  UTF-8 değeri, PHP sabit _ISO dil dosyalarından alınır.

Code: [Select]
<?php mosShowHead(); ?>Başlık metaverisi, linkler, JavaScript ve sayfa başlığı Elxis çeğirdeğinden otomatik olarak yüklenir.

Başlık metaverisi, linkler, JavaScript ve sayfa başlığı örnek olarak aşağıdaki gibidir.
Code: [Select]
<title>Elxis CMS</title>
<meta name="description" content="Elxis CMS" />
<meta name="keywords" content="elxis, cms, open source" />
<meta name="Generator" content="Elxis - Copyright (C) 2006-2008 Elxis.org. All rights reserved." />
<meta name="robots" content="index, follow" />
<base href="http://www.domain.tld/" />
<link href="http://www.domain.tld/includes/standard.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src=http://www.domain.tld/administrator/includes/js/ajax_new.js></script>
© 2006-2008 elxis.org Page 9
<script type="text/javascript" src="http://www.domain.tld/includes/js/elxis.js"></script>
<link rel="alternate" type="application/rss+xml" title="latest news" href="http://www.domain.tld/cache/rss20.xml" />
<link rel="shortcut icon" href="http://www.domain.tld/images/favicon.ico" />

Code: [Select]
<link href="<?php echo $mainframe->getCfg(&#39;live_site&#39;); ?>/templates/<?php echo $mainframe-
>
getTemplate(); ?>
/css/template_css<?php echo (_GEM_RTL) ? &#39;-rtl&#39; : &#39;&#39;; ?>.css"
rel="stylesheet" type="text/css" media="all" />
Tema için css link satırı.
$mainframe->getCfg('live_site'); kodu; URL'leri sitenize döndürür.
$mainframe->getTemplate(); kodu ise; geçerli temanın adına döndürür.

Code: [Select]
<?php if ($my->id) { initEditor(); } ?>
Kullanıcılar için WYSIWYG  editörü yükler.

Code: [Select]
</head>html başlık bölümünün bitişi.
Title: Re: Elxis Tema Rehberi
Post by: web12master on September 09, 2008, 02:32:22
ellerine saglik, yeni oldugum icin bunlari ogrenmem lazim