<?php

/**
 * Snippet to create a link to a testimonial.
 *
 * 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\testimonials
 * @copyright Copyright (c) 2012 clearFusionCMS. All rights reserved.
 * @link http://clearfusioncms.com
 */

/* @var $tplEngine cfTemplateEngine */
$controller = $tplEngine->controller;

if(isset($id) && ($container = $controller->content->getContainer('testimonials.archive'))) {
	$route = $controller->content->getContainerRoute($container, 'testimonial/:id');
	echo $route->assemble(array('id' =>$id));
}

?>