mirror of
https://github.com/friendica/friendica
synced 2024-11-14 05:02:54 +00:00
Issue 2864: Add a "alternate" link on display page
This commit is contained in:
parent
7fb4b1be12
commit
932e14971f
2 changed files with 5 additions and 5 deletions
|
@ -209,9 +209,6 @@ function display_content(App $a, $update = 0) {
|
||||||
|
|
||||||
$o = '';
|
$o = '';
|
||||||
|
|
||||||
$a->page['htmlhead'] .= replace_macros(get_markup_template('display-head.tpl'), array());
|
|
||||||
|
|
||||||
|
|
||||||
if ($update) {
|
if ($update) {
|
||||||
$nick = $_REQUEST['nick'];
|
$nick = $_REQUEST['nick'];
|
||||||
} else {
|
} else {
|
||||||
|
@ -281,6 +278,10 @@ function display_content(App $a, $update = 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$alternate = App::get_baseurl().'/display/'.$nick.'/'.$item_id.'.atom';
|
||||||
|
$a->page['htmlhead'] .= replace_macros(get_markup_template('display-head.tpl'),
|
||||||
|
array('$alternate' => $alternate));
|
||||||
|
|
||||||
|
|
||||||
$groups = array();
|
$groups = array();
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
|
<link href='{{$alternate}}' rel='alternate' type='application/atom+xml'>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$(".comment-edit-wrapper textarea").editor_autocomplete(baseurl+"/acl");
|
$(".comment-edit-wrapper textarea").editor_autocomplete(baseurl+"/acl");
|
||||||
|
@ -6,4 +6,3 @@ $(document).ready(function() {
|
||||||
$(".wall-item-comment-wrapper textarea").editor_autocomplete(baseurl+"/acl");
|
$(".wall-item-comment-wrapper textarea").editor_autocomplete(baseurl+"/acl");
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue