2013-02-08, 04:08:15
(2013-02-08, 02:15:54)mvlcek Wrote: That's why I answered with "I'll try...".
:-)
(2013-02-08, 02:15:54)mvlcek Wrote: I18N already uses the approach mentioned: get_i18n_header() - but what do you use if you have both I18N and Pagify?
I suppose you could have another function get_i18n_pagify_header() for those using I18N:
<?php get_i18n_pagify_header() or get_i18n_header(); ?>
Obviously this requires that get[i18n]_pagify_header functions don't echo anything and return false if not in a numbered page.
What do you think about this "... or ..." approach? (different to get_i18n_header's, that replaces get_header instead of complementing it)
(2013-02-08, 02:15:54)mvlcek Wrote: I suppose that I could do a hack like this (argh):
- on index-pretemplate set globals $PRETTYURLS to 1 (if it isn't already) and set $PERMALINK (if it isn't already), then modify the $PERMALINK to contain the page number - or alternatively the parameter complete for the non-paged version.
- on theme-header reset $PRETTYURLS and $PERMALINK
- hope that in between no plugin wants to create a link to another page :-(
Very clever hack! hadn't thought of that, thanks. But it's too... argh :-)
I don't know, maybe better wait for GS having a hook/filter for this as I requested in another thread.