change online resource description.
This commit is contained in:
parent
14e27f880d
commit
2d58c49c6d
|
@ -36,7 +36,15 @@
|
|||
<?php if ($this->links) : ?>
|
||||
<fieldset><legend>其他在线资源</legend>
|
||||
<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; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
|
Loading…
Reference in New Issue