Merge https://github.com/friendica/red into zpull
This commit is contained in:
commit
4517bdcff1
@ -1296,15 +1296,18 @@ function prepare_page($item) {
|
||||
|
||||
$a = get_app();
|
||||
$naked = ((get_pconfig($item['uid'],'system','nakedpage')) ? 1 : 0);
|
||||
$observer = $a->get_observer();
|
||||
$zid = ($observer['xchan_addr']);
|
||||
|
||||
if(array_key_exists('webpage',$a->layout) && array_key_exists('authored',$a->layout['webpage'])) {
|
||||
if($a->layout['webpage']['authored'] === 'none')
|
||||
$naked = 1;
|
||||
// ... other possible options
|
||||
}
|
||||
|
||||
return replace_macros(get_markup_template('page_display.tpl'),array(
|
||||
'$author' => (($naked) ? '' : $item['author']['xchan_name']),
|
||||
'$auth_url' => (($naked) ? '' : $item['author']['xchan_url']),
|
||||
'$zid' => $zid,
|
||||
'$date' => (($naked) ? '' : datetime_convert('UTC',date_default_timezone_get(),$item['created'],'Y-m-d H:i')),
|
||||
'$title' => smilies(bbcode($item['title'])),
|
||||
'$body' => prepare_body($item,true)
|
||||
|
@ -7,7 +7,7 @@ function xref_init(&$a) {
|
||||
// Cookie lasts 24 hours to survive a browser restart. Contains no personal
|
||||
// information at all - just somebody else's xchan.
|
||||
$referrer = argv(1);
|
||||
$expire=time()+60*60*24;
|
||||
$expire=time()+60*60*2;
|
||||
$path = 'xref';
|
||||
setcookie($path, $referrer, $expire, "/");
|
||||
$url = '';
|
||||
|
5424
view/de/messages.po
5424
view/de/messages.po
File diff suppressed because it is too large
Load Diff
1003
view/de/strings.php
1003
view/de/strings.php
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,7 @@
|
||||
|
||||
<div class="generic-content-wrapper" id="page-content-wrapper" >
|
||||
<h3 class="page-title">{{$title}}</h3>
|
||||
<div class="page-author"><a class=="page-author-link" href="{{$auth_url}}">{{$author}}</a></div>
|
||||
<div class="page-author"><a class=="page-author-link" href="{{$auth_url}}{{if $zid}}?zrl={{$zid}}{{/if}}">{{$author}}</a></div>
|
||||
<div class="page-date">{{$date}}</div>
|
||||
<div class="page-body">{{$body}}</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user