false, 'filecount' => 1, 'delete-enabled' => true, 'delete-force-confirm' => true, 'retry-enable-auto' => true, 'retry-max-auto-attempts' => 1, 'retry-auto-attempt-delay' => 2, 'auto-upload' => false, ); $options = ( ! empty( $this->field['options'] ) ) ? $this->field['options'] : array(); $this->field['options'] = wp_parse_args( $options, $defaults ); } public function output() { echo $this->element_before(); ?> field['options']['maxsize'] ) && Exopite_Simple_Options_Framework_Upload::file_upload_max_size() >= $this->field['options']['maxsize'] ) { $maxsize = $this->field['options']['maxsize']; } $allowed_mime_types = ( gettype( Exopite_Simple_Options_Framework_Upload::allowed_mime_types() ) == 'array' ) ? implode( ',', Exopite_Simple_Options_Framework_Upload::allowed_mime_types() ) : Exopite_Simple_Options_Framework_Upload::allowed_mime_types(); if ( isset( $this->field['options']['allowed'] ) && is_array( $this->field['options']['allowed'] ) ) { $allowed_mime_types_array = explode( ',', $allowed_mime_types ); $allowed_mime_types_array = array_intersect( $allowed_mime_types_array, $this->field['options']['allowed'] ); $allowed_mime_types = implode( ',', $allowed_mime_types_array ); } ?>
field['options']['attach'] && $this->config['type'] == 'metabox' ) ? 'data-postid="' . get_the_ID() . '" ' : ''; echo 'data-ajaxurl="' . site_url( 'wp-admin/admin-ajax.php' ) . '" '; echo 'data-delete-enabled="' . $this->field['options']['delete-enabled'] . '" '; echo 'data-delete-force-confirm="' . $this->field['options']['delete-force-confirm'] . '" '; echo 'data-retry-enable-auto="' . $this->field['options']['retry-enable-auto'] . '" '; echo 'data-retry-max-auto-attempts="' . $this->field['options']['retry-max-auto-attempts'] . '" '; echo 'data-retry-auto-attempt-delay="' . $this->field['options']['retry-auto-attempt-delay'] . '" '; echo 'data-auto-upload="' . $this->field['options']['auto-upload'] . '" '; ?>>
field['options']['filecount'] . '
'; echo esc_attr__( 'Max file upload size: ', 'exopite-sof' ) . number_format( (float) ( Exopite_Simple_Options_Framework_Upload::file_upload_max_size() / 1048576 ), 2, '.', '' ) . 'Mb

'; // echo '' . esc_attr__( 'To increase file upload limit in the standard built-in WordPress media uploader up as large as available disk space allows, you could use', 'exopite-sof' ) . ' Tuxedo Big File Uploads ' . esc_attr__( 'Plugin', 'exopite-sof' ) . ''; ?>
element_after(); } public static function enqueue( $args ) { if ( ! wp_script_is( 'fine-uploader' ) ) { /** * https://fineuploader.com/ */ $resources = array( array( 'name' => 'fine-uploader', 'fn' => 'fine-uploader-new.min.css', 'type' => 'style', 'dependency' => array(), 'version' => '5.15.5', 'attr' => 'all', ), array( 'name' => 'fine-uploader', 'fn' => 'jquery.fine-uploader.min.js', 'type' => 'script', 'dependency' => array(), 'version' => '5.15.5', 'attr' => true, ), array( 'name' => 'exopite-sof-fine-uploader-loader', 'fn' => 'loader-fine-uploader.min.js', 'type' => 'script', 'dependency' => array( 'fine-uploader' ), 'version' => '', 'attr' => true, ), ); parent::do_enqueue( $resources, $args ); } } } }