Skip to content
Snippets Groups Projects
Select Git revision
  • 4097b56aac6075b4c0053805da676368a82dcd73
  • main default protected
2 results

entrypoint.sh

Blame
  • article.php 2.05 KiB
    <?php theme_include('header'); ?>
    		<section class="content wrap" id="article-<?php echo article_id(); ?>">
    			<h1><?php echo article_img(article_slug());?><?php echo article_title(); ?></h1>
    
    			<article>
    				<?php echo article_html(); ?>
    			</article>
    
    			<section class="footnote">
    				<!-- Unfortunately, CSS means everything's got to be inline. -->
                    <p>Article num&eacute;ro: <?php echo article_number(article_id()); ?>, <?php echo count_words(article_markdown()); ?> mots <?php if(comments_open()): ?>,
                <?php echo total_comments();?> <?php echo pluralise(total_comments(), "commentaire", "s") ?>.<?php endif; ?> <?php echo article_custom_field('attribution'); ?></p>
    			</section>
    		</section>
    
    		<?php if(comments_open()): ?>
    		<section class="comments">
    			<?php if(has_comments()): ?>
    			<ul class="commentlist">
    				<?php $i = 0; while(comments()): $i++; ?>
    				<li class="comment" id="comment-<?php echo comment_id(); ?>">
    					<div class="wrap">
    						<h2><?php echo comment_name(); ?></h2>
    						<time><?php echo relative_time(comment_time()); ?></time>
    
    						<div class="content">
    							<?php echo htmlspecialchars(comment_text()); ?>
    						</div>
    
    						<span class="counter"><?php echo $i; ?></span>
    					</div>
    				</li>
    				<?php endwhile; ?>
    			</ul>
    			<?php endif; ?>
    
    			<form id="comment" class="commentform wrap" method="post" action="<?php echo comment_form_url(); ?>#comment">
    				<?php echo comment_form_notifications(); ?>
    
    				<p class="name">
    					<label for="name">Nom :</label>
    					<?php echo comment_form_input_name('placeholder="Nom"'); ?>
    				</p>
    
    				<p class="email">
    					<label for="email">Addresse email :</label>
    					<?php echo comment_form_input_email('placeholder="Addresse email (non publi&eacute;e)"'); ?>
    				</p>
    
    				<p class="textarea">
    					<label for="text">Commentaire :</label>
    					<?php echo comment_form_input_text('placeholder="Commentaire"'); ?>
    				</p>
    
    				<p class="submit">
    					<?php echo comment_form_button(); ?>
    				</p>
    			</form>
    
    		</section>
    		<?php endif; ?>
    
    <?php theme_include('footer'); ?>