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
fd06b9b8
Commit
fd06b9b8
authored
Mar 11, 2016
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#959 - Вынести в редактирование отдельно инфо-блок "Наши проекты"
parent
3a37c7f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
frontend/messages/ru-RU/projects.php
frontend/messages/ru-RU/projects.php
+6
-0
frontend/views/layouts/block/projects.php
frontend/views/layouts/block/projects.php
+5
-5
No files found.
frontend/messages/ru-RU/projects.php
0 → 100644
View file @
fd06b9b8
<?php
return
[
'Explore our projects'
=>
'Другие наши проекты'
,
'See more'
=>
'Подробнее'
,
'All projects'
=>
'Все проекты'
,
];
\ No newline at end of file
frontend/views/layouts/block/projects.php
View file @
fd06b9b8
...
@@ -8,17 +8,17 @@ $models = CoContent::find()->where([
...
@@ -8,17 +8,17 @@ $models = CoContent::find()->where([
'active'
=>
true
'active'
=>
true
])
->
orderBy
(
'id DESC'
)
->
all
();
])
->
orderBy
(
'id DESC'
)
->
all
();
$case
s
=
CoContent
::
find
()
->
where
([
$case
Count
=
CoContent
::
find
()
->
where
([
'category_id'
=>
4
,
'category_id'
=>
4
,
'active'
=>
true
'active'
=>
true
]);
])
->
count
()
;
?>
?>
<?php
if
(
$models
)
:
?>
<?php
if
(
$models
)
:
?>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-6 col-xs-6 col-sm-12"
>
<div
class=
"col-md-6 col-xs-6 col-sm-12"
>
<div
class=
"project_st clearfix"
>
<div
class=
"project_st clearfix"
>
<div
class=
"project_tit"
>
<div
class=
"project_tit"
>
<span
class=
"others_project__title wow zoomIn"
data-wow-offset=
"50"
>
Другие наши проекты
</span>
<span
class=
"others_project__title wow zoomIn"
data-wow-offset=
"50"
>
<?=
Yii
::
t
(
'projects'
,
'Explore our projects'
)
?>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -29,8 +29,8 @@ $cases = CoContent::find()->where([
...
@@ -29,8 +29,8 @@ $cases = CoContent::find()->where([
<div
class=
"others_project"
>
<div
class=
"others_project"
>
<span
class=
"others_project__subtitle"
>
<?=
$model
->
lang
->
title
?>
</span>
<span
class=
"others_project__subtitle"
>
<?=
$model
->
lang
->
title
?>
</span>
<p
class=
"others_project__txt"
>
<?=
$model
->
lang
->
text
?>
</p>
<p
class=
"others_project__txt"
>
<?=
$model
->
lang
->
text
?>
</p>
<a
href=
"
<?=
Url
::
to
([
'/'
.
$model
->
url
])
?>
"
class=
"others_project__bt"
>
Подробнее
</a>
<a
href=
"
<?=
Url
::
to
([
'/'
.
$model
->
url
])
?>
"
class=
"others_project__bt"
>
<?=
Yii
::
t
(
'projects'
,
'See more'
)
?>
</a>
<a
href=
"
<?=
Url
::
to
([
'/portfolio'
])
?>
"
class=
"others_project__link"
>
Все проекты (
<?=
$cases
->
count
();
?>
)
</a>
<a
href=
"
<?=
Url
::
to
([
'/portfolio'
])
?>
"
class=
"others_project__link"
>
<?=
Yii
::
t
(
'projects'
,
'All projects'
)
?>
<?
if
(
$caseCount
>
20
){
?>
(
<?=
$caseCount
;
?>
)
<?
}
?>
</a>
</div>
</div>
<img
src=
"
<?=
$model
->
preview
?>
"
height=
"476"
width=
"489"
>
<img
src=
"
<?=
$model
->
preview
?>
"
height=
"476"
width=
"489"
>
</div>
</div>
...
...
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