Code Library: Page Vars

put in custom PHP files; (case-sensitive). E.g if($_PAGE['page']=='contact') $_PAGE['description']='Contact us on 0800 888 777';
put in HTML templates as a Smart Tag e.g. {{ if {$_PAGE[category]=='Shoes'} ... }}

Page Vars  Description Result
Current page category
Current page css (array) array ( '/css/default.css?24118' => 'all', '/template/style.css?96781' => 'all', '/template/desktop.css?95671' => 'only screen and (min-width: 850px)', '/template/mobile.css?25165' => 'only screen and (max-width: 850px)', '/templates/5/about.css' => 'all', )
Current page custom_head
Current page meta description, (you can also set keywords meta with $_PAGE[keywords]) The Vendo Code Library lists all variables that can be implemented within your HTML templates and PHP files.
Current page javascript (array) array ( 0 => '/js/global.js', 1 => '/js/search_vendo.js?10905', 2 => '/js/address_suggest.js', 3 => '/js/login.js', 4 => '/js/global_events.js?92060', )
Current page ID code-library
Current page path
Current page section about
Current page subcategory
Current page subsection layout
Current page subsubcategory
Current page subsubsection code-library
Current page subsubsubsection
Current page title Code Library: Page Vars
Current page URI /code-library/?t=2
×