parent
d37b84ea42
commit
5da0e87beb
7 changed files with 32 additions and 8 deletions
|
@ -4,8 +4,9 @@ if(!defined('ROOT_DIR'))
|
|||
define('ROOT_DIR', dirname($_SERVER['SCRIPT_FILENAME']));
|
||||
}
|
||||
define('LOCAL_URI', '');
|
||||
if (!defined('RSS_FILE')) define('RSS_FILE', 'rss.xml');
|
||||
if (!defined('DOC_FOLDER')) define('DOC_FOLDER', 'docs/');
|
||||
if (!defined('DOC_FOLDER')) define('DOC_FOLDER', './docs/');
|
||||
if (!defined('RESOURCES_FOLDER')) define('RESOURCES_FOLDER', './resources/');
|
||||
if (!defined('RSS_FILE')) define('RSS_FILE', RESOURCES_FOLDER.'rss.xml');
|
||||
date_default_timezone_set('Europe/Paris');
|
||||
setlocale(LC_TIME, 'fr_FR.UTF-8', 'fr_FR', 'fr');
|
||||
|
||||
|
@ -32,7 +33,7 @@ define( 'ALLOW_NEW_AUTOBLOGS_BY_XSAF', TRUE );
|
|||
$apitwitter = FALSE;
|
||||
|
||||
// Logo à utiliser
|
||||
$logo="./icon-logo.svg";
|
||||
$logo=RESOURCES_FOLDER .'icon-logo.svg';
|
||||
|
||||
// Marquez ici votre propre message qui apparaîtra en bas de page.
|
||||
// exemple :
|
||||
|
|
|
@ -657,10 +657,10 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY
|
|||
<meta charset="utf-8">
|
||||
<title>Projet Autoblog<?php if(!empty($head_title)) { echo " | " . escape($head_title); } ?></title>
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo serverUrl(true) . RSS_FILE;?>" />
|
||||
<link href="autoblog.css" rel="stylesheet" type="text/css">
|
||||
<link href="<?php echo RESOURCES_FOLDER; ?>autoblog.css" rel="stylesheet" type="text/css">
|
||||
<?php
|
||||
if(file_exists('user.css')){
|
||||
echo '<link href="user.css" rel="stylesheet" type="text/css">';
|
||||
if(file_exists(RESOURCES_FOLDER .'user.css')){
|
||||
echo '<link href="'. RESOURCES_FOLDER .'user.css" rel="stylesheet" type="text/css">';
|
||||
}
|
||||
?>
|
||||
</head>
|
||||
|
@ -668,7 +668,7 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY
|
|||
<h1><a href="<?php echo serverUrl(true); ?>">PROJET AUTOBLOG<?php if(!empty($head_title)) { echo " | " . escape($head_title); } ?></a></h1>
|
||||
|
||||
<div class="pbloc">
|
||||
<img id="logo" src="<?php if(isset($logo)) { echo $logo; }else{ echo './icon-logo.svg'; } ?>" alt="">
|
||||
<img id="logo" src="<?php if(isset($logo)) { echo $logo; }else{ echo RESOURCES_FOLDER.'icon-logo.svg'; } ?>" alt="">
|
||||
|
||||
<h2>Présentation</h2>
|
||||
|
||||
|
@ -836,7 +836,7 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY
|
|||
?>
|
||||
|
||||
<div class="pbloc">
|
||||
<h2>Autoblogs hébergés <a href="?rss" title="RSS des changements"><img src="rss.png" alt="rss"/></a></h2>
|
||||
<h2>Autoblogs hébergés <a href="?rss" title="RSS des changements"><img src="<?php echo RESOURCES_FOLDER; ?>rss.png" alt="rss"/></a></h2>
|
||||
<p>
|
||||
<b>Autres fermes</b>
|
||||
→ <a href="https://duckduckgo.com/?q=!g%20%22Voici%20une%20liste%20d'autoblogs%20hébergés%22">Rechercher</a>
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
/**
|
||||
* autoblog.css
|
||||
* ------------
|
||||
* Please do NOT edit this file. Updating your Autoblogs farm will be easier.
|
||||
* If you want to add your own CSS, use the file user.css
|
||||
*
|
||||
*/
|
||||
|
||||
body {background-color:#efefef;text-align:center;color:#333;font-family:sans-serif;}
|
||||
a {color:black;text-decoration:none;font-weight:bold;}
|
||||
a:hover {color:darkred;}
|
0
0.3/icon-logo.svg → 0.3/resources/icon-logo.svg
Executable file → Normal file
0
0.3/icon-logo.svg → 0.3/resources/icon-logo.svg
Executable file → Normal file
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 691 B After Width: | Height: | Size: 691 B |
5
0.3/resources/rss.xml
Normal file
5
0.3/resources/rss.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
||||
<channel>
|
||||
<atom:link href="http://workspace.hoa.ro/autoblog/Projet-Autoblog/0.3//./resources/rss.xml" rel="self" type="application/rss+xml">http://workspace.hoa.ro/autoblog/Projet-Autoblog/0.3/</atom:link><title>Projet Autoblog</title><description>Projet Autoblog - RSS : Ajouts et changements de disponibilité.</description></channel>
|
||||
</rss>
|
10
0.3/resources/user.css.example
Normal file
10
0.3/resources/user.css.example
Normal file
|
@ -0,0 +1,10 @@
|
|||
/**
|
||||
* user.css
|
||||
* ------------
|
||||
* Feel free to add your custom CSS and override original CSS in this file.
|
||||
* Don't forget to rename user.css.example to user.css to make it works.
|
||||
*/
|
||||
|
||||
body {
|
||||
background-color: red;
|
||||
}
|
Loading…
Reference in a new issue