Dotclear

Vous n'êtes pas identifié(e).

Annonce

13 février 2024 Sortie de Dotclear 2.29

#1 2011-05-19 08:47:04

yoptralala
Membre
Inscription : 2011-05-19
Site Web

modif template avec agenda

Bonjour,
un petit nouveau sur le site de ce très beau cms

Voila la question:
on me dit dans  agenda ceci

Utilisation

Pour afficher l'agenda dans votre blog, insérez le code suivant dans votre template :

<?php dcAgenda::showEvents(); ?>

J'ai éditer le template de mon thème mais où mettre <?php dcAgenda::showEvents(); ?>

Hors ligne

#2 2011-05-19 08:50:03

yoptralala
Membre
Inscription : 2011-05-19
Site Web

Re : modif template avec agenda

Désolé pour l'envoi intempestif du message la suite;

voici le contenu du template

<?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/atom+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">

	<a href="<?php dcInfo('url'); ?>"><h1><?php dcInfo(); ?></h1></a>

	<div id="top"></div>

	<p id="prelude"><a href="#main">aller au contenu</a> |
	<a href="#sidebar">aller au menu</a> |
	<a href="#search">aller à la recherche</a></p>

	<div id="sidebar">
		<?php include dirname(__FILE__).'/menu.php'; ?>
	</div>

<div id="main">
	<div id="content">
	<?php if ($err_msg != '') : /* Si on a une quelconque erreur, on l'affiche */?>
		<div class="error"><strong>Erreur : </strong>
		<?php echo $err_msg; ?></div>

	<?php elseif (is_callable(array('dcRelatedPages','relatedMode')) && dcRelatedPages::relatedMode()) : ?>
	<?php dcRelatedPages::includeFile(); ?>
		
	<?php elseif ($preview) : /* Si on demande la prévisualisation d'un commentaire */?>
		<h3>Commentaire pour <?php dcPostTitle(); ?></h3>
		<div id="comment-preview">
			<blockquote>
			<?php dcCommentPreview(); ?>
			</blockquote>
		</div>
		
		<h3>Changer le commentaire</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>Résultats de votre recherche 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> <!-- 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>

Merci d'avance pour la réponse

Dernière modification par annso (2011-05-19 08:58:23)

Hors ligne

#3 2011-05-19 08:57:39

pierrevg
Membre
Inscription : 2005-04-13
Site Web

Re : modif template avec agenda

Bonjour et bienvenue,

C'est un dotclear 1, il aurait été plus approprié de le poster dans la bonne section du forum...
Je mettrai ce code dans la div sidebar.

Tu aurai pu nous donner l'url de ton blog (à caser dans ton profil) ou le thème utilisé, mais ça nous aurait rendu la tâche trop facile... ;-)

Merci.

Hors ligne

#4 2011-05-19 08:58:01

annso
Responsable de la machine à Twix
Lieu : Lyon
Inscription : 2006-03-05
Site Web

Re : modif template avec agenda

Bonjour,

Tu as l'air d'utiliser Dotclear 1. Malheureusement, cette version commence à se faire très vieille et il est rare de trouver encore des gens qui se souviennent encore comment ça marchait :D

Ceci étant dit, tu dois copier cette ligne là ou tu veux voir l'agenda s'afficher, par exemple dans le fichier menu.php si tu veux qu'il s'affiche dans la sidebar.

Hors ligne

#5 2012-03-18 18:45:25

yoptralala
Membre
Inscription : 2011-05-19
Site Web

Re : modif template avec agenda

Un grand merci avec beaucoup de retard!

Hors ligne

Vous n'êtes pas identifié(e).

Pied de page des forums

Sites map