Ooyala::settings_fields PHP Method

settings_fields() public method

Emit settings fields
public settings_fields ( )
    function settings_fields()
    {
        $option = $this->get_settings();
        ?>
		<table class="form-table" id="ooyala">
			<tr>
				<th scope="row"><label for="ooyala-apikey"><?php 
        esc_html_e("API Key", 'ooyala');
        ?>
</label></th>
				<td scope="row"><input type="text" name="ooyala[api_key]" class="widefat" id="ooyala-apikey" value="<?php 
        echo esc_attr($option['api_key']);
        ?>
" /></td>
			</tr>
			<tr>
				<th scope="row"><label for="ooyala-apisecret"><?php 
        esc_html_e("API Secret", 'ooyala');
        ?>
</label></th>
				<td scope="row"><input type="text" name="ooyala[api_secret]" class="widefat" id="ooyala-apisecret" value="<?php 
        echo esc_attr($option['api_secret']);
        ?>
" /></td>
			</tr>
			<tr>
				<td colspan="2">
					<p class="description"><?php 
        esc_html_e("You can obtain these values in the Ooyala Backlot administration area under 'Account > Settings'", 'ooyala');
        ?>
</p>
				</td>
			</tr>
			<tr>
				<th scope="row"><label for="ooyala-playerid"><?php 
        esc_html_e('Default Player ID', 'ooyala');
        ?>
</label></th>
				<td scope="row"><input type="text" name="ooyala[player_id]" class="widefat" id="ooyala-playerid" value="<?php 
        echo esc_attr($option['player_id']);
        ?>
" /></td>
			</tr>
			<tr>
				<th scope="row"><label for="ooyala-videowidth"><?php 
        esc_html_e('Default Video Width', 'ooyala');
        ?>
</label></th>
				<td scope="row"><input type="text" name="ooyala[video_width]" id="ooyala-videowidth" value="<?php 
        echo esc_attr($option['video_width']);
        ?>
" />px</td>
			</tr>
		</table>
	<?php 
    }