模板制作求助①

模板开发以及发布测试

版主: seita

回复
﹎sκyˊ☆
帖子: 41
注册时间: 2008年 9月 10日 08:35
联系:

模板制作求助①

帖子 ﹎sκyˊ☆ »

<?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()): ?> 这样好像不成立
﹎sκyˊ☆
帖子: 41
注册时间: 2008年 9月 10日 08:35
联系:

Re: 模板制作求助①

帖子 ﹎sκyˊ☆ »

<?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; ?>
回复