* @license Apache License, Version 2.0 */ if ( ! $this->_pzdxMerchant ) return; $merchant = $this->_pzdxMerchant; $config = $this->_pzdxConfig; $link = $this->_permalink($merchant); if(strtolower($config['subtype']) == 'big'){ if(isset($config['name']) && strtolower($config['name']) == 'true') { if ( $link ) $xhtml .= "{$merchant->name}"; else $xhtml .= "{$merchant->name}"; $xhtml .= "
\n"; } $xhtml .= $this->_fragment('badge'); if(isset($config['address']) && strtolower($config['address']) == 'true') $xhtml .= "{$merchant->location->street_address}, {$merchant->location->city->name}
"; if(isset($config['phone']) && strtolower($config['phone']) == 'true') $xhtml .= "{$merchant->phone}
"; }else{ if ( $link ) $xhtml .= "{$merchant->name}"; else $xhtml .= $merchant->name; if(isset($config['address']) && strtolower($config['address']) == 'true') $xhtml .= " ({$merchant->location->street_address}, {$merchant->location->city->name}) "; } /** * Special blog-level var added to the 1st merchant by the blog * platforms when the data to be displayed has been saved statically. */ if ( isset($merchant->static_timestamp) ) $xhtml .= '

' . $merchant->static_timestamp . '

'; ?>