2013-01-05, 07:45:33
Never mind - I figured it out. There is a problem with the link template file (links_html.php), it was displaying the description as a link title in the a code but not as a description itself. I added a line to display the description beneath the bullet, and now it works:
line:
<?php if (isset($link->desc) && $link->desc) { ?><br><?php echo $link->desc; ?><?php } ?>
entire page (as modified):
<?php
/**
* Link Manager 2 template for links html list.
*
* ©2012 mrdragonraaar.com
*/
if (!defined('IN_GS')) { die('you cannot load this page directly.'); }
?>
<ul>
<?php
foreach ($lm2->links() as $link)
{
if (!isset($category_id) || !is_int($category_id) ||
($category_id == $link->category))
{
?>
<li><a <?php if (isset($link->desc) && $link->desc) { ?>title="<?php echo $link->desc; ?>"<?php } ?> <?php if (isset($link->target) && $link->target) { ?>target="<?php echo $link->target; ?>"<?php } ?> href="<?php echo $link->url; ?>"><?php if (isset($link->icon) && $link->icon) { ?><img src="<?php echo $link->icon; ?>" /><?php } ?><?php echo $link->name; ?></a>
<?php if (isset($link->desc) && $link->desc) { ?><br><?php echo $link->desc; ?><?php } ?>
</li>
<?php
}
}
?>
</ul>
line:
<?php if (isset($link->desc) && $link->desc) { ?><br><?php echo $link->desc; ?><?php } ?>
entire page (as modified):
<?php
/**
* Link Manager 2 template for links html list.
*
* ©2012 mrdragonraaar.com
*/
if (!defined('IN_GS')) { die('you cannot load this page directly.'); }
?>
<ul>
<?php
foreach ($lm2->links() as $link)
{
if (!isset($category_id) || !is_int($category_id) ||
($category_id == $link->category))
{
?>
<li><a <?php if (isset($link->desc) && $link->desc) { ?>title="<?php echo $link->desc; ?>"<?php } ?> <?php if (isset($link->target) && $link->target) { ?>target="<?php echo $link->target; ?>"<?php } ?> href="<?php echo $link->url; ?>"><?php if (isset($link->icon) && $link->icon) { ?><img src="<?php echo $link->icon; ?>" /><?php } ?><?php echo $link->name; ?></a>
<?php if (isset($link->desc) && $link->desc) { ?><br><?php echo $link->desc; ?><?php } ?>
</li>
<?php
}
}
?>
</ul>