当前位置: 首页>>代码示例>>PHP>>正文


PHP do_plugin_convert函数代码示例

本文整理汇总了PHP中do_plugin_convert函数的典型用法代码示例。如果您正苦于以下问题:PHP do_plugin_convert函数的具体用法?PHP do_plugin_convert怎么用?PHP do_plugin_convert使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了do_plugin_convert函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: plugin_navibar2_convert

function plugin_navibar2_convert()
{
    global $vars, $hr;
    $page = strip_bracket($vars['page']);
    $navi_page = plugin_navibar2_search_navipage($page);
    if (!empty($navi_page)) {
        return plugin_navibar2_makehtml($navi_page);
    }
    exist_plugin('navibar');
    return do_plugin_convert('navibar', NAVIBAR2_DEFAULT_PARM) . $hr;
}
开发者ID:aterai,项目名称:pukiwiki-plus-i18n,代码行数:11,代码来源:navibar2.inc.php

示例2: plugin_gcounter_convert

function plugin_gcounter_convert()
{
    if (!exist_plugin_convert('counter')) {
        return '<p>gcounter(): counter plugin does not exist.</p>';
    }
    if (plugin_gcounter_init_gcounter() === FALSE) {
        return '<p>gcounter(): failed to create gcounter log file.</p>';
    }
    global $vars;
    $tmp = $vars['page'];
    $vars['page'] = PLUGIN_GCOUNTER_PAGE;
    $args = func_get_args();
    $body = do_plugin_convert('counter', csv_implode(',', $args));
    $vars['page'] = $tmp;
    return $body;
}
开发者ID:orangeal2o3,项目名称:pukiwiki-plugin,代码行数:16,代码来源:gcounter.inc.php

示例3: do_plugin_convert

<?php 
        } else {
            if ($pkwk_dtd >= PKWK_DTD_HTML_4_01_FRAMESET) {
                ?>
  <a href="http://validator.w3.org/check/referer"><img src="image/valid-html40.png" width="88" height="31" alt="Valid HTML 4.0" title="Valid HTML 4.0" /></a>
<?php 
            }
        }
    }
    ?>
 </div></td>
</tr>
</table>
</div>
<?php 
}
if ($bodytable_width > 0) {
    ?>
</td>
  </tr>
</table>
<?php 
}
if (exist_plugin_convert('tz')) {
    echo do_plugin_convert('tz');
}
echo $foot_tag;
?>
</body>
</html>
开发者ID:aterai,项目名称:pukiwiki-plus-i18n,代码行数:30,代码来源:sagiri.skin.php

示例4: convert_html

                }
            }
        }
    }
    $body = convert_html($source);
    if ($trackback) {
        $body .= tb_get_rdf($base);
    }
    // Add TrackBack-Ping URI
    if ($referer) {
        ref_save($base);
    }
    log_write('check', $vars['page']);
    log_write('browse', $vars['page']);
}
// global $always_menu_displayed;
if (arg_check('read')) {
    $always_menu_displayed = 1;
}
$body_menu = $body_side = '';
if ($always_menu_displayed) {
    if (exist_plugin_convert('menu')) {
        $body_menu = do_plugin_convert('menu');
    }
    if (exist_plugin_convert('side')) {
        $body_side = do_plugin_convert('side');
    }
}
// Output
catbody($title, $page, $body);
exit;
开发者ID:aterai,项目名称:pukiwiki-plus-i18n,代码行数:31,代码来源:pukiwiki.php

示例5: arg_check

        case 'russet':
        case 'smoking_black':
        case 'zef':
            $sidebar = 'another';
            // Show as an another page below
            break;
    }
    // 'none': Show no sidebar
}
// Check menu (sidebar) is ready and $menubar is there
if ($sidebar == 'none') {
    $menu = FALSE;
} else {
    $menu = arg_check('read') && is_page($GLOBALS['menubar']) && exist_plugin_convert('menu');
    if ($menu) {
        $menu_body = preg_replace('#<h2 ([^>]*)>(.*?)</h2>#', '<h3 $1><span class="sanchor"></span> $2</h3>', do_plugin_convert('menu'));
    }
}
// ------------------------------------------------------------
// Code continuing ...
$lang =& $_LANG['skin'];
$link =& $_LINK;
$image =& $_IMAGE['skin'];
$rw = !PKWK_READONLY;
// Decide charset for CSS
$css_charset = 'iso-8859-1';
switch (UI_LANG) {
    case 'ja':
        $css_charset = 'Shift_JIS';
        break;
}
开发者ID:geoemon2k,项目名称:source_wiki,代码行数:31,代码来源:tdiary.skin.php

