Alexander Makarov преди 12 години
родител
ревизия
e2e05c2383
променени са 5 файла, в които са добавени 19 реда и са изтрити 19 реда
  1. 5 5
      views/layouts/main.php
  2. 2 2
      views/site/about.php
  3. 6 6
      views/site/contact.php
  4. 2 2
      views/site/error.php
  5. 4 4
      views/site/login.php

+ 5 - 5
views/layouts/main.php

@@ -14,8 +14,8 @@ app\config\AppAsset::register($this);
 <!DOCTYPE html>
 <html lang="en">
 <head>
-	<meta charset="<?=Yii::$app->charset; ?>"/>
-	<title><?=Html::encode($this->title); ?></title>
+	<meta charset="<?= Yii::$app->charset ?>"/>
+	<title><?= Html::encode($this->title) ?></title>
 	<?php $this->head(); ?>
 </head>
 <body>
@@ -48,13 +48,13 @@ app\config\AppAsset::register($this);
 		<?=Breadcrumbs::widget([
 			'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
 		]); ?>
-		<?=$content; ?>
+		<?= $content ?>
 	</div>
 
 	<footer class="footer">
 		<div class="container">
-			<p class="pull-left">&copy; My Company <?=date('Y'); ?></p>
-			<p class="pull-right"><?=Yii::powered(); ?></p>
+			<p class="pull-left">&copy; My Company <?= date('Y') ?></p>
+			<p class="pull-right"><?= Yii::powered() ?></p>
 		</div>
 	</footer>
 

+ 2 - 2
views/site/about.php

@@ -8,11 +8,11 @@ $this->title = 'About';
 $this->params['breadcrumbs'][] = $this->title;
 ?>
 <div class="site-about">
-	<h1><?=Html::encode($this->title); ?></h1>
+	<h1><?= Html::encode($this->title) ?></h1>
 
 	<p>
 		This is the About page. You may modify the following file to customize its content:
 	</p>
 
-	<code><?=__FILE__; ?></code>
+	<code><?= __FILE__ ?></code>
 </div>

+ 6 - 6
views/site/contact.php

@@ -12,7 +12,7 @@ $this->title = 'Contact';
 $this->params['breadcrumbs'][] = $this->title;
 ?>
 <div class="site-contact">
-	<h1><?=Html::encode($this->title); ?></h1>
+	<h1><?= Html::encode($this->title) ?></h1>
 
 	<?php if (Yii::$app->session->hasFlash('contactFormSubmitted')): ?>
 
@@ -29,16 +29,16 @@ $this->params['breadcrumbs'][] = $this->title;
 	<div class="row">
 		<div class="col-lg-5">
 			<?php $form = ActiveForm::begin(['id' => 'contact-form']); ?>
-				<?=$form->field($model, 'name'); ?>
-				<?=$form->field($model, 'email'); ?>
-				<?=$form->field($model, 'subject'); ?>
-				<?=$form->field($model, 'body')->textArea(['rows' => 6]); ?>
+				<?= $form->field($model, 'name') ?>
+				<?= $form->field($model, 'email') ?>
+				<?= $form->field($model, 'subject') ?>
+				<?= $form->field($model, 'body')->textArea(['rows' => 6]) ?>
 				<?=$form->field($model, 'verifyCode')->widget(Captcha::className(), [
 					'options' => ['class' => 'form-control'],
 					'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>',
 				]); ?>
 				<div class="form-group">
-					<?=Html::submitButton('Submit', ['class' => 'btn btn-primary']); ?>
+					<?= Html::submitButton('Submit', ['class' => 'btn btn-primary']) ?>
 				</div>
 			<?php ActiveForm::end(); ?>
 		</div>

+ 2 - 2
views/site/error.php

@@ -13,10 +13,10 @@ $this->title = $name;
 ?>
 <div class="site-error">
 
-	<h1><?=Html::encode($this->title); ?></h1>
+	<h1><?= Html::encode($this->title) ?></h1>
 
 	<div class="alert alert-danger">
-		<?=nl2br(Html::encode($message)); ?>
+		<?= nl2br(Html::encode($message)) ?>
 	</div>
 
 	<p>

+ 4 - 4
views/site/login.php

@@ -11,7 +11,7 @@ $this->title = 'Login';
 $this->params['breadcrumbs'][] = $this->title;
 ?>
 <div class="site-login">
-	<h1><?=Html::encode($this->title); ?></h1>
+	<h1><?= Html::encode($this->title) ?></h1>
 
 	<p>Please fill out the following fields to login:</p>
 
@@ -24,9 +24,9 @@ $this->params['breadcrumbs'][] = $this->title;
 		],
 	]); ?>
 
-	<?=$form->field($model, 'username'); ?>
+	<?= $form->field($model, 'username') ?>
 
-	<?=$form->field($model, 'password')->passwordInput(); ?>
+	<?= $form->field($model, 'password')->passwordInput() ?>
 
 	<?=$form->field($model, 'rememberMe', [
 		'template' => "<div class=\"col-lg-offset-1 col-lg-3\">{input}</div>\n<div class=\"col-lg-8\">{error}</div>",
@@ -34,7 +34,7 @@ $this->params['breadcrumbs'][] = $this->title;
 
 	<div class="form-group">
 		<div class="col-lg-offset-1 col-lg-11">
-			<?=Html::submitButton('Login', ['class' => 'btn btn-primary']); ?>
+			<?= Html::submitButton('Login', ['class' => 'btn btn-primary']) ?>
 		</div>
 	</div>