HomeHelpTrac

Changeset 15516 for trunk/templates


Ignore:
Timestamp:
09/20/11 02:56:38 (8 months ago)
Author:
Alexander Trofimov
Message:

Images Transcoding in Uploaders

Location:
trunk/templates/base
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/base/css/uploaders.css

    r15500 r15516  
    2424.bx-uploader-ghost-preview img { 
    2525    width:101px; 
    26     height:128px; 
    27  
     26    min-height:20px; 
     27    background-image:url(../images/loading-spinner.gif); 
     28    background-repeat:no-repeat; 
     29    background-position:center center; 
    2830    -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(rgba(0,0,0,0.4))); 
    2931} 
  • trunk/templates/base/scripts/BxBaseFormView.php

    r15497 r15516  
    703703 
    704704            } 
    705             $sUploaders .= $oUploader->getUploaderButton($sGhostTemplate, isset($aInput['multiple']) ? $aInput['multiple'] : true); 
     705            $aParams = array(); 
     706            if (isset($aInput['images_transcoder']) && $aInput['images_transcoder']) 
     707                $aParams = array('images_transcoder' => bx_js_string($aInput['images_transcoder'])); 
     708            $sUploaders .= $oUploader->getUploaderButton($sGhostTemplate, isset($aInput['multiple']) ? $aInput['multiple'] : true, $aParams); 
    706709        }                 
    707710 
  • trunk/templates/base/scripts/BxBaseUploaderHTML5.php

    r15497 r15516  
    2727     * @return HTML string  
    2828     */ 
    29     public function getUploaderButton($sGhostTemplate, $isMultiple = true) { 
    30         $s = parent::getUploaderButton($sGhostTemplate, $isMultiple); 
     29    public function getUploaderButton($sGhostTemplate, $isMultiple = true, $aParams = array()) { 
     30        $s = parent::getUploaderButton($sGhostTemplate, $isMultiple, $aParams); 
    3131 
    3232        $oTemplate = BxDolTemplate::getInstance(); 
  • trunk/templates/base/uploader_button_html5.html

    r15497 r15516  
    44            __uploader_instance_name__ = new BxDolUploaderHTML5('__engine__', '__storage_object__', '__uniq_id__', { 
    55                'multiple': __multiple__, 
     6                'images_transcoder' : '__images_transcoder__', 
    67                'template_error_msg': '<div class="bx-uploader-msg-err">{error}</div>',             
    78                'template_ghost': __template_ghost__ 
  • trunk/templates/base/uploader_button_simple.html

    r15497 r15516  
    44            __uploader_instance_name__ = new BxDolUploaderSimple('__engine__', '__storage_object__', '__uniq_id__', { 
    55                'multiple': __multiple__, 
     6                'images_transcoder' : '__images_transcoder__', 
    67                'template_error_msg': '<div class="bx-uploader-msg-err">{error}</div>', 
    78                'template_ghost': __template_ghost__ 
Note: See TracChangeset for help on using the changeset viewer.