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
cb1092ba
Commit
cb1092ba
authored
Jun 21, 2016
by
Александр Кузнецов
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'task-on.com/faq' into 'master'
новая верстка блога See merge request !38
parents
16cd3320
89d2e209
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
common/modules/blog/views/post/_load.php
common/modules/blog/views/post/_load.php
+2
-1
common/modules/blog/views/post/_social.php
common/modules/blog/views/post/_social.php
+11
-0
common/modules/blog/views/post/index.php
common/modules/blog/views/post/index.php
+0
-5
No files found.
common/modules/blog/views/post/_load.php
View file @
cb1092ba
...
@@ -17,7 +17,8 @@ use yii\helpers\Url;
...
@@ -17,7 +17,8 @@ use yii\helpers\Url;
<span
class=
"article_short_view"
>
<span
class=
"article_short_view"
>
<?=
$model
->
getViews
()
->
count
()
?>
<?=
$model
->
getViews
()
->
count
()
?>
<div
class=
"blog_toltip_left"
>
Количество просмотров
</div>
<div
class=
"blog_toltip_left"
>
Количество просмотров
</div>
</span>
</span>
<?=
$this
->
render
(
'_social'
,
[
'link'
=>
Url
::
to
([
'/blog/'
.
$model
->
url
],
true
),
'title'
=>
$model
->
lang
->
title
])
?>
</div>
</div>
<div
class=
"article_short_tags"
>
<div
class=
"article_short_tags"
>
...
...
common/modules/blog/views/post/_social.php
View file @
cb1092ba
<?
use
common\models\Settings
;
?>
<ul
class=
"article_short_social"
>
<ul
class=
"article_short_social"
>
<li>
<li>
<?
/*
<a href="#" onclick="window.open('http://vkontakte.ru/share.php?url=<?=$link?>&title=<?=$title?>', 'Soc', 'screenX=100,screenY=100,height=500,width=500,location=no,toolbar=no,directories=no,menubar=no,status=no'); return false;"><img src="/images/icon/sh_social_vk.png" height="30" width="30" alt=""></a>
<a href="#" onclick="window.open('http://vkontakte.ru/share.php?url=<?=$link?>&title=<?=$title?>', 'Soc', 'screenX=100,screenY=100,height=500,width=500,location=no,toolbar=no,directories=no,menubar=no,status=no'); return false;"><img src="/images/icon/sh_social_vk.png" height="30" width="30" alt=""></a>
<a href="#" onclick="window.open('http://www.facebook.com/share.php?u=<?=$title?>', 'Soc', 'screenX=100,screenY=100,height=500,width=500,location=no,toolbar=no,directories=no,menubar=no,status=no'); return false;"><img src="/images/icon/sh_social_fb.png" height="30" width="30" alt=""></a>
<a href="#" onclick="window.open('http://www.facebook.com/share.php?u=<?=$title?>', 'Soc', 'screenX=100,screenY=100,height=500,width=500,location=no,toolbar=no,directories=no,menubar=no,status=no'); return false;"><img src="/images/icon/sh_social_fb.png" height="30" width="30" alt=""></a>
<a href="#" onclick="window.open('http://twitter.com/timeline/home?status=<?=$title?>%20<?=$link?>', 'Soc', 'screenX=100,screenY=100,height=500,width=500,location=no,toolbar=no,directories=no,menubar=no,status=no'); return false;"><img src="/images/icon/sh_social_tw.png" height="30" width="30" alt=""></a>
<a href="#" onclick="window.open('http://twitter.com/timeline/home?status=<?=$title?>%20<?=$link?>', 'Soc', 'screenX=100,screenY=100,height=500,width=500,location=no,toolbar=no,directories=no,menubar=no,status=no'); return false;"><img src="/images/icon/sh_social_tw.png" height="30" width="30" alt=""></a>
<a href="#" onclick="window.open('https://plus.google.com/share?url=<?=$link?>', 'Soc', 'screenX=100,screenY=100,height=500,width=500,location=no,toolbar=no,directories=no,menubar=no,status=no'); return false;"><img src="/images/icon/sh_social_gp.png" height="30" width="30" alt=""></a>
<a href="#" onclick="window.open('https://plus.google.com/share?url=<?=$link?>', 'Soc', 'screenX=100,screenY=100,height=500,width=500,location=no,toolbar=no,directories=no,menubar=no,status=no'); return false;"><img src="/images/icon/sh_social_gp.png" height="30" width="30" alt=""></a>
<!-- <a href="#"><img src="/images/icon/sh_social_t.png" height="30" width="30" alt=""></a> -->
<!-- <a href="#"><img src="/images/icon/sh_social_t.png" height="30" width="30" alt=""></a> -->
*/
?>
<?php
$s
=
Settings
::
getValue
(
'social-link-google'
);
if
(
$s
)
:
?>
<a
onclick=
"window.open('https://plus.google.com/share?url=
<?=
$link
?>
', 'Soc', 'screenX=100,screenY=100,height=500,width=500,location=no,toolbar=no,directories=no,menubar=no,status=no'); return false;"
class=
"icon_social_btn icon_social_g"
href=
"
<?=
$s
?>
"
></a>
<?
endif
?>
<?php
$s
=
Settings
::
getValue
(
'social-link-twitter'
);
if
(
$s
)
:
?>
<a
onclick=
"window.open('https://plus.google.com/share?url=
<?=
$link
?>
', 'Soc', 'screenX=100,screenY=100,height=500,width=500,location=no,toolbar=no,directories=no,menubar=no,status=no'); return false;"
class=
"icon_social_btn icon_social_tw"
href=
"
<?=
$s
?>
"
></a>
<?
endif
?>
<?php
$s
=
Settings
::
getValue
(
'social-link-fb'
);
if
(
$s
)
:
?>
<a
onclick=
"window.open('https://plus.google.com/share?url=
<?=
$link
?>
', 'Soc', 'screenX=100,screenY=100,height=500,width=500,location=no,toolbar=no,directories=no,menubar=no,status=no'); return false;"
class=
"icon_social_btn icon_social_f"
href=
"
<?=
$s
?>
"
></a>
<?
endif
?>
<?php
$s
=
Settings
::
getValue
(
'social-link-vk'
);
if
(
$s
)
:
?>
<a
onclick=
"window.open('https://plus.google.com/share?url=
<?=
$link
?>
', 'Soc', 'screenX=100,screenY=100,height=500,width=500,location=no,toolbar=no,directories=no,menubar=no,status=no'); return false;"
class=
"icon_social_btn icon_social_b"
href=
"
<?=
$s
?>
"
></a>
<?
endif
?>
<?php
$s
=
Settings
::
getValue
(
'social-link-instagram'
);
if
(
$s
)
:
?>
<a
onclick=
"window.open('https://plus.google.com/share?url=
<?=
$link
?>
', 'Soc', 'screenX=100,screenY=100,height=500,width=500,location=no,toolbar=no,directories=no,menubar=no,status=no'); return false;"
class=
"icon_social_btn icon_social_inst"
href=
"
<?=
$s
?>
"
></a>
<?
endif
?>
<?php
$s
=
Settings
::
getValue
(
'social-link-youtube'
);
if
(
$s
)
:
?>
<a
onclick=
"window.open('https://plus.google.com/share?url=
<?=
$link
?>
', 'Soc', 'screenX=100,screenY=100,height=500,width=500,location=no,toolbar=no,directories=no,menubar=no,status=no'); return false;"
class=
"icon_social_btn icon_social_yt"
href=
"
<?=
$s
?>
"
></a>
<?
endif
?>
</li>
</li>
</ul>
</ul>
\ No newline at end of file
common/modules/blog/views/post/index.php
View file @
cb1092ba
...
@@ -30,11 +30,6 @@ $this->registerJs("initScrollPager()", yii\web\View::POS_END);
...
@@ -30,11 +30,6 @@ $this->registerJs("initScrollPager()", yii\web\View::POS_END);
<div
class=
"loaded"
>
<div
class=
"loaded"
>
</div>
</div>
<!-- <div class="load-box">-->
<!-- <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
>-->
<div
class=
"btn_show_more_wr"
>
<div
class=
"btn_show_more_wr"
>
<a
href=
"
<?=
Url
::
to
([
'/blog/post/load'
])
?>
"
class=
"btn_show_more"
id=
"load-post"
data-offset=
"
<?=
Post
::
PAGE_SIZE
?>
"
><span><img
src=
"images_new_22.05.16/btn_show_more_arrow.png"
height=
"18"
width=
"18"
alt=
""
></span>
<?=
\Yii
::
t
(
'blog'
,
'Load more'
)
?>
</a>
<a
href=
"
<?=
Url
::
to
([
'/blog/post/load'
])
?>
"
class=
"btn_show_more"
id=
"load-post"
data-offset=
"
<?=
Post
::
PAGE_SIZE
?>
"
><span><img
src=
"images_new_22.05.16/btn_show_more_arrow.png"
height=
"18"
width=
"18"
alt=
""
></span>
<?=
\Yii
::
t
(
'blog'
,
'Load more'
)
?>
</a>
<div
class=
"loading-post"
></div>
<div
class=
"loading-post"
></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