• Witam,

    Mam problem ze zmianą ustawienia komentarza w jeden linii, czyli autora i daty.

    Obecnie jest to tak (przy zalogowaniu, bez logowania jest bez „Edytuj”:

    Kamil
    26 marca 2014 o 14:42 (Edytuj)

    A chciałbym to zmienić tak:

    Kamil | 26 marca 2014 o 14:42 | (Edytuj)

    No i mam taki problem, że w pliku comments.php jest to trrchę inaczej napisane niż np. w pliku index.php, w którym sam dokonałem kilka zmian na stronie głównej.

    Jak zmienić plik comments.php, żeby było to ustawione w jeden linii?

    Plik comments.php

    <?php 
    
    // Do not delete these lines
    	if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    		die ('Proszę nie ładować strony');
    
    	if ( post_password_required()) { ?>
    		<p><?php _e('Wprowadź hasło, aby zobaczyć komentarze.', 'themezee_lang'); ?></p>
    	<?php return; } ?>
    
    <!-- You can start editing here. -->
    
    <?php if ( have_comments() ) : ?>
    
    <div id="comments">
    	<h3><?php comments_number(__('Komentarze (0)', 'themezee_lang'),__('Komentarze (1)','themezee_lang'),__('Komentarze (%)','themezee_lang') );?></h3>
    
            <?php if (get_comment_pages_count(array('avatar_size' => 48)) > 1 ) : ?>
    	<div class="comment_navi">
    		<div class="alignleft"><?php previous_comments_link() ?></div>
    		<div class="alignright"><?php next_comments_link() ?></div>
    	</div>
    	<div class="clear"></div>
    	<?php endif; ?>
    
    	<ol class="commentlist">
            <?php wp_list_comments(); ?>
            </ol>
    
    		<?php if ( get_comment_pages_count() > 1 ) : ?>
    	<div class="comment_navi">
    		<div class="alignleft"><?php previous_comments_link() ?></div>
    		<div class="alignright"><?php next_comments_link() ?></div>
    	</div>
    
    	<div class="clear"></div>
    	<?php endif; ?>
    </div>
     <?php else : ?>
    
    	<?php if ( ! comments_open() and !is_page() ) : ?>
    		<p class="nocomments"><?php _e('Dodawanie komentarzy zostało zablokowane.', 'themezee_lang'); ?></p>
    	<?php endif; ?>
    <?php endif; ?>
    
    <?php if ( comments_open() ) : ?>
    	<?php comment_form(array('comment_notes_after' => '')); ?>
    	<div class="clear"></div>
    <?php endif; ?>

    Szablon to: zeeSynergie 1.3: http://wordpress.org/themes/zeesynergie

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • Temat ‘Zamiana ustawień w komentarzach’ jest zamknięty na nowe odpowiedzi.