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
f3e76ec8
Commit
f3e76ec8
authored
May 02, 2016
by
Shakarim Sapa
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
93374cfd
050e5442
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
86 additions
and
42 deletions
+86
-42
common/modules/blog/views/post/_modals.php
common/modules/blog/views/post/_modals.php
+2
-2
common/modules/blog/views/post/index.php
common/modules/blog/views/post/index.php
+1
-0
common/modules/blog/views/post/tag.php
common/modules/blog/views/post/tag.php
+1
-0
common/modules/blog/views/post/view.php
common/modules/blog/views/post/view.php
+12
-0
frontend/messages/ru-RU/blog.php
frontend/messages/ru-RU/blog.php
+2
-1
frontend/views/layouts/block/callback.php
frontend/views/layouts/block/callback.php
+3
-2
frontend/web/css/screen.css
frontend/web/css/screen.css
+1
-1
frontend/web/js/common.js
frontend/web/js/common.js
+11
-1
frontend/web/js/custom.js
frontend/web/js/custom.js
+53
-35
No files found.
common/modules/blog/views/post/_modals.php
View file @
f3e76ec8
...
...
@@ -9,7 +9,7 @@ use common\modules\bids\models\Bid;
<div
class=
"hidden"
>
<div
id=
"article"
class=
"popup popup_2 blog_form"
>
<div
class=
"txtbtnclose"
>
<?=
\Yii
::
t
(
'blog'
,
'Close'
)
?>
</div>
<span
class=
"popup__title"
>
<?=
\Yii
::
t
(
'blog'
,
'Suggest an article for the blog'
)
?>
</span>
<?php
...
...
@@ -81,7 +81,7 @@ use common\modules\bids\models\Bid;
<div
id=
"feedback"
class=
"popup popup_2 blog_form_2"
>
<
!-- <div class="txtbtnclose">Закрыть</div> --
>
<
div
class=
"txtbtnclose"
>
<?=
\Yii
::
t
(
'blog'
,
'Close'
)
?>
</div
>
<span
class=
"popup__title"
>
<?=
\Yii
::
t
(
'blog'
,
'Offer a subject'
)
?>
</span>
<p><strong>
<?=
\Yii
::
t
(
'blog'
,
"We are ready to share our experience, let us know what a topic you're interested in."
)
?>
</strong></p>
<br>
...
...
common/modules/blog/views/post/index.php
View file @
f3e76ec8
...
...
@@ -8,6 +8,7 @@ use common\modules\blog\models\Post;
/* @var $this yii\web\View */
/* @var $model common\modules\blog\models\Post */
$this
->
registerJs
(
"initScrollPager()"
,
yii\web\View
::
POS_END
);
?>
<div
class=
"blog_container"
>
...
...
common/modules/blog/views/post/tag.php
View file @
f3e76ec8
...
...
@@ -8,6 +8,7 @@ use common\modules\blog\models\Post;
/* @var $this yii\web\View */
/* @var $model common\modules\blog\models\Post */
$this
->
registerJs
(
"initScrollPager()"
,
yii\web\View
::
POS_END
);
?>
<div
class=
"blog_container"
>
...
...
common/modules/blog/views/post/view.php
View file @
f3e76ec8
...
...
@@ -6,6 +6,18 @@ use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model common\modules\blog\models\Post */
$this
->
registerJs
(
"
$('.article_short_txt').find('img').click(function() {
$.magnificPopup.open({
items: {
src: $(this).attr('src')
},
image: {
cursor: 'pointer',
},
type: 'image'
});
});"
,
yii\web\View
::
POS_END
);
?>
...
...
frontend/messages/ru-RU/blog.php
View file @
f3e76ec8
...
...
@@ -18,5 +18,6 @@ For example: write about CRM" => "Что хочу почитать?
'Load more'
=>
'Загрузить еще'
,
'Read more...'
=>
'Читать...'
,
'Follow us!'
=>
'Все секреты в наших соц сетях!'
,
'Offer a subject and we will publish about it'
=>
'Предложите свою тему и мы напишем'
'Offer a subject and we will publish about it'
=>
'Предложите свою тему и мы напишем'
,
'Close'
=>
'Закрыть'
];
\ No newline at end of file
frontend/views/layouts/block/callback.php
View file @
f3e76ec8
...
...
@@ -58,6 +58,7 @@ use common\modules\bids\models\Bid;
<?php
ActiveForm
::
end
();
?>
</div>
<?php
echo
\common\modules\users\widgets\LoginWidget
::
widget
();
?>
<?php
echo
\common\modules\users\widgets\RegistrationWidget
::
widget
();
?>
<?php
//todo ?? ?>
<?
php
//echo \common\modules\users\widgets\LoginWidget::widget(); ?>
<?
php
//echo \common\modules\users\widgets\RegistrationWidget::widget(); ?>
</
div
>
\ No newline at end of file
frontend/web/css/screen.css
View file @
f3e76ec8
...
...
@@ -13991,7 +13991,7 @@ a.appl_btn {
text-decoration: underline;
}
.article_short_txt {
overflow-x
:
auto
;
}
.article_short_txt img {
margin: 14px 0 11px;
...
...
frontend/web/js/common.js
View file @
f3e76ec8
...
...
@@ -310,7 +310,17 @@ $(document).ready(function() {
midClick
:
true
,
removalDelay
:
300
,
mainClass
:
'
my-mfp-zoom-in
'
mainClass
:
'
my-mfp-zoom-in
'
,
callbacks
:
{
open
:
function
()
{
$
(
'
.mfp-close
'
).
mouseover
(
function
()
{
$
(
this
).
parent
().
find
(
'
.txtbtnclose
'
).
show
();
}).
mouseout
(
function
()
{
$
(
this
).
parent
().
find
(
'
.txtbtnclose
'
).
hide
();
});
}
}
});
$
(
"
.toggle-mnu
"
).
click
(
function
()
{
$
(
this
).
toggleClass
(
"
on
"
);
...
...
frontend/web/js/custom.js
View file @
f3e76ec8
...
...
@@ -68,41 +68,7 @@ $(document).ready(function() {
return
false
;
});
$
(
'
a#load-post
'
).
click
(
function
()
{
var
button
=
$
(
this
),
loading
=
$
(
'
.loading-post
'
),
offset
=
button
.
data
(
'
offset
'
),
tag
=
button
.
data
(
'
tag
'
);
button
.
hide
();
loading
.
show
();
$
.
ajax
({
method
:
'
POST
'
,
url
:
$
(
this
).
attr
(
'
href
'
),
data
:
{
offset
:
offset
,
tag
:
tag
},
success
:
function
(
response
)
{
$
(
'
.loaded
'
).
append
(
response
.
posts
);
button
.
data
(
'
offset
'
,
response
.
offset
);
if
(
response
.
count
<=
response
.
offset
)
{
button
.
hide
();
}
else
{
button
.
show
();
}
loading
.
hide
();
}
});
return
false
;
});
$
(
'
a#load-post
'
).
click
(
loadPosts
);
$
.
ajax
({
url
:
"
/sessions/default/add
"
...
...
@@ -133,8 +99,60 @@ $(document).ready(function() {
}).
on
(
'
submit
'
,
function
(
e
){
return
false
;
});
});
var
loadProcess
=
false
;
var
allPostsLoaded
=
false
;
function
initScrollPager
()
{
var
maxPosition
=
$
(
window
).
scrollTop
();
$
(
window
).
scroll
(
function
()
{
var
position
=
$
(
window
).
scrollTop
()
+
$
(
window
).
height
();
if
(
position
>=
maxPosition
&&
position
>=
$
(
document
).
height
()
-
300
&&
!
loadProcess
&&
!
allPostsLoaded
)
{
maxPosition
=
position
;
loadPosts
();
}
});
}
function
loadPosts
()
{
var
button
=
$
(
'
a#load-post
'
),
loading
=
$
(
'
.loading-post
'
),
offset
=
button
.
data
(
'
offset
'
),
tag
=
button
.
data
(
'
tag
'
);
$
.
ajax
({
method
:
'
POST
'
,
url
:
button
.
attr
(
'
href
'
),
data
:
{
offset
:
offset
,
tag
:
tag
},
success
:
function
(
response
)
{
$
(
'
.loaded
'
).
append
(
response
.
posts
);
button
.
data
(
'
offset
'
,
response
.
offset
);
if
(
response
.
count
<=
response
.
offset
)
{
allPostsLoaded
=
true
;
button
.
hide
();
}
else
{
button
.
show
();
}
},
beforeSend
:
function
()
{
button
.
hide
();
loading
.
show
();
loadProcess
=
true
;
}
}).
done
(
function
()
{
loading
.
hide
();
loadProcess
=
false
;
});
return
false
;
}
if
(
$
(
'
#chart-container
'
).
length
>
0
)
{
FusionCharts
.
ready
(
function
()
{
...
...
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