<?php
require_once( MAXHOST_ADMIN_PATH . 'options/fields/select/field_select.php' );
class Redux_Options_menu_select extends Redux_Options_select  {

    /**
     * Field Constructor.
     *
     * Required - must call the parent constructor, then assign field and value to vars, and obviously call the render field function
     *
     * @since Redux_Options 1.0.0
    */
    function __construct($parent, $field = array(), $value = '') {
        $this->field = $field;
		$this->value = $value;
		$this->args = $parent->args;
		
        $menus = wp_get_nav_menus($args);
        if($menus) {
            foreach ($menus as $menu) {
				$this->field['options'][$menu->term_id] = $menu->name;
			}
		}
    }
}
