Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
ad3c7c74
Commit
ad3c7c74
authored
Jul 11, 2016
by
andre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1094 отладка
parent
90d6256d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
28 deletions
+50
-28
frontend/views/layouts/block/cases.php
frontend/views/layouts/block/cases.php
+38
-20
frontend/web/css/screen.css
frontend/web/css/screen.css
+12
-8
No files found.
frontend/views/layouts/block/cases.php
View file @
ad3c7c74
...
...
@@ -20,32 +20,50 @@ $models = CaseContent::find()
<?php
foreach
(
$models
as
$model
)
:
?>
<?
if
(
!
$model
->
previewType
||
$model
->
previewType
->
type
==
CasesPreviewType
::
PREVIEW_SQUARE
)
:
?>
<div
class=
"col-md-6 col-xs-6 col-sm-12"
>
<div
class=
"keys_block_small"
>
<a
href=
"
<?=
Url
::
to
([
'/'
.
$model
->
url
])
?>
"
>
<img
src=
"
<?=
$model
->
preview
?>
"
height=
"338"
width=
"455"
alt=
""
>
<div
class=
"keys_small_title"
<?
if
(
$model
->
custom
==
CoContent
::
CUSTOM_WHITE
){
?>
style=
"color:#fff;"
<?
}
?>
>
<?=
$model
->
lang
->
title
?>
</div>
</a>
<!-- <div class="keys_block_small">-->
<!-- <a href="-->
<?
//=Url::to(['/'.$model->url])?><!--">-->
<!--
<
img
src
=
"--><?//=
$model->preview
?><!--"
height
=
"338"
width
=
"455"
alt
=
""
>-->
<!--
<
div
class
=
"keys_small_title"
--><?
//if($model->custom==CoContent::CUSTOM_WHITE){?><!--style="color:#fff;"--><?//}?><!-->--><?//=$model->lang->title?><!--</div>-->
<!--
</
a
>-->
<!--
<
div
class
=
"keys_small_foot"
>-->
<!--
<
a
href
=
"--><?//= Url::to(['/'.
$model->url
]) ?><!--"
class
=
"keys_small_btn_more"
><
span
>--><?
//=Yii::t('case', 'Read more')?><!--</span></a>-->
<!--
<
a
class
=
"keys_small_tags"
>--><?
//= $model->previewType->tag ? "#{$model->previewType->tag}" : "" ?><!--</a>-->
<!--
</
div
>-->
<!--
</
div
>-->
<
a
href
=
"<?=Url::to(['/'.
$model->url
])?>"
class
=
"keys_block_small"
>
<
img
src
=
"<?=
$model->preview
?>"
height
=
"338"
width
=
"455"
>
<
div
class
=
"keys_small_title"
<?
if
(
$model
->
custom
==
CoContent
::
CUSTOM_WHITE
){
?>
style="color:#fff;"
<?
}
?>
>
<?=
$model
->
lang
->
title
?>
</div>
<div
class=
"keys_small_foot"
>
<
a
href=
"
<?=
Url
::
to
([
'/'
.
$model
->
url
])
?>
"
class=
"keys_small_btn_more"
><span>
<?=
Yii
::
t
(
'case'
,
'Read more'
)
?>
</span></a
>
<a
class=
"keys_small_tags"
>
<?=
$model
->
previewType
->
tag
?
"#
{
$model
->
previewType
->
tag
}
"
:
""
?>
</a
>
<
div
class=
"keys_small_btn_more"
>
<span>
<?=
Yii
::
t
(
'case'
,
'Read more'
)
?>
</span
>
</div>
</div>
</a>
</div>
<?
elseif
(
$model
->
previewType
->
type
==
CasesPreviewType
::
PREVIEW_RECTANGLE
)
:
?>
<div
class=
"col-md-12 col-xs-12 col-sm-12"
>
<div
class=
"keys_block_big"
>
<a
href=
"
<?=
Url
::
to
([
'/'
.
$model
->
url
])
?>
"
>
<picture>
<source
srcset=
"images/keys_big338.jpg"
media=
"(max-width: 768px)"
>
<img
src=
"images/keys_big1.jpg"
height=
"338"
width=
"940"
alt=
""
>
</picture>
<div
class=
"keys_small_title"
<?
if
(
$model
->
custom
==
CoContent
::
CUSTOM_WHITE
){
?>
style=
"color:#fff;"
<?
}
?>
>
<?=
$model
->
lang
->
title
?>
</div>
<a
href=
"
<?=
Url
::
to
([
'/'
.
$model
->
url
])
?>
"
class=
"keys_block_small big"
>
<img
src=
"
<?=
$model
->
preview
?>
"
height=
"338"
width=
"940"
>
<div
class=
"keys_small_title"
<?
if
(
$model
->
custom
==
CoContent
::
CUSTOM_WHITE
){
?>
style=
"color:#fff;"
<?
}
?>
>
<?=
$model
->
lang
->
title
?>
</div>
<div
class=
"keys_small_foot"
>
<a
href=
"
<?=
Url
::
to
([
'/'
.
$model
->
url
])
?>
"
class=
"keys_small_btn_more"
><span>
<?=
Yii
::
t
(
'case'
,
'Read more'
)
?>
</span></a
>
<
a
class=
"keys_small_tags"
>
<?=
$model
->
previewType
->
tag
?
"#
{
$model
->
previewType
->
tag
}
"
:
""
?>
</a
>
<div
class=
"keys_small_btn_more"
>
<
span>
<?=
Yii
::
t
(
'case'
,
'Read more'
)
?>
</span
>
</div>
</a>
</div>
</a>
<!-- <div class="keys_block_big">-->
<!-- <a href="-->
<?
//=Url::to(['/'.$model->url])?><!--">-->
<!--
<
picture
>-->
<!--
<
source
srcset
=
"images/keys_big338.jpg"
media
=
"(max-width: 768px)"
>-->
<!--
<
img
src
=
"images/keys_big1.jpg"
height
=
"338"
width
=
"940"
alt
=
""
>-->
<!--
</
picture
>-->
<!--
<
div
class
=
"keys_small_title"
--><?
//if($model->custom==CoContent::CUSTOM_WHITE){?><!--style="color:#fff;"--><?//}?><!-->--><?//=$model->lang->title?><!--</div>-->
<!--
<
div
class
=
"keys_small_foot"
>-->
<!--
<
a
href
=
"--><?//=Url::to(['/'.
$model->url
])?><!--"
class
=
"keys_small_btn_more"
><
span
>--><?
//=Yii::t('case', 'Read more')?><!--</span></a>-->
<!--
<
a
class
=
"keys_small_tags"
>--><?
//= $model->previewType->tag ? "#{$model->previewType->tag}" : "" ?><!--</a>-->
<!--
</
div
>-->
<!--
</
a
>-->
<!--
</
div
>-->
</
div
>
<?
endif
?>
<?php
endforeach
;
?>
...
...
frontend/web/css/screen.css
View file @
ad3c7c74
...
...
@@ -10957,6 +10957,9 @@ h6 {
-ms-transition: all 0.2s linear;
transition: all 0.2s linear;
}
.keys_block_small.big{
width: 940px;
}
@media only screen and (min-width: 768px) and (max-width: 970px) {
.keys_block_small {
width: 100%;
...
...
@@ -11105,36 +11108,36 @@ h6 {
transition: all 0.2s linear;
}
@media only screen and (min-width: 768px) and (max-width: 970px) {
.keys_block_big
{
.keys_block_big
, .keys_block_small.big
{
width: 100%;
height: auto;
}
.keys_block_big
img
{
.keys_block_big
, .keys_block_small.big
img {
max-width: 100%;
height: auto;
}
}
@media only screen and (min-width: 480px) and (max-width: 767px) {
.keys_block_big
{
.keys_block_big
, .keys_block_small.big
{
width: 100%;
height: auto;
}
.keys_block_big
img
{
.keys_block_big img
, .keys_block_small.big img
{
max-width: 100%;
height: auto;
}
}
@media only screen and (min-width: 320px) and (max-width: 479px) {
.keys_block_big
{
.keys_block_big
, .keys_block_small.big
{
width: 100%;
height: auto;
}
.keys_block_big
img
{
.keys_block_big img
, .keys_block_small.big img
{
max-width: 100%;
height: auto;
}
}
.keys_block_big
.keys_small_foot
{
.keys_block_big .keys_small_foot
, .keys_block_small.big .keys_small_foot
{
width: 100%;
height: 80px;
position: absolute;
...
...
@@ -11147,7 +11150,8 @@ h6 {
-ms-transition: all 0.2s linear;
transition: all 0.2s linear;
}
.keys_block_big
.keys_small_foot
a
.keys_small_tags
{
.keys_block_big .keys_small_foot a.keys_small_tags,
.keys_block_small.big .keys_small_foot a.keys_small_tags{
display: inline-block;
float: right;
line-height: 80px;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment