HEX
Server: LiteSpeed
System: Linux cde2.duelhost.dk 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User: dtptviut (1121)
PHP: 8.0.30
Disabled: exec,system,passthru,shell_exec,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
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>