activityReport/inc/lib.parselogs.config.php

62 lines
2.7 KiB
PHP
Raw Normal View History

<?php
2021-09-02 22:18:08 +00:00
/**
* @brief activityReport, a plugin for Dotclear 2
2022-11-18 20:24:30 +00:00
*
2021-09-02 22:18:08 +00:00
* @package Dotclear
* @subpackage Plugin
2022-11-18 20:24:30 +00:00
*
2021-09-02 22:18:08 +00:00
* @author Jean-Christian Denis and contributors
2022-11-18 20:24:30 +00:00
*
2021-09-02 22:18:08 +00:00
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
2021-09-03 07:45:21 +00:00
$format = [
2022-12-20 19:55:48 +00:00
'html' => [
2022-11-18 20:24:30 +00:00
'blog_title' => '<h2><a href="%URL%">%TEXT%</a></h2>',
'blog_open' => '',
'blog_close' => '',
'group_title' => '<h3>%TEXT%</h3>',
'group_open' => '<ul>',
'group_close' => '</ul>',
'action' => '<li><em>%TIME%</em><br />%TEXT%</li>',
'error' => '<p>%TEXT%</p>',
2021-09-03 07:45:21 +00:00
'period_title' => '<h1>%TEXT%</h1>',
2022-11-18 20:24:30 +00:00
'period_open' => '<ul>',
2021-09-03 07:45:21 +00:00
'period_close' => '</ul>',
2022-11-18 20:24:30 +00:00
'info' => '<li>%TEXT%</li>',
'page' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n" .
'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">' . "\n" .
'<head><title>' . __('Activity report') . '</title>' .
'<style type="text/css">' .
' body { color: #303030; background: #FCFCFC; font-size: 0.7em;font-family: Georgia, Tahoma, Arial, Helvetica, sans-serif; }' .
' a { color: #303030; text-decoration: none; }' .
' h1 { text-align: center; font-size: 2em; }' .
' h2 { color: #303030; text-align:center; }' .
' h3 { color: #7F3F3F; }' .
' li em { color: #303030; }' .
' div.info { color: #3F497F; background-color: #F8F8EB; border: 1px solid #888888; margin: 4px; padding: 4px; }' .
' div.content { color: #3F7F47; background-color: #F8F8EB; border: 1px solid #888888; margin: 4px; padding: 4px; }' .
' div.foot { text-align:center; font-size: 0.9em; }' .
'</style>' .
'</head><body>' .
'<div class="info">%PERIOD%</div><div class="content">%TEXT%</div>' .
2022-12-15 23:32:15 +00:00
'<div class="foot"><p>Powered by <a href="https://github.com/JcDenis/activityReport">activityReport</a></p></div>' .
2022-11-18 20:24:30 +00:00
'</body></html>',
2021-09-03 07:45:21 +00:00
],
'plain' => [
2022-11-18 20:24:30 +00:00
'blog_title' => "\n--- %TEXT% ---\n",
'blog_open' => '',
'blog_close' => '',
'group_title' => "\n-- %TEXT% --\n\n",
'group_open' => '',
'group_close' => '',
'action' => "- %TIME% : %TEXT%\n",
'error' => '%TEXT%',
2021-09-03 07:45:21 +00:00
'period_title' => "%TEXT%\n",
2022-11-18 20:24:30 +00:00
'period_open' => '',
2021-09-03 07:45:21 +00:00
'period_close' => '',
2022-11-18 20:24:30 +00:00
'info' => "%TEXT%\n",
'page' => "%PERIOD%\n-----------------------------------------------------------\n%TEXT%",
],
];