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


Messages In This Thread
strange (?) template tag info in wiki - by datiswous - 2014-07-01, 07:23:39



Users browsing this thread: 1 Guest(s)