Skip to content

Commit

Permalink
fix fb
Browse files Browse the repository at this point in the history
  • Loading branch information
CB9TOIIIA committed Sep 19, 2016
1 parent 390a552 commit 4097f15
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion myjbzoostat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<authorUrl>http://cb9t.ru</authorUrl>
<copyright></copyright>
<license></license>
<version>2.4.3</version>
<version>2.4.4</version>
<description>MyJBZooStat - это компонент статистики и менеджер системы комментирования Disqus.</description>
<creationDate>28 June 2016</creationDate>
<administration>
Expand Down
36 changes: 18 additions & 18 deletions views/auhorsprofile/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,13 +495,9 @@ function rdate($param, $time=0) {

echo "<td><a target='_blank' href='{$myurltosite}'>".$aliname."</a></td>";

if ($keymonthcountv > '100' && $more100social == 'yes') {
echo "<td>Счетчики отключены (>100)</td>";
}
else {


if ($fb_fgc == 'yes' && !empty($fb_app_token)) {
if ($fb_fgc == 'yes' && !empty($fb_app_token) && $more100social != 'yes') {

#dev
#$myurltosite = str_replace('site.local','site.com',$myurltosite);
Expand Down Expand Up @@ -532,26 +528,30 @@ function rdate($param, $time=0) {
$myfbcountrezervdec = json_decode($fbsharegetapi, true);
$myfbcount = $myfbcountrezervdec['share']['share_count'];
// dump($myfbcountrezervdec,0,'$myfbcountrezervdec');
if (!empty($myfbcount)) {
echo "<div class='fbminidiv'>";
echo '<img class=="fbimgmini" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAM1BMVEU7V5Y7V5g7WZc7WZg9WplOaaJnfq9sg7J1ird7j7qBlL2Wpsicq8udrMzAyt7P1ub///8xwDQLAAAAA3RSTlPGycoO3WmFAAAAR0lEQVQoz6XOORaAMAwDUYcYzCaY+5+WDuy0qPzFPNnUy5r1YR/4dioyXIASBAMcsHtuCDxFQzdIywsCgHWEuTbqsT/QKtgD7m8Fvl8KS70AAAAASUVORK5CYII="> ';
echo $myfbcount;
//usleep(10000); //need?
echo "</div>";
if (!empty($myfbcount)) {
echo "<div class='fbminidiv'>";
echo '<img class=="fbimgmini" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAM1BMVEU7V5Y7V5g7WZc7WZg9WplOaaJnfq9sg7J1ird7j7qBlL2Wpsicq8udrMzAyt7P1ub///8xwDQLAAAAA3RSTlPGycoO3WmFAAAAR0lEQVQoz6XOORaAMAwDUYcYzCaY+5+WDuy0qPzFPNnUy5r1YR/4dioyXIASBAMcsHtuCDxFQzdIywsCgHWEuTbqsT/QKtgD7m8Fvl8KS70AAAAASUVORK5CYII="> ';
echo $myfbcount;
echo "</div>";
echo " <div class='ya-share2' data-services='vkontakte,odnoklassniki,moimir,gplus' data-url='{$myurltosite}' data-size='m' data-counter=''></div>";
}
else {
$fbcountget = "Временно невозможно получить версию";
}

}
if (empty($myfbcount)) {
echo $myfbcount = "<div class='fbminidiv'><a href='http://graph.facebook.com/?id={$myurltosite}' target='_blank'> Нет данных - FB <em class='icon-out-2'></em> </a> </div> <div class='ya-share2' data-services='vkontakte,odnoklassniki,moimir,gplus' data-url='{$myurltosite}' data-size='m' data-counter=''></div>";
}
//usleep(10000); //need?
echo "</td>";
}
else {
echo "<td><div class='ya-share2' data-services='vkontakte,facebook,odnoklassniki,moimir,gplus' data-url='{$myurltosite}' data-size='m' data-counter=''></div></td>";


if ($keymonthcountv > '100' || $more100social == 'yes') {
echo "<td>Счетчики отключены (>100)</td>";
}

if ($fb_fgc != 'yes' && $more100social != 'yes') {
echo "<td><div class='ya-share2' data-services='vkontakte,facebook,odnoklassniki,moimir,gplus' data-url='{$myurltosite}' data-size='m' data-counter=''></div></td>";
}

}

if (!empty($disqusApiShort)) : echo "<td><span class='disqus-comment-count' data-disqus-url='{$myurltosite}'></span></td>"; endif;
echo "</tr>";
Expand Down

0 comments on commit 4097f15

Please sign in to comment.