GetSimple Support Forum

Full Version: strange (?) template tag info in wiki
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
On the following wiki page:
http://get-simple.info/wiki/themes:template_tags

I see the following:

Code:
get_navigation( $currentpage = get_page_slug(false), $classPrefix = "" )

<?php get_navigation( 'tour' ); ?>

Returns a list of pages that are added to the main menu from each of their edit screens. Required option is what is shown above. This creates a class of 'current' on the <li> element that is currently the active page. You need to supply the <ul> or <ol>

Is this new? Previously it looked like this:

Code:
get_navigation()

<?php get_navigation(return_page_slug()); ?>

(this is how it is still shown in the Russian wiki section and the theme conversion tutorial)

Edit: it seems all the titles have more info between the squares (), but this makes less sense to non programmers I think. At least it is less clear at first.

Tittle: tag without <?php and ?> around it, extra options shown between ()
code box: tag with <!php and ?> around but no extra options shown between ()
Is what new, the prefix argument? Yes it's in release notes.
The wiki edit? You can see all changes at the bottom.
What is the purpose of the class prefix thing? Does it change the name of the class?
Ok I see now that these changes are there for some time (I even have been editting those pages Confused ), but I don't understand some of it how it is written, I come back on this.

Shawn_a Wrote:Is what new, the prefix argument? Yes it's in release notes.
Can you point me to the release note of the prefix argument? I didn't find it.
i edited that article in en read it again
Code:
<?php get_navigation( 'tour' ); ?>

Is the "tour" an example of a slug? or what does it mean?
yes slug or page id same thing