<?php

/**
 * Create a link to a property region.
 *
 * THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @package clearFusionCMS\module\property
 * @copyright Copyright (c) 2016 clearFusionCMS. All rights reserved.
 * @link http://clearfusioncms.com
 */

if(isset($id) && isset($category)) {
	/* @var $tplEngine cfTemplateEngine */
	$controller = $tplEngine->controller;
	if($container = $controller->content->getContainer('property.' . $category . '.' . $id))
		echo $controller->content->getPageURI($container, isset($abs) ? $abs : false);
}
