本文整理汇总了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');
}
}
示例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>
示例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);
}
示例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);
}
}
示例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);
}
}
示例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>
示例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);
}
}
示例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);
}