(replying to: http://get-simple.info/forums/showthread...5#pid35795 )
You can use nm_post_title for conditionals, to check if you're browsing a (full) post page, so you could do it like this:
(2013-04-25, 19:06:01)TeeJay Wrote: Btw, I occured a little I18N breadcrumbs problem. The whole I18N navigation includes hyperlinks with links to the current page, so I needed also the navigation to NM posts be links. I did this, which works, but there's a little trouble that you can immediately see, I think.
Code:<p class="breadcrumbs" >
<a href="<?php echo find_url('index',null); ?>">
<?php if ($language == 'cs') { ?>Úvod<?php } ?>
<?php if ($language == 'en') { ?>Home<?php } ?>
</a>
<?php get_i18n_breadcrumbs(return_page_slug()); ?>
<a href="#"><?php nm_post_title('» '); ?></a>
</p>
With this, the "»" (the prefix » is also underlined (is a part of the hyperlink. So it's finally consistent with an exception. If I put the "»" outside the function, it would be shown all the time, even if there's nothing behind it. It's embarrasing to have an arrow pointing to an empty space, isn't it?
So I would like something
IF nm_post_title == NOT EMPTY STRING, THEN show "»" and next to it the hyperlink to nm_post_title. So the hyperlink would be only the post title without the separator "»".
Can you write such line for me, please? Thank you.
You can use nm_post_title for conditionals, to check if you're browsing a (full) post page, so you could do it like this:
PHP Code:
<?php if (nm_post_title('','',0)) { ?> » <a href="#"><?php nm_post_title(); ?></a> <?php } ?>