@@ -43,22 +43,26 @@ public function render(): void
4343 $ value = implode ("\n" , Setting::array ($ this ->getKey ()));
4444 $ currentIp = $ _SERVER ['REMOTE_ADDR ' ];
4545 ?>
46- <?php (new LabelComponent (value: $ this ->getLabel (), docs: $ this ->docs , for: esc_attr ($ this ->getKey ())))() ?>
46+ <?php (new LabelComponent (
47+ value: $ this ->getLabel (),
48+ docs: $ this ->docs ,
49+ for: esc_attr ($ this ->getKey ()))
50+ )(); ?>
4751 <div class="mt-2">
4852 <textarea
49- name="<?php echo esc_attr ($ this ->getKey ()) ?> "
50- id="<?php echo esc_attr ($ this ->getKey ()) ?> "
53+ name="<?php echo esc_attr ($ this ->getKey ()); ?> "
54+ id="<?php echo esc_attr ($ this ->getKey ()); ?> "
5155 rows="5"
5256 class="block w-full rounded-md border-0 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary sm:py-1.5 sm:text-sm sm:leading-6"
5357 <?php if ($ this ->placeholder ): ?>
54- placeholder="<?php echo esc_attr ($ this ->placeholder ) ?> "
58+ placeholder="<?php echo esc_attr ($ this ->placeholder ); ?> "
5559 <?php endif ?>
56- ><?php echo esc_textarea ($ value ) ?> </textarea>
60+ ><?php echo esc_textarea ($ value ); ?> </textarea>
5761 </div>
5862 <div class="mt-2">
5963 <button
6064 type="button"
61- onclick="sa_textarea_add_value(this.form.elements['<?php echo esc_js ($ this ->getKey ()) ?> '], '<?php echo esc_js ($ currentIp ) ?> ')"
65+ onclick="sa_textarea_add_value(this.form.elements['<?php echo esc_js ($ this ->getKey ()); ?> '], '<?php echo esc_js ($ currentIp ); ?> ')"
6266 class="rounded bg-white px-2 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"
6367 >
6468 Add Current IP (<?php echo esc_html ($ currentIp ); ?> )
0 commit comments