Plugin Directory

Changeset 1450455


Ignore:
Timestamp:
07/07/2016 07:43:10 AM (10 years ago)
Author:
wordgenie
Message:

Added support to display uploaded file in backend for Event espresso version above 4.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • files-addon-for-event-espresso-4/trunk/EE_File_Display_Strategy.php

    r1448510 r1450455  
    3131    public function display()
    3232    {
    33      
     33        $value = $this->_input->raw_value_in_form();
    3434        $input ='<input type="text">';
    3535        $input = '<input type="'. $this->get_type() .'"';
     
    5151        $input .= $this->_input->html_other_attributes();
    5252        $input .= '/>';
    53      
     53        if ($value != '' ) {
     54            $input .= "<br><img src='$value' style='padding:3px;border:1px solid #ccc;height:100px;width:100px'>";
     55        }
    5456        return $input;
    5557    }
Note: See TracChangeset for help on using the changeset viewer.