<p>
    <label for="<?php echo $widget->get_field_id('post_type'); ?>"><?php _e('Post type', THEMEMAKERS_THEME_FOLDER_NAME) ?>:</label>
    <select id="<?php echo $widget->get_field_id('post_type'); ?>" name="<?php echo $widget->get_field_name('post_type'); ?>" class="widefat">
        <?php
        $current_post_type = $instance['post_type'];
        $post_types = array("post", "games", "release", "review");
        ?>
        <?php if (!empty($post_types)) : ?>
            <?php foreach ($post_types as $post_type) : ?>
                <option <?php echo($current_post_type == $post_type ? "selected" : "") ?> value="<?php echo $post_type ?>"><?php echo $post_type ?></option>
            <?php endforeach; ?>
        <?php endif; ?>
    </select>
</p>
<p>
    <?php
    $checked = "";
    if (@$instance['show_daily_archive'] == 'true') {
        $checked = 'checked="checked"';
    }
    ?>
    <input type="checkbox" id="<?php echo $widget->get_field_id('show_daily_archive'); ?>" name="<?php echo $widget->get_field_name('show_daily_archive'); ?>" value="true" <?php echo $checked; ?> />
    <label for="<?php echo $widget->get_field_id('show_daily_archive'); ?>"><?php _e('Show daily archive', THEMEMAKERS_THEME_FOLDER_NAME) ?></label>
    <br />
    <?php
    $checked = "";
    if (@$instance['show_weekly_archive'] == 'true') {
        $checked = 'checked="checked"';
    }
    ?>
    <input type="checkbox" id="<?php echo $widget->get_field_id('show_weekly_archive'); ?>" name="<?php echo $widget->get_field_name('show_weekly_archive'); ?>" value="true" <?php echo $checked; ?> />
    <label for="<?php echo $widget->get_field_id('show_weekly_archive'); ?>"><?php _e('Show weekly archive', THEMEMAKERS_THEME_FOLDER_NAME) ?></label>
    <br />
    <?php
    $checked = "";
    if (@$instance['show_monthly_archive'] == 'true') {
        $checked = 'checked="checked"';
    }
    ?>
    <input type="checkbox" id="<?php echo $widget->get_field_id('show_monthly_archive'); ?>" name="<?php echo $widget->get_field_name('show_monthly_archive'); ?>" value="true" <?php echo $checked; ?> />
    <label for="<?php echo $widget->get_field_id('show_monthly_archive'); ?>"><?php _e('Show monthly archive', THEMEMAKERS_THEME_FOLDER_NAME) ?></label>
    <br />
    <?php
    $checked = "";
    if (@$instance['show_yearly_archive'] == 'true') {
        $checked = 'checked="checked"';
    }
    ?>
    <input type="checkbox" id="<?php echo $widget->get_field_id('show_yearly_archive'); ?>" name="<?php echo $widget->get_field_name('show_yearly_archive'); ?>" value="true" <?php echo $checked; ?> />
    <label for="<?php echo $widget->get_field_id('show_yearly_archive'); ?>"><?php _e('Show yearly archive', THEMEMAKERS_THEME_FOLDER_NAME) ?></label>
</p>

<p>
    <label for="<?php echo $widget->get_field_id('day_limit'); ?>"><?php _e('Day limit', THEMEMAKERS_THEME_FOLDER_NAME) ?>:</label>
    <input class="widefat" type="text" id="<?php echo @$widget->get_field_id('day_limit'); ?>" name="<?php echo @$widget->get_field_name('day_limit'); ?>" value="<?php echo @$instance['day_limit']; ?>" />
	<br />
    <label for="<?php echo $widget->get_field_id('week_limit'); ?>"><?php _e('Week limit', THEMEMAKERS_THEME_FOLDER_NAME) ?>:</label>
    <input class="widefat" type="text" id="<?php echo @$widget->get_field_id('week_limit'); ?>" name="<?php echo @$widget->get_field_name('week_limit'); ?>" value="<?php echo @$instance['week_limit']; ?>" />
	<br />
    <label for="<?php echo $widget->get_field_id('month_limit'); ?>"><?php _e('Month limit', THEMEMAKERS_THEME_FOLDER_NAME) ?>:</label>
    <input class="widefat" type="text" id="<?php echo @$widget->get_field_id('month_limit'); ?>" name="<?php echo @$widget->get_field_name('month_limit'); ?>" value="<?php echo @$instance['month_limit']; ?>" />
    <br />
    <label for="<?php echo $widget->get_field_id('year_limit'); ?>"><?php _e('Year limit', THEMEMAKERS_THEME_FOLDER_NAME) ?>:</label>
    <input class="widefat" type="text" id="<?php echo @$widget->get_field_id('year_limit'); ?>" name="<?php echo @$widget->get_field_name('year_limit'); ?>" value="<?php echo @$instance['year_limit']; ?>" />
</p>