示例6: do_plugin_convert

?>
. HTML convert time: <?php 
echo $taketime;
?>
 sec.</p>
<address>
Copyright&copy; 2009 <a href="http://www.kazuwaya.jp">kazuwaya.jp</a>
</address>
-->
<!-- /footer --></div>
<p id="goToTop"><a href="#platform"><img src="common/images/img-gototop.gif" width="40" height="24" alt="TOP" /></a></p>
<!-- /platform --></div>
<div id="platformF">
<div id="floatNewPage">
<?php 
if (exist_plugin_convert('newpage')) {
    echo do_plugin_convert('newpage');
}
?>
<!--
<?php 
if (exist_plugin_convert('newpage_subdir')) {
    echo do_plugin_convert('newpage_subdir');
}
?>
-->
<!-- /floatNewPage --></div>
<!-- /platformF --></div>
<script type="text/javascript" src="common/js/import.js"></script>
</body>
</html>
开发者ID:lolo3-sight,项目名称:wiki,代码行数:31,代码来源:pukiwiki.skin.php

示例7: plugin_print_action

function plugin_print_action()
{
    global $defaultpage, $page_title, $newtitle;
    global $use_local_time, $language;
    global $head_tags, $foot_tags, $pkwk_dtd;
    global $vars;
    global $fixed_heading_edited, $autoglossary, $_symbol_paraedit, $_symbol_paraguiedit;
    global $_symbol_noexists;
    global $foot_explain, $note_hr;
    if (empty($vars['page']) || !is_page($vars['page'])) {
        return '';
    }
    $page = $vars['page'];
    check_readable($page, false);
    $head = isset($vars['nohead']) ? 0 : 1;
    $foot = isset($vars['nofoot']) ? 0 : 1;
    $noa = isset($vars['noa']) ? 1 : 0;
    $fixed_heading_edited = $autoglossary = 0;
    $_symbol_paraedit = $_symbol_paraguiedit = '&nbsp;';
    $body = convert_html(get_source($page));
    // Yetlist
    $noexists_pattern = '#<span class="noexists">([^<]*)<a[^>]+>' . preg_quote($_symbol_noexists, '#') . '</a></span>#';
    $body = preg_replace($noexists_pattern, '$1', $body);
    // List of footnotes
    ksort($foot_explain, SORT_NUMERIC);
    $notes = !empty($foot_explain) ? $note_hr . join("\n", $foot_explain) : '';
    if ($noa) {
        $body = strip_a($body);
        $notes = strip_a($notes);
    }
    // Tags will be inserted into <head></head>
    $head_tag = !empty($head_tags) ? join("\n", $head_tags) . "\n" : '';
    $foot_tag = !empty($foot_tags) ? join("\n", $foot_tags) . "\n" : '';
    $css_charset = 'utf-8';
    switch (UI_LANG) {
        case 'ja_JP':
            $css_charset = 'Shift_JIS';
            break;
    }
    // Output header
    pkwk_common_headers();
    header('Cache-Control: no-cache');
    header('Pragma: no-cache');
    header('Content-Type: text/html; charset=' . CONTENT_CHARSET);
    header('ETag: ' . md5(MUTIME));
    // Output HTML DTD, <html>, and receive content-type
    $meta_content_type = isset($pkwk_dtd) ? pkwk_output_dtd($pkwk_dtd) : pkwk_output_dtd();
    $CONTENT_CHARSET = CONTENT_CHARSET;
    $SKIN_URI = SKIN_URI;
    $IMAGE_URI = IMAGE_URI;
    // Plus! not use $meta_content_type. because meta-content-type is most browser not used. umm...
    echo <<<EOD
<head>
 <meta http-equiv="content-type" content="application/xhtml+xml; charset={$CONTENT_CHARSET}" />
 <meta http-equiv="content-style-type" content="text/css" />
 <meta http-equiv="content-script-type" content="text/javascript" />
 <meta name="robots" content="NOINDEX,NOFOLLOW" />

EOD;
    // $newtitle - TITLE: (convert_html)
    if ($newtitle != '') {
        $h1 = $newtitle . ' - ' . $page_title;
    } elseif ($page == $defaultpage) {
        $h1 = $page_title;
    } else {
        $h1 = $page . ' - ' . $page_title;
    }
    echo ' <title>' . $h1 . '</title>' . "\n";
    echo <<<EOD
 <link rel="stylesheet" href="{$SKIN_URI}default.css" type="text/css" media="screen" charset="{$css_charset}" />
 <link rel="stylesheet" href="{$SKIN_URI}print.css" type="text/css" media="print" charset="{$css_charset}" />
 <script type="text/javascript">
 <!--

EOD;
    if (exist_plugin_convert('js_init')) {
        echo do_plugin_convert('js_init');
    }
    echo <<<EOD
 // -->
 </script>
 <script type="text/javascript" src="{$SKIN_URI}lang/{$language}.js"></script>
 <script type="text/javascript" src="{$SKIN_URI}default.js"></script>

EOD;
    if (!$use_local_time) {
        echo <<<EOD
 <script type="text/javascript" src="{$SKIN_URI}tzCalculation_LocalTimeZone.js"></script>

EOD;
    }
    echo $head_tag;
    echo <<<EOD
</head>
<body>

EOD;
    /*
    	if ($head) {
    		echo <<<EOD
//.........这里部分代码省略.........
开发者ID:aterai,项目名称:pukiwiki-plus-i18n,代码行数:101,代码来源:print.inc.php

示例8: do_plugin_convert

{$summaryflag_start}
{$notes_tag}
{$trackback_tag}
{$referer_tag}
{$related_tag}
{$attach_tag}
{$summaryflag_end}
<!-- summary end -->
EOD;
$qt->setv('summary', $summarystr);
//-------------------------------------------------
//
// ログインをチェックし、ログアウトしてれば再ログインをさせるjavascriptの読み込み
//-------------------------------------------------
if (exist_plugin('check_login')) {
    do_plugin_convert('check_login');
}
if (is_qblog()) {
    if ($qblog_defaultpage === $title) {
        $qt->setv('this_page_title', $qblog_title . ' - ' . $page_title);
        if (!$qt->getv('editable')) {
            $qt->setv('this_right_title', $qblog_title);
        } else {
            $qt->appendv('this_right_title', $qblog_title);
        }
    } else {
        $qt->setv('this_page_title', $qt->getv('this_right_title') . ' - ' . $qblog_title . ' - ' . $page_title);
    }
}
/* End of file qhm_init.php */
/* Location: ./lib/qhm_init.php */
开发者ID:big2men,项目名称:qhm,代码行数:31,代码来源:qhm_init.php

示例9: plugin_login_convert

function plugin_login_convert()
{
    global $script, $vars, $auth_api, $_login_msg;
    @(list($type) = func_get_args());
    $type = isset($type) ? htmlspecialchars($type, ENT_QUOTES) : '';
    $auth_key = auth::get_user_info();
    if (!empty($auth_key['key'])) {
        if ($auth_key['api'] == 'plus') {
            return <<<EOD
<div>
        <label>{$_login_msg['msg_username']}</label>:
        {$auth_key['key']}
</div>

EOD;
        } else {
            exist_plugin($auth_key['api']);
            return do_plugin_convert($auth_key['api']);
        }
    }
    $select = '';
    //if (LOGIN_USE_AUTH_DEFAULT) {
    //	$select .= '<option value="plus" selected="selected">Normal</option>';
    //}
    $sw_ext_auth = false;
    foreach ($auth_api as $api => $val) {
        if (!$val['use']) {
            continue;
        }
        if (isset($val['hidden']) && $val['hidden']) {
            continue;
        }
        $displayname = isset($val['displayname']) ? $val['displayname'] : $api;
        if ($api !== 'plus') {
            $sw_ext_auth = true;
        }
        $select .= '<option value="' . $api . '">' . $displayname . '</option>';
    }
    if (empty($select)) {
        return '';
    }
    // 認証機能が使えない
    if ($sw_ext_auth) {
        // 外部認証がある
        $select = '<select name="api">' . $select . '</select>';
    } else {
        // 通常認証のみなのでボタン
        $select = '<input type="hidden" name="api" value="plus" />';
    }
    // ボタンを表示するだけ
    $rc = <<<EOD
<form action="{$script}" method="post">
\t<div>
{$select}
\t\t<input type="hidden" name="plugin" value="login" />
\t\t<input type="hidden" name="type" value="{$type}" />
\t\t<input type="hidden" name="page" value="{$vars['page']}" />
\t\t<input type="submit" value="{$_login_msg['btn_login']}" />
\t</div>
</form>

EOD;
    return $rc;
}
开发者ID:aterai,项目名称:pukiwiki-plus-i18n,代码行数:64,代码来源:login.inc.php

示例10: rgba

    var myBorder = RUZEE.ShadedBorder.create({ corner:10, shadow:24, mwheight:wpr_h });
    myBorder.render("wrapper");
});
</script>
<![endif]-->
<style type="text/css">
#wrapper {
	border-radius: 10px;
	box-shadow: 0 3px 5px 5px rgba(0,0,0,0.2);
}
</style>
';
// for iPhone & iPod Touch & android
if (is_smart_phone()) {
    if (exist_plugin('use_smart')) {
        $qt->appendv('enable_smart_style', do_plugin_convert('use_smart'));
    }
    //smart 表示
    if (plugin_use_smart_is_enable()) {
        $smart_css = '
<meta name="apple-mobile-web-app-capable" content="yes">
<style type="text/css">
#wrapper{
-webkit-border-radius: 20px;
-webkit-box-shadow: 4px 4px 10px #333;
}
</style>';
        $smart_lastscript .= '
<script type="text/javascript" charset="utf-8">
if (typeof window.onload == "undefined") {
	window.onload = function(){
开发者ID:big2men,项目名称:qhm,代码行数:31,代码来源:qhm_init_killer.php

示例11: unset

        }
        $qt->setv('site_header', $site_header);
        unset($vars['page_alt']);
    }
}
//w3c tag
$w3c_tagstr = <<<EOD
<a href="http://validator.w3.org/check?uri=referer"><img
        src="image/valid-xhtml10.png"
        alt="Valid XHTML 1.0 Transitional" height="31" width="88" />
