From f4da14ffb4554baf2523bf26791e0e7687372d31 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 11 Jul 2014 12:55:41 -0400 Subject: [PATCH] Add output for property images Setup for the two property images and getting the address which is in the database. --- Toolkit/Page.php | 9 +++++++++ templates/template.html | 10 +++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Toolkit/Page.php b/Toolkit/Page.php index f21fb14..d1111fc 100755 --- a/Toolkit/Page.php +++ b/Toolkit/Page.php @@ -467,6 +467,8 @@ class Toolkit_Page $this->_pageGateway, MEMBER_SESSION_PAGE ); + $this->_getPropertyData(); + // check if define for GOOGLE_SEARCH is set if (defined("GOOGLE_SEARCH") && GOOGLE_SEARCH @@ -555,6 +557,13 @@ class Toolkit_Page } + private function _getPropertyData() + { + $this->propImageStyle = FILE_SERVER_URL . IS_OWNER_ID . '/propertyImage/'; + $display = new Toolkit_Property_Display(); + $this->property = $display->getProperty($this->_catid); + } + /** * Returns page main navigation * diff --git a/templates/template.html b/templates/template.html index b2920bc..8b007b4 100644 --- a/templates/template.html +++ b/templates/template.html @@ -31,13 +31,13 @@
-
    - +
      +
    • +
    {toolboxContent:h} -
    - 4749 Pleasantview Road · Harbor Springs, MI 49740 ~ 1-800-748-0245 · troutcreek.com +
    + {property[street]} · {property[city]}, {property[state]} {property[zip]} · {property[phone]} · {property[url]}
    -- 2.17.1