Exemplo n.º 1
0
    $selected = null;
}
echo '<span class="label">Year</span><span class="value">' . $selected . '</span>';
?>
						<div class="swap">
							<div class="icon default"></div>
							<div class="icon hover"></div>
						</div>
					</div>
					<div class="select link dropdown program" data-filter="program" data-slug="<?php 
echo $sponsor_slug;
?>
">
						<?php 
if ($program_param) {
    $selected = ': ' . get_program_title($program);
} else {
    $selected = null;
}
echo '<span class="label">Residency Program</span><span class="value">' . $selected . '</span>';
?>
						<div class="swap">
							<div class="icon default"></div>
							<div class="icon hover"></div>
						</div>
					</div>
					<div class="select link dropdown type" data-filter="type" data-slug="<?php 
echo $sponsor_slug;
?>
">
						<?php 
Exemplo n.º 2
0
$residency_programs = array('international', 'ground_floor');
foreach ($residency_programs as $program) {
    if ($short_slug == 'current' || $page_type == 'sponsor') {
        $program_count = get_resident_count('program', $program, $count_query);
    } else {
        $program_count = true;
    }
    if ($program_count) {
        $classes = $program;
        if ($program_param == $program) {
            $classes .= ' selected';
            $remove = true;
        } else {
            $remove = false;
        }
        $program_title = get_program_title($program);
        $filter_url = query_url('program', $program, $page_url, $short_slug, $remove);
        echo '<div class="option ' . $classes . '">';
        echo '<a href="' . $filter_url . '" data-value="' . $program . '">';
        echo '<span class="value">' . $program_title . '</span>';
        echo '<div class="swap">';
        echo '<div class="icon default"></div>';
        echo '<div class="icon hover"></div>';
        echo '</div>';
        echo '</a>';
        echo '</div>';
    }
}
?>
	</div>
</div>
Exemplo n.º 3
0
function resident_column_select()
{
    global $wpdb;
    global $pagenow;
    if (is_admin() && $_GET['post_type'] == 'resident' && $pagenow == 'edit.php') {
        $residency_programs = array('international', 'ground_floor');
        echo '<select name="residency_program">';
        echo '<option value="">' . __('Residency Program', 'textdomain') . '</option>';
        foreach ($residency_programs as $value) {
            $selected = !empty($_GET['residency_program']) && $_GET['residency_program'] == $value ? 'selected="selected"' : '';
            echo '<option ' . $selected . 'value="' . $value . '">' . get_program_title($value) . '</option>';
        }
        echo '</select>';
    }
}