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


PHP tpl_pagetitle函数代码示例

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


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

示例1: getDuoshuoScript

    public function getDuoshuoScript()
    {
        $short_name = $this->getConf('shortname');
        $wiki_id = getID();
        $wiki_title = tpl_pagetitle($wiki_id, true);
        $host = $_SERVER['HTTPS'] ? "https" : "http";
        $host = $host . "://" . $_SERVER['SERVER_NAME'];
        $wiki_url = $host . wl($wiki_id);
        $doc = '
        <!-- 多说评论框 start -->
    <div class="ds-thread" data-thread-key="" data-title="' . $wiki_title . '" data-url="' . $wiki_url . '"></div>
<!-- 多说评论框 end -->
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"' . $short_name . '"};
    (function() {
        var ds = document.createElement("script");
        ds.type = "text/javascript";ds.async = true;
        ds.src = (document.location.protocol == "https:" ? "https:" : "http:") + "//static.duoshuo.com/embed.js";
        ds.charset = "UTF-8";
        (document.getElementsByTagName("head")[0] 
         || document.getElementsByTagName("body")[0]).appendChild(ds);
    })();
    </script>
<!-- 多说公共JS代码 end -->';
        return $doc;
    }
开发者ID:xudianyang,项目名称:wiki.phpboy.net,代码行数:27,代码来源:syntax.php

示例2: document_start

    public function document_start()
    {
        global $conf;
        global $ID;
        global $updateVersion;
        $this->base = DOKU_BASE . 'lib/plugins/impressjs/tpl/';
        $this->tpl = $this->getConf('template');
        // prepare seed for js and css
        $tseed = $updateVersion;
        $depends = getConfigFiles('main');
        foreach ($depends as $f) {
            $tseed .= @filemtime($f);
        }
        $tseed = md5($tseed);
        $this->doc .= '<!DOCTYPE html>
<html lang="' . $conf['lang'] . '">
<head>
    <meta name="viewport" content="width=1024" />
    <meta charset="utf-8" />
    <title>' . tpl_pagetitle($ID, true) . '</title>
                
    <meta name="generator" content="impress.js" />
    <meta name="version" content="impress.js ab44798b081997319f4207dabbb052736acfc512" />
                
    <link rel="stylesheet" href="' . DOKU_BASE . 'lib/exe/css.php?t=none&tseed=' . $tseed . '" type="text/css" media="screen" />
    <link href="' . $this->base . $this->tpl . '/impress.css" rel="stylesheet" />
    <link href="' . $this->base . $this->tpl . '/impress-extra.css" rel="stylesheet" />
</head>
<body>
    <div id="impress">';
    }
开发者ID:AlexanderS,项目名称:dokuwiki-plugin-impressjs,代码行数:31,代码来源:renderer.php

示例3: test_pageFunctionTitle

 function test_pageFunctionTitle()
 {
     global $ID, $ACT;
     $ID = 'foo:bar';
     $ACT = 'revisions';
     $this->assertEquals('foo:bar - Old revisions', tpl_pagetitle(null, true));
 }
开发者ID:richmahn,项目名称:Door43,代码行数:7,代码来源:template_include_page.test.php

示例4: handle_act_render

 /**
  * Handler for the TPL_ACT_RENDER event
  */
 function handle_act_render(&$event, $params)
 {
     global $ID;
     // Action not 'show'? Quit
     if ($event->data != 'show') {
         return;
     }
     // Trackbacks disabled? Quit
     if (!$this->getConf('enable_trackback')) {
         return;
     }
     // Get linkback metadata
     $file = metaFN($ID, '.linkbacks');
     $data = array('send' => false, 'receive' => false, 'display' => false, 'sentpings' => array(), 'receivedpings' => array(), 'number' => 0);
     if (@file_exists($file)) {
         $data = unserialize(io_readFile($file, false));
     }
     // Does not accept linkbacks? Quit
     if (!$data['receive']) {
         return;
     }
     // if trackbacks are enabled, insert RDF definition of trackback into output
     if ($this->getConf('enable_trackback')) {
         echo '<!--<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"' . NL . 'xmlns:dc="http://purl.org/dc/elements/1.1/"' . NL . 'xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">' . NL . '<rdf:Description' . NL . 'rdf:about="' . wl($ID, '', true) . '"' . NL . 'dc:identifier="' . wl($ID, '', true) . '"' . NL . 'dc:title="' . tpl_pagetitle($ID, true) . '"' . NL . 'trackback:ping="' . DOKU_URL . 'lib/plugins/linkback/exe/trackback.php/' . $ID . '" />' . NL . '</rdf:RDF>-->';
     }
 }
开发者ID:omusico,项目名称:isle-web-framework,代码行数:29,代码来源:receive.php

