PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
qode-framework
/
inc
/
common
/
fields
<?php class QodeFrameworkFieldFile extends QodeFrameworkFieldType { public function render_field() { ?> <?php $has_image = ! empty( $this->params['value'] ) ? true : false; ?> <div class="qodef-image-uploader" data-file="yes" data-allowed-type='<?php echo esc_attr( $this->args['allowed_type'] ); ?>'> <div class="qodef-image-thumb <?php echo ! $has_image ? 'qodef-hide' : ''; ?>"> <?php if ( '' !== $this->params['value'] ) { $image_src = wp_get_attachment_image_src( $this->params['value'], 'full', true ); ?> <img class="qodef-file-image" src="<?php echo esc_url( $image_src[0] ); ?>" alt="<?php esc_attr_e( 'File Thumbnail', 'qode-framework' ); ?>"/> <div class="qodef-file-name"><?php echo basename( get_attached_file( $this->params['value'] ) ); ?></div> <?php } ?> </div> <div class="qodef-image-meta-fields qodef-hide"> <input type="hidden" class="qodef-field qodef-image-upload-id" name="<?php echo esc_attr( $this->name ); ?>" value="<?php echo esc_attr( $this->params['value'] ); ?>"/> </div> <a class="qodef-image-upload-btn" href="javascript:void(0)" data-frame-title="<?php esc_attr_e( 'Select File', 'qode-framework' ); ?>" data-frame-button-text="<?php esc_attr_e( 'Select File', 'qode-framework' ); ?>"><?php esc_html_e( 'Upload', 'qode-framework' ); ?></a> <a href="javascript: void(0)" class="qodef-image-remove-btn qodef-hide"><?php esc_html_e( 'Remove', 'qode-framework' ); ?></a> </div> <?php } }
[-] class-qodeframeworkfielddate.php
[edit]
[-] class-qodeframeworkfieldtextarea.php
[edit]
[-] class-qodeframeworkfieldicon.php
[edit]
[-] class-qodeframeworkfieldaddress.php
[edit]
[+]
..
[-] class-qodeframeworkfieldfile.php
[edit]
[-] class-qodeframeworkfieldselect.php
[edit]
[-] class-qodeframeworkfieldimage.php
[edit]
[-] class-qodeframeworkfieldfont.php
[edit]
[-] class-qodeframeworkfieldtype.php
[edit]
[-] class-qodeframeworkfieldyesno.php
[edit]
[-] class-qodeframeworkfieldcolor.php
[edit]
[-] class-qodeframeworkfieldtextareasvg.php
[edit]
[-] class-qodeframeworkfieldgooglefont.php
[edit]
[-] class-qodeframeworkfieldiconpack.php
[edit]
[-] class-qodeframeworkfieldcheckbox.php
[edit]
[-] class-qodeframeworkfieldpassword.php
[edit]
[-] class-qodeframeworkfieldradio.php
[edit]
[-] class-qodeframeworkfieldtextareahtml.php
[edit]
[-] class-qodeframeworkfieldtext.php
[edit]
[-] class-qodeframeworkfieldhidden.php
[edit]