Dotclear

Changeset 3094:b8ba079a19f4 for admin


Ignore:
Timestamp:
09/20/15 18:35:34 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Shortcut access to the upload file div on media page (if available)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/media.php

    r3034 r3094  
    371371 
    372372if ($post_id) { 
    373      echo '<div class="form-note info"><p>'.sprintf(__('Choose a file to attach to entry %s by clicking on %s.'), 
     373     echo '<div class="form-note info"><p>'.sprintf(__('Choose a file to attach to entry %s by clicking on %s'), 
    374374          '<a href="'.$core->getPostAdminURL($post_type,$post_id).'">'.html::escapeHTML($post_title).'</a>', 
    375           '<img src="images/plus.png" alt="'.__('Attach this file to entry').'" />').'</p></div>'; 
     375          '<img src="images/plus.png" alt="'.__('Attach this file to entry').'" />'); 
     376     if ($core_media_writable) { 
     377          echo ' '.__('or').' '.sprintf('<a href="#fileupload">%s</a>',__('upload a new file')); 
     378     } 
     379     echo '</p></div>'; 
    376380} 
    377381if ($popup) { 
    378      echo '<div class="info"><p>'.sprintf(__('Choose a file to insert into entry by clicking on %s.'), 
    379           '<img src="images/plus.png" alt="'.__('Attach this file to entry').'" />').'</p></div>'; 
     382     echo '<div class="info"><p>'.sprintf(__('Choose a file to insert into entry by clicking on %s'), 
     383          '<img src="images/plus.png" alt="'.__('Attach this file to entry').'" />'); 
     384     if ($core_media_writable) { 
     385          echo ' '.__('or').' '.sprintf('<a href="#fileupload">%s</a>',__('upload a new file')); 
     386     } 
     387     echo '</p></div>'; 
    380388} 
    381389 
Note: See TracChangeset for help on using the changeset viewer.

Sites map