Inici |
Qui som |
Projectes |
Fòrums |
Contacte |
Botiga |
GNU/Linux |
Mac |
Traductor |
Corrector |
Llistes |
Enllaços |
Ajuda |
Planeta
Dotclear:template.php
De Wiki de Softcatalà
<?php
# ***** BEGIN LICENSE BLOCK *****
# This file is part of DotClear.
# Copyright (c) 2004 Olivier Meunier and contributors. All rights
# reserved.
#
# DotClear is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# DotClear is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with DotClear; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# ***** END LICENSE BLOCK *****
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php dcInfo('lang'); ?>"
lang="<?php dcInfo('lang'); ?>">
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=<?php dcInfo('encoding'); ?>" />
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
<?php dcHeadLinks(); ?>
<link rel="alternate" type="application/rss+xml" title="RSS" href="<?php dcInfo('rss'); ?>" />
<link rel="alternate" type="application/xml" title="Atom" href="<?php dcInfo('atom'); ?>" />
<meta name="DC.title" content="<?php dcInfo(); ?>" />
<title><?php dcSinglePostTitle('%s - '); dcSingleCatTitle('%s - ');
dcSingleMonthTitle('%s - '); dcCustomTitle('%s - '); dcInfo(); ?></title>
<link rel="stylesheet" type="text/css" href="<?php dcInfo('theme'); ?>/style.css" media="screen" />
<?php dcPostTrackbackAutoDiscovery(); ?>
</head>
<body>
<div id="page">
<div id="top">
<h1><a href="<?php dcInfo('url'); ?>"><?php dcInfo(); ?></a></h1>
</div>
<p id="prelude"><a href="#main">Aneu al contingut</a> |
<a href="#sidebar">Aneu al menú</a> |
<a href="#search">Aneu a l'espai de cerca</a></p>
<div id="main">
<div id="content">
<?php if ($err_msg != '') : /* Si on a une quelconque erreur, on l'affiche */?>
<div class="error"><strong>Error: </strong>
<?php echo $err_msg; ?></div>
<?php elseif ($preview) : /* Si on demande la prévisualisation d'un commentaire */?>
<h3>Comentari per a <?php dcPostTitle(); ?></h3>
<div id="comment-preview">
<blockquote>
<?php dcCommentPreview(); ?>
</blockquote>
</div>
<h3>Canvieu el comentari</h3>
<?php include dirname(__FILE__).'/form.php'; ?>
<?php elseif ($mode != 'post') : /* Si aucune erreur et mode != post on affiche une liste de billets */?>
<?php # Phrase affiché en cas de recherche (%s est le mot cherché)
dcSearchString('<p>Resultats de la vostra cerca de <em>%s</em>.</p>');
?>
<?php include dirname(__FILE__).'/list.php'; ?>
<?php else : /* Sinon, mode = post, donc billet unique (avec commentaires et tout le reste)*/?>
<?php include dirname(__FILE__).'/post.php'; ?>
<?php endif; ?>
</div>
</div>
<div id="sidebar">
<div id="calendar">
<h2>Calendari</h2>
<?php #Affichage du calendrier
dcCalendar('<table summary="Calendrier">%s</table>'); ?>
<span></span>
</div>
<div id="search">
<form action="<?php dcInfo('search'); ?>" method="get">
<h2><label for="q">Cerca</label></h2>
<p class="field"><input name="q" id="q" type="text" size="10"
value="<?php dcSearchString(); ?>" accesskey="4" />
<input type="submit" class="submit" value="ok" /></p>
</form>
</div>
<?php /* Affichage du blog "selection uniquement si des billets sont
présents */ ?>
<?php dcSelection('<div id="selection"><h2>Entrades anteriors</h2><ul>%s</ul></div>'); ?>
<?php dcLangList('<div id="languages"><h2>Idiomes</h2><ul>%s</ul></div>'); ?>
<div id="categories">
<h2>Categories</h2>
<?php dcCatList(); ?>
</div>
<div id="archives">
<h2>Arxius</h2>
<?php dcMonthsList(); ?>
</div>
<div id="links">
<h2>Enllaços</h2>
<?php dcBlogroll::linkList(); ?>
</div>
<div id="syndicate">
<h2>Sindicació</h2>
<ul>
<li><a href="<?php dcInfo('rss'); ?>">canal rss</a></li>
<li><a href="<?php dcInfo('rss'); ?>?type=co">canal rss de comentaris</a></li>
<li><a href="<?php dcInfo('atom'); ?>">canal atom</a></li>
<li><a href="<?php dcInfo('atom'); ?>?type=co">canal atom de comentaris</a></li>
</ul>
</div>
</div>
<p id="footer"><a href="http://www.dotclear.net/">
Funciona amb DotClear</a></p>
</div> <!-- end #page -->
<!-- Blocs en plus pour ajouter des images en tout genre si besoin -->
<div id="block1"><span></span></div><div id="block2"><span></span></div>
<div id="block3"><span></span></div><div id="block4"><span></span></div>
<div id="block5"><span></span></div><div id="block6"><span></span></div>
</body>
</html>

