Dotclear


Ignore:
Timestamp:
09/01/13 22:03:36 (11 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Media manager: actions are displaying as inline-blocks, almost as medias blocks. More harmonization, more enlightenment of backup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/media.php

    r1678 r1681  
    231231$core->auth->user_prefs->addWorkspace('interface'); 
    232232$user_ui_enhanceduploader = $core->auth->user_prefs->interface->enhanceduploader; 
    233  
    234233 
    235234if (!isset($core->media)) { 
     
    343342if ($core_media_writable) 
    344343{ 
    345      echo '<div class="two-cols">'; 
     344     echo  
     345     '<h3>'.sprintf(__('In %s:'),($d == '' ? '“'.__('Media manager').'”' : '“'.$d.'”')).'</h3>'. 
     346     '<div class="media-action-box">'; 
    346347      
    347348     if ($user_ui_enhanceduploader) { 
    348349          echo 
    349           '<div class="col enhanced_uploader">'; 
     350          '<div class="enhanced_uploader">'; 
    350351     } else { 
    351352          echo 
    352           '<div class="col">'; 
    353      } 
    354  
    355      echo 
    356      '<div class="fieldset">'. 
    357      '<h3>'.__('Add files').'</h3>'. 
     353          '<div>'; 
     354     } 
     355 
     356     echo 
     357     '<h4>'.__('Add files').'</h4>'. 
    358358     '<p>'.__('Please take care to publish media that you own and that are not protected by copyright.').'</p>'. 
    359359     '<p class="max-sizer form-note info">&nbsp;'.__('Maximum file size allowed:').' '.files::size(DC_MAX_UPLOAD_SIZE).'</p>'. 
     
    391391     '<p style="clear:both;">'.form::hidden(array('d'),$d).'</p>'. 
    392392     '</form>'. 
    393      '</div></div>'; 
    394  
    395      echo 
    396      '<div class="col">'. 
    397      '<form class="clear fieldset" action="'.html::escapeURL($page_url).'" method="post">'. 
     393     '</div>'. 
     394     '</div>'; 
     395 
     396     echo 
     397     '<div class="media-action-box">'. 
     398     '<form action="'.html::escapeURL($page_url).'" method="post">'. 
    398399     '<div id="new-dir-f">'. 
    399      '<h3>'.__('New directory').'</h3>'. 
     400     '<h4>'.__('Create new directory').'</h4>'. 
    400401     $core->formNonce(). 
    401402     '<p><label for="newdir">'.__('Directory Name:').'</label>'. 
     
    404405     form::hidden(array('d'),html::escapeHTML($d)).'</p>'. 
    405406     '</div>'. 
    406      '</form></div>'; 
    407       
    408      echo '</div>'; 
    409 } 
     407     '</form>'. 
     408     '</div>'; 
     409     } 
    410410 
    411411# Empty remove form (for javascript actions) 
    412412echo 
    413 '<form id="media-remove-hide" action="'.html::escapeURL($page_url).'" method="post"><div class="clear">'. 
     413'<form id="media-remove-hide" action="'.html::escapeURL($page_url).'" method="post" class="hidden">'. 
     414'<div>'. 
    414415form::hidden('rmyes',1).form::hidden('d',html::escapeHTML($d)). 
    415416form::hidden('remove',''). 
    416417$core->formNonce(). 
    417 '</div></form>'; 
     418'</div>'. 
     419'</form>'; 
    418420 
    419421# Get zip directory 
     
    422424{ 
    423425     echo 
    424      '<p class="zip-dl"><a class="submit" href="'.html::escapeURL($page_url).'&amp;zipdl=1">'. 
    425      __('Download this directory as a zip file').'</a></p>'; 
     426     '<div class="media-action-box">'. 
     427     '<h4>'.__('Backup content').'</h4>'. 
     428     '<p>'.__('Compress this directory with its content as a zip file and download it.').'</p>'. 
     429     '<p><a class="submit" href="'.html::escapeURL($page_url).'&amp;zipdl=1">'. 
     430     __('Download').'</a></p>'. 
     431     '</div>'; 
    426432} 
    427433 
Note: See TracChangeset for help on using the changeset viewer.

Sites map