Beispiel #1
0
    echo $media . $description;
}
echo '<div class="ch_actions ch_clear" style="border-top-color: ' . $border_color . '">
    <div class="ch_actions_inner">';
if (!$contest->is_expired() && $contest->is_started()) {
    if (!empty($participant) && $participant->status != 'not_confirmed') {
        echo CH_Widget::get_template('actions_submit');
    } else {
        if (!empty($participant) && $participant->status == 'not_confirmed') {
            echo CH_Widget::get_template('double_optin');
        } else {
            echo CH_Widget::get_template('actions');
        }
    }
    if ($contest->ch_countdown_field == '1') {
        echo CH_Widget::get_template('countdown');
    }
    if (!empty($participant) && $participant->status != 'not_confirmed') {
        echo '<div class="ch_contact_message">' . __('Winner(s) will be contacted by email.', 'contesthopper') . '</div>';
    }
} else {
    if (!$contest->is_started()) {
        echo '<div class="ch_error">' . __('Contest has not yet started.', 'contesthopper') . '</div>';
    } else {
        echo '<div class="ch_error">' . __('This contest expired.', 'contesthopper') . '</div>';
    }
}
echo '</div></div>
<div class="ch_footer">
        <span class="ch_rules_disclaimer">';
if ($contest->ch_disclaimer_rules_type != 'none') {