Web EditorManualTechnical Guides › PHP Variables
Please enable JavaScript - or get a better browser

Public PHP Variables

For developers who choose to use the Web Editor API to build custom website templates there are a number of public variables which may be referenced.

When crating custom templates you can connect to the variables set via the Web Editor form section by calling any of the following variables in your PHP files.

If websites are published in more than one language all string variables will be in the current viewing language.

There are also a number of public CSS variables - click here to view them.

Public PHP variables

$c_client_name
type:
string
info:
the full name of the client, entered in the details section
example:
Client Name
$c_url
type:
string
info:
the full domain URL of the client added via the details section
example:
http://www.gmeditor.com
$c_full_name
type:
string
info:
the full name of the client website owner
example:
Joe Bloggs
$c_metadesc
type:
string
info:
first sentance of body text upto the first full stop
example:
the first sentance.
$c_keywords
type:
string
info:
comma seperated list of words built from the first paragraph of the page
example:
comma, seperated, list
$c_phone_1
type:
string
info:
fixed phone number entered via the details page
example:
00 44 123 456 789
$c_phone_2
type:
string
info:
mobile phone number entered via the details page
example:
00 44 123 456 789
$c_fax
type:
string
info:
fax phone number entered via the details page
example:
00 44 123 456 789
$c_address
type:
string
info:
client address entered via the details page - note: formatting is retained
example:
my house, some town.
$c_google_analytics
type:
string
info:
google analytics tracking code added via client details page
example:
UA-2254810-10
$c_header_include
type:
integer
info:
include website header - set via the client form section
example:
1 or 0
$c_header_image_found
type:
integer
info:
1 if header image found - 0 if not
example:
1 or 0
$c_breadcrumb_include
type:
integer
info:
include breadcrumb - set via the client form section
example:
1 or 0
$c_search_include
type:
integer
info:
include search feature - set via the client form section
example:
1 or 0
$c_default_thumb
type:
string
info:
full path to default thumb selected in client form section
example:
/media/xx/thumbs/default.gif