Esempio n. 1
0
" lang="<?php 
echo $conf['lang'];
?>
" dir="ltr">
<head>
  <title><?php 
echo hsc($lang['mediaselect']);
?>
 [<?php 
echo hsc($conf['title']);
?>
]</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <?php 
tpl_metaheaders();
?>

  <link rel="shortcut icon" href="<?php 
echo DOKU_BASE;
?>
images/favicon.ico" />
  <link rel="stylesheet" media="screen" type="text/css" href="<?php 
echo DOKU_TPL;
?>
layout.css" />
  <link rel="stylesheet" media="screen" type="text/css" href="<?php 
echo DOKU_TPL;
?>
design.css" />
</head>
 lang="<?php 
echo $conf['lang'];
?>
" dir="<?php 
echo $lang['direction'];
?>
">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>project:chorus ~ <?php 
tpl_pagetitle();
?>
</title>

	<?php 
tpl_metaheaders(false, $CONF_TPL);
?>

	<link rel="shortcut icon" href="<?php 
echo $DOKU_TPL;
?>
images/favicon.ico" />
	<!--
	<link rel="alternate" type="application/rss+xml" title="pesartain.com/blog ~ The Last Word" href="/feed.php?ns=blog&amp;num=10&amp;linkto=current&amp;content=html" />
	-->

	<?php 
/*old includehook*/
@(include dirname(__FILE__) . '/meta.html');
?>
</head>
Esempio n. 3
0
/**
 * Export a wiki page for various formats
 *
 * Triggers ACTION_EXPORT_POSTPROCESS
 *
 *  Event data:
 *    data['id']      -- page id
 *    data['mode']    -- requested export mode
 *    data['headers'] -- export headers
 *    data['output']  -- export output
 *
 * @author Andreas Gohr <*****@*****.**>
 * @author Michael Klier <*****@*****.**>
 */
function act_export($act)
{
    global $ID;
    global $REV;
    global $conf;
    global $lang;
    $pre = '';
    $post = '';
    $output = '';
    $headers = array();
    // search engines: never cache exported docs! (Google only currently)
    $headers['X-Robots-Tag'] = 'noindex';
    $mode = substr($act, 7);
    switch ($mode) {
        case 'raw':
            $headers['Content-Type'] = 'text/plain; charset=utf-8';
            $headers['Content-Disposition'] = 'attachment; filename=' . noNS($ID) . '.txt';
            $output = rawWiki($ID, $REV);
            break;
        case 'xhtml':
            $pre .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"' . DOKU_LF;
            $pre .= ' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . DOKU_LF;
            $pre .= '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . $conf['lang'] . '"' . DOKU_LF;
            $pre .= ' lang="' . $conf['lang'] . '" dir="' . $lang['direction'] . '">' . DOKU_LF;
            $pre .= '<head>' . DOKU_LF;
            $pre .= '  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />' . DOKU_LF;
            $pre .= '  <title>' . $ID . '</title>' . DOKU_LF;
            // get metaheaders
            ob_start();
            tpl_metaheaders();
            $pre .= ob_get_clean();
            $pre .= '</head>' . DOKU_LF;
            $pre .= '<body>' . DOKU_LF;
            $pre .= '<div class="dokuwiki export">' . DOKU_LF;
            // get toc
            $pre .= tpl_toc(true);
            $headers['Content-Type'] = 'text/html; charset=utf-8';
            $output = p_wiki_xhtml($ID, $REV, false);
            $post .= '</div>' . DOKU_LF;
            $post .= '</body>' . DOKU_LF;
            $post .= '</html>' . DOKU_LF;
            break;
        case 'xhtmlbody':
            $headers['Content-Type'] = 'text/html; charset=utf-8';
            $output = p_wiki_xhtml($ID, $REV, false);
            break;
        default:
            $output = p_cached_output(wikiFN($ID, $REV), $mode);
            $headers = p_get_metadata($ID, "format {$mode}");
            break;
    }
    // prepare event data
    $data = array();
    $data['id'] = $ID;
    $data['mode'] = $mode;
    $data['headers'] = $headers;
    $data['output'] =& $output;
    trigger_event('ACTION_EXPORT_POSTPROCESS', $data);
    if (!empty($data['output'])) {
        if (is_array($data['headers'])) {
            foreach ($data['headers'] as $key => $val) {
                header("{$key}: {$val}");
            }
        }
        print $pre . $data['output'] . $post;
        exit;
    }
    return 'show';
}
Esempio n. 4
0
 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
 */
