Example #1
0
 public function widget($args, $instance)
 {
     extract($args);
     echo View::render('agencies/widget.twig', array('title' => apply_filters('widget_title', $instance['title']), 'count' => $instance['count'], 'agencies' => aviators_agencies_get($instance['count']), 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
 }
Example #2
0
    print __('Agency', 'aviators');
    ?>
</label>
			</th>
			<td>
				<?php 
    $mb->the_field('agency');
    ?>

				<select name="<?php 
    $mb->the_name();
    ?>
">
					<option value="">---</option>
					<?php 
    foreach (aviators_agencies_get() as $agency) {
        ?>
						<option value="<?php 
        echo $agency->ID;
        ?>
" <?php 
        $mb->the_select_state($agency->ID);
        ?>
><?php 
        echo $agency->post_title;
        ?>
</option>
					<?php 
    }
    ?>
				</select>