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


PHP tpl_mediaContent函数代码示例

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


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

示例1: _handleAjaxMediaList

 /**
  * Handles a 'medialist' ajax call
  *
  * @see ajax_medialist()
  */
 function _handleAjaxMediaList(&$event)
 {
     global $NS;
     if ($event->data !== 'preservefilenames_medialist') {
         return;
     }
     $event->preventDefault();
     $NS = cleanID($_POST['ns']);
     if ($_POST['do'] === 'media') {
         $this->_mod_tpl_mediaFileList();
     } else {
         tpl_mediaContent('fromAjax');
     }
 }
开发者ID:kazmiya,项目名称:dokuwiki-plugin-preservefilenames,代码行数:19,代码来源:action_angua.php

示例2: tpl_classes

  <div id="media__manager" class="<?php 
echo tpl_classes();
?>
 row">

    <div id="mediamgr__aside" class="col-xs-4">
      <h1><?php 
echo hsc($lang['mediaselect']);
?>
</h1>

      <?php 
/* keep the id! additional elements are inserted via JS here */
?>
      <div id="media__opts"></div>
        <?php 
tpl_mediaTree();
?>
      </div>

      <div id="mediamgr__content" class="col-xs-8">
        <?php 
tpl_mediaContent();
?>
      </div>

  </div>

</body>
</html>
开发者ID:huksley,项目名称:dokuwiki-template-bootstrap3,代码行数:30,代码来源:mediamanager.php

示例3: ajax_medialist

/**
 * Return list of files for the Mediamanager
 *
 * @author Andreas Gohr <andi@splitbrain.org>
 */
function ajax_medialist()
{
    global $conf;
    global $NS;
    $NS = $_POST['ns'];
    tpl_mediaContent(true);
}
开发者ID:stretchyboy,项目名称:dokuwiki,代码行数:12,代码来源:ajax.php

示例4: ajax_medialist

/**
 * Return list of files for the Mediamanager
 *
 * @author Andreas Gohr <andi@splitbrain.org>
 */
function ajax_medialist()
{
    global $conf;
    global $NS;
    global $INPUT;
    $NS = cleanID($INPUT->post->str('ns'));
    if ($INPUT->post->str('do') == 'media') {
        tpl_mediaFileList();
    } else {
        tpl_mediaContent(true);
    }
}
开发者ID:AlexanderS,项目名称:Part-DB,代码行数:17,代码来源:ajax.php

示例5: ajax_medialist

/**
 * Return list of files for the Mediamanager
 *
 * @author Andreas Gohr <andi@splitbrain.org>
 */
function ajax_medialist()
{
    global $conf;
    global $NS;
    $NS = $_POST['ns'];
    if ($_POST['do'] == 'media') {
        tpl_mediaFileList();
    } else {
        tpl_mediaContent(true);
    }
}
开发者ID:nextghost,项目名称:dokuwiki,代码行数:16,代码来源:ajax.php

示例6: hsc

        <?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>

            <?php tpl_mediaTree() ?>
        </div></div>

        <div id="mediamgr__content"><div class="pad">
            <?php tpl_mediaContent() ?>
        </div></div>
    </div>
    <!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]-->
</body>
</html>
开发者ID:neutrinog,项目名称:Door43,代码行数:30,代码来源:mediamanager.php

示例7: ajax_medialist

/**
 * Return list of files for the Mediamanager
 *
 * @author Andreas Gohr <andi@splitbrain.org>
 */
function ajax_medialist()
{
    global $NS;
    global $INPUT;
    $NS = cleanID($INPUT->post->str('ns'));
    $sort = $INPUT->post->bool('recent') ? 'date' : 'natural';
    if ($INPUT->post->str('do') == 'media') {
        tpl_mediaFileList();
    } else {
        tpl_mediaContent(true, $sort);
    }
}
开发者ID:xing393939,项目名称:dokuwiki,代码行数:17,代码来源:ajax.php

示例8: ajax_medialist

/**
 * Return list of files for the Mediamanager
 *
 * @author Andreas Gohr <andi@splitbrain.org>
 */
function ajax_medialist()
{
    global $conf;
    global $NS;
    require_once DOKU_INC . 'inc/media.php';
    require_once DOKU_INC . 'inc/template.php';
    $NS = $_POST['ns'];
    tpl_mediaContent(true);
}
开发者ID:lorea,项目名称:Hydra-dev,代码行数:14,代码来源:ajax.php


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