Issues (4)

src/views/site/contact.php (2 issues)

1
<?php
2
3
/* @var $this yii\web\View */
4
/* @var $form yii\bootstrap\ActiveForm */
5
/* @var $model app\models\ContactForm */
6
7
use yii\bootstrap\ActiveForm;
8
use yii\captcha\Captcha;
9
use yii\helpers\Html;
10
11
$this->title = Yii::t('app', 'Contact');
12
$this->blocks['subHeaderClass'] = 'contact';
13
$this->blocks['subTitle'] = Yii::t('app', 'Our friendly Support Team is available to help you 24 hours a day');
14
$this->registerCss('.help-block { font-size: 12px; }');
15
?>
16
<!-- CONTACT FORM -->
17
<div class="contact-elements">
18
    <div class="row">
19
        <div class="col-sm-3">
20
            <div class="contactmethod darkgray">
21
                <h5><?= Yii::t('app', 'Complaints / Abuse reports') ?></h5>
22
                <p><?= Yii::t('app', 'Notifications about spam, breaches of trademark, illegal or immoral activities of our clients: {0}', ['<br>' . Html::mailto('[email protected]', '[email protected]')]) ?></p>
23
            </div>
24
        </div>
25
26
        <div class="col-sm-3">
27
            <div class="contactmethod blue">
28
                <h5><?= Yii::t('app', 'Mailing Address') ?></h5>
29
                <p>
30
                    <?= Yii::$app->params['mailingAddress'] ?>
31
                </p>
32
            </div>
33
        </div>
34
35
        <div class="col-sm-3">
36
            <div class="contactmethod green">
37
                <h5><?= Yii::t('app', 'Billing address') ?></h5>
38
                <p>
39
                    <?= Yii::$app->params['billingAddress'] ?>
40
                </p>
41
            </div>
42
        </div>
43
44
        <div class="col-sm-3">
45
            <div class="contactmethod purple">
46
                <h5><?= Yii::t('app', 'Other contact information') ?></h5>
47
                <p>
48
                    <?= Yii::t('app', 'Sales') ?>: <?= Html::mailto('[email protected]', '[email protected]') ?><br>
49
                    <?= Yii::t('app', 'Technical Support') ?>: <?= Html::mailto('[email protected]', '[email protected]') ?><br>
50
51
                    <?= Yii::t('app', 'Fast communication') ?>:<br>
52
                    <b>ICQ:</b> 593-341-721 <br>
53
                    <b>Skype:</b> ah.andre
54
                </p>
55
            </div>
56
        </div>
57
    </div>
58
    <div class="spacing-75"></div>
59
60
    <div class="row">
61
62
        <div class="col-sm-4">
63
            <h3><?= Yii::t('app', 'CONTACT {0}', [Yii::$app->name]) ?></h3>
64
            <div class="titleborder pink">
65
                <div class="titleborder_left"></div>
66
                <div class="titleborder_sign"></div>
67
            </div>
68
            <h4><?= Yii::t('app', 'Have questions?') ?></h4>
69
            <p>
70
                <?= Yii::t('app', 'Please note If you are already our customer and you require technical support, please open a support ticket in your {0}.', [
71
                    Html::a(Yii::t('app', 'control panel'), '#', ['target' => '_blank']),
72
                ])?>
73
            </p>
74
        </div>
75
76
        <div class="col-sm-8">
77
            <h3><?= Yii::t('app', 'GET IN TOUCH') ?></h3>
78
            <div class="titleborder pink fullwidth">
79
                <div class="titleborder_left"></div>
80
                <div class="titleborder_sign"></div>
81
            </div>
82
            <?php if (Yii::$app->session->hasFlash('contactFormSubmitted')): ?>
0 ignored issues
show
The method hasFlash() does not exist on null. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

82
            <?php if (Yii::$app->session->/** @scrutinizer ignore-call */ hasFlash('contactFormSubmitted')): ?>

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
83
            <div id="sendstatus">
84
                <div class="alert alert-success">
85
                    <?= Yii::t('app', 'Thank you for contacting us. We will respond to you as soon as possible.') ?>
86
                </div>
87
            </div>
88
            <?php else: ?>
89
            <div id="contactform">
90
                <?php $form = ActiveForm::begin([
91
                    'id' => 'contact-form',
92
                    'options' => ['class' => 'material'],
93
                ]); ?>
94
                    <?= $form->field($model, 'name')->textInput(['placeholder' => $model->getAttributeLabel('name')])->label(false) ?>
95
                    <?= $form->field($model, 'email')->input('email', ['placeholder' => $model->getAttributeLabel('email')])->label(false) ?>
96
                    <?= $form->field($model, 'subject')->textInput(['placeholder' => $model->getAttributeLabel('subject')])->label(false) ?>
97
                    <?= $form->field($model, 'body')->textArea(['rows' => 12, 'placeholder' => $model->getAttributeLabel('body')])->label(false) ?>
98
                    <?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [
0 ignored issues
show
Deprecated Code introduced by
The function yii\base\BaseObject::className() has been deprecated: since 2.0.14. On PHP >=5.5, use `::class` instead. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

98
                    <?= $form->field($model, 'verifyCode')->widget(/** @scrutinizer ignore-deprecated */ Captcha::className(), [

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
99
                        'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>',
100
                        'options' => ['placeholder' => $model->getAttributeLabel('verifyCode')],
101
                    ])->label(false) ?>
102
                    <?= Html::submitButton('Submit', ['class' => 'mtr-btn button-fab ripple', 'name' => 'contact-button', 'id' => 'submit']) ?>
103
                <?php ActiveForm::end(); ?>
104
                <!--form method="post" action="sendmail.php" class="material">
105
                    <p><input type="text" class="form-control" name="name" id="name" placeholder="Name" tabindex="1" /></p>
106
                    <p><input type="text" class="form-control" name="email" id="email" placeholder="Email" tabindex="2" /></p>
107
                    <p><textarea class="form-control" name="comments" id="comments" cols="12" rows="6" placeholder="Message" tabindex="3"></textarea></p>
108
                    <p><input type="button" name="submit" id="submit" class="mtr-btn button-fab ripple" value="Send"/></p>
109
                </form-->
110
            </div>
111
            <?php endif; ?>
112
        </div>
113
    </div>
114
    <!-- END OF CONTACT FORM -->
115
    <div class="spacing-75"></div>
116