-
Notifications
You must be signed in to change notification settings - Fork 1
/
coveo-settings.php
32 lines (32 loc) · 1.51 KB
/
coveo-settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php function coveo_options_page()
{
?>
<div>
<?php screen_icon(); ?>
<h2>Coveo Settings</h2>
<form method="post" action="options.php">
<?php settings_fields( 'coveo_options_group' ); ?>
<h3>General Settings</h3>
<table class="form-table">
<tr>
<th scope="row"><label for="coveo_platform_url">Organization ID</label></th>
<td><input class="regular-text" type="text" id="coveo_platform_url" name="coveo_platform_url" value="<?php echo get_option('coveo_platform_url'); ?>" /></td>
</tr>
<tr>
<th scope="row"><label for="coveo_organization_id">Organization ID</label></th>
<td><input class="regular-text" type="text" id="coveo_organization_id" name="coveo_organization_id" value="<?php echo get_option('coveo_organization_id'); ?>" /></td>
</tr>
<tr>
<th scope="row"><label for="coveo_api_key">API Key</label></th>
<td><input class="regular-text" type="text" id="coveo_api_key" name="coveo_api_key" value="<?php echo get_option('coveo_api_key'); ?>" /></td>
</tr>
<tr>
<th scope="row"><label for="coveo_ui_version">Search UI version</label></th>
<td><input class="regular-text" type="text" id="coveo_ui_version" name="coveo_ui_version" value="<?php echo get_option('coveo_ui_version'); ?>" /></td>
</tr>
</table>
<?php submit_button(); ?>
</form>
</div>
<?php
} ?>