· 4 years ago · May 17, 2021, 12:32 PM
1<?php
2/**
3 * Setting page.
4 *
5 * @package ING\Weather
6 * @subpackage ING\Weather\Templates
7 */
8?>
9
10<div class="wrap">
11 <h2><?php esc_html_e( 'ING Weather', 'ing-weather' ); ?></h2>
12
13 <form method="post" action="options.php">
14 <?php
15 /**
16 * Nonces, actions and referrers.
17 */
18 settings_fields( 'ing-weather' );
19 ?>
20
21 <table class="form-table">
22 <tbody>
23 <tr>
24 <th scope="row">
25 <label>
26 <?php esc_html_e( 'Usage:', 'ing-weather' ); ?>
27 </label>
28 </th>
29 <td>
30 <?php
31 printf(
32 esc_html__( 'Use the following shortcode: %s[ing-weather city="london" country="uk" state=""]%s', 'ing-weather' ),
33 '<code>',
34 '</code>'
35 );
36 ?>
37 </td>
38 </tr>
39
40 <!-- Weather API Key -->
41 <tr>
42 <th scope="row">
43 <label for="ing_weather_api_key">
44 <?php esc_html_e( 'API Key', 'wp-currency-exchange-rate' ); ?>
45 </label>
46 </th>
47 <td>
48 <input type="text"
49 name="ing_weather_api_key"
50 value="<?php echo esc_attr( $api_key ); ?>" />
51 <span class="description">
52 <?php
53 printf(
54 'Get your API key %shere%s.',
55 '<a href="https://home.openweathermap.org/users/sign_up" target="_blank">',
56 '</a>'
57 );
58 ?>
59 </span>
60 </td>
61 </tr>
62 <!-- ./ Weather API Key -->
63 </tbody>
64 </table>
65
66 <?php
67 submit_button();
68 ?>
69 </form>
70</div>
71<?php