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
1d0984da
Commit
1d0984da
authored
Apr 06, 2016
by
Shakarim Sapa
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
582088f6
81a631d2
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
7 deletions
+15
-7
common/modules/blog/models/PostLang.php
common/modules/blog/models/PostLang.php
+1
-1
common/modules/blog/views/post/_sidebar.php
common/modules/blog/views/post/_sidebar.php
+2
-2
common/modules/blog/views/post/index.php
common/modules/blog/views/post/index.php
+1
-1
common/modules/blog/views/post/tag.php
common/modules/blog/views/post/tag.php
+1
-1
frontend/messages/ru-RU/blog.php
frontend/messages/ru-RU/blog.php
+5
-1
frontend/web/css/custom.css
frontend/web/css/custom.css
+4
-0
frontend/web/js/custom.js
frontend/web/js/custom.js
+1
-1
No files found.
common/modules/blog/models/PostLang.php
View file @
1d0984da
...
...
@@ -94,7 +94,7 @@ class PostLang extends \common\components\ActiveRecordModel
$text
=
substr
(
$text
,
0
,
strrpos
(
$text
,
' '
));
$text
=
$text
.
'...'
;
return
'<p>'
.
$text
.
'</p><p
><a href="'
.
$this
->
post
->
getFullUrl
()
.
'">Читать...
</a></p>'
;
return
'<p>'
.
$text
.
'</p><p
class="read-more"><a href="'
.
$this
->
post
->
getFullUrl
()
.
'">'
.
Yii
::
t
(
'blog'
,
'Read more...'
)
.
'
</a></p>'
;
}
return
$this
->
text
;
...
...
common/modules/blog/views/post/_sidebar.php
View file @
1d0984da
...
...
@@ -42,7 +42,7 @@ use common\modules\languages\models\Languages;
<div
class=
"sidebar_module_body"
>
<a
href=
"#feedback"
class=
"sidebar_btn popup-form"
>
<?=
\Yii
::
t
(
'blog'
,
'Offer a subject'
);
?>
<div
class=
"blog_toltip_right"
>
Предложите свою тему и мы напишем
</div>
<div
class=
"blog_toltip_right"
>
<?=
\Yii
::
t
(
'blog'
,
'Offer a subject and we will publish about it'
)
?>
</div>
</a>
<a
href=
"#article"
class=
"sidebar_btn popup-form"
>
<?=
\Yii
::
t
(
'blog'
,
'Send an article'
)
?>
</a>
</div>
...
...
@@ -75,7 +75,7 @@ use common\modules\languages\models\Languages;
<?php
endif
;
?>
<div
class=
"sidebar_module"
>
<h2>
Все секреты в наших соц сетях!
</h2>
<h2>
<?=
\Yii
::
t
(
'blog'
,
'Follow us!'
)
?>
</h2>
<div
class=
"sidebar_module_body"
>
<ul
class=
"sidebar_social"
>
<?php
$s
=
Settings
::
getValue
(
'social-link-fb'
);
if
(
$s
)
:
?>
<li><a
href=
"
<?=
$s
?>
"
class=
"sidebar_social_fb"
></a></li>
<?
endif
;
?>
...
...
common/modules/blog/views/post/index.php
View file @
1d0984da
...
...
@@ -26,7 +26,7 @@ use common\modules\blog\models\Post;
</div>
<div
class=
"load-box"
>
<a
href=
"
#"
class=
"sidebar_btn"
id=
"load-post"
data-offset=
"
<?=
Post
::
PAGE_SIZE
?>
"
style=
"display:block; margin: 0 auto;"
>
Загрузить еще
</a>
<a
href=
"
<?=
Url
::
to
([
'/blog/post/load'
]);
?>
"
class=
"sidebar_btn"
id=
"load-post"
data-offset=
"
<?=
Post
::
PAGE_SIZE
?>
"
style=
"display:block; margin: 0 auto;"
>
<?=
\Yii
::
t
(
'blog'
,
'Load more'
)
?>
</a>
<div
class=
"loading-post"
></div>
</div>
...
...
common/modules/blog/views/post/tag.php
View file @
1d0984da
...
...
@@ -26,7 +26,7 @@ use common\modules\blog\models\Post;
</div>
<div
class=
"load-box"
>
<a
href=
"
#"
class=
"sidebar_btn"
id=
"load-post"
data-offset=
"
<?=
Post
::
PAGE_SIZE
?>
"
data-tag=
"
<?=
$model
->
id
?>
"
style=
"display:block; margin: 0 auto;"
>
Загрузить еще
</a>
<a
href=
"
<?=
Url
::
to
([
'/blog/post/load'
]);
?>
"
class=
"sidebar_btn"
id=
"load-post"
data-offset=
"
<?=
Post
::
PAGE_SIZE
?>
"
data-tag=
"
<?=
$model
->
id
?>
"
style=
"display:block; margin: 0 auto;"
>
<?=
\Yii
::
t
(
'blog'
,
'Load more'
)
?>
</a>
<div
class=
"loading-post"
></div>
</div>
...
...
frontend/messages/ru-RU/blog.php
View file @
1d0984da
...
...
@@ -14,5 +14,9 @@ return [
For example: write about CRM"
=>
"Что хочу почитать?
Например: Хочу почитать про то, как настраивается контекстная реклама.
Про то как выставляются ставки."
,
'Art Project Blog'
=>
'Блог'
'Art Project Blog'
=>
'Блог'
,
'Load more'
=>
'Загрузить еще'
,
'Read more...'
=>
'Читать...'
,
'Follow us!'
=>
'Все секреты в наших соц сетях!'
,
'Offer a subject and we will publish about it'
=>
'Предложите свою тему и мы напишем'
];
\ No newline at end of file
frontend/web/css/custom.css
View file @
1d0984da
...
...
@@ -3307,4 +3307,8 @@ height: auto;
line-height
:
32px
;
}
}
.blog_container
.article_short_txt
p
:not
(
.read-more
)
{
text-indent
:
30px
;
}
\ No newline at end of file
frontend/web/js/custom.js
View file @
1d0984da
...
...
@@ -77,7 +77,7 @@ $(document).ready(function() {
$
.
ajax
({
method
:
'
POST
'
,
url
:
"
/blog/post/load
"
,
url
:
$
(
this
).
attr
(
'
href
'
)
,
data
:
{
offset
:
offset
,
tag
:
tag
...
...
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