modified: 0.3/autoblog.php

modified:   0.3/index.php
- ajout de liens pour récupérer la config OPML d'un autoblog
/!\ NON OPERATIONNEL:: manque la création et l'envoi de l'OPML dans autoblog.php
This commit is contained in:
Mitsukarenai 2013-02-23 16:46:50 +01:00
parent c818b81d0c
commit e5985bab88
2 changed files with 2 additions and 2 deletions

View file

@ -804,7 +804,7 @@ else
echo '
<div class="footer">
<p>Propulsé par <a href="https://github.com/mitsukarenai/Projet-Autoblog">Projet Autoblog '.$vvbversion.'</a> - <a href="?feed">'.__('RSS Feed').'</a></p>
<p>'.__('Download:').' <a href="'.LOCAL_URL.basename(CONFIG_FILE).'">'.__('configuration').'</a>
<p>'.__('Download:').' <a href="'.LOCAL_URL.basename(CONFIG_FILE).'">'.__('configuration').'</a> (<a href="?opml">OPML</a>)
- <a href="'.LOCAL_URL.basename(ARTICLES_DB_FILE).'">'.__('articles').'</a><p/>
<p><a href="'.LOCAL_URL.'?media">'.__('Media export').' <sup> JSON</sup></a></p>
</div>';

View file

@ -571,7 +571,7 @@ if( !empty($_POST['opml']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_OPML
foreach ($autoblogs as $key => $autoblog) {
$autoblogs_display .= '<div class="vignette">
<div class="title"><a title="'.escape($autoblog->site_title).'" href="'.$key.'/"><img width="15" height="15" alt="" src="./?check='.$key.'"> '.escape($autoblog->site_title).'</a></div>
<div class="source"><a href="'.$key.'/vvb.ini">config</a> | '.escape($autoblog->site_type).' source: <a href="'.escape($autoblog->site_url).'">'.escape($autoblog->site_url).'</a></div>
<div class="source">config <sup><a href="'.$key.'/vvb.ini">ini</a> <a href="'.$key.'/?opml">opml</a></sup> | '.escape($autoblog->site_type).' source: <a href="'.escape($autoblog->site_url).'">'.escape($autoblog->site_url).'</a></div>
</div>';
}
}