web/wp-admin/options-media.php
branchwordpress
changeset 132 4d4862461b8d
parent 109 03b0d1493584
equal deleted inserted replaced
131:a4642baaf829 132:4d4862461b8d
    42 </td>
    42 </td>
    43 </tr>
    43 </tr>
    44 
    44 
    45 <tr valign="top">
    45 <tr valign="top">
    46 <th scope="row"><?php _e('Medium size') ?></th>
    46 <th scope="row"><?php _e('Medium size') ?></th>
    47 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Medium size') ?></span></legend>
    47 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Medium size'); ?></span></legend>
    48 <label for="medium_size_w"><?php _e('Max Width'); ?></label>
    48 <label for="medium_size_w"><?php _e('Max Width'); ?></label>
    49 <input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" class="small-text" />
    49 <input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" class="small-text" />
    50 <label for="medium_size_h"><?php _e('Max Height'); ?></label>
    50 <label for="medium_size_h"><?php _e('Max Height'); ?></label>
    51 <input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" class="small-text" />
    51 <input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" class="small-text" />
    52 </fieldset></td>
    52 </fieldset></td>
    53 </tr>
    53 </tr>
    54 
    54 
    55 <tr valign="top">
    55 <tr valign="top">
    56 <th scope="row"><?php _e('Large size') ?></th>
    56 <th scope="row"><?php _e('Large size') ?></th>
    57 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Large size') ?></span></legend>
    57 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Large size'); ?></span></legend>
    58 <label for="large_size_w"><?php _e('Max Width'); ?></label>
    58 <label for="large_size_w"><?php _e('Max Width'); ?></label>
    59 <input name="large_size_w" type="text" id="large_size_w" value="<?php form_option('large_size_w'); ?>" class="small-text" />
    59 <input name="large_size_w" type="text" id="large_size_w" value="<?php form_option('large_size_w'); ?>" class="small-text" />
    60 <label for="large_size_h"><?php _e('Max Height'); ?></label>
    60 <label for="large_size_h"><?php _e('Max Height'); ?></label>
    61 <input name="large_size_h" type="text" id="large_size_h" value="<?php form_option('large_size_h'); ?>" class="small-text" />
    61 <input name="large_size_h" type="text" id="large_size_h" value="<?php form_option('large_size_h'); ?>" class="small-text" />
    62 </fieldset></td>
    62 </fieldset></td>
    63 </tr>
    63 </tr>
    64 
    64 
    65 <?php do_settings_fields('media', 'default'); ?>
    65 <?php do_settings_fields('media', 'default'); ?>
       
    66 </table>
       
    67 
       
    68 <h3><?php _e('Embeds') ?></h3>
       
    69 
       
    70 <table class="form-table">
       
    71 
       
    72 <tr valign="top">
       
    73 <th scope="row"><?php _e('Auto-embeds'); ?></th>
       
    74 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Attempt to automatically embed all plain text URLs'); ?></span></legend>
       
    75 <label for="embed_autourls"><input name="embed_autourls" type="checkbox" id="embed_autourls" value="1" <?php checked( '1', get_option('embed_autourls') ); ?>/> <?php _e('Attempt to automatically embed all plain text URLs'); ?></label>
       
    76 </fieldset></td>
       
    77 </tr>
       
    78 
       
    79 <tr valign="top">
       
    80 <th scope="row"><?php _e('Maximum embed size') ?></th>
       
    81 <td>
       
    82 <label for="embed_size_w"><?php _e('Width'); ?></label>
       
    83 <input name="embed_size_w" type="text" id="embed_size_w" value="<?php form_option('embed_size_w'); ?>" class="small-text" />
       
    84 <label for="embed_size_h"><?php _e('Height'); ?></label>
       
    85 <input name="embed_size_h" type="text" id="embed_size_h" value="<?php form_option('embed_size_h'); ?>" class="small-text" />
       
    86 <?php if ( !empty($content_width) ) echo '<br />' . __("If the width value is left blank, embeds will default to the max width of your theme."); ?>
       
    87 </td>
       
    88 </tr>
       
    89 
       
    90 <?php do_settings_fields('media', 'embeds'); ?>
    66 </table>
    91 </table>
    67 
    92 
    68 <?php do_settings_sections('media'); ?>
    93 <?php do_settings_sections('media'); ?>
    69 
    94 
    70 <p class="submit">
    95 <p class="submit">