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
7cdb5212
Commit
7cdb5212
authored
Nov 21, 2018
by
Ruslan Karimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#2425. Доработка вывода подзаголовков
parent
9cb09566
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
common/modules/cases/models/CaseContent.php
common/modules/cases/models/CaseContent.php
+1
-1
frontend/views/layouts/block/business-cases.php
frontend/views/layouts/block/business-cases.php
+2
-2
No files found.
common/modules/cases/models/CaseContent.php
View file @
7cdb5212
...
@@ -119,7 +119,7 @@ class CaseContent extends CoContent
...
@@ -119,7 +119,7 @@ class CaseContent extends CoContent
if
(
preg_match
(
'/^(https?:\/\/)/i'
,
$this
->
url
))
{
if
(
preg_match
(
'/^(https?:\/\/)/i'
,
$this
->
url
))
{
return
$this
->
url
;
return
$this
->
url
;
}
else
{
}
else
{
return
'/'
.
$this
->
url
;
return
Url
::
to
([
'/'
.
$this
->
url
])
;
}
}
}
}
...
...
frontend/views/layouts/block/business-cases.php
View file @
7cdb5212
...
@@ -21,7 +21,7 @@ $models = CaseContent::find()
...
@@ -21,7 +21,7 @@ $models = CaseContent::find()
foreach
(
$models
as
$model
)
:
?>
foreach
(
$models
as
$model
)
:
?>
<?php
if
(
!
$model
->
previewType
||
$model
->
previewType
->
type
==
CasesPreviewType
::
PREVIEW_SQUARE
)
:
?>
<?php
if
(
!
$model
->
previewType
||
$model
->
previewType
->
type
==
CasesPreviewType
::
PREVIEW_SQUARE
)
:
?>
<div
class=
"col-md-6 col-xs-6 col-sm-12"
>
<div
class=
"col-md-6 col-xs-6 col-sm-12"
>
<a
href=
"
<?=
Url
::
to
([
$model
->
getPreparedUrl
()]
)
?>
"
class=
"keys_block_small"
>
<a
href=
"
<?=
$model
->
getPreparedUrl
(
)
?>
"
class=
"keys_block_small"
>
<img
src=
"
<?=
$model
->
preview
?>
"
height=
"338"
width=
"455"
>
<img
src=
"
<?=
$model
->
preview
?>
"
height=
"338"
width=
"455"
>
<div
class=
"keys_small_title"
<?php
if
(
$model
->
custom
==
CoContent
::
CUSTOM_WHITE
){
?>
style=
"color:#fff;"
<?php
}
?>
>
<div
class=
"keys_small_title"
<?php
if
(
$model
->
custom
==
CoContent
::
CUSTOM_WHITE
){
?>
style=
"color:#fff;"
<?php
}
?>
>
<?=
$model
->
lang
->
title
?>
<?=
$model
->
lang
->
title
?>
...
@@ -39,7 +39,7 @@ $models = CaseContent::find()
...
@@ -39,7 +39,7 @@ $models = CaseContent::find()
</div>
</div>
<?php
elseif
(
$model
->
previewType
->
type
==
CasesPreviewType
::
PREVIEW_RECTANGLE
)
:
?>
<?php
elseif
(
$model
->
previewType
->
type
==
CasesPreviewType
::
PREVIEW_RECTANGLE
)
:
?>
<div
class=
"col-md-12 col-xs-12 col-sm-12"
>
<div
class=
"col-md-12 col-xs-12 col-sm-12"
>
<a
href=
"
<?=
Url
::
to
([
$model
->
getPreparedUrl
()]
)
?>
"
class=
"keys_block_small big"
>
<a
href=
"
<?=
$model
->
getPreparedUrl
(
)
?>
"
class=
"keys_block_small big"
>
<img
class=
"img_lg"
src=
"
<?=
$model
->
preview
?>
"
height=
"338"
width=
"940"
>
<img
class=
"img_lg"
src=
"
<?=
$model
->
preview
?>
"
height=
"338"
width=
"940"
>
<?php
if
(
$model
->
preview_mob
)
:
?>
<?php
if
(
$model
->
preview_mob
)
:
?>
<img
class=
"img_sm"
src=
"
<?=
$model
->
preview_mob
?>
"
height=
"338"
width=
"455"
>
<img
class=
"img_sm"
src=
"
<?=
$model
->
preview_mob
?>
"
height=
"338"
width=
"455"
>
...
...
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