Elxis CMS Forum
International zone => Türkiye => Topic started 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
-
index.php dosyası
<?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.
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
echo '<?xml version="1.0" encoding="UTF-8"?' .'>'._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) ? ' dir="rtl"' : ''; ?>>
<?php
php başlangıç kodu
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.
echo '<?xml version="1.0" encoding="UTF-8"?' .'>'._LEND;
xml versiyon ve karakter seti tanımı
?>
Php kod kapaması
<!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ı.
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo _LANGUAGE; ?>"
xml:lang="<?php echo _LANGUAGE; ?>"<?php echo (_GEM_RTL) ? ' dir="rtl"' : ''; ?>>
XHTML ad alanı ,dil ve XML dil bildirimi ve metin yönü.
-
<head>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<link href="<?php echo $mainframe->getCfg('live_site'); ?>/templates/<?php echo $mainframe-
>getTemplate(); ?>/css/template_css<?php echo (_GEM_RTL) ? '-rtl' : ''; ?>.css"
rel="stylesheet" type="text/css" media="all" />
<?php if ($my->id) { initEditor(); } ?>
</head>
<head>
html başlık alanı başlangıcı
<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.
<?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.
<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" />
<link href="<?php echo $mainframe->getCfg('live_site'); ?>/templates/<?php echo $mainframe-
>getTemplate(); ?>/css/template_css<?php echo (_GEM_RTL) ? '-rtl' : ''; ?>.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.
<?php if ($my->id) { initEditor(); } ?>
Kullanıcılar için WYSIWYG editörü yükler.
</head>
html başlık bölümünün bitişi.
-
ellerine saglik, yeni oldugum icin bunlari ogrenmem lazim