diff --git a/contact.plugin.php b/contact.plugin.php index 822dd03..52ba2ec 100644 --- a/contact.plugin.php +++ b/contact.plugin.php @@ -22,14 +22,14 @@ /** * Shorcode: {contact recipient="admin@site.org"} */ - Shortcode::add('contact', 'Contact::_shorcode'); + Shortcode::add('contact', 'Contact::_shortcode'); /** * Usage: */ class Contact { - public static function _shorcode($attributes) + public static function _shortcode($attributes) { return Contact::form($attributes['recipient']); } @@ -93,4 +93,4 @@ public static function display($recipient) echo Contact::form($recipient); } - } + } \ No newline at end of file diff --git a/languages/en.lang.php b/languages/en.lang.php index d1ff73e..fca68d5 100644 --- a/languages/en.lang.php +++ b/languages/en.lang.php @@ -13,5 +13,6 @@ 'A letter has been sent!' => 'A letter has been sent!', 'A Letter was not sent!' => 'A Letter was not sent!', 'Wrong captcha!' => 'Wrong captcha!', + 'Enter the code to prove you are human' => 'Enter the code to prove you are human', ), ); diff --git a/languages/ru.lang.php b/languages/ru.lang.php index 365d6cf..ef5db7f 100644 --- a/languages/ru.lang.php +++ b/languages/ru.lang.php @@ -13,5 +13,6 @@ 'A letter has been sent!' => 'Письмо было отправлено!', 'A Letter was not sent!' => 'Письмо не было отправлено!', 'Wrong captcha!' => 'Неправильная капча!', + 'Enter the code to prove you are human' => 'Введите код, чтобы доказать, что ты человек', ), ); diff --git a/views/frontend/form.view.php b/views/frontend/form.view.php index 47a48c3..171dff0 100644 --- a/views/frontend/form.view.php +++ b/views/frontend/form.view.php @@ -1,28 +1,50 @@ -
-
+ + + - -
- -
- -

+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
- - '.$errors['captcha_wrong'].''; ?> - +
+
+ + + '.$errors['captcha_wrong'].''; ?> +
+
+ +
+

0) { ?> - - +
+ +