// must be run from within DokuWiki
if (!defined('DOKU_INC')) die();

?><!DOCTYPE html>
<html lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>" class="popup no-js">
<head>
    <meta charset="utf-8" />
    <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><![endif]-->
    <title>
        <?php echo hsc($lang['mediaselect'])?>
        [<?php echo strip_tags($conf['title'])?>]
    </title>
    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
    <?php tpl_metaheaders()?>
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
    <?php tpl_includeFile('meta.html') ?>
</head>

<body>
    <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
    <div id="media__manager" class="dokuwiki">
        <?php html_msgarea() ?>
        <div id="mediamgr__aside"><div class="pad">
            <h1><?php echo hsc($lang['mediaselect'])?></h1>

            <?php /* keep the id! additional elements are inserted via JS here */?>
            <div id="media__opts"></div>
Esempio n. 5
0
/**
 * Handle 'edit', 'preview'
 *
 * @author Andreas Gohr <*****@*****.**>
 */
function act_export($act)
{
    global $ID;
    global $REV;
    // search engines: never cache exported docs! (Google only currently)
    header('X-Robots-Tag: noindex');
    // no renderer for this
    if ($act == 'export_raw') {
        header('Content-Type: text/plain; charset=utf-8');
        print rawWiki($ID, $REV);
        exit;
    }
    // html export #FIXME what about the template's style?
    if ($act == 'export_xhtml') {
        global $conf;
        global $lang;
        header('Content-Type: text/html; charset=utf-8');
        ptln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"');
        ptln(' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
        ptln('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . $conf['lang'] . '"');
        ptln(' lang="' . $conf['lang'] . '" dir="' . $lang['direction'] . '">');
        ptln('<head>');
        ptln('  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />');
        ptln('  <title>' . $ID . '</title>');
        tpl_metaheaders();
        ptln('</head>');
        ptln('<body>');
        ptln('<div class="dokuwiki export">');
        $html = p_wiki_xhtml($ID, $REV, false);
        tpl_toc();
        echo $html;
        ptln('</div>');
        ptln('</body>');
        ptln('</html>');
        exit;
    }
    // html body only
    if ($act == 'export_xhtmlbody') {
        $html = p_wiki_xhtml($ID, $REV, false);
        tpl_toc();
        echo $html;
        exit;
    }
    // try to run renderer
    $mode = substr($act, 7);
    $text = p_cached_output(wikiFN($ID, $REV), $mode);
    $headers = p_get_metadata($ID, "format {$mode}");
    if (!is_null($text)) {
        if (is_array($headers)) {
            foreach ($headers as $key => $val) {
                header("{$key}: {$val}");
            }
        }
        print $text;
        exit;
    }
    return 'show';
}
Esempio n. 6
0
// output plugin in a very minimal template:
?>
<!DOCTYPE html>
<html lang="<?php 
echo $conf['lang'];
?>
" dir="<?php 
echo $lang['direction'];
?>
">
<head>
    <meta charset="utf-8" />
    <title><?php 
echo $plugin->getLang('menu');
?>
</title>
    <?php 
tpl_metaheaders(false);
?>
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <?php 
echo tpl_favicon(array('favicon'));
?>
</head>
<body class="dokuwiki">
    <?php 
$plugin->html();
?>
</body>
</html>