[upd] change via message (@via to Origine =>)
[fix] via field for atom
This commit is contained in:
parent
e8633c6bbe
commit
06d803e78e
2 changed files with 15 additions and 11 deletions
|
@ -954,7 +954,7 @@ function showRSS()
|
|||
if ($usepermalinks===true) $descriptionlink = '(<a href="'.$absurl.'">Link</a>)';
|
||||
if (strlen($link['description'])>0) $descriptionlink = '<br>'.$descriptionlink;
|
||||
if(!empty($link['via'])){
|
||||
$via = '<br>via '.text2clickable(htmlspecialchars($link['via']));
|
||||
$via = '<br>Origine => <a href="'.htmlspecialchars($link['via']).'">'.htmlspecialchars(getJustDomain($link['via'])).'</a>';
|
||||
} else {
|
||||
$via = '';
|
||||
}
|
||||
|
@ -1020,7 +1020,11 @@ function showATOM()
|
|||
|
||||
// Add permalink in description
|
||||
$descriptionlink = htmlspecialchars('(<a href="'.$guid.'">Permalink</a>)');
|
||||
$via = htmlspecialchars('</br> via '.(text2clickable(htmlspecialchars($link['via']))));
|
||||
if(isset($link['via']) && !empty($link['via'])){
|
||||
$via = htmlspecialchars('</br> Origine => <a href="'.$link['via'].'">'.getJustDomain($link['via']).'</a>');
|
||||
} else {
|
||||
$via = '';
|
||||
}
|
||||
// If user wants permalinks first, put the final link in description
|
||||
if ($usepermalinks===true) $descriptionlink = htmlspecialchars('(<a href="'.$absurl.'">Link</a>)');
|
||||
if (strlen($link['description'])>0) $descriptionlink = '<br>'.$descriptionlink;
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
<span class="linktitle"><a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></span>
|
||||
<br>
|
||||
{if="$value.description"}<div class="linkdescription"{if condition="$search_type=='permalink'"} style="max-height:none !important;"{/if}>{$value.description}</div>{/if}
|
||||
{if condition="isset($value.via) && !empty($value.via)"}<div><a href="{$value.via}">@ via {$value.via|getJustDomain}</a></div>{/if}
|
||||
{if condition="isset($value.via) && !empty($value.via)"}<div><a href="{$value.via}">Origine => {$value.via|getJustDomain}</a></div>{/if}
|
||||
{if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
|
||||
<span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span>
|
||||
{else}
|
||||
|
|
Loading…
Reference in a new issue