27 lines
551 B
PHP
27 lines
551 B
PHP
<?php
|
|
/**
|
|
* @package Dotclear
|
|
* @subpackage Backend
|
|
*
|
|
* @copyright Olivier Meunier & Association Dotclear
|
|
* @copyright GPL-2.0-only
|
|
*/
|
|
|
|
if (!defined('DC_RC_PATH')) {return;}
|
|
|
|
class dcAdminBlogPref
|
|
{
|
|
public static function adminPopupPosts($editor = '')
|
|
{
|
|
if (empty($editor) || $editor != 'admin.blog_pref') {return;}
|
|
|
|
$res =
|
|
dcPage::jsJson('admin.blog_pref', [
|
|
'base_url' => $GLOBALS['core']->blog->url
|
|
]) .
|
|
dcPage::jsLoad('js/_blog_pref_popup_posts.js');
|
|
|
|
return $res;
|
|
}
|
|
}
|