EOD;
$qt->setv('w3c_tag', $w3c_tagstr);
// iPhone, iPod, android デザイン
if ($enable_smart_style && is_smart_phone() && !is_bootstrap_skin()) {
    if (exist_plugin('use_smart')) {
        $qt->appendv('site_navigator2', do_plugin_convert('use_smart'));
    }
    if (plugin_use_smart_is_enable()) {
        $smart_css = ' <meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="' . SMART_DIR . $smart_name . '/smart.css" media="screen" text/css="text/css">
';
        $smart_lastscript .= '
<script type="text/javascript" charset="utf-8">
if (typeof window.onload === "undefined") {
    window.onload = function(){
        setTimeout(function(){window.scrollTo(0,1);},100);
    };
} else {
    var olfunc = window.onload;
    window.onload = function(){
开发者ID:big2men,项目名称:qhm,代码行数:31,代码来源:qhm_init_main.php

示例12: plugin_edit_action

function plugin_edit_action()
{
    global $vars, $load_template_func, $style_name, $layout_pages;
    global $qblog_defaultpage;
    $qm = get_qm();
    $qt = get_qt();
    if (PKWK_READONLY) {
        die_message($qm->m['fmt_err_pkwk_readonly']);
    }
    $page = isset($vars['page']) ? $vars['page'] : '';
    $prefix = '';
    //メニューやナビの編集はスタイルを変える
    if (array_key_exists($page, $layout_pages) && !isset($vars['preview'])) {
        $prefix = '<h2 class="title">' . h($layout_pages[$page]) . 'の編集</h2>';
        if (is_bootstrap_skin()) {
            if (exist_plugin("noeyecatch")) {
                do_plugin_convert("noeyecatch");
            }
        } else {
            $style_name = '../';
            $addscript = <<<EOD
<script type="text/javascript">
\$(function(){

  if (window != parent)
  {
\t\t\$("input:submit").click(function(e){
\t\t\twindow.onbeforeunload = null;
\t\t\tvar name = \$(this).attr("name");
\t\t\t\$(this).before('<input type="hidden" name="'+name+'" value="'+\$(this).val()+'">').prop("disabled", true);

\t\t\tvar \$form = \$(this).closest("form");
\t\t\tvar \$parent = \$(window.parent.document).find("body");
\t
\t\t\tvar params = \$form.serialize().split('&');
\t\t\tvar \$fm = \$('<form></form>');
\t\t\tfor (var i = 0; i < params.length; i++)
\t\t\t{
\t\t\t\tvar param = params[i].split('=');

\t\t\t\t\$fm.append(\$('<input type="hidden" name="'+param[0]+'" value="" />').val(decodeURIComponent(param[1].replace(/\\+/g, ' '))));
\t\t\t}
\t\t\t\$fm.attr('action', \$form.attr('action'));
\t\t\t\$fm.attr('method', \$form.attr('method'));
\t\t\t\$parent.append(\$fm).find("form:last").submit();
\t\t\treturn false;
\t\t});
\t}
});
</script>
EOD;
            $qt->appendv('beforescript', $addscript);
        }
    }
    check_editable($page, true, true);
    if (isset($vars['preview']) || $load_template_func && isset($vars['template'])) {
        return plugin_edit_preview();
    } else {
        if (isset($vars['write'])) {
            return plugin_edit_write();
        } else {
            if (isset($vars['cancel'])) {
                return plugin_edit_cancel();
            }
        }
    }
    $postdata = @join('', get_source($page));
    if ($postdata == '') {
        $postdata = auto_template($page);
    }
    return array('msg' => $qm->m['fmt_title_edit'], 'body' => $prefix . edit_form($page, $postdata));
}
开发者ID:big2men,项目名称:qhm,代码行数:72,代码来源:edit.inc.php

示例13: do_plugin_convert

}
echo $_menu;
?>
</div>

</div>
<!-- END #content > #menu -->

</div>
<!-- END #content -->

<!-- START #footer -->
<?php 
if (exist_plugin_convert('footarea') && do_plugin_convert('footarea') != '') {
    echo '<div id="footer">' . "\n";
    echo do_plugin_convert('footarea');
    echo '</div>' . "\n";
} else {
    // or In this skin
    ?>
<div id="footer">
<ul id="signature">
<li class="inquiry"><a href="<?php 
    echo get_script_uri();
    ?>
?">サイトについて</a></li>
<li class="inquiry"><a href="<?php 
    echo get_script_uri();
    ?>
?">仕様</a></li>
<li class="request"><a href="<?php 
开发者ID:orangeal2o3,项目名称:pukiwiki-plugin,代码行数:31,代码来源:whiteflow.skin.php

示例14: plugin_qp_here_convert

function plugin_qp_here_convert()
{
    if (exist_plugin('insert_mark')) {
        return do_plugin_convert('insert_mark');
    }
}
开发者ID:big2men,项目名称:qhm,代码行数:6,代码来源:qp_here.inc.php

示例15: protect_body

function protect_body($plugin)
{
    global $auth_api, $protect;
    $body = '';
    if ($plugin === 'login') {
        $plugin = '';
    }
    $wiki = WikiFactory::Wiki($protect);
    if ($wiki->isReadable() && empty($plugin)) {
        $body .= $wiki->render();
    } else {
        $plugin = empty($plugin) ? 'login' : $plugin;
        if (exist_plugin_convert($plugin)) {
            $body .= do_plugin_convert($plugin);
        }
    }
    if (empty($body)) {
        if (PLUGIN_PROTECT_MUST_PAGE) {
            die('The attestation setting is not done.');
        }
        die;
    }
    return $body;
}
开发者ID:logue,项目名称:pukiwiki_adv,代码行数:24,代码来源:protect.inc.php


注:本文中的do_plugin_convert函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。