-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhelp.inc.php
More file actions
48 lines (44 loc) · 1.43 KB
/
help.inc.php
File metadata and controls
48 lines (44 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* Addon_Template
*
* @author http://rexdev.de
* @link http://www.redaxo.de/180-0-addon-details.html?addon_id=720
*
* @package redaxo4.3
* @version 0.1
* $Id$:
*/
// ADDON IDENTIFIER AUS ORDNERNAMEN ABLEITEN
////////////////////////////////////////////////////////////////////////////////
$mypage = explode('/redaxo/include/addons/',str_replace(DIRECTORY_SEPARATOR, '/' ,__FILE__));
$mypage = explode('/',$mypage[1]);
$mypage = $mypage[0];
$myroot = $REX['INCLUDE_PATH'].'/addons/'.$mypage.'/';
// LOCAL INCLUDES
////////////////////////////////////////////////////////////////////////////////
require_once $myroot.'functions/function.a720_incparse.inc.php';
// HELP CONTENT
////////////////////////////////////////////////////////////////////////////////
$help_includes = array
(
'Hilfe' => array('_readme.textile' ,'textile'),
'Changelog' => array('_changelog.textile' ,'textile')
);
// MAIN
////////////////////////////////////////////////////////////////////////////////
foreach($help_includes as $k => $v)
{
if(file_exists($myroot.$v[0]))
{
echo '
<div class="rex-addon-output" style="overflow:auto">
<h2 class="rex-hl2" style="font-size:1em">'.$k.' <span style="color: gray; font-style: normal; font-weight: normal;">( '.$v[0].' )</span></h2>
<div class="rex-addon-content">
<div class="'.$mypage.'">
'.a720_incparse($myroot,$v[0],$v[1],true).'
</div>
</div>
</div>';
}
}