當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。