REALTOR 747 Template Specification - Current  

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
Extra611extra6.htmlV4.10
Extra712extra7.htmlV4.10
Extra813extra8.htmlV4.10
Extra914extra9.htmlV4.10
Extra1015extra10.htmlV4.10
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_homeREALTOR 747 home directory
it747_template_homeCurrent template's home directoryhttp://...
it747_template_home_fsCurrent template's home directoryV4.01 - ex. /usr/...
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
 
$agents as $agentAgent ListV4.0
agent['id']Agent ID
agent['name']Agent Nameex. John Doe
agent['job_title']Agent Job Titleex. Sales Associate
agent['phone']Agent Phone Number
agent['cellphone']Agent cellphone number
agent['fax']Agent fax number
agent['email']Agent email
agent['image']Agent Imagehref value
agent['html_page']Agent personal pageex. http://.../john.htm
agent['intro']Agent Introex. Career, Greeting message
agent['list_order']List OrderV4.30

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
page['list_order']List OrderV4.30

Categories$cats as $cat
cat['id']Category IDV4.0
cat['name']Category nameex. Rental Homes
cat['howmany']Number of listings in this category
cat['link']Link - goto listings pagehref value
cat['list_order']List OrderV4.30

Search Form QueryTo be used in a search form
search_actionaction target<form action="{/ $search_action /}" .. >
 
select_categorySelect Categoryoptional
select_listed_forSelect for Sale / Rentoptional
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
svc['list_order']List OrderV4.30

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

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_pdf_linkPDF Generatorhref value - V4.0
l_newNew ?[true / false]
l_soldSold ?[true / false]
l_hit# of ViewsV4.0
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_codeMap CodeV4.01
l_map_linkMap of this listinghref value
l_latitudeGeocode - latitudeV4.11
l_longitudeGeocode - longitudeV4.11
l_catch_phraseCatch Phraseex. Must be sold !
l_short_descShort Description
l_long_descDetailed Description
l_list_orderList OrderV4.30
l_area_list_orderArea List OrderV4.30
l_category_list_orderCategory List OrderV4.30
l_for_salefor sale?V4.30 [true / false]
l_for_rentfor rent?V4.30 [true / false]
 
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_agent['list_order']List OrderV4.30
 
$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_tour['list_order']List OrderV4.30
 
$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_doc['list_order']List OrderV4.30
 
$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_image['list_order']List OrderV4.30
 
$l_features as $l_featureFeatures List
l_feature['seq']Sequence number of this feature
l_feature['name']Name of this featureex. Fireplace
l_feature['list_order']List OrderV4.30
 
$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 of this attributeex. 1280 X 1200
l_attr['list_order']List OrderV4.30

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_pdf_linkPDF Generatorhref value - V4.0
sp_newNew ?[true / false]
sp_soldSold ?[true / false]
sp_hit# of ViewsV4.0
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_codeMap CodeV4.01
sp_map_linkMap of this listinghref value
sp_latitudeGeocode - latitudeV4.11
sp_longitudeGeocode - longitudeV4.11
sp_catch_phraseCatch Phraseex. Must be sold !
sp_short_descShort Description
sp_long_descDetailed Description
sp_list_orderList OrderV4.30
sp_area_list_orderArea List OrderV4.30
sp_category_list_orderCategory List OrderV4.30
sp_for_salefor sale?V4.30 [true / false]
sp_for_rentfor rent?V4.30 [true / false]
 
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_agent['list_order']List OrderV4.30
 
$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_tour['list_order']List OrderV4.30
 
$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_doc['list_order']List OrderV4.30
 
$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_image['list_order']List OrderV4.30
 
$sp_features as $sp_featureFeatures List
sp_feature['seq']Sequence number of this feature
sp_feature['name']Name of this featureex. Fireplace
sp_feature['list_order']List OrderV4.30
 
$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
sp_attr['list_order']List OrderV4.30
 
Additional for featured listing
sp_ll['image']small flag imageOne small image
sp_ll['link']Goto listing detail pagehref value
 
 
 Multiple Featured ListingsV4.04
 [Admin]-[Setup]-[System Wide]
- [# of Featured Listings]
sp1_...1st featured listing. Same as sp_...ex. sp1_id
sp2_...2nd featured listing.ex. sp2_id
sp3_...3rd featured listing.ex. sp3_id
spN_...Nth featured listing.ex. sp11_id

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_category_list_orderCategory List OrderV4.30
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['category_id']Category IDV4.30
ll['for_sale']For Sale?V4.30 [true / false]
ll['for_rent']For Rent?V4.30 [true / false]
ll['seq']Sequence number
ll['name']Listing Nameex. MLS 1234
ll['link']Link to Listing Detail Page
ll['pdf_link']PDF Generatorhref value - V4.0
ll['new']New ?[true / false]
ll['sold']Sold ?[true / false]
ll['hit']# of ViewsV4.0
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_code']Map CodeV4.01
ll['map_link']Map of this listinghref value
ll['latitude']Geocode - latitudeV4.11
ll['longitude']Geocode - longitudeV4.11
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['list_order']List OrderV4.30
ll['area_list_order']Area List OrderV4.30
ll['category_list_order']Category List OrderV4.30
ll['for_sale']for sale?V4.30 [true / false]
ll['for_rent']for rent?V4.30 [true / 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
ll['agent_list_order']List OrderV4.30
 
$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)

Extra1Content for extra1.html
extra1extra1 page infoV4.0 - in extra1.html only

Extra2Content for extra2.html
extra2extra2 page infoV4.0 - in extra2.html only

Extra3Content for extra3.html
extra3extra3 page infoV4.0 - in extra3.html only

Extra4Content for extra4.html
extra4extra4 page infoV4.0 - in extra4.html only

Extra5Content for extra5.html
extra5extra5 page infoV4.0 - in extra5.html only

Extra6Content for extra6.html
extra6extra6 page infoV4.10 - in extra6.html only

Extra7Content for extra7.html
extra7extra7 page infoV4.10 - in extra7.html only

Extra8Content for extra8.html
extra8extra8 page infoV4.10 - in extra8.html only

Extra9Content for extra9.html
extra9extra9 page infoV4.10 - in extra9.html only

Extra10Content for extra10.html
extra10extra10 page infoV4.10 - in extra10.html only

 

5. Markers available within a specific file


PagesHomeListingsSearchServicesAbout UsExtra1-10DetailPDF
Page ID123456-15100N/A
HTML filehome
.html
listings
.html
search
.html
services
.html
about
.html
extra1-10
.html
detail
.html
N/A
GlobalYYYYYYYY
Business InformationYYYYYYYY
PagesYYYYYYY
CategoriesYYYYYYYY
ServicesYYYYYYYY
About InformationYYYYYYYY
Featured ListingYYYYYYYY
Search Form QueryYYYYYYY
Search ResultY
Listing DetailYY
Listings in a categoryY
Extra1in extra1.html only
Extra2in extra2.html only
Extra3in extra3.html only
Extra4in extra4.html only
Extra5in extra5.html only
Extra6in extra6.html only (V4.10)
Extra7in extra7.html only (V4.10)
Extra8in extra8.html only (V4.10)
Extra9in extra9.html only (V4.10)
Extra10in extra10.html only (V4.10)



Copyright © 2003-2010 IT747.COM