issue #86 - like/dislike in photos not working
This commit is contained in:
parent
b2d949ce9a
commit
de697a4267
@ -2221,7 +2221,7 @@ function handle_tag($a, &$body, &$access_tag, &$str_tags, $profile_uid, $tag, $d
|
||||
}
|
||||
if($tag == '#getzot') {
|
||||
$basetag = 'getzot';
|
||||
$url = 'https://redmatrix.me';
|
||||
$url = 'http://hubzilla.org';
|
||||
$newtag = '#[zrl=' . $url . ']' . $basetag . '[/zrl]';
|
||||
$body = str_replace($tag,$newtag,$body);
|
||||
$replaced = true;
|
||||
|
@ -982,13 +982,13 @@ function photos_content(&$a) {
|
||||
$likebuttons = '';
|
||||
|
||||
if($can_post || $can_comment) {
|
||||
$likebuttons = replace_macros($like_tpl,array(
|
||||
'$id' => $link_item['id'],
|
||||
'$likethis' => t("I like this \x28toggle\x29"),
|
||||
'$nolike' => t("I don't like this \x28toggle\x29"),
|
||||
'$share' => t('Share'),
|
||||
'$wait' => t('Please wait')
|
||||
));
|
||||
$likebuttons = array(
|
||||
'id' => $link_item['id'],
|
||||
'likethis' => t("I like this \x28toggle\x29"),
|
||||
'nolike' => t("I don't like this \x28toggle\x29"),
|
||||
'share' => t('Share'),
|
||||
'wait' => t('Please wait')
|
||||
);
|
||||
}
|
||||
|
||||
$comments = '';
|
||||
|
@ -165,7 +165,7 @@ function siteinfo_content(&$a) {
|
||||
'$loadavg_all' => $loadavg[0] . ', ' . $loadavg[1] . ', ' . $loadavg[2],
|
||||
'$commit' => $commit,
|
||||
'$web_location' => t('Running at web location') . ' ' . z_root(),
|
||||
'$visit' => t('Please visit <a href="https://redmatrix.me">redmatrix.me</a> to learn more about $Projectname.'),
|
||||
'$visit' => t('Please visit <a href="http://hubzilla.org">hubzilla.org</a> to learn more about $Projectname.'),
|
||||
'$bug_text' => t('Bug reports and issues: please visit'),
|
||||
'$bug_link_url' => 'https://github.com/redmatrix/hubzilla/issues',
|
||||
'$bug_link_text' => t('$projectname issues'),
|
||||
|
@ -133,14 +133,14 @@
|
||||
{{/if}}
|
||||
{{if $likebuttons}}
|
||||
<div class="photo-item-tools-right btn-group pull-right">
|
||||
<button type="button" class="btn btn-default btn-sm" onclick="dolike({{$id}},'like'); return false">
|
||||
<i class="icon-thumbs-up-alt" title="{{$likethis}}"></i>
|
||||
<button type="button" class="btn btn-default btn-sm" onclick="dolike({{$likebuttons.id}},'like'); return false">
|
||||
<i class="icon-thumbs-up-alt" title="{{$likebuttons.likethis}}"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-default btn-sm" onclick="dolike({{$id}},'dislike'); return false">
|
||||
<i class="icon-thumbs-down-alt" title="{{$nolike}}"></i>
|
||||
<button type="button" class="btn btn-default btn-sm" onclick="dolike({{$likebuttons.id}},'dislike'); return false">
|
||||
<i class="icon-thumbs-down-alt" title="{{$likebuttons.nolike}}"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div id="like-rotator-{{$id}}" class="photo-like-rotator pull-right"></div>
|
||||
<div id="like-rotator-{{$likebuttons.id}}" class="photo-like-rotator pull-right"></div>
|
||||
{{/if}}
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user