REALTOR 747 Template Specification - Version 3.x  

Contents

1. Files and Pages

2. Marker Expression

3. Control Statement

4. Marker List

5. Markers available within a specific file

 

1. Files and Pages

PagesPage IDHTML file
Home1home.html
Listings2listings.html
Search3search.html
Services4services.html
About Us5about.html
Extra16extra1.html
Extra27extra2.html
Extra38extra3.html
Extra49extra4.html
Extra510extra5.html
Detail100detail.html
no_big_image.jpg : Used when there is no big image
no_small_image.jpg : Used when there is no small image
 

2. Marker Expression

  1. A marker ( variable or placeholder ) starts with $ (dollar symbol) followed by the name of the marker.
    • example: $business_name $agent_image ...

  2. The marker must be included between {/ and /}
    • example: {/ $business_name /} {/ $agent_image /} ...
 

3. Control Statement

  1. loop statement

    • Syntax:
      {loop $array_marker_name as $one_element_name loop}
      html tags ... + $one_element_name
      {/loop}  
       
    • Example: Services Marker
      {loop $svcs as $svc loop}
      <h1> {/ $svc['name'] /} </h1>
      <h2> {/ $svc['desc'] /} </h2>
      {/loop}  
       
  2. if statement

    • Syntax:
      {if $marker_a ... condition if}
      html tags ... + $marker1
      {else_if $marker_b ... condition if}
      html tags ... + $marker2
      {else}
      html tags ... + $marker3
      {/if}  
       
    • Example: For 3-column image arrangement
      {if $l_image['seq'] % 3 == 1 if}
      Put the image into 1st column
      {else_if $l_image['seq'] % 3 == 2 if}
      Put the image into 2nd column
      {else}
      Put the image into 3rd column
      {/if}  
       
  3. include statement

    • Syntax:
      {include file_name include}

    • Example: include a header file
      {include header.html include}
 

4. Marker List

Global
titleDocument Title
it747_html_headerHeader TagWe send <base> tag for the browser to process the location of other component files (ex. custom image files) of the template.
Must be present using the format <!-- {/ $it747_html_header /} -->
it747_debug_messageDebug Message

Business Information
business_nameBusiness Nameex. John The Realtor
business_sloganBusiness Sloganex. Your Business is My Success!
business_imageBusiness Logohref value
business_welcome_messageWelcome Message
business_phonePhone Number
business_faxFax Number
business_addressAddress
business_emailEmail
agent_nameAgent Nameex. John Doe
agent_imageImage filehref value

Pages$pages as $page
page_idCurrent Page ID
 
$pages as $pagePage List
page['id']Page ID
page['name']Page Nameex. Listings
page['link']Link - Goto other pagehref value

Categories$cats as $cat
cat['name']Category nameex. Rental Homes
cat['howmany']Number of listings in this category
cat['link']Link - goto listings pagehref value

Search Form QueryTo be used in a search form
search_actionaction target<form action="{/ $search_action /}" .. >
 
select_categorySelect Categoryoptional
select_areaSelect Areaoptional
select_bedroomSelect Bedroomoptional
select_bathroomSelect Bathroomoptional
select_price_fromSelect Price - fromoptional
select_price_toSelect Price - tooptional
select_page_sizeSelect Result Page Sizeoptional

Services$svcs as $svc
svc['name']Service Titleex. Mortgage Services
svc['desc']Service Description

About Information$abouts as $about
about['name']About Titleex. Our History
about['desc']Descriptionof this title

Listing Detaill_
l_idListing ID
l_category_idCategory ID of This Listing
l_category_nameCategory Name of This Listingex. Detached Homes
l_nameListing Nameex. MLS 1234
l_linkListing Linkhref value
l_newNew ?[true / false]
l_soldSold ?[true / false]
l_pricePriceex. $30,000
l_price_searchPrice for Searchex. 30000
l_bedroom# of bedroomsex. 3
l_bathroom# of bathroomsex. 2
l_areaArea Nameex. Downtown
l_addressAddress
l_map_linkMap of this listinghref value
l_catch_phraseCatch Phraseex. Must be sold !
l_short_descShort Description
l_long_descDetailed Description
 
