|
|
@ -1155,13 +1155,8 @@ function photos_content(App $a) { |
|
|
|
|
|
|
|
$tpl = get_markup_template('photos_upload.tpl'); |
|
|
|
|
|
|
|
if ($a->theme['template_engine'] === 'internal') { |
|
|
|
$albumselect_e = template_escape($albumselect); |
|
|
|
$aclselect_e = (($visitor) ? '' : template_escape(populate_acl($a->user))); |
|
|
|
} else { |
|
|
|
$albumselect_e = $albumselect; |
|
|
|
$aclselect_e = (($visitor) ? '' : populate_acl($a->user)); |
|
|
|
} |
|
|
|
$albumselect_e = $albumselect; |
|
|
|
$aclselect_e = (($visitor) ? '' : populate_acl($a->user)); |
|
|
|
|
|
|
|
$o .= replace_macros($tpl,array( |
|
|
|
'$pagename' => t('Upload Photos'), |
|
|
@ -1236,11 +1231,7 @@ function photos_content(App $a) { |
|
|
|
if ($can_post) { |
|
|
|
$edit_tpl = get_markup_template('album_edit.tpl'); |
|
|
|
|
|
|
|
if ($a->theme['template_engine'] === 'internal') { |
|
|
|
$album_e = template_escape($album); |
|
|
|
} else { |
|
|
|
$album_e = $album; |
|
|
|
} |
|
|
|
$album_e = $album; |
|
|
|
|
|
|
|
$o .= replace_macros($edit_tpl,array( |
|
|
|
'$nametext' => t('New album name: '), |
|
|
@ -1277,13 +1268,8 @@ function photos_content(App $a) { |
|
|
|
|
|
|
|
$ext = $phototypes[$rr['type']]; |
|
|
|
|
|
|
|
if ($a->theme['template_engine'] === 'internal') { |
|
|
|
$imgalt_e = template_escape($rr['filename']); |
|
|
|
$desc_e = template_escape($rr['desc']); |
|
|
|
} else { |
|
|
|
$imgalt_e = $rr['filename']; |
|
|
|
$desc_e = $rr['desc']; |
|
|
|
} |
|
|
|
$imgalt_e = $rr['filename']; |
|
|
|
$desc_e = $rr['desc']; |
|
|
|
|
|
|
|
$photos[] = array( |
|
|
|
'id' => $rr['id'], |
|
|
@ -1548,15 +1534,9 @@ function photos_content(App $a) { |
|
|
|
$public_post_link = '&public=1'; |
|
|
|
} |
|
|
|
|
|
|
|
if ($a->theme['template_engine'] === 'internal') { |
|
|
|
$album_e = template_escape($ph[0]['album']); |
|
|
|
$caption_e = template_escape($ph[0]['desc']); |
|
|
|
$aclselect_e = template_escape(populate_acl($ph[0])); |
|
|
|
} else { |
|
|
|
$album_e = $ph[0]['album']; |
|
|
|
$caption_e = $ph[0]['desc']; |
|
|
|
$aclselect_e = populate_acl($ph[0]); |
|
|
|
} |
|
|
|
$album_e = $ph[0]['album']; |
|
|
|
$caption_e = $ph[0]['desc']; |
|
|
|
$aclselect_e = populate_acl($ph[0]); |
|
|
|
|
|
|
|
$edit = replace_macros($edit_tpl, array( |
|
|
|
'$id' => $ph[0]['id'], |
|
|
@ -1708,15 +1688,9 @@ function photos_content(App $a) { |
|
|
|
'delete' => t('Delete'), |
|
|
|
); |
|
|
|
|
|
|
|
if ($a->theme['template_engine'] === 'internal') { |
|
|
|
$name_e = template_escape($profile_name); |
|
|
|
$title_e = template_escape($item['title']); |
|
|
|
$body_e = template_escape(bbcode($item['body'])); |
|
|
|
} else { |
|
|
|
$name_e = $profile_name; |
|
|
|
$title_e = $item['title']; |
|
|
|
$body_e = bbcode($item['body']); |
|
|
|
} |
|
|
|
$name_e = $profile_name; |
|
|
|
$title_e = $item['title']; |
|
|
|
$body_e = bbcode($item['body']); |
|
|
|
|
|
|
|
$comments .= replace_macros($template,array( |
|
|
|
'$id' => $item['item_id'], |
|
|
@ -1766,17 +1740,10 @@ function photos_content(App $a) { |
|
|
|
|
|
|
|
$photo_tpl = get_markup_template('photo_view.tpl'); |
|
|
|
|
|
|
|
if ($a->theme['template_engine'] === 'internal') { |
|
|
|
$album_e = array($album_link,template_escape($ph[0]['album'])); |
|
|
|
$tags_e = template_escape($tags); |
|
|
|
$like_e = template_escape($like); |
|
|
|
$dislike_e = template_escape($dislike); |
|
|
|
} else { |
|
|
|
$album_e = array($album_link, $ph[0]['album']); |
|
|
|
$tags_e = $tags; |
|
|
|
$like_e = $like; |
|
|
|
$dislike_e = $dislike; |
|
|
|
} |
|
|
|
$album_e = array($album_link, $ph[0]['album']); |
|
|
|
$tags_e = $tags; |
|
|
|
$like_e = $like; |
|
|
|
$dislike_e = $dislike; |
|
|
|
|
|
|
|
$o .= replace_macros($photo_tpl, array( |
|
|
|
'$id' => $ph[0]['id'], |
|
|
@ -1849,13 +1816,8 @@ function photos_content(App $a) { |
|
|
|
|
|
|
|
$ext = $phototypes[$rr['type']]; |
|
|
|
|
|
|
|
if ($a->theme['template_engine'] === 'internal') { |
|
|
|
$alt_e = template_escape($rr['filename']); |
|
|
|
$name_e = template_escape($rr['album']); |
|
|
|
} else { |
|
|
|
$alt_e = $rr['filename']; |
|
|
|
$name_e = $rr['album']; |
|
|
|
} |
|
|
|
$alt_e = $rr['filename']; |
|
|
|
$name_e = $rr['album']; |
|
|
|
|
|
|
|
$photos[] = array( |
|
|
|
'id' => $rr['id'], |
|
|
|