get_contents( $fa_json_file ), true ); } foreach ( $tpl_fa_json["icons"] as $icon ) { $fa_icons[$icon["id"]] = $icon["name"]; } $args["values"] = array_merge( array( '' => __( 'Select an Icon', 'tpl' ) ), $fa_icons ); if ( !isset( $args["admin_class"] ) ) { $args["admin_class"] = ''; } $args["admin_class"] .= ' tpl-dt-select'; parent::__construct( $args ); } // Formats the option into value public function format_option ( $id, $args = array() ) { $result = ''; if ( isset( $args["url"] ) && $args["url"] != '' ) { $result .= '