<?php

$content = '<link rel="stylesheet" href="/app/plugins/ftm-geo-target/themes/old_default/default.css" />';

if("[TABLE_TITTLE| ]" !== " "){
    $content .= '<h2>[TABLE_TITTLE| ]</h2>';    
}

$content .= '<table class="nt_dsg center-block nt_dsg_small">
    <thead>
    <tr>
        <td class="nth_rank">Rank</td>
        <td class="nth_site">Gambling Site</td>
        <td class="nth_bonus">Deposit Bonus</td>
        <td class="nth_offers">Products</td>
        <td class="nth_sgnup">Get Started</td>
    </tr>
    </thead>
    <tbody>';
[SITES-REPEATER]
    if([COUNT] == 1) {
        $content .= '<tr class="nt_row ">
        <td class="nt_rank"><span class="arrow_box">#[COUNT]</span></td>
        <td class="nt_room"><img alt="[LOGO_ALT]" class="img-responsive center-block" src="[LOGO_URL]"/><div>[SITE_NAME]</div></td>
        <td class="nt_bonus">100% Up To  <strong>€1000</strong></td>
        <td class="nt_offers">[SITE_DETAILS]</td>
        <td class="nt_sgnup"><a target="_blank" href="[VISIT_LINK1]" class="sgnup_btn">Visit Site</a></td>
    </tr>';
    }
    else{
        $content .= '<tr class="nt_row ">
        <td class="nt_rank"><span class="arrow_box">#[COUNT]-s</span></td>
        <td class="nt_room"><img alt="[LOGO_ALT]" class="img-responsive center-block" src="[LOGO_URL]"/><div>[SITE_NAME]</div></td>
        <td class="nt_bonus">100% Up To  <strong>€1000</strong></td>
        <td class="nt_offers">[SITE_DETAILS]</td>
        <td class="nt_sgnup"><a target="_blank" href="[VISIT_LINK1]" class="sgnup_btn">Visit Site</a></td>
    </tr>';
    }
    [/SITES-REPEATER]

    $content .= '</tbody>
        </table>';
return $content;
?>
