Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
strange (?) template tag info in wiki
#1
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 ()
Reply
#2
Is what new, the prefix argument? Yes it's in release notes.
The wiki edit? You can see all changes at the bottom.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
What is the purpose of the class prefix thing? Does it change the name of the class?
Reply
#4
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.
Reply
#5
i edited that article in en read it again
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#6
Code:
<?php get_navigation( 'tour' ); ?>

Is the "tour" an example of a slug? or what does it mean?
Reply
#7
yes slug or page id same thing
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)