From: Steve Sutton Date: Fri, 11 Jul 2014 16:55:41 +0000 (-0400) Subject: Add output for property images X-Git-Tag: v1.0^2~29^2^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=f4da14ffb4554baf2523bf26791e0e7687372d31;p=web%2FBigFore.git Add output for property images Setup for the two property images and getting the address which is in the database. --- 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]}