Skip to content

Commit

Permalink
Merge branch 'master' into prod
Browse files Browse the repository at this point in the history
  • Loading branch information
shi-yang committed Jun 21, 2015
2 parents b6b7684 + a3e36f9 commit 762b14f
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 3 deletions.
5 changes: 4 additions & 1 deletion frontend/themes/basic/explore/index.php
Expand Up @@ -91,7 +91,10 @@
</div>
</div>
<div class="col-md-4">
<?= \shiyang\login\Login::widget(['visible' => Yii::$app->user->isGuest]); ?>
<?= \shiyang\login\Login::widget([
'title' => Yii::t('app', 'Log in'),
'visible' => Yii::$app->user->isGuest,
]); ?>
<p class="bg-success" style="padding:15px;">
<b><?= Yii::t('app', 'Recommendation') ?></b>
<?= Html::a(Yii::t('app', 'More'), ['/explore/forums'], ['class' => 'pull-right']) ?>
Expand Down
1 change: 1 addition & 0 deletions frontend/themes/basic/layouts/basic.php
Expand Up @@ -25,6 +25,7 @@
<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="shortcut icon" href="<?= Yii::getAlias('@web') ?>/favicon.ico">
</head>
<body>
<?php $this->beginBody() ?>
Expand Down
1 change: 1 addition & 0 deletions frontend/themes/basic/layouts/main.php
Expand Up @@ -27,6 +27,7 @@
<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="shortcut icon" href="<?= Yii::getAlias('@web') ?>/favicon.ico">
</head>
<body>
<?php $this->beginBody() ?>
Expand Down
Expand Up @@ -26,6 +26,7 @@
<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="shortcut icon" href="<?= Yii::getAlias('@web') ?>/favicon.ico">
</head>
<body>
<?php $this->beginBody() ?>
Expand Down
Expand Up @@ -33,6 +33,7 @@
<?= Html::csrfMetaTags() ?>
<title><?= Html::encode($this->title) ?></title>
<?php $this->head() ?>
<link rel="shortcut icon" href="<?= Yii::getAlias('@web') ?>/favicon.ico">
</head>
<body>
<?php $this->beginBody() ?>
Expand Down
1 change: 1 addition & 0 deletions frontend/themes/basic/modules/user/views/layouts/user.php
Expand Up @@ -31,6 +31,7 @@
<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="shortcut icon" href="<?= Yii::getAlias('@web') ?>/favicon.ico">
</head>
<body class="overflow-hidden">
<?php $this->beginBody() ?>
Expand Down
7 changes: 6 additions & 1 deletion frontend/themes/basic/site/login.php
Expand Up @@ -13,12 +13,14 @@
padding-top: 40px;
background-color: #eef0f3;
}
.form-signin {
max-width: 330px;
padding: 15px;
margin: 0 auto;
}
.logo img {
max-width: 100%;
}
.form-signin .form-signin-heading,
.form-signin .checkbox {
margin-bottom: 10px;
Expand Down Expand Up @@ -55,6 +57,9 @@
'class' => 'form-signin'
]
]); ?>
<div class="logo">
<img src="<?= Yii::getAlias('@web') ?>/images/logo.png">
</div>

<h1><?= Html::encode($this->title) ?></h1>

Expand Down
7 changes: 6 additions & 1 deletion frontend/themes/basic/site/signup.php
Expand Up @@ -12,7 +12,9 @@
padding-top: 40px;
background-color: #eef0f3;
}
.logo img {
max-width: 100%;
}
.form-signin {
max-width: 330px;
padding: 15px;
Expand Down Expand Up @@ -50,6 +52,9 @@
');
?>
<div class="form-signin">
<div class="logo">
<img src="<?= Yii::getAlias('@web') ?>/images/logo.png">
</div>
<h1><?= Html::encode($this->title) ?></h1>

<?php $form = ActiveForm::begin(['id' => 'form-signup']); ?>
Expand Down
Binary file modified frontend/web/favicon.ico
Binary file not shown.
Binary file added frontend/web/images/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 762b14f

Please sign in to comment.