1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00

Функционал "Поделиться" у топиков

This commit is contained in:
Mzhelskiy Maxim 2012-04-10 09:10:01 +04:00
parent d86684fdf4
commit 522b52f215
2 changed files with 6 additions and 1 deletions

View file

@ -516,6 +516,7 @@ $config['head']['default']['js'] = array(
"___path.root.engine_lib___/internal/template/js/toolbar.js",
"___path.root.engine_lib___/internal/template/js/settings.js",
"___path.root.engine_lib___/internal/template/js/hook.js",
"http://yandex.st/share/share.js" => array('merge'=>false),
);
$config['head']['default']['css'] = array(
"___path.static.skin___/css/reset.css",

View file

@ -40,11 +40,14 @@
<div class="topic-share" id="topic_share_{$oTopic->getId()}">
social buttons
{hookb run="topic_share" topic=$oTopic bTopicList=$bTopicList}
<div class="yashare-auto-init" data-yashareTitle="{$oTopic->getTitle()|escape:'html'}" data-yashareLink="{$oTopic->getUrl()}" data-yashareL10n="ru" data-yashareType="button" data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir,lj,gplus"></div>
{/hookb}
</div>
<ul class="topic-info">
{strip}
<li id="vote_area_topic_{$oTopic->getId()}" class="vote
{if $oVote || ($oUserCurrent && $oTopic->getUserId() == $oUserCurrent->getId()) || strtotime($oTopic->getDateAdd()) < $smarty.now-$oConfig->GetValue('acl.vote.topic.limit_time')}
{if $oTopic->getRating() > 0}
@ -63,6 +66,7 @@
voted-down
{/if}
{/if}">
{/strip}
<div class="vote-up" onclick="return ls.vote.vote({$oTopic->getId()},this,1,'topic');"></div>
<div class="vote-count" id="vote_total_topic_{$oTopic->getId()}" title="{$aLang.topic_vote_count}: {$oTopic->getCountVote()}">
{if $oVote || ($oUserCurrent && $oTopic->getUserId() == $oUserCurrent->getId()) || strtotime($oTopic->getDateAdd()) < $smarty.now-$oConfig->GetValue('acl.vote.topic.limit_time')}