<?php if($comments->url()): ?>
<a id="commentauthor-<?php $comments->theId(); ?>" href="<?php $comments->url(); ?>" rel="external nofollow">
<?php else : ?>
<span id="commentauthor-<?php $comments->theId(); ?>">
<?php endif; ?>
<?php $comments->author(); ?>
<?php if($comments->url()): ?>
</a>
<?php else : ?>
</span>
<?php endif; ?>
上面的不成立? 可用 <?php if ($comments->url->have()): ?> 这样好像不成立
模板制作求助①
版主: seita
Re: 模板制作求助①
<?php if($comments->url()): ?> -> <?php if (empty($comments->url)): ?>
<a id="commentauthor-<?php $comments->theId(); ?>" href="<?php $comments->url(); ?>" rel="external nofollow">
<?php else : ?>
<span id="commentauthor-<?php $comments->theId(); ?>">
<?php endif; ?>
<?php $comments->author(); ?>
<?php if($comments->url()): ?> -> <?php if (empty($comments->url)): ?>
</a>
<?php else : ?>
</span>
<?php endif; ?>
<a id="commentauthor-<?php $comments->theId(); ?>" href="<?php $comments->url(); ?>" rel="external nofollow">
<?php else : ?>
<span id="commentauthor-<?php $comments->theId(); ?>">
<?php endif; ?>
<?php $comments->author(); ?>
<?php if($comments->url()): ?> -> <?php if (empty($comments->url)): ?>
</a>
<?php else : ?>
</span>
<?php endif; ?>