l_agent['id']Assigned Agent ID
l_agent['name']Agent Nameex. John Doe
l_agent['job_title']Agent Job Titleex. Sales Associate
l_agent['phone']Agent Phone Number
l_agent['cellphone']Agent cellphone number
l_agent['fax']Agent fax number
l_agent['email']Agent email
l_agent['image']Agent Imagehref value
l_agent['html_page']Agent personal pageex. http://.../john.htm
l_agent['intro']Agent Introex. Career, Greeting message
 
$l_tours as $l_tourVirtual Tour Files
l_tour['seq']Sequence number of the tour
l_tour['name']Tour nameex. Kitchen
l_tour['filename']Filename or http addr of the tourex. kitchen.mov
l_tour['link']Link to the virtual tour filehref value
 
$l_docs as $l_docSupport Documents Files
l_doc['seq']Sequence number of the document
l_doc['name']Document nameex. Floor Plan
l_doc['filename']Filename or http addr of the documentex. floor_plan.pdf
l_doc['link']Link to the document filehref value
 
$l_images as $l_imageSmall Images List
l_image['seq']Sequence number of this small image
l_image['name']Name of this small imageex. Bedroom
l_image['image']Small Imagehref value
l_image['link']Link to big imagehref value
l_image['valid_link']if this is true, l_image['link'] is valid
 
$l_features as $l_featureFeatures List
l_feature['seq']Sequence number of this feature
l_feature['name']Name of this featureex. Fireplace
 
$l_attrs as $l_attrAttributes List
l_attr['seq']Sequence number of this attribute
l_attr['name']Name of this attributeex. lot size
l_attr['value']Value this attributeex. 1280 X 1200

Featured Listingsp_
sp_idListing ID
sp_category_idCategory ID of This Listing
sp_category_nameCategory Name of This Listingex. Detached Homes
sp_nameListing Nameex. MLS 1234
sp_linkListing Linkhref value
sp_newNew ?[true / false]
sp_soldSold ?[true / false]
sp_pricePriceex. $30,000
sp_price_searchPrice for Searchex. 30000
sp_bedroom# of bedroomsex. 3
sp_bathroom# of bathroomsex. 2
sp_areaArea Nameex. Downtown
sp_addressAddress
sp_map_linkMap of this listinghref value
sp_catch_phraseCatch Phraseex. Must be sold !
sp_short_descShort Description
sp_long_descDetailed Description
 
sp_agent['id']Assigned Agent ID
sp_agent['name']Agent Nameex. John Doe
sp_agent['job_title']Agent Job Titleex. Sales Associate
sp_agent['phone']Agent Phone Number
sp_agent['cellphone']Agent cellphone number
sp_agent['fax']Agent fax number
sp_agent['email']Agent email
sp_agent['image']Agent Imagehref value
sp_agent['html_page']Agent personal pageex. http://.../john.htm
sp_agent['intro']Agent Introex. Career, Greeting message
 
$sp_tours as $sp_tourVirtual Tour Files
sp_tour['seq']Sequence number of the tour
sp_tour['name']Tour nameex. Kitchen
sp_tour['filename']Filename or http addr of the tourex. kitchen.mov
sp_tour['link']Link to the virtual tour filehref value
 
$sp_docs as $sp_docSupport Documents Files
sp_doc['seq']Sequence number of the document
sp_doc['name']Document nameex. Floor Plan
sp_doc['filename']Filename or http addr of the documentex. floor_plan.pdf
sp_doc['link']Link to the document filehref value
 
$sp_images as $sp_imageSmall Images List
sp_image['seq']Sequence number of this small image
sp_image['name']Name of this small imageex. Bedroom
sp_image['image']Small Imagehref value
sp_image['link']Link to big imagehref value
sp_image['valid_link']if this is true, sp_image['link'] is valid
 
$sp_features as $sp_featureFeatures List
sp_feature['seq']Sequence number of this feature
sp_feature['name']Name of this featureex. Fireplace
 
$sp_attrs as $sp_attrAttributes List
sp_attr['seq']Sequence number of this attribute
sp_attr['name']Name of this attributeex. lot size
sp_attr['value']Value this attributeex. 1280 X 1200
 
Additional for featured listing
sp_ll['image']small flag imageOne small image
sp_ll['link']Goto listing detail pagehref value

Listings in a category
llist_category_idCategory ID of This Listing
llist_category_nameCategory Name of This Listingex. Apartments
llist_category_howmanyNumebr of Listings in This Category
llist_totalSame as llist_category_howmany
llist_page_idPage Number (ID) of The Listings Displayed
llist_page_lengthNumber of Listings Per Page Set By Admin
 
$llist as $llListing List
ll['id']Listing ID
ll['seq']Sequence number
ll['name']Listing Nameex. MLS 1234
ll['link']Link to Listing Detail Page
ll['new']New ?[true / false]
ll['sold']Sold ?[true / false]
ll['price']Priceex. $30,000
ll['price_search']Price for Searchex. 30000
ll['bedroom']# of bedroomsex. 3
ll['bathroom']# of bathroomsex. 2
ll['area']Area Nameex. Downtown
ll['address']Address
ll['map_link']Map of this listinghref value
ll['catch_phrase']Catch Phraseex. Must See !!
ll['short_desc']Short Description
ll['image']Small Imagehref value
ll['tour']Vitual Tourtrue / false
ll['doc']Support Documenttrue / false
 
ll['agent_id']Assigned Agent ID
ll['agent_name']Agent Nameex. John Doe
ll['agent_job_title']Agent Job Titleex. Sales Associate
ll['agent_phone']Agent Phone Number
ll['agent_cellphone']Agent cellphone number
ll['agent_fax']Agent fax number
ll['agent_email']Agent email
ll['agent_image']Agent Imagehref value
ll['agent_html_page']Agent personal pageex. http://.../john.htm
ll['agent_intro']Agent Introex. Career, Greeting message
 
$llist_pages as $ll_pagePagination of The Listings
ll_page['id']Page Number (ID)
ll_page['seq']Page Sequence Numberstarting from 1
ll_page['link']Link to The Pagehref value
ll_page['range_from']Listing Range of the Page - Fromex. 11 in case of (11-20)
ll_page['range_to']Listing Range of the Page - Toex. 20 in case of (11-20)

Search Result
srlist_resultSearch Result Provided ?true / false
srlist_totalTotal # of Listings Found
srlist_page_lengthSearch Result Page Size
srlist_page_idCurrent Result Page ID
srlist_fromCurrent Result Set - from
srlist_toCurrent Result Set - to
 
$srlist as $llSearch Result Listings List
ll['id']Listing ID
...The same as "$llist as $ll" in "Listings in a category"
 
$srlist_pages as $ll_pagePagination of The ListingsSearch Result
ll_page['id']Page Number (ID)
ll_page['seq']Page Sequence Numberstarting from 1
ll_page['link']Link to The Pagehref value
ll_page['range_from']Listing Range of the Page - Fromex. 11 in case of (11-20)
ll_page['range_to']Listing Range of the Page - Toex. 20 in case of (11-20)

 

5. Markers available within a specific file


PagesHomeListingsSearchServicesAbout UsExtra1-5Detail
Page ID123456-10100
HTML filehome.htmllistings.htmlsearch.htmlservices.htmlabout.htmlextra1-5.htmldetail.html
GlobalYYYYYYY
Business InformationYYYYYYY
PagesYYYYYYY
CategoriesYYYYYYY
ServicesYYYYYYY
About InformationYYYYYYY
Featured ListingYYYYYYY
Search Form QueryYYYYYYY
Search ResultY
Listing DetailY
Listings in a categoryY



Copyright © 2003-2010 IT747.COM