Elxis CMS Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: EDC: Download extensions for Elxis 4.x
 
Pages: [1]
  Print  
Author Topic: Elxis Tema Rehberi  (Read 4220 times)
ahdes
Moderator
Jr. Member
*****
Offline Offline

Posts: 66



WWW
« on: August 02, 2008, 01: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
« Last Edit: August 02, 2008, 01:26:48 by ahdes » Logged

Elxis Türkçe Destek Sitesi - www.elxisturkiye.org
Kişisel site - www.mustafaaydemir.org
Seo - www.seoplatformu.com
ahdes
Moderator
Jr. Member
*****
Offline Offline

Posts: 66



WWW
« Reply #1 on: August 02, 2008, 01:26:25 »

index.php dosyası

Code:
<?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:
<?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"' ''?>>

Code:
<?php
php başlangıç kodu

Code:
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:
echo '<?xml version="1.0" encoding="UTF-8"?' .'>'._LEND;
xml versiyon ve karakter seti tanımı

Code:
?>
Php kod kapaması

Code:
<!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:
<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ü.
« Last Edit: August 02, 2008, 01:34:25 by ahdes » Logged

Elxis Türkçe Destek Sitesi - www.elxisturkiye.org
Kişisel site - www.mustafaaydemir.org
Seo - www.seoplatformu.com
ahdes
Moderator
Jr. Member
*****
Offline Offline

Posts: 66



WWW
« Reply #2 on: August 02, 2008, 01:56:23 »

Code:
<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>

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

Code:
<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:
<?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:
<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:
<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.

Code:
<?php if ($my->id) { initEditor(); } ?>

Kullanıcılar için WYSIWYG  editörü yükler.

Code:
</head>
html başlık bölümünün bitişi.
Logged

Elxis Türkçe Destek Sitesi - www.elxisturkiye.org
Kişisel site - www.mustafaaydemir.org
Seo - www.seoplatformu.com
web12master
Newbie
*
Offline Offline

Posts: 13


« Reply #3 on: September 09, 2008, 01:32:22 »

ellerine saglik, yeni oldugum icin bunlari ogrenmem lazim
Logged
Pages: [1]
  Print  
 
Jump to: