We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c88c017 commit a80c2f0Copy full SHA for a80c2f0
1 file changed
app/Config/Honeypot.php
@@ -11,14 +11,23 @@ class Honeypot extends BaseConfig
11
* @var boolean
12
*/
13
public $hidden = true;
14
- /**
15
- * Hide the Honypot. The default is style, but if the CSP is enabled, it is better to use class.
+
+ /**
16
+ * Hide the Honeypot. If not set or null, the style parameter will be use. Otherwise it will be set the class parametr by inserted string.
17
* Example:
- * public $hiddenBy = 'class="hidden"';
18
+ * public $hiddenBy = 'hidden';
19
+ *
20
+ * @var ?string
21
+ */
22
+ public $hiddenByClass = null;
23
24
25
+ * Div wrapper of honeypot.
26
*
27
* @var string
28
- public $hiddenBy = 'style="display:none"';
29
+ public $hiddenContainer = '<div %s>%s</div>';
30
31
/**
32
* Honeypot Label Content
33
0 commit comments