egg'), 'callback' => array($this, 'render_input'), 'default' => 6, 'validator' => array( 'trim', 'absint', ), 'section' => 'default', ), 'itemsType' => array( 'title' => __('Items type', 'content-egg'), 'callback' => array($this, 'render_dropdown'), 'dropdown_options' => array( 'voucher' => __('Vouchers', 'content-egg'), 'offer' => __('Offers', 'content-egg'), 'text' => __('Text Links', 'content-egg'), ), 'default' => 'voucher', 'metaboxInit' => true, ), 'materialBannerDimensionID' => array( 'title' => __('Banner Dimension ID', 'content-egg'), 'callback' => array($this, 'render_input'), 'default' => '', 'validator' => array( 'trim', ), 'section' => 'default', ), 'campaignID' => array( 'title' => __('Campaign ID', 'content-egg'), 'callback' => array($this, 'render_input'), 'default' => '', 'validator' => array( 'trim', ), 'section' => 'default', ), 'campaignCategoryID' => array( 'title' => __('Campaign Category ID', 'content-egg'), 'callback' => array($this, 'render_input'), 'default' => '', 'validator' => array( 'trim', ), 'section' => 'default', ), 'includeUnsubscribedCampaigns' => array( 'title' => __('Unsubscribed campaigns', 'content-egg'), 'description' => __('Include unsubscribed campaigns.', 'content-egg'), 'callback' => array($this, 'render_checkbox'), 'default' => false, 'section' => 'default', ), 'save_img' => array( 'title' => __('Save images', 'content-egg'), 'description' => __('Save images on server', 'content-egg'), 'callback' => array($this, 'render_checkbox'), 'default' => false, 'section' => 'default', ), ); $options = array_merge(parent::options(), $options); return self::moveRequiredUp($options); } }