We are here to help you
-Are you curious about something? Do you have some kind of problem with our products? As am hastily invited settled at limited civilly fortune me. Really spring in extent an by. Judge but built gay party world. Of so am - he remember although required. Bachelor unpacked be advanced at. Confined in declared marianne is vicinity.
-Please feel free to contact us, our customer service center is working for you 24/7.
-Мы работаем для вас
Address
-- street )) { - echo $settings->street; - if (!empty( $settings->house )) { - echo " " . $settings->house; - } - echo Html::tag('br'); - } - if (!empty( $settings->city )) { - echo $settings->city; - if (!empty( $settings->country )) { - echo Html::tag('strong', ", " . $settings->country); - } - } - ?> -
-Call center
-This number is toll free if calling from Great Britain otherwise we advise you to use the electronic form of communication .
-- phone), 'tel:' . $settings->phone); - ?> -
-Electronic support
-Please feel free to write an email to us or to use our electronic ticketing system .
--
-
- - email), - 'mailto:' . $settings->email - ); - ?> - -
Пожалуйста, оставьте ваши данные и мы свяжемся с вами в ближайшее время.
+ +Адрес
+street)) {
+ echo $settings->street . ',';
+ } ?> house)) {
+ echo $settings->house;
}
?>
+
index)) {
+ echo $settings->index . ',';
+ } ?>
+
city)) {
+ echo $settings->city . ',';
+ }
+ ?> country)) {
+ echo $settings->country;
+ } ?>
+
Телефоны
+phone)) { + echo $settings->phone; + } ?> +
phone2)) { + echo $settings->phone2; + } ?> +
+Возникли вопросы или предложения?
+Contact form
-Возникли вопросы или предложения?
Имя : | = $model->name;?> |
Email : | = $model->email; ?> |
Телефон : | = $model->phone; ?> |
Сообщение : | = $model->message ?> |
HTML Content
' - }*/ - }); -} \ No newline at end of file + window.initMap = initMap(); + } +); diff --git a/frontend/web/js/script.js b/frontend/web/js/script.js new file mode 100755 index 0000000..a91d0ea --- /dev/null +++ b/frontend/web/js/script.js @@ -0,0 +1,107 @@ +$( + function() { + + /** + * Modal form submit code + */ + $(document) + .on( + 'beforeSubmit', '#feedback-form', function(e) { + var f = this; + var form = $(this); + var formData = form.serialize(); + $.ajax( + { + url: form.attr("action"), + type: form.attr("method"), + data: formData, + success: function(data) { + f.reset(); + $('#myModal') + .modal('hide'); + $('#success-modal') + .modal('show'); + }, + error: function() { + $('#feedback-modal') + .modal('hide'); + } + } + ); + } + ) + .on( + 'submit', '#feedback-form', function(e) { + e.preventDefault(); + } + ); + + /** + * Contact form submitting + */ + $(document) + .on( + 'beforeSubmit', '#contact-form', function(e) { + var f = this; + var form = $(this); + var formData = form.serialize(); + $.ajax( + { + url: form.attr("action"), + type: form.attr("method"), + data: formData, + success: function(data) { + f.reset(); + form.replaceWith(data.alert) + }, + error: function() { + + } + } + ); + } + ) + .on( + 'submit', '#contact-form', function(e) { + e.preventDefault(); + } + ); + + /** + * Button UP code + */ + if ($('#back-to-top').length) { + var scrollTrigger = 100, // px + backToTop = function() { + var scrollTop = $(window) + .scrollTop(); + if (scrollTop > scrollTrigger) { + $('#back-to-top') + .addClass('show'); + } else { + $('#back-to-top') + .removeClass('show'); + } + }; + backToTop(); + $(window) + .on( + 'scroll', function() { + backToTop(); + } + ); + $('#back-to-top') + .on( + 'click', function(e) { + e.preventDefault(); + $('html,body') + .animate( + { + scrollTop: 0 + }, 700 + ); + } + ); + } + } +); \ No newline at end of file -- libgit2 0.21.4