Lynbro Danadresse 0.4.5
Calls glob for filename searchCreates a WordPress option (add_option)
SHA-256c7b5602bc8e4fb9647b92aa6e6ff47f8643ed623dd58c1ea787fb0c82245c007
Evidence
57:37… ( 'Version', 'lynbro-danadresse' ); ?></th>
58 <td><code><?php echo esc_html( LYNBRO_DANADRESSE_VERSION ); ?></code></td>
59 </tr>
60 <tr>
61 <th scope="row"><?php esc_html_e( 'Address data', 'lynbro-danadresse' ); ?></th>
62 <td><? …
23:30… ns';
24 if ( ! is_dir( $dir ) ) {
25 return array();
26 }
27
28 $found = glob( $dir . '/' . LYNBRO_DANADRESSE_SLUG . '-*.mo' );
29 if ( ! is_array( $found ) ) {
30 return array();
⋯4 lines
27:43… e_default_options(),
28 'show_in_rest' => false,
29 )
30 );
31}
32add_action( 'admin_init', 'lynbro_danadresse_register_settings' );
33
34/**
35 * Attach the page under the shared Lynbro menu (registered by the shell).
36 *
37 …
59:18… trpos( (string) $hook, 'lynbro-danadresse' ) ) {
60 return;
61 }
62
63 wp_enqueue_style(
64 'danadresse-admin',
65 LYNBRO_DANADRESSE_URL . 'admin/admin.css',
66 array(),
67 LYNBRO_DANADRESSE_VERSION
68 );
69
70 wp_enqueue_script(
71 'danadresse-admin',
72 LYNBRO_DANADRESSE_URL . 'public/admin.js',
73 array(),
74 LYNBRO_DANADRESSE_VERSION,
75 true
76 );
77 wp_localize_script(
78 'danadresse-admin',
79 'lynbroDanadresseAdmin',
80 array(
81 'ajaxUrl' => admin_url( 'admin-ajax.php' ),
82 'nonce' => wp_create_nonce( 'lynbro_danadresse_admin' ),
83 'labels' => array(
84 'empty' => __( 'Type an address first.', 'lynbro-danadresse' ),
85 …
210:162… ree.', 'lynbro-danadresse' ); ?></p>
211 </div>
212 <?php endif; ?>
213 <form action="options.php" method="post">
214 <?php settings_fields( 'lynbro_danadresse_group' ); ?>
215 <input type="hidden" name="<?php echo esc_attr( $opt ); ?>[_tab]" value="settings" />
216
217 <table class="form-table" role="presentation">
218 <tr>
219 <th scope="row"><label for="danadresse-key"><?php esc_html_e( 'API key', 'lynbro-danadresse' ); ?></label></th>
220 <td>
221 <input type="password" id="danadresse-key" class="regular-text"
222 name="<?php echo esc_attr( $opt ); ?>[api_key]"
223 value="<?php echo esc_attr( $masked ); ?>"
224 autocomplete="new-password" />
225 <p class="description">
226 <?php esc_html_e( 'Get a free API key (2,000 lookup …
Showing the top 5 files — 7 more files (88 regions) not shown.
No evidence locations were recorded for this file. Raw result