Make WordPress Core


Ignore:
Timestamp:
10/13/2009 05:04:22 PM (15 years ago)
Author:
ryan
Message:

Embeds. Props Viper007Bond. see #10337

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-media.php

    r11761 r12023  
    4545<tr valign="top">
    4646<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>
    4848<label for="medium_size_w"><?php _e('Max Width'); ?></label>
    4949<input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" class="small-text" />
     
    5555<tr valign="top">
    5656<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>
    5858<label for="large_size_w"><?php _e('Max Width'); ?></label>
    5959<input name="large_size_w" type="text" id="large_size_w" value="<?php form_option('large_size_w'); ?>" class="small-text" />
     
    6464
    6565<?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('oEmbed'); ?></th>
     74<td><fieldset><legend class="screen-reader-text"><span><?php printf( __('Use <a href="%s">oEmbed</a> to assist in rich content embedding'), 'http://codex.wordpress.org/oEmbed' ); ?></span></legend>
     75<label for="embed_useoembed"><input name="embed_useoembed" type="checkbox" id="embed_useoembed" value="1" <?php checked( '1', get_option('embed_useoembed') ); ?>/> <?php printf( __('Use <a href="%s">oEmbed</a> to assist in rich content embedding'), 'http://codex.wordpress.org/oEmbed' ); ?></label>
     76</fieldset></td>
     77</tr>
     78
     79<tr valign="top">
     80<th scope="row"><?php _e('Auto-embeds'); ?></th>
     81<td><fieldset><legend class="screen-reader-text"><span><?php _e('Attempt to automatically embed all plain text URLs'); ?></span></legend>
     82<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>
     83</fieldset></td>
     84</tr>
     85
     86<tr valign="top">
     87<th scope="row"><?php _e('Embed size') ?></th>
     88<td>
     89<label for="embed_size_w"><?php _e('Width'); ?></label>
     90<input name="embed_size_w" type="text" id="embed_size_w" value="<?php form_option('embed_size_w'); ?>" class="small-text" />
     91<label for="embed_size_h"><?php _e('Height'); ?></label>
     92<input name="embed_size_h" type="text" id="embed_size_h" value="<?php form_option('embed_size_h'); ?>" class="small-text" />
     93<?php if ( !empty($content_width) ) echo '<br />' . __("If the width value is left blank, embeds will default to the max width of your theme."); ?>
     94</td>
     95</tr>
     96
     97<?php do_settings_fields('media', 'embeds'); ?>
    6698</table>
    6799
Note: See TracChangeset for help on using the changeset viewer.