Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get_i18n_component problem
#3
(2013-06-25, 19:16:01)Carlos Wrote: Could it be you are using it like echo get_i18n_component(...) instead of get_i18n_component(...)? (without echo)

get_i18n_component (in contrast to get_component) returns true/1, if the component exists. This allows you to use code like the following:
Code:
get_i18n_component('sidebar-'.return_page_slug()) || get_i18n_component('sidebar-default')
(display the page specific side bar, or - if it does not exist - the default side bar)
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
get_i18n_component problem - by itsmeee - 2013-06-25, 19:06:37
RE: get_i18n_component problem - by Carlos - 2013-06-25, 19:16:01
RE: get_i18n_component problem - by mvlcek - 2013-06-25, 21:32:34
RE: get_i18n_component problem - by itsmeee - 2013-06-25, 22:21:19



Users browsing this thread: 1 Guest(s)