|
Kod PLAIN/TEXT
<?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.
Kod PLAIN/TEXT
<?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"' : ''; ?>>
Kod PLAIN/TEXT
<?php
php başlangıç kodu
Kod PLAIN/TEXT
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.
Kod PLAIN/TEXT
echo '<?xml version="1.0" encoding="UTF-8"?' .'>'._LEND;
xml versiyon ve karakter seti tanımı
Kod PLAIN/TEXT
?>
Php kod kapaması
Kod PLAIN/TEXT
<!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ı.
Kod PLAIN/TEXT
<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ü.
Kod PLAIN/TEXT
<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>
Kod PLAIN/TEXT
<head>
html başlık alanı başlangıcı
Kod PLAIN/TEXT
<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.
Kod PLAIN/TEXT
<?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.
Kod PLAIN/TEXT
<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" />
Kod PLAIN/TEXT
<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ı.Kod PLAIN/TEXT
$mainframe->getCfg('live_site');
kodu; URL'leri sitenize döndürür.Kod PLAIN/TEXT
$mainframe->getTemplate();
kodu ise; geçerli temanın adına döndürür.Kod PLAIN/TEXT
<?php if ($my->id) { initEditor(); } ?>
Kullanıcılar için WYSIWYG editörü yükler.
Kod PLAIN/TEXT
</head>
html başlık bölümünün bitişi.
|