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
b59e0853
Commit
b59e0853
authored
Jul 20, 2016
by
andre
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'cases'
parents
2b4e3c68
83958ff5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
frontend/views/layouts/block/case-more.php
frontend/views/layouts/block/case-more.php
+5
-3
No files found.
frontend/views/layouts/block/case-more.php
View file @
b59e0853
...
...
@@ -5,16 +5,18 @@ use yii\helpers\Html;
use
yii\helpers\Url
;
use
common\modules\content\models\CoContent
;
use
common\modules\cases\models\CaseContent
;
use
common\modules\cases\models\CasesBids
;
use
common\modules\cases\models\CasesPreviewType
;
$userIsSubscribed
=
false
;
$cacheEmail
=
Yii
::
$app
->
session
->
get
(
'user_email'
);
if
(
$cacheEmail
!==
false
&&
CasesBids
::
find
()
->
where
([
'email'
=>
$cacheEmail
])
->
exists
()
===
true
)
$userIsSubscribed
=
true
;
$more
=
C
o
Content
::
find
()
$more
=
C
ase
Content
::
find
()
->
where
([
'category_id'
=>
4
,
'category_id'
=>
\common\models\Settings
::
getValue
(
'case-category-id'
)
,
'active'
=>
true
])
->
andWhere
([
'!='
,
'id'
,
$model
->
id
])
...
...
@@ -33,7 +35,7 @@ $more = CoContent::find()
<?php
if
(
$more
)
:
?>
<div
class=
"col-md-6 col-xs-6 col-sm-12"
>
<div
class=
"short_keys_block"
>
<img
src=
"
<?=
$more
->
preview
?>
"
height=
"338"
width=
"455"
>
<img
src=
"
<?=
(
$more
->
previewType
->
type
==
CasesPreviewType
::
PREVIEW_RECTANGLE
&&
$more
->
preview_mob
)
?
$more
->
preview_mob
:
$more
->
preview
?>
"
height=
"338"
width=
"455"
>
<a
href=
"
<?=
Url
::
to
([
'/'
.
$more
->
url
]);
?>
"
style=
"color:
<?
if
(
$more
->
custom
==
CoContent
::
CUSTOM_WHITE
){
?>
#fff
<?
}
else
{
?>
#2d3642
<?
}
?>
;"
class=
"short_keys_title_link"
>
<?=
$more
->
lang
->
title
?>
</a>
<div
class=
"short_keys_foot"
>
<a
href=
"
<?=
Url
::
to
([
'/'
.
$more
->
url
]);
?>
"
class=
"short_keys_btn_more"
><span>
<?=
Yii
::
t
(
'case'
,
'Read more'
)
?>
</span></a>
...
...
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