change online resource description.

This commit is contained in:
wlx 2009-12-25 11:38:52 +00:00
parent 14e27f880d
commit 2d58c49c6d
1 changed files with 9 additions and 1 deletions

View File

@ -36,7 +36,15 @@
<?php if ($this->links) : ?> <?php if ($this->links) : ?>
<fieldset><legend>其他在线资源</legend> <fieldset><legend>其他在线资源</legend>
<ul><?php foreach($this->links as $link) : ?> <ul><?php foreach($this->links as $link) : ?>
<li><a href="<?php echo $link['linkage']; ?>"><?php echo empty($link['name'])?$link['linkage']:$link['name']; ?></a></li> <li><a href="<?php echo $link['linkage']; ?>">
<?php
if (!empty($link['name']))
echo $link['name'];
elseif (!empty($link['description']))
echo $link['description'];
else
echo $link['linkage'];
?></a></li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
<?php endif; ?> <?php endif; ?>