- wp_unslash dla pól formularza i opcji (koniec z \' w mailach) - panel: wymagany nonce i manage_options, sanityzacja, esc_attr - reCAPTCHA: oczekiwana akcja i próg wyniku 0.5 - From z domeny strony, adres nadawcy tylko w Reply-To - honeypot bez die(), walidacja JS nie jest omijana - komunikat o nieudanej wysyłce, zachowanie wpisanych pól - nowy wygląd formularza (klasy ic-*) i szablon maila Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
36 lines
643 B
PHP
36 lines
643 B
PHP
<?php
|
|
|
|
namespace inContact;
|
|
|
|
/**
|
|
* Klasa Enqueue
|
|
*
|
|
* @link https://krzysztof-turek.com
|
|
*
|
|
* @package tylkofotografia.pl
|
|
* @version 0.2
|
|
*/
|
|
|
|
class Enqueue
|
|
{
|
|
use Singleton;
|
|
|
|
/*function __construct() {
|
|
add_action('wp_enqueue_scripts',[ $this, 'enqueueScripts']);
|
|
}*/
|
|
|
|
public function enqueueScripts()
|
|
{
|
|
global $pluginDirUrl, $pluginPath;
|
|
wp_register_style(
|
|
"ContactCss",
|
|
$pluginDirUrl . "css/inContact.css",
|
|
[],
|
|
filemtime($pluginPath . "css/inContact.css"),
|
|
"all",
|
|
);
|
|
|
|
wp_enqueue_style("ContactCss");
|
|
}
|
|
}
|