userDetails($this->loggedInUser['id'])->getUser();
$active = $user->isActive();
?>
partial('partials/sale.phtml', array(
'sale' => $sale,
'postageDesc' => ($active) ? true : false,
'caption' => ($active) ? true : false,
'directPaymentButton' => ($active) ? true : false,
'type' => $this->loggedInUser['id'] == $sale['seller_id'] ? 'sold' : 'bought')); ?>
getTopicTitle();
@preg_match('#Private Message - Listing ID: \#(.*)#', $topicTitle, $matches);
if (count($matches) > 1) {
if (!empty($matches[1])) {
$listingsService = new \Ppb\Service\Listings();
$listing = $listingsService->findBy('id', intval($matches[1]));
if (count($listing) > 0) {
echo $this->partial('partials/listing-box.phtml', array(
'listing' => $listing)) . '
';
}
}
}
}
?>