本文整理汇总了PHP中dcPage::cssLoad方法的典型用法代码示例。如果您正苦于以下问题:PHP dcPage::cssLoad方法的具体用法?PHP dcPage::cssLoad怎么用?PHP dcPage::cssLoad使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dcPage
的用法示例。
在下文中一共展示了dcPage::cssLoad方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: __
?>
</title>
<script type="text/javascript">
//<![CDATA[
<?php
echo dcPage::jsVar('dotclear.msg.confirm_spam_delete', __('Are you sure you want to delete all spams?'));
?>
//]]>
</script>
<?php
echo dcPage::jsPageTabs($default_tab);
$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('antispam/antispam.js'));
}
echo dcPage::cssLoad(dcPage::getPF('antispam/style.css'));
?>
</head>
<body>
<?php
if ($filter_gui !== false) {
echo dcPage::breadcrumb(array(__('Plugins') => '', $page_name => $p_url, sprintf(__('%s filter configuration'), $filter->name) => '')) . dcPage::notices();
echo '<p><a href="' . $p_url . '" class="back">' . __('Back to filters list') . '</a></p>';
echo $filter_gui;
if ($filter->help) {
dcPage::helpBlock($filter->help);
}
} else {
echo dcPage::breadcrumb(array(__('Plugins') => '', $page_name => '')) . dcPage::notices();
# Information
$spam_count = dcAntispam::countSpam($core);
示例3: 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'));
}
示例4:
</script>
<?php
echo dcPage::jsConfirmClose('file-form');
?>
<script type="text/javascript" src="<?php
echo dcPage::getPF('themeEditor/script.js');
?>
"></script>
<?php
if ($user_ui_colorsyntax) {
?>
<?php
echo dcPage::cssLoad(dcPage::getPF('themeEditor/codemirror/codemirror.css'));
?>
<?php
echo dcPage::cssLoad(dcPage::getPF('themeEditor/codemirror.css'));
?>
<?php
echo dcPage::jsLoad(dcPage::getPF('themeEditor/codemirror/codemirror.js'));
?>
<?php
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'));
示例5: __
# 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;
示例6: 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>';