@@ 149-159 (lines=11) @@ | ||
146 | * |
|
147 | * @since 1.0.0 |
|
148 | */ |
|
149 | public function field_root_url() { |
|
150 | $root_url = \esc_url( $this->plugin->get_option( 'root_url' ) ); |
|
151 | ||
152 | ?> |
|
153 | <input name="<?php echo $this->plugin->get_option_key(); ?>[root_url]" type="text" value="<?php echo $root_url; ?>" |
|
154 | id="root_url" class="regular-text" aria-describedby="root_url-description"> |
|
155 | <p id="root_url-description" class="root_url description"> |
|
156 | <?php _e( 'Enter the address for your Redmine install.', 'redmine-embed' ); ?> |
|
157 | </p> |
|
158 | <?php |
|
159 | } |
|
160 | ||
161 | /** |
|
162 | * Display the configuration field for the Redmine API key. |
|
@@ 168-178 (lines=11) @@ | ||
165 | * |
|
166 | * @since 1.0.0 |
|
167 | */ |
|
168 | public function field_api_key() { |
|
169 | $api_key = \sanitize_text_field( $this->plugin->get_option( 'api_key' ) ); |
|
170 | ||
171 | ?> |
|
172 | <input name="<?php echo $this->plugin->get_option_key(); ?>[api_key]" type="text" value="<?php echo $api_key; ?>" |
|
173 | id="api_key" class="regular-text" aria-describedby="api_key-description"> |
|
174 | <p id="api_key-description" class="api_key description"> |
|
175 | <?php _e( 'Enter your Redmine API key. It may be found on the right-hand pane of your account page.', 'redmine-embed' ); ?> |
|
176 | </p> |
|
177 | <?php |
|
178 | } |
|
179 | ||
180 | } |