WordPress.org

Plugin Directory

Changeset 483974


Ignore:
Timestamp:
01/03/12 18:01:00 (2 years ago)
Author:
ramon fincken
Message:

New version

Location:
see-attachments
Files:
46 added
2 edited

Legend:

Unmodified
Added
Removed
  • see-attachments/trunk/readme.txt

    r394364 r483974  
    3232 
    3333== Changelog == 
     34= 1.5.1 = 
     35Added: Better layout, thanks to Derk at http://www.inpoint.nl 
     36 
     37 
    3438= 1.5 = 
    3539Bugfix: Framework did not work on multisite, is_admin() problem.<br>If anyone could help me with that ? :) 
  • see-attachments/trunk/see-attachments.php

    r394470 r483974  
    44 Plugin URI: http://www.mijnpress.nl 
    55 Description: Shows all attachments for a post or page 
    6  Version: 1.5 
     6 Version: 1.5.1 
    77 Author: Ramon Fincken 
    88 Author URI: http://www.mijnpress.nl 
     
    6969            $i++; 
    7070            echo "\n"; 
    71             echo '<div style="float: left; border: 1px solid; height: 190px; margin-bottom: 5px; margin-right: 5px;">'; 
    72             echo '<p>Attachment '.$i.'</p>'; 
     71            echo '<div style="float: left; border: 1px solid #dfdfdf; margin-bottom: 5px; margin-right: 5px;"><div style="border: 1px solid #fff; padding: 0 5px 0 5px; min-width: 120px; height: 170px; ">'; 
     72            echo '<p style="margin-bottom: 0;"><small>Bijlage '.$i.'</small></p>'; 
    7373 
    7474            $icon = wp_mime_type_icon($attachment->post_mime_type); 
     
    9292 
    9393            $title = apply_filters('the_title', $attachment->post_title); 
    94             $icon_html = '<a href="'.$attachment->guid.'" target="_blank"><img src="'.$icon.'" style="max-width: 128px; max-height: 128px;"></a>'; 
     94            $icon_html = '<a href="'.$attachment->guid.'" target="_blank"><img src="'.$icon.'" style="max-width: 80px; max-height: 80px;"></a>'; 
    9595            $href_human = end(explode('uploads/',$attachment->guid)); 
    9696             
    97             echo '<p><strong>'.$title.'</strong></p>'; 
    98             echo '<p>Link: <br/><a href="'.$attachment->guid.'" target="_blank">'.$href_human.'</a></p>'; 
    99             echo '<p>Type or preview:<br/>'.$icon_html.'</p>'; 
     97            echo '<p style="margin: 0;"><strong>'.$title.'</strong></p>'; 
     98            echo '<p style="line-height: 12px;"><small>Link: <br/><a href="'.$attachment->guid.'" target="_blank">'.$href_human.'</a></small></p>'; 
     99            echo '<p style="text-align: center; padding-top: 5px;">'.$icon_html.'</p>'; 
    100100             
    101             echo '</div> <!-- end div for attachment -->'; 
     101            echo '</div></div><!-- end div for attachment -->'; 
    102102        } 
    103103        echo '<div style="clear: both;"></div>'; 
     
    105105    else 
    106106    { 
    107         echo '<div style="clear: both;">'.__('No attachments found').'</div>'; 
     107        echo '<div style="clear: both;">'.__('Geen bijlages gevonden.').'</div>'; 
    108108    } 
    109109} 
     
    113113    $post_types=get_post_types('','names');  
    114114    foreach ($post_types as $post_type ) { 
    115         add_meta_box( 'plugin_see_attachments_sectionid', __( 'See attachments', 'plugin_see_attachments' ), 'plugin_see_attachments_inner_custom_box', $post_type ); 
     115        add_meta_box( 'plugin_see_attachments_sectionid', __( 'Bijlages', 'plugin_see_attachments' ), 'plugin_see_attachments_inner_custom_box', $post_type ); 
    116116    }   
    117117} 
Note: See TracChangeset for help on using the changeset viewer.