yet another template converted to language neutral format
This commit is contained in:
parent
ea59e199d5
commit
0de88eb6b0
14 changed files with 52 additions and 27 deletions
|
@ -151,7 +151,12 @@ function display_content(&$a) {
|
|||
|
||||
if(can_write_wall($a,$a->profile['uid'])) {
|
||||
if($item['id'] == $item['parent']) {
|
||||
$likebuttons = replace_macros($like_tpl,array('$id' => $item['id']));
|
||||
$likebuttons = replace_macros($like_tpl,array(
|
||||
'$id' => $item['id'],
|
||||
'$likethis' => t("I like this \x28toggle\x29"),
|
||||
'$nolike' => t("I don't like this \x28toggle\x29"),
|
||||
'$wait' => t('Please wait')
|
||||
));
|
||||
}
|
||||
if($item['last-child']) {
|
||||
$comment = replace_macros($cmnt_tpl,array(
|
||||
|
|
|
@ -360,7 +360,12 @@ function network_content(&$a, $update = 0) {
|
|||
|
||||
$likebuttons = '';
|
||||
if($item['id'] == $item['parent']) {
|
||||
$likebuttons = replace_macros($like_tpl,array('$id' => $item['id']));
|
||||
$likebuttons = replace_macros($like_tpl,array(
|
||||
'$id' => $item['id'],
|
||||
'$likethis' => t("I like this \x28toggle\x29"),
|
||||
'$nolike' => t("I don't like this \x28toggle\x29"),
|
||||
'$wait' => t('Please wait')
|
||||
));
|
||||
}
|
||||
|
||||
if($item['last-child']) {
|
||||
|
|
|
@ -1033,8 +1033,14 @@ function photos_content(&$a) {
|
|||
|
||||
$likebuttons = '';
|
||||
|
||||
if($can_post || can_write_wall($a,$owner_uid))
|
||||
$likebuttons = replace_macros($like_tpl,array('$id' => $link_item['id']));
|
||||
if($can_post || can_write_wall($a,$owner_uid)) {
|
||||
$likebuttons = replace_macros($like_tpl,array(
|
||||
'$id' => $item['id'],
|
||||
'$likethis' => t("I like this \x28toggle\x29"),
|
||||
'$nolike' => t("I don't like this \x28toggle\x29"),
|
||||
'$wait' => t('Please wait')
|
||||
));
|
||||
}
|
||||
|
||||
if(! count($r)) {
|
||||
$o .= '<div id="photo-like-div">';
|
||||
|
|
|
@ -302,7 +302,12 @@ function profile_content(&$a, $update = 0) {
|
|||
|
||||
if(can_write_wall($a,$a->profile['profile_uid'])) {
|
||||
if($item['id'] == $item['parent']) {
|
||||
$likebuttons = replace_macros($like_tpl,array('$id' => $item['id']));
|
||||
$likebuttons = replace_macros($like_tpl,array(
|
||||
'$id' => $item['id'],
|
||||
'$likethis' => t("I like this \x28toggle\x29"),
|
||||
'$nolike' => t("I don't like this \x28toggle\x29"),
|
||||
'$wait' => t('Please wait')
|
||||
));
|
||||
}
|
||||
if($item['last-child']) {
|
||||
$comment = replace_macros($cmnt_tpl,array(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue