<?php
if (!defined('ABSPATH')) {
    exit;
}
$templates = new Chama_Template_Loader;
$slug = get_query_var('slug');
if ($slug) {
    $templates->get_template_part('content', 'campaigndetail');
} else {
    $templates->get_template_part('content', 'campaignlist');
}