示例5: document_start

    /**
     * Initialize the rendering
     */
    function document_start() {
        global $ID;
        global $conf;
        global $lang;

        // call the parent
        parent::document_start();

        // store the content type headers in metadata
        $headers = array(
            'Content-Type' => 'text/html; charset=utf-8'
        );
       $theme = isset($_GET['theme'])?$_GET['theme']:$this->getConf('theme');
       p_set_metadata($ID,array('format' => array('revealjs' => $headers) ));
        $this->base = DOKU_BASE.'lib/plugins/revealjs/';
       $this->doc = '
<!DOCTYPE html>
<html lang="'.$conf['lang'].'" dir="'.$lang['direction'].'">

	<head>
		<meta charset="utf-8">

		<title>'.tpl_pagetitle($ID, true).'</title>

		<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
		<meta name="author" content="Hakim El Hattab">

		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />

		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">

                <link rel="stylesheet" href="'.$this->base.'css/reveal.css">
		<link rel="stylesheet" href="'.$this->base.'css/theme/'.$theme.'.css" id="theme">
                <link rel="stylesheet" href="'.$this->base.'doku-substitutes.css"> 

		<!-- Code syntax highlighting -->
		<link rel="stylesheet" href="'.$this->base.'lib/css/zenburn.css">

		<!-- Printing and PDF exports -->
		<script>
			var link = document.createElement( \'link\' );
			link.rel = \'stylesheet\';
			link.type = \'text/css\';
			link.href = window.location.search.match( /print-pdf/gi ) ? \''.$this->base.'css/print/pdf.css\' : \''.$this->base.'css/print/paper.css\';
			document.getElementsByTagName( \'head\' )[0].appendChild( link );
		</script>

		<!--[if lt IE 9]>
		<script src='.$this->base.'"lib/js/html5shiv.js"></script>
		<![endif]-->
	</head>
<body>

		<div class="reveal">

			<!-- Any section element inside of this container is displayed as a slide -->
			<div class="slides">
';
    }
开发者ID:rusidea,项目名称:analitika,代码行数:63,代码来源:renderer.php

示例6: test_pageFunctionTitle

 function test_pageFunctionTitle()
 {
     $this->markTestSkipped('Skipped because it is failing');
     global $ID, $ACT;
     $ID = 'foo:bar';
     $ACT = 'revisions';
     $this->assertEquals('foo:bar - Old revisions', tpl_pagetitle(null, true));
 }
开发者ID:kbuildsyourdotcom,项目名称:Door43,代码行数:8,代码来源:template_include_page.test.php

示例7: tpl_action_url

function tpl_action_url($url)
{
    $page_url = urlencode(selfURL());
    $page_title = urlencode(tpl_pagetitle(null, true));
    $url = str_replace("%PAGEURL%", $page_url, $url);
    $url = str_replace("%PAGETITLE%", $page_title, $url);
    return $url;
}
开发者ID:philipp02,项目名称:volleyball-rueppurr-dokuwiki,代码行数:8,代码来源:tpl_functions.php

示例8: dokui_navigation_page

function dokui_navigation_page()
{
    global $dokui;
    if ($dokui['navigation']['page'] == null) {
        $page = explode(':', tpl_pagetitle(NULL, true));
        array_pop($page);
        $page = count($page) > 0 ? implode(':', $page) . ':navigation' : 'navigation';
        $dokui['navigation']['page'] = $page;
    }
    return $dokui['navigation']['page'];
}
开发者ID:projectesIF,项目名称:Ateneu,代码行数:11,代码来源:tpl_functions.php

示例9: handle_act_render

 /**
  * Handler for the TPL_ACT_RENDER event
  */
 function handle_act_render(&$event, $params)
 {
     if (!$this->run) {
         return;
     }
     // Action not 'show'? Quit
     if ($event->data != 'show') {
         return;
     }
     global $ID;
     // insert RDF definition of trackback into output
     echo '<!--<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"' . NL . 'xmlns:dc="http://purl.org/dc/elements/1.1/"' . NL . 'xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">' . NL . '<rdf:Description' . NL . 'rdf:about="' . wl($ID, '', true) . '"' . NL . 'dc:identifier="' . wl($ID, '', true) . '"' . NL . 'dc:title="' . tpl_pagetitle($ID, true) . '"' . NL . 'trackback:ping="' . DOKU_URL . 'lib/plugins/blogtng/exe/trackback.php/' . $ID . '" />' . NL . '</rdf:RDF>-->';
 }
开发者ID:stretchyboy,项目名称:plugin-blogtng,代码行数:16,代码来源:linkback.php

示例10: tpl_menu2

/**
 * Displays the menu2 
 *
 */
function tpl_menu2()
{
    global $conf, $ID, $REV, $INFO, $lang;
    $currID = false;
    if ($conf['tpl_mmClean']['menu2Permanent']) {
        $path = "";
    } else {
        if (false != strpos($ID, ":")) {
            $path = substr($ID, 0, strpos($ID, ":"));
        } else {
            $path = $ID;
        }
        $path .= ":";
    }
    print "<h1>";
    print tpl_pagetitle();
    print "</h1>";
    print p_wiki_xhtml($path . "menu2", '', false);
    if ($INFO['perm'] > AUTH_READ) {
        print '<ul><li><a href="?id=' . $path . 'menu2&amp;do=edit" class="wikilink1" title="Edit"><b>Edit</b></a></li></ul>';
    }
}
开发者ID:reidab,项目名称:osbp_dokuwiki_theme,代码行数:26,代码来源:tpl_functions.php

示例11: bootstrap3_conf

/**
 * Simple wrapper for tpl_getConf
 *
 * @author  Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
 *
 * @param   string  $key
 * @param   mixed   $default value
 * @return  mixed
 */
function bootstrap3_conf($key, $default = false)
{
    global $ACT, $INFO, $ID, $conf;
    $value = tpl_getConf($key, $default);
    switch ($key) {
        case 'showTools':
        case 'showSearchForm':
        case 'showPageTools':
            return $value !== 'never' && ($value == 'always' || !empty($_SERVER['REMOTE_USER']));
        case 'showIndividualTool':
        case 'hideInThemeSwitcher':
        case 'tableStyle':
            return explode(',', $value);
        case 'showAdminMenu':
            return $value && $INFO['isadmin'];
        case 'hideLoginLink':
            return !$value || !empty($_SERVER['REMOTE_USER']);
        case 'browserTitle':
            if (bootstrap3_conf('browserTitleShowNS')) {
                $ns_parts = explode(':', $ID);
                $ns_pages = array();
                $ns_titles = array();
                $ns_separator = sprintf(' %s ', bootstrap3_conf('browserTitleCharSepNS'));
                if (useHeading('navigation')) {
                    foreach ($ns_parts as $ns_part) {
                        $ns_page .= "{$ns_part}:";
                        $ns_pages[] = $ns_page;
                    }
                    $ns_pages = array_unique($ns_pages);
                    foreach ($ns_pages as $ns_page) {
                        resolve_pageid(getNS($ns_page), $ns_page, $exists);
                        $ns_page_title_heading = hsc(p_get_first_heading($ns_page));
                        $ns_page_title_page = noNSorNS($ns_page);
                        $ns_page_title = $ns_page_title_heading ? $ns_page_title_heading : $ns_page_title_page;
                        $ns_titles[] = $ns_page_title;
                    }
                    $ns_titles[] = tpl_pagetitle($ID, true);
                    $ns_titles = array_unique($ns_titles);
                } else {
                    $ns_titles = $ns_parts;
                }
                if (bootstrap3_conf('browserTitleOrderNS') == 'normal') {
                    $ns_titles = array_reverse($ns_titles);
                }
                $browser_title = implode($ns_separator, $ns_titles);
            } else {
                $browser_title = tpl_pagetitle($ID, true);
            }
            return str_replace(array('@WIKI@', '@TITLE@'), array(strip_tags($conf['title']), $browser_title), $value);
        case 'showSidebar':
            return page_findnearest($conf['sidebar']) && $ACT == 'show';
        case 'showRightSidebar':
            return page_findnearest(tpl_getConf('rightSidebar')) && $ACT == 'show';
        case 'landingPages':
            return sprintf('/%s/', $value);
    }
    //$type = bootstrap3_metadata($key);
    //if ($type[0] == 'regex') {
    //  return sprintf('/%s/', $value);
    //}
    return $value;
}
开发者ID:vierbergenlars,项目名称:dokuwiki-template-bootstrap3,代码行数:71,代码来源:tpl_functions.php

示例12: s5_init

    /**
     * Print the header of the page
     *
     * Gets called when the very first H1 header is discovered. It includes
     * all the S5 CSS and JavaScript magic
     */
    function s5_init($title)
    {
        global $conf;
        global $lang;
        global $INFO;
        global $ID;
        //throw away any previous content
        $this->doc = '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . $conf['lang'] . '"
 lang="' . $conf['lang'] . '" dir="' . $lang['direction'] . '">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>' . hsc($title) . '</title>
<!-- metadata -->
<meta name="generator" content="S5" />
<meta name="version" content="S5 1.1" />
<!-- configuration parameters -->
<meta name="defaultView" content="slideshow" />
<meta name="controlVis" content="hidden" />
<!-- style sheet links -->
<link rel="stylesheet" href="' . DOKU_BASE . 'lib/styles/all.css" type="text/css" media="screen" />
<link rel="stylesheet" href="' . DOKU_BASE . 'lib/styles/screen.css" type="text/css" media="screen" />
<link rel="stylesheet" href="' . $this->base . $this->tpl . '/slides.css" type="text/css" media="projection" id="slideProj" />
<link rel="stylesheet" href="' . $this->base . 'default/outline.css" type="text/css" media="screen" id="outlineStyle" />
<link rel="stylesheet" href="' . $this->base . 'default/print.css" type="text/css" media="print" id="slidePrint" />
<link rel="stylesheet" href="' . $this->base . 'default/opera.css" type="text/css" media="projection" id="operaFix" />
<!-- S5 JS -->
<script src="' . $this->base . 'default/slides.js" type="text/javascript"></script>
</head>
<body>
<div class="layout">
<div id="controls"><!-- DO NOT EDIT --></div>
<div id="currentSlide"><!-- DO NOT EDIT --></div>
<div id="header"></div>
<div id="footer">
<h1>' . tpl_pagetitle($ID, true) . '</h1>
<h2>' . hsc($conf['title']) . ' &#8226; ' . strftime($conf['dformat'], $INFO['lastmod']) . '</h2>
</div>

</div>
<div class="presentation">
';
    }
开发者ID:xudianyang,项目名称:wiki.phpboy.net,代码行数:52,代码来源:renderer.php

示例13: define

<?php

define("DOKU_INC", realpath(dirname(__FILE__) . '/../../../../') . '/');
require_once DOKU_INC . 'inc/init.php';
require_once DOKU_INC . 'inc/template.php';
if (isset($_REQUEST['dw_id']) && $_REQUEST['dw_id']) {
    $page = urldecode($_REQUEST['dw_id']);
    $page = ltrim($page, ':');
} else {
    echo $_REQUEST['dw_id'] . "\n";
    exit;
}
$t = trim(tpl_pagetitle($page, 1));
echo "{$t}\n";
开发者ID:neutrinog,项目名称:Door43,代码行数:14,代码来源:useheading.php

示例14: tpl_actionlink

?>
 </li>
               <li ><?php 
tpl_actionlink('admin');
?>
 </li>
               <li ><?php 
tpl_actionlink('profile');
?>
 </li>
            </ul>
         </div>

         <div class="headerPagename">
           [[<?php 
tpl_link(wl($ID, 'do=backlink'), tpl_pagetitle($ID, true));
?>
]]
         </div>

          
         <div class="headerLogo">
           <?php 
tpl_link(wl(), $conf['title'], 'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]"');
?>
         </div>
         
         <div class="clearfix"> </div>
      </div>

   	<div id="wrapper" class="clearfix" >
开发者ID:BackupTheBerlios,项目名称:openaqua-svn,代码行数:31,代码来源:main.php

示例15: tpl_getConf

 * @author   Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
 */
$showTools = tpl_getConf('showTools') != 'never' && (tpl_getConf('showTools') == 'always' || !empty($_SERVER['REMOTE_USER']));
$individualTools = tpl_getConf('individualTools');
$showUserHomeLink = tpl_getConf('showUserHomeLink');
$showLoginOnFooter = tpl_getConf('showLoginOnFooter');
$showLoginLink = !tpl_getConf('hideLoginLink') || !empty($_SERVER['REMOTE_USER']);
$showSidebar = page_findnearest($conf['sidebar']) && $ACT == 'show';
$sidebarPosition = tpl_getConf('sidebarPosition');
$showRightSidebar = page_findnearest(tpl_getConf('rightSidebar')) && $ACT == 'show';
$rightSidebar = tpl_getConf('rightSidebar');
$showCookieLawBanner = tpl_getConf('showCookieLawBanner');
$cookieLawBannerPage = tpl_getConf('cookieLawBannerPage');
$cookieLawPolicyPage = tpl_getConf('cookieLawPolicyPage');
$browserTitle = str_replace(array('@WIKI@', '@TITLE@'), array(strip_tags($conf['title']), tpl_pagetitle(null, true)), tpl_getConf('browserTitle'));
$showThemeSwitcher = tpl_getConf('showThemeSwitcher');
$fixedTopNavbar = tpl_getConf('fixedTopNavbar');
$inverseNavbar = tpl_getConf('inverseNavbar');
$bootstrapTheme = tpl_getConf('bootstrapTheme');
$customTheme = tpl_getConf('customTheme');
$bootswatchTheme = tpl_getConf('bootswatchTheme');
$pageOnPanel = tpl_getConf('pageOnPanel');
$fluidContainer = tpl_getConf('fluidContainer');
$showPageInfo = tpl_getConf('showPageInfo');
$showBadges = tpl_getConf('showBadges');
$semantic = tpl_getConf('semantic');
$schemaOrgType = tpl_getConf('schemaOrgType');
$leftSidebarGrid = tpl_getConf('leftSidebarGrid');
$rightSidebarGrid = tpl_getConf('rightSidebarGrid');
$contentGrid = _tpl_get_container_grid();
开发者ID:HavocKKS,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:tpl_global.php


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