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
d7be3b48
Commit
d7be3b48
authored
Mar 02, 2016
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1048 - Исправление ошибок верстки в Блоге.
parent
9a758ef8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
6 deletions
+24
-6
common/modules/blog/models/SearchSession.php
common/modules/blog/models/SearchSession.php
+5
-0
common/modules/blog/views/post/_load.php
common/modules/blog/views/post/_load.php
+5
-3
common/modules/blog/views/post/view.php
common/modules/blog/views/post/view.php
+5
-3
frontend/web/css/custom.css
frontend/web/css/custom.css
+9
-0
No files found.
common/modules/blog/models/SearchSession.php
View file @
d7be3b48
...
...
@@ -51,6 +51,11 @@ class SearchSession extends Session
$dataProvider
=
new
ActiveDataProvider
([
'query'
=>
$query
,
'sort'
=>
[
'defaultOrder'
=>
[
'created_at'
=>
SORT_DESC
]
]
]);
$this
->
load
(
$params
);
...
...
common/modules/blog/views/post/_load.php
View file @
d7be3b48
...
...
@@ -30,9 +30,11 @@ use yii\helpers\Url;
</div>
<div
class=
"article_short_txt"
>
<?php
if
(
$model
->
preview
)
:
echo
Html
::
img
(
$model
->
preview
);
endif
;
?>
<div
class=
"preview-image"
>
<?php
if
(
$model
->
preview
)
:
echo
Html
::
img
(
$model
->
preview
);
endif
;
?>
</div>
<?=
$model
->
lang
->
cutText
(
650
)
?>
</div>
...
...
common/modules/blog/views/post/view.php
View file @
d7be3b48
...
...
@@ -37,9 +37,11 @@ use yii\helpers\Url;
</div>
<div
class=
"article_short_txt"
>
<?php
if
(
$model
->
preview
)
:
echo
Html
::
img
(
$model
->
preview
);
endif
;
?>
<div
class=
"preview-image"
>
<?php
if
(
$model
->
preview
)
:
echo
Html
::
img
(
$model
->
preview
);
endif
;
?>
</div>
<?=
$model
->
lang
->
text
?>
</div>
...
...
frontend/web/css/custom.css
View file @
d7be3b48
...
...
@@ -269,6 +269,12 @@ a.toggle_bottom:hover .icon-arrowDown2:after, a.toggle_bottom:active .icon-arrow
pre
code
{
font-size
:
14px
;
}
.article_short_txt
ol
li
{
line-height
:
30px
;
}
.preview-image
{
text-align
:
center
;
}
/* ------------ BLOG MODAL ------------------ */
...
...
@@ -469,6 +475,9 @@ pre code {
.gen_mail_top
a
.toggle_bottom
{
margin-top
:
50px
;
}
.article_short_txt
iframe
{
width
:
100%
;
}
}
@media
(
max-width
:
768px
)
{
...
...
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