Esempio n. 1
0
// SUBNAVIGATION ITEMS
////////////////////////////////////////////////////////////////////////////////
$chapterpages = array('' => array('Readme', '_readme.textile', 'textile'), 'changelog' => array('Changelog', '_changelog.textile', 'textile'));
// BUILD CHAPTER NAVIGATION
////////////////////////////////////////////////////////////////////////////////
$chapternav = '';
foreach ($chapterpages as $chapterparam => $chapterprops) {
    if ($chapter != $chapterparam) {
        $chapternav .= ' | <a href="?page=' . $mypage . '&subpage=help&chapter=' . $chapterparam . '" class="chapter ' . $chapterparam . ' ' . $chapterprops[2] . '">' . $chapterprops[0] . '</a>';
    } else {
        $chapternav .= ' | <span class="chapter ' . $chapterparam . ' ' . $chapterprops[2] . '">' . $chapterprops[0] . '</span>';
    }
}
$chapternav = ltrim($chapternav, " | ");
// BUILD CHAPTER OUTPUT
////////////////////////////////////////////////////////////////////////////////
$addonroot = $REX['INCLUDE_PATH'] . '/addons/' . $mypage . '/';
$source = $chapterpages[$chapter][1];
$parse = $chapterpages[$chapter][2];
$html = a895_incparse($addonroot, $source, $parse, true);
// OUTPUT
////////////////////////////////////////////////////////////////////////////////
echo '
<div class="rex-addon-output">
  <h2 class="rex-hl2" style="font-size:1em">' . $chapternav . '</h2>
  <div class="rex-addon-content">
    <div class= "addon-template">
    ' . $html . '
    </div>
  </div>
</div>';
Esempio n. 2
0
*/
/**
* SQLBuddy Lib
* @link https://github.com/calvinlough/sqlbuddy
* @version 1.3.3
*/
// ADDON VARS
////////////////////////////////////////////////////////////////////////////////
$mypage = 'mysql_tools';
$myroot = $REX['INCLUDE_PATH'] . '/addons/' . $mypage . '/';
// LOCAL INCLUDES
////////////////////////////////////////////////////////////////////////////////
require_once $myroot . 'functions/function.a895_commons.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 . '">
          ' . a895_incparse($myroot, $v[0], $v[1], true) . '
        </div>
      </div>
    </div>';
    }
}