本文整理汇总了PHP中dcPage::getPF方法的典型用法代码示例。如果您正苦于以下问题:PHP dcPage::getPF方法的具体用法?PHP dcPage::getPF怎么用?PHP dcPage::getPF使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dcPage
的用法示例。
在下文中一共展示了dcPage::getPF方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: jsToolBar
protected static function jsToolBar()
{
$res = dcPage::cssLoad(dcPage::getPF('dcLegacyEditor/css/jsToolBar/jsToolBar.css')) . dcPage::jsLoad(dcPage::getPF('dcLegacyEditor/js/jsToolBar/jsToolBar.js'));
if (isset($GLOBALS['core']->auth) && $GLOBALS['core']->auth->getOption('enable_wysiwyg')) {
$res .= dcPage::jsLoad(dcPage::getPF('dcLegacyEditor/js/jsToolBar/jsToolBar.wysiwyg.js'));
}
$res .= dcPage::jsLoad(dcPage::getPF('dcLegacyEditor/js/jsToolBar/jsToolBar.dotclear.js')) . '<script type="text/javascript">' . "\n" . "//<![CDATA[\n" . "jsToolBar.prototype.dialog_url = 'popup.php'; " . "jsToolBar.prototype.iframe_css = '" . 'body{' . 'font: 12px "DejaVu Sans","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif;' . 'color : #000;' . 'background: #f9f9f9;' . 'margin: 0;' . 'padding : 2px;' . 'border: none;' . (l10n::getTextDirection($GLOBALS['_lang']) == 'rtl' ? 'direction:rtl;' : '') . '}' . 'pre, code, kbd, samp {' . 'font-family:"Courier New",Courier,monospace;' . 'font-size : 1.1em;' . '}' . 'code {' . 'color : #666;' . 'font-weight : bold;' . '}' . 'body > p:first-child {' . 'margin-top: 0;' . '}' . "'; " . "jsToolBar.prototype.base_url = '" . html::escapeJS($GLOBALS['core']->blog->host) . "'; " . "jsToolBar.prototype.switcher_visual_title = '" . html::escapeJS(__('visual')) . "'; " . "jsToolBar.prototype.switcher_source_title = '" . html::escapeJS(__('source')) . "'; " . "jsToolBar.prototype.legend_msg = '" . html::escapeJS(__('You can use the following shortcuts to format your text.')) . "'; " . "jsToolBar.prototype.elements.blocks.options.none = '" . html::escapeJS(__('-- none --')) . "'; " . "jsToolBar.prototype.elements.blocks.options.nonebis = '" . html::escapeJS(__('-- block format --')) . "'; " . "jsToolBar.prototype.elements.blocks.options.p = '" . html::escapeJS(__('Paragraph')) . "'; " . "jsToolBar.prototype.elements.blocks.options.h1 = '" . html::escapeJS(__('Level 1 header')) . "'; " . "jsToolBar.prototype.elements.blocks.options.h2 = '" . html::escapeJS(__('Level 2 header')) . "'; " . "jsToolBar.prototype.elements.blocks.options.h3 = '" . html::escapeJS(__('Level 3 header')) . "'; " . "jsToolBar.prototype.elements.blocks.options.h4 = '" . html::escapeJS(__('Level 4 header')) . "'; " . "jsToolBar.prototype.elements.blocks.options.h5 = '" . html::escapeJS(__('Level 5 header')) . "'; " . "jsToolBar.prototype.elements.blocks.options.h6 = '" . html::escapeJS(__('Level 6 header')) . "'; " . "jsToolBar.prototype.elements.strong.title = '" . html::escapeJS(__('Strong emphasis')) . "'; " . "jsToolBar.prototype.elements.em.title = '" . html::escapeJS(__('Emphasis')) . "'; " . "jsToolBar.prototype.elements.ins.title = '" . html::escapeJS(__('Inserted')) . "'; " . "jsToolBar.prototype.elements.del.title = '" . html::escapeJS(__('Deleted')) . "'; " . "jsToolBar.prototype.elements.quote.title = '" . html::escapeJS(__('Inline quote')) . "'; " . "jsToolBar.prototype.elements.code.title = '" . html::escapeJS(__('Code')) . "'; " . "jsToolBar.prototype.elements.br.title = '" . html::escapeJS(__('Line break')) . "'; " . "jsToolBar.prototype.elements.blockquote.title = '" . html::escapeJS(__('Blockquote')) . "'; " . "jsToolBar.prototype.elements.pre.title = '" . html::escapeJS(__('Preformated text')) . "'; " . "jsToolBar.prototype.elements.ul.title = '" . html::escapeJS(__('Unordered list')) . "'; " . "jsToolBar.prototype.elements.ol.title = '" . html::escapeJS(__('Ordered list')) . "'; " . "jsToolBar.prototype.elements.link.title = '" . html::escapeJS(__('Link')) . "'; " . "jsToolBar.prototype.elements.link.href_prompt = '" . html::escapeJS(__('URL?')) . "'; " . "jsToolBar.prototype.elements.link.hreflang_prompt = '" . html::escapeJS(__('Language?')) . "'; " . "jsToolBar.prototype.elements.img.title = '" . html::escapeJS(__('External image')) . "'; " . "jsToolBar.prototype.elements.img.src_prompt = '" . html::escapeJS(__('URL?')) . "'; " . "jsToolBar.prototype.elements.img_select.title = '" . html::escapeJS(__('Media chooser')) . "'; " . "jsToolBar.prototype.elements.post_link.title = '" . html::escapeJS(__('Link to an entry')) . "'; " . "jsToolBar.prototype.elements.removeFormat = jsToolBar.prototype.elements.removeFormat || {}; " . "jsToolBar.prototype.elements.removeFormat.title = '" . html::escapeJS(__('Remove text formating')) . "'; ";
if (!$GLOBALS['core']->auth->check('media,media_admin', $GLOBALS['core']->blog->id)) {
$res .= "jsToolBar.prototype.elements.img_select.disabled = true;\n";
}
$res .= "jsToolBar.prototype.toolbar_bottom = " . (isset($GLOBALS['core']->auth) && $GLOBALS['core']->auth->getOption('toolbar_bottom') ? 'true' : 'false') . ";\n";
$res .= "\n//]]>\n" . "</script>\n";
return $res;
}
示例2: importExportDashboardFavorites
function importExportDashboardFavorites($core, $favs)
{
$favs->register('importExport', array('title' => __('Import/Export'), 'url' => $core->adminurl->get('admin.plugin.importExport'), 'small-icon' => dcPage::getPF('importExport/icon.png'), 'large-icon' => dcPage::getPF('importExport/icon-big.png'), 'permissions' => 'admin'));
}
示例3: switch
}
}
}
# Display
?>
<html>
<head>
<title><?php
echo $page_title;
?>
</title>
<?php
$core->auth->user_prefs->addWorkspace('accessibility');
if (!$core->auth->user_prefs->accessibility->nodragdrop) {
echo dcPage::jsLoad('js/jquery/jquery-ui.custom.js') . dcPage::jsLoad('js/jquery/jquery.ui.touch-punch.js') . dcPage::jsLoad(dcPage::getPF('simpleMenu/simplemenu.js'));
}
echo dcPage::jsConfirmClose('settings', 'menuitemsappend', 'additem', 'menuitems');
?>
</head>
<body>
<?php
if ($step) {
switch ($step) {
case 1:
$step_label = __('Step #1');
break;
case 2:
if ($items[$item_type][1]) {
示例4: catch
$module = new $_REQUEST['module']($core);
$module->init();
}
}
if ($type && $module !== null && !empty($_REQUEST['do'])) {
try {
$module->process($_REQUEST['do']);
} catch (Exception $e) {
$core->error->add($e->getMessage());
}
}
$title = __('Import/Export');
echo '
<html>
<head>
<title>' . $title . '</title>' . dcPage::cssLoad(dcPage::getPF('importExport/style.css')) . dcPage::jsLoad(dcPage::getPF('importExport/js/script.js')) . '<script type="text/javascript">
//<![CDATA[
' . dcPage::jsVar('dotclear.msg.please_wait', __('Please wait...')) . '
//]]>
</script>
</head>
<body>';
if ($type && $module !== null) {
echo dcPage::breadcrumb(array(__('Plugins') => '', $title => $p_url, html::escapeHTML($module->name) => '')) . dcPage::notices();
echo '<div id="ie-gui">';
$module->gui();
echo '</div>';
} else {
echo dcPage::breadcrumb(array(__('Plugins') => '', $title => '')) . dcPage::notices();
echo '<h3>' . __('Import') . '</h3>' . listImportExportModules($core, $modules['import']);
echo '<h3>' . __('Export') . '</h3>' . '<p class="info">' . sprintf(__('Export functions are in the page %s.'), '<a href="' . $core->adminurl->get('admin.plugin.maintenance', array('tab' => 'backup')) . '#backup">' . __('Maintenance') . '</a>') . '</p>';
示例5: Copyright
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------
if (!defined('DC_CONTEXT_ADMIN')) {
return;
}
$_menu['Plugins']->addItem('dcCKEditor', $core->adminurl->get('admin.plugin.dcCKEditor'), dcPage::getPF('dcCKEditor/imgs/icon.png'), preg_match('/' . preg_quote($core->adminurl->get('admin.plugin.dcCKEditor')) . '(&.*)?$/', $_SERVER['REQUEST_URI']), $core->auth->check('admin,contentadmin', $core->blog->id));
$self_ns = $core->blog->settings->addNamespace('dcckeditor');
if ($self_ns->active) {
$core->addEditorFormater('dcCKEditor', 'xhtml', create_function('$s', 'return $s;'));
$core->addBehavior('adminPostEditor', array('dcCKEditorBehaviors', 'adminPostEditor'));
$core->addBehavior('adminPopupMedia', array('dcCKEditorBehaviors', 'adminPopupMedia'));
$core->addBehavior('adminPopupLink', array('dcCKEditorBehaviors', 'adminPopupLink'));
$core->addBehavior('adminPopupPosts', array('dcCKEditorBehaviors', 'adminPopupPosts'));
$core->addBehavior('adminMediaURL', array('dcCKEditorBehaviors', 'adminMediaURL'));
}
示例6: pagesDashboardFavs
public static function pagesDashboardFavs($core, $favs)
{
$favs->register('pages', array('title' => __('Pages'), 'url' => $core->adminurl->get('admin.plugin.pages'), 'small-icon' => dcPage::getPF('pages/icon.png'), 'large-icon' => dcPage::getPF('pages/icon-big.png'), 'permissions' => 'contentadmin,pages', 'dashboard_cb' => array('pagesDashboard', 'pagesDashboardCB'), 'active_cb' => array('pagesDashboard', 'pagesActiveCB')));
$favs->register('newpage', array('title' => __('New page'), 'url' => $core->adminurl->get('admin.plugin.pages', array('act' => 'page')), 'small-icon' => dcPage::getPF('pages/icon-np.png'), 'large-icon' => dcPage::getPF('pages/icon-np-big.png'), 'permissions' => 'contentadmin,pages', 'active_cb' => array('pagesDashboard', 'newPageActiveCB')));
}
示例7: __
}
echo '<form id="theme_config" action="' . $p_url . '" method="post" enctype="multipart/form-data">';
echo '<div class="fieldset"><h3>' . __('Customization') . '</h3>' . '<h4>' . __('General') . '</h4>';
if ($can_write_images) {
echo '<p class="field"><label for="body_bg_c">' . __('Background color:') . '</label> ' . form::field('body_bg_c', 7, 7, $blowup_user['body_bg_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="body_bg_g">' . __('Background color fill:') . '</label> ' . form::combo('body_bg_g', $gradient_types, $blowup_user['body_bg_g']) . '</p>';
}
echo '<p class="field"><label for="body_txt_f">' . __('Main text font:') . '</label> ' . form::combo('body_txt_f', blowupConfig::fontsList(), $blowup_user['body_txt_f']) . '</p>' . '<p class="field"><label for="body_txt_s">' . __('Main text font size:') . '</label> ' . form::field('body_txt_s', 7, 7, $blowup_user['body_txt_s']) . '</p>' . '<p class="field"><label for="body_txt_c">' . __('Main text color:') . '</label> ' . form::field('body_txt_c', 7, 7, $blowup_user['body_txt_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="body_line_height">' . __('Text line height:') . '</label> ' . form::field('body_line_height', 7, 7, $blowup_user['body_line_height']) . '</p>' . '<h4 class="border-top">' . __('Links') . '</h4>' . '<p class="field"><label for="body_link_c">' . __('Links color:') . '</label> ' . form::field('body_link_c', 7, 7, $blowup_user['body_link_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="body_link_v_c">' . __('Visited links color:') . '</label> ' . form::field('body_link_v_c', 7, 7, $blowup_user['body_link_v_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="body_link_f_c">' . __('Focus links color:') . '</label> ' . form::field('body_link_f_c', 7, 7, $blowup_user['body_link_f_c'], 'colorpicker') . '</p>' . '<h4 class="border-top">' . __('Page top') . '</h4>';
if ($can_write_images) {
echo '<p class="field"><label for="prelude_c">' . __('Prelude color:') . '</label> ' . form::field('prelude_c', 7, 7, $blowup_user['prelude_c'], 'colorpicker') . '</p>';
}
echo '<p class="field"><label for="blog_title_hide">' . __('Hide main title') . '</label> ' . form::checkbox('blog_title_hide', 1, $blowup_user['blog_title_hide']) . '</p>' . '<p class="field"><label for="blog_title_f">' . __('Main title font:') . '</label> ' . form::combo('blog_title_f', blowupConfig::fontsList(), $blowup_user['blog_title_f']) . '</p>' . '<p class="field"><label for="blog_title_s">' . __('Main title font size:') . '</label> ' . form::field('blog_title_s', 7, 7, $blowup_user['blog_title_s']) . '</p>' . '<p class="field"><label for="blog_title_c">' . __('Main title color:') . '</label> ' . form::field('blog_title_c', 7, 7, $blowup_user['blog_title_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="blog_title_a">' . __('Main title alignment:') . '</label> ' . form::combo('blog_title_a', array(__('center') => 'center', __('left') => 'left', __('right') => 'right'), $blowup_user['blog_title_a']) . '</p>' . '<p class="field"><label for="blog_title_p">' . __('Main title position (x:y)') . '</label> ' . form::field('blog_title_p', 7, 7, $blowup_user['blog_title_p']) . '</p>';
if ($can_write_images) {
if ($blowup_user['top_image'] == 'custom' && $blowup_user['uploaded']) {
$preview_image = http::concatURL($core->blog->url, blowupConfig::imagesURL() . '/page-t.png');
} else {
$preview_image = dcPage::getPF('blowupConfig/alpha-img/page-t/' . $blowup_user['top_image'] . '.png');
}
echo '<h5 class="pretty-title">' . __('Top image') . '</h5>' . '<p class="field"><label for="top_image">' . __('Top image') . '</label> ' . form::combo('top_image', $top_images, $blowup_user['top_image'] ? $blowup_user['top_image'] : 'default') . '</p>' . '<p>' . __('Choose "Custom..." to upload your own image.') . '</p>' . '<p id="uploader"><label for="upfile">' . __('Add your image:') . '</label> ' . ' (' . sprintf(__('JPEG or PNG file, 800 pixels wide, maximum size %s'), files::size(DC_MAX_UPLOAD_SIZE)) . ')' . '<input type="file" name="upfile" id="upfile" size="35" />' . '</p>' . '<h5>' . __('Preview') . '</h5>' . '<div class="grid" style="width:800px;border:1px solid #ccc;">' . '<img style="display:block;" src="' . $preview_image . '" alt="" id="image-preview" />' . '</div>';
}
echo '<h4 class="border-top">' . __('Sidebar') . '</h4>' . '<p class="field"><label for="sidebar_position">' . __('Sidebar position:') . '</label> ' . form::combo('sidebar_position', array(__('right') => 'right', __('left') => 'left'), $blowup_user['sidebar_position']) . '</p>' . '<p class="field"><label for="sidebar_text_f">' . __('Sidebar text font:') . '</label> ' . form::combo('sidebar_text_f', blowupConfig::fontsList(), $blowup_user['sidebar_text_f']) . '</p>' . '<p class="field"><label for="sidebar_text_s">' . __('Sidebar text font size:') . '</label> ' . form::field('sidebar_text_s', 7, 7, $blowup_user['sidebar_text_s']) . '</p>' . '<p class="field"><label for="sidebar_text_c">' . __('Sidebar text color:') . '</label> ' . form::field('sidebar_text_c', 7, 7, $blowup_user['sidebar_text_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="sidebar_title_f">' . __('Sidebar titles font:') . '</label> ' . form::combo('sidebar_title_f', blowupConfig::fontsList(), $blowup_user['sidebar_title_f']) . '</p>' . '<p class="field"><label for="sidebar_title_s">' . __('Sidebar titles font size:') . '</label> ' . form::field('sidebar_title_s', 7, 7, $blowup_user['sidebar_title_s']) . '</p>' . '<p class="field"><label for="sidebar_title_c">' . __('Sidebar titles color:') . '</label> ' . form::field('sidebar_title_c', 7, 7, $blowup_user['sidebar_title_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="sidebar_title2_f">' . __('Sidebar 2nd level titles font:') . '</label> ' . form::combo('sidebar_title2_f', blowupConfig::fontsList(), $blowup_user['sidebar_title2_f']) . '</p>' . '<p class="field"><label for="sidebar_title2_s">' . __('Sidebar 2nd level titles font size:') . '</label> ' . form::field('sidebar_title2_s', 7, 7, $blowup_user['sidebar_title2_s']) . '</p>' . '<p class="field"><label for="sidebar_title2_c">' . __('Sidebar 2nd level titles color:') . '</label> ' . form::field('sidebar_title2_c', 7, 7, $blowup_user['sidebar_title2_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="sidebar_line_c">' . __('Sidebar lines color:') . '</label> ' . form::field('sidebar_line_c', 7, 7, $blowup_user['sidebar_line_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="sidebar_link_c">' . __('Sidebar links color:') . '</label> ' . form::field('sidebar_link_c', 7, 7, $blowup_user['sidebar_link_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="sidebar_link_v_c">' . __('Sidebar visited links color:') . '</label> ' . form::field('sidebar_link_v_c', 7, 7, $blowup_user['sidebar_link_v_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="sidebar_link_f_c">' . __('Sidebar focus links color:') . '</label> ' . form::field('sidebar_link_f_c', 7, 7, $blowup_user['sidebar_link_f_c'], 'colorpicker') . '</p>' . '<h4 class="border-top">' . __('Entries') . '</h4>' . '<p class="field"><label for="date_title_f">' . __('Date title font:') . '</label> ' . form::combo('date_title_f', blowupConfig::fontsList(), $blowup_user['date_title_f']) . '</p>' . '<p class="field"><label for="date_title_s">' . __('Date title font size:') . '</label> ' . form::field('date_title_s', 7, 7, $blowup_user['date_title_s']) . '</p>' . '<p class="field"><label for="date_title_c">' . __('Date title color:') . '</label> ' . form::field('date_title_c', 7, 7, $blowup_user['date_title_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="post_title_f">' . __('Entry title font:') . '</label> ' . form::combo('post_title_f', blowupConfig::fontsList(), $blowup_user['post_title_f']) . '</p>' . '<p class="field"><label for="post_title_s">' . __('Entry title font size:') . '</label> ' . form::field('post_title_s', 7, 7, $blowup_user['post_title_s']) . '</p>' . '<p class="field"><label for="post_title_c">' . __('Entry title color:') . '</label> ' . form::field('post_title_c', 7, 7, $blowup_user['post_title_c'], 'colorpicker') . '</p>';
if ($can_write_images) {
echo '<p class="field"><label for="post_comment_bg_c">' . __('Comment background color:') . '</label> ' . form::field('post_comment_bg_c', 7, 7, $blowup_user['post_comment_bg_c'], 'colorpicker') . '</p>';
}
echo '<p class="field"><label for="post_comment_c">' . __('Comment text color:') . '</label> ' . form::field('post_comment_c', 7, 7, $blowup_user['post_comment_c'], 'colorpicker') . '</p>';
if ($can_write_images) {
echo '<p class="field"><label for="post_commentmy_bg_c">' . __('My comment background color:') . '</label> ' . form::field('post_commentmy_bg_c', 7, 7, $blowup_user['post_commentmy_bg_c'], 'colorpicker') . '</p>';
}
echo '<p class="field"><label for="post_commentmy_c">' . __('My comment text color:') . '</label> ' . form::field('post_commentmy_c', 7, 7, $blowup_user['post_commentmy_c'], 'colorpicker') . '</p>' . '<h4 class="border-top">' . __('Footer') . '</h4>' . '<p class="field"><label for="footer_f">' . __('Footer font:') . '</label> ' . form::combo('footer_f', blowupConfig::fontsList(), $blowup_user['footer_f']) . '</p>' . '<p class="field"><label for="footer_s">' . __('Footer font size:') . '</label> ' . form::field('footer_s', 7, 7, $blowup_user['footer_s']) . '</p>' . '<p class="field"><label for="footer_c">' . __('Footer color:') . '</label> ' . form::field('footer_c', 7, 7, $blowup_user['footer_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="footer_l_c">' . __('Footer links color:') . '</label> ' . form::field('footer_l_c', 7, 7, $blowup_user['footer_l_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="footer_bg_c">' . __('Footer background color:') . '</label> ' . form::field('footer_bg_c', 7, 7, $blowup_user['footer_bg_c'], 'colorpicker') . '</p>';
echo '<h4 class="border-top">' . __('Additional CSS') . '</h4>' . '<p><label for="extra_css">' . __('Any additional CSS styles (must be written using the CSS syntax):') . '</label> ' . form::textarea('extra_css', 72, 5, html::escapeHTML($blowup_user['extra_css']), 'maximal', '', false, 'title="' . __('Additional CSS') . '"') . '</p>' . '</div>';
// Import / Export configuration
$tmp_array = array();
示例8: pingJS
public static function pingJS()
{
global $core;
$res = "<script type=\"text/javascript\">\n//<![CDATA[\n" . dcPage::jsVar('dotclear.msg.check_all', __('Check all')) . "\n" . "</script>\n" . dcPage::jsLoad(dcPage::getPF('pings/post.js'));
return $res;
}
示例9: dcPagesActionsPage
# Actions combo box
$pages_actions_page = new dcPagesActionsPage($core, 'plugin.php', array('p' => 'pages'));
if (!$pages_actions_page->process()) {
# --BEHAVIOR-- adminPagesActionsCombo
$core->callBehavior('adminPagesActionsCombo', array(&$combo_action));
/* Display
-------------------------------------------------------- */
?>
<html>
<head>
<title><?php
echo __('Pages');
?>
</title>
<?php
echo dcPage::jsLoad('js/jquery/jquery-ui.custom.js') . dcPage::jsLoad('js/jquery/jquery.ui.touch-punch.js') . dcPage::jsLoad(dcPage::getPF('pages/list.js')) . '<script type="text/javascript">' . "\n" . '//<![CDATA[' . "\n" . dcPage::jsVar('dotclear.msg.confirm_delete_posts', __("Are you sure you want to delete selected pages?")) . "\n" . '//]]>' . "\n" . '</script>';
?>
</head>
<body>
<?php
echo dcPage::breadcrumb(array(html::escapeHTML($core->blog->name) => '', __('Pages') => '')) . dcPage::notices();
if (!empty($_GET['upd'])) {
dcPage::success(__('Selected pages have been successfully updated.'));
} elseif (!empty($_GET['del'])) {
dcPage::success(__('Selected pages have been successfully deleted.'));
} elseif (!empty($_GET['reo'])) {
dcPage::success(__('Selected pages have been successfully reordered.'));
}
echo '<p class="top-add"><a class="button add" href="' . $p_url . '&act=page">' . __('New page') . '</a></p>';
if (!$core->error->flag()) {
示例10: sprintf
echo dcPage::jsLoad(dcPage::getPF('themeEditor/codemirror/multiplex.js'));
?>
<?php
echo dcPage::jsLoad(dcPage::getPF('themeEditor/codemirror/xml.js'));
?>
<?php
echo dcPage::jsLoad(dcPage::getPF('themeEditor/codemirror/javascript.js'));
?>
<?php
echo dcPage::jsLoad(dcPage::getPF('themeEditor/codemirror/css.js'));
?>
<?php
echo dcPage::jsLoad(dcPage::getPF('themeEditor/codemirror/php.js'));
?>
<?php
echo dcPage::jsLoad(dcPage::getPF('themeEditor/codemirror/htmlmixed.js'));
}
?>
</head>
<body>
<?php
echo dcPage::breadcrumb(array(html::escapeHTML($core->blog->name) => '', __('Blog appearance') => $core->adminurl->get('admin.blog.theme'), __('Edit theme files') => '')) . dcPage::notices();
?>
<p><strong><?php
echo sprintf(__('Your current theme on this blog is "%s".'), html::escapeHTML($T['name']));
?>
</strong></p>
<?php
示例11: antispamDashboardFavorites
function antispamDashboardFavorites($core, $favs)
{
$favs->register('antispam', array('title' => __('Antispam'), 'url' => $core->adminurl->get('admin.plugin.antispam'), 'small-icon' => dcPage::getPF('antispam/icon.png'), 'large-icon' => dcPage::getPF('antispam/icon-big.png'), 'permissions' => 'admin'));
}
示例12: __
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------
if (!defined('DC_CONTEXT_ADMIN')) {
return;
}
?>
<html>
<head>
<title><?php
echo __('Tags');
?>
</title>
<?php
echo dcPage::cssLoad(dcPage::getPF('tags/style.css'));
?>
</head>
<body>
<?php
echo dcPage::breadcrumb(array(html::escapeHTML($core->blog->name) => '', __('Tags') => '')) . dcPage::notices();
?>
<?php
$tags = $core->meta->getMetadata(array('meta_type' => 'tag'));
$tags = $core->meta->computeMetaStats($tags);
$tags->sort('meta_id_lower', 'asc');
$last_letter = null;
$cols = array('', '');
$col = 0;
示例13: displayModules
/**
* Display list of modules.
*
* @param array $cols List of colones (module field) to display
* @param array $actions List of predefined actions to show on form
* @param boolean $nav_limit Limit list to previously selected index
* @return adminModulesList self instance
*/
public function displayModules($cols = array('name', 'version', 'desc'), $actions = array(), $nav_limit = false)
{
echo '<form action="' . $this->getURL() . '" method="post" class="modules-form-actions">' . '<div class="table-outer">' . '<table id="' . html::escapeHTML($this->list_id) . '" class="modules' . (in_array('expander', $cols) ? ' expandable' : '') . '">' . '<caption class="hidden">' . html::escapeHTML(__('Plugins list')) . '</caption><tr>';
if (in_array('name', $cols)) {
$colspan = 1;
if (in_array('checkbox', $cols)) {
$colspan++;
}
if (in_array('icon', $cols)) {
$colspan++;
}
echo '<th class="first nowrap"' . ($colspan > 1 ? ' colspan="' . $colspan . '"' : '') . '>' . __('Name') . '</th>';
}
if (in_array('score', $cols) && $this->getSearch() !== null && defined('DC_DEBUG') && DC_DEBUG) {
echo '<th class="nowrap">' . __('Score') . '</th>';
}
if (in_array('version', $cols)) {
echo '<th class="nowrap count" scope="col">' . __('Version') . '</th>';
}
if (in_array('current_version', $cols)) {
echo '<th class="nowrap count" scope="col">' . __('Current version') . '</th>';
}
if (in_array('desc', $cols)) {
echo '<th class="nowrap" scope="col">' . __('Details') . '</th>';
}
if (in_array('distrib', $cols)) {
echo '<th' . (in_array('desc', $cols) ? '' : ' class="maximal"') . '></th>';
}
if (!empty($actions) && $this->core->auth->isSuperAdmin()) {
echo '<th class="minimal nowrap">' . __('Action') . '</th>';
}
echo '</tr>';
$sort_field = $this->getSort();
# Sort modules by $sort_field (default sname)
$modules = $this->getSearch() === null ? self::sortModules($this->data, $sort_field, $this->sort_asc) : $this->data;
$count = 0;
foreach ($modules as $id => $module) {
# Show only requested modules
if ($nav_limit && $this->getSearch() === null) {
$char = substr($module[$sort_field], 0, 1);
if (!in_array($char, $this->nav_list)) {
$char = $this->nav_special;
}
if ($this->getIndex() != $char) {
continue;
}
}
echo '<tr class="line" id="' . html::escapeHTML($this->list_id) . '_m_' . html::escapeHTML($id) . '">';
$tds = 0;
if (in_array('checkbox', $cols)) {
$tds++;
echo '<td class="module-icon nowrap">' . form::checkbox(array('modules[' . $count . ']', html::escapeHTML($this->list_id) . '_modules_' . html::escapeHTML($id)), html::escapeHTML($id)) . '</td>';
}
if (in_array('icon', $cols)) {
$tds++;
echo '<td class="module-icon nowrap">' . sprintf('<img alt="%1$s" title="%1$s" src="%2$s" />', html::escapeHTML($id), file_exists($module['root'] . '/icon.png') ? dcPage::getPF($id . '/icon.png') : 'images/module.png') . '</td>';
}
$tds++;
echo '<td class="module-name nowrap" scope="row">';
if (in_array('checkbox', $cols)) {
if (in_array('expander', $cols)) {
echo html::escapeHTML($module['name']);
} else {
echo '<label for="' . html::escapeHTML($this->list_id) . '_modules_' . html::escapeHTML($id) . '">' . html::escapeHTML($module['name']) . '</label>';
}
} else {
echo html::escapeHTML($module['name']) . form::hidden(array('modules[' . $count . ']'), html::escapeHTML($id));
}
echo $this->core->formNonce() . '</td>';
# Display score only for debug purpose
if (in_array('score', $cols) && $this->getSearch() !== null && defined('DC_DEBUG') && DC_DEBUG) {
$tds++;
echo '<td class="module-version nowrap count"><span class="debug">' . $module['score'] . '</span></td>';
}
if (in_array('version', $cols)) {
$tds++;
echo '<td class="module-version nowrap count">' . html::escapeHTML($module['version']) . '</td>';
}
if (in_array('current_version', $cols)) {
$tds++;
echo '<td class="module-current-version nowrap count">' . html::escapeHTML($module['current_version']) . '</td>';
}
if (in_array('desc', $cols)) {
$tds++;
echo '<td class="module-desc maximal">' . html::escapeHTML(__($module['desc']));
if (isset($module['cannot_disable']) && $module['enabled']) {
echo '<br/><span class="info">' . sprintf(__('This module cannot be disabled nor deleted, since the following modules are also enabled : %s'), join(',', $module['cannot_disable'])) . '</span>';
}
if (isset($module['cannot_enable']) && !$module['enabled']) {
echo '<br/><span class="info">' . __('This module cannot be enabled, because of the following reasons :') . '<ul>';
foreach ($module['cannot_enable'] as $m => $reason) {
echo '<li>' . $reason . '</li>';
//.........这里部分代码省略.........
示例14: pingDashboardFavorites
function pingDashboardFavorites($core, $favs)
{
$favs->register('pings', array('title' => __('Pings'), 'url' => $core->adminurl->get('admin.plugin.pings'), 'small-icon' => dcPage::getPF('pings/icon.png'), 'large-icon' => dcPage::getPF('pings/icon-big.png')));
}
示例15: postHeaders
public static function postHeaders()
{
$tag_url = $GLOBALS['core']->blog->url . $GLOBALS['core']->url->getURLFor('tag');
$opts = $GLOBALS['core']->auth->getOptions();
$type = isset($opts['tag_list_format']) ? $opts['tag_list_format'] : 'more';
return '<script type="text/javascript">' . "\n" . "//<![CDATA[\n" . "var editor_tags_options = {\n" . "meta_url : 'plugin.php?p=tags&m=tag_posts&tag=',\n" . "list_type : '" . html::escapeJS($type) . "',\n" . "text_confirm_remove : '" . html::escapeJS(__('Are you sure you want to remove this tag?')) . "',\n" . "text_add_meta : '" . html::escapeJS(__('Add a tag to this entry')) . "',\n" . "text_choose : '" . html::escapeJS(__('Choose from list')) . "',\n" . "text_all : '" . html::escapeJS(__('all')) . "',\n" . "text_separation : '" . html::escapeJS(__('Enter tags separated by coma')) . "',\n" . "};\n" . "\n//]]>\n" . "</script>\n" . dcPage::jsLoad(dcPage::getPF('tags/js/jquery.autocomplete.js')) . dcPage::jsLoad(dcPage::getPF('tags/js/post.js')) . '<script type="text/javascript">' . "\n" . "//<![CDATA[\n" . "dotclear.msg.tags_autocomplete = '" . html::escapeJS(__('used in %e - frequency %p%')) . "';\n" . "dotclear.msg.entry = '" . html::escapeJS(__('entry')) . "';\n" . "dotclear.msg.entries = '" . html::escapeJS(__('entries')) . "';\n" . "\n//]]>\n" . "</script>\n" . dcPage::cssLoad(dcPage::getPF('tags/style.css'));
}