2013-09-26, 04:13:28
I know Connie has asked this question but I've gone through writing up some code...with some help. I'm hoping I don't have to rewrite. I need some of the top most menu items not to have a link. I'm using custom rendering to do this for some of the child menu items.
Currently I have a component called links
I'm using this in the navigation to print out the main li and its children in a div
I really need investment strategies - the parent not to be a link
I know I'm using the get_i18n_link but what else is there??
Not sure where to begin with this Please HELP this php noob!!!
Currently I have a component called links
PHP Code:
<li class="<?php echo $item->classes; ?>">
<?php
if ($item->nopage == 'noLink') {
echo htmlspecialchars($item->text);
}
elseif ($item->nopage == 'hasLink') { ?>
<a href="<?php echo htmlspecialchars($item->link); ?>">
<?php echo htmlspecialchars($item->text); ?>
</a>
<?php }
else { ?>
<a href="<?php echo htmlspecialchars($item->link); ?>">
<?php echo htmlspecialchars($item->text); ?>
</a>
<?php }?>
<?php if ($item->isOpen) { ?>
<ul class="sub-menu"><?php $item->outputChildren(); ?></ul>
<?php } ?>
</li>
I'm using this in the navigation to print out the main li and its children in a div
PHP Code:
<li><?php get_i18n_link('investment-strategies'); ?>
<div class="menu_dropdown_block full_width">
<ul><?php get_i18n_navigation('investment-strategies',1,100,I18N_SHOW_MENU, links); ?></ul>
</div>
</li>
I really need investment strategies - the parent not to be a link
I know I'm using the get_i18n_link but what else is there??
Not sure where to begin with this Please HELP this php noob!!!