File: /home/dtptviut/public_html/wp-content/plugins/comparisonfeed-wp/compare-feed-wp-template.php
<?php
/*
Check which template to render based on the settings on the single page.
*/
// Include settings.php to get access to $categoryNames.
include('settings.php');
$CURRENT_VERSION = CURRENT_VERSION;
$custom_content = get_post_custom($post->ID);
$adservice_options = get_option("adservice_options");
$template = $custom_content["compare-template"][0];
?>
<!-- Adservice Comparison Feed version: <?php echo $CURRENT_VERSION; ?> -->
<div id="compare-wrapper">
<script id="outputTmpl" type="text/x-render">
<div id="loanTable">
{{for data}}
<?php
if ($template === '180,147') { ?>
{{if categoryId === '147'}}
<?php include( plugin_dir_path( __FILE__ ) . 'templates-dist/' .
$categoryNames[147] . '/template.html'); ?>
{{else }}
<?php include( plugin_dir_path( __FILE__ ) . 'templates-dist/' .
$categoryNames[180] . '/template.html'); ?>
{{/if}}
<?php
} else {
include( plugin_dir_path( __FILE__ ) . 'templates-dist/' .
$categoryNames[$template] . '/template.html');
}
?>
{{/for}}
</div>
</script>
</div>