Changeset 856:4f17356095d8
- Timestamp:
- 08/01/12 13:57:20 (13 years ago)
- Branch:
- sexy
- Children:
- 872:728b4c1f2b41, 873:f9ef04edef05
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.dc.page.php
r854 r856 551 551 } 552 552 553 public static function jsToolBar()554 {555 $res =556 '<link rel="stylesheet" type="text/css" href="style/jsToolBar/jsToolBar.css" />'.557 '<script type="text/javascript" src="js/jsToolBar/jsToolBar.js"></script>';558 559 if (isset($GLOBALS['core']->auth) && $GLOBALS['core']->auth->getOption('enable_wysiwyg')) {560 $res .= '<script type="text/javascript" src="js/jsToolBar/jsToolBar.wysiwyg.js"></script>';561 }562 563 $res .=564 '<script type="text/javascript" src="js/jsToolBar/jsToolBar.dotclear.js"></script>'.565 '<script type="text/javascript">'."\n".566 "//<![CDATA[\n".567 "jsToolBar.prototype.dialog_url = 'popup.php'; ".568 "jsToolBar.prototype.iframe_css = '".569 'body{'.570 'font: 12px "DejaVu Sans","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif;'.571 'color : #000;'.572 'background: #f9f9f9;'.573 'margin: 0;'.574 'padding : 2px;'.575 'border: none;'.576 (l10n::getTextDirection($GLOBALS['_lang']) == 'rtl' ? 'direction:rtl;' : '').577 '}'.578 'pre, code, kbd, samp {'.579 'font-family:"Courier New",Courier,monospace;'.580 'font-size : 1.1em;'.581 '}'.582 'code {'.583 'color : #666;'.584 'font-weight : bold;'.585 '}'.586 'body > p:first-child {'.587 'margin-top: 0;'.588 '}'.589 "'; ".590 "jsToolBar.prototype.base_url = '".html::escapeJS($GLOBALS['core']->blog->host)."'; ".591 "jsToolBar.prototype.switcher_visual_title = '".html::escapeJS(__('visual'))."'; ".592 "jsToolBar.prototype.switcher_source_title = '".html::escapeJS(__('source'))."'; ".593 "jsToolBar.prototype.legend_msg = '".594 html::escapeJS(__('You can use the following shortcuts to format your text.'))."'; ".595 "jsToolBar.prototype.elements.blocks.options.none = '".html::escapeJS(__('-- none --'))."'; ".596 "jsToolBar.prototype.elements.blocks.options.nonebis = '".html::escapeJS(__('-- block format --'))."'; ".597 "jsToolBar.prototype.elements.blocks.options.p = '".html::escapeJS(__('Paragraph'))."'; ".598 "jsToolBar.prototype.elements.blocks.options.h1 = '".html::escapeJS(__('Level 1 header'))."'; ".599 "jsToolBar.prototype.elements.blocks.options.h2 = '".html::escapeJS(__('Level 2 header'))."'; ".600 "jsToolBar.prototype.elements.blocks.options.h3 = '".html::escapeJS(__('Level 3 header'))."'; ".601 "jsToolBar.prototype.elements.blocks.options.h4 = '".html::escapeJS(__('Level 4 header'))."'; ".602 "jsToolBar.prototype.elements.blocks.options.h5 = '".html::escapeJS(__('Level 5 header'))."'; ".603 "jsToolBar.prototype.elements.blocks.options.h6 = '".html::escapeJS(__('Level 6 header'))."'; ".604 "jsToolBar.prototype.elements.strong.title = '".html::escapeJS(__('Strong emphasis'))."'; ".605 "jsToolBar.prototype.elements.em.title = '".html::escapeJS(__('Emphasis'))."'; ".606 "jsToolBar.prototype.elements.ins.title = '".html::escapeJS(__('Inserted'))."'; ".607 "jsToolBar.prototype.elements.del.title = '".html::escapeJS(__('Deleted'))."'; ".608 "jsToolBar.prototype.elements.quote.title = '".html::escapeJS(__('Inline quote'))."'; ".609 "jsToolBar.prototype.elements.code.title = '".html::escapeJS(__('Code'))."'; ".610 "jsToolBar.prototype.elements.br.title = '".html::escapeJS(__('Line break'))."'; ".611 "jsToolBar.prototype.elements.blockquote.title = '".html::escapeJS(__('Blockquote'))."'; ".612 "jsToolBar.prototype.elements.pre.title = '".html::escapeJS(__('Preformated text'))."'; ".613 "jsToolBar.prototype.elements.ul.title = '".html::escapeJS(__('Unordered list'))."'; ".614 "jsToolBar.prototype.elements.ol.title = '".html::escapeJS(__('Ordered list'))."'; ".615 616 "jsToolBar.prototype.elements.link.title = '".html::escapeJS(__('Link'))."'; ".617 "jsToolBar.prototype.elements.link.href_prompt = '".html::escapeJS(__('URL?'))."'; ".618 "jsToolBar.prototype.elements.link.hreflang_prompt = '".html::escapeJS(__('Language?'))."'; ".619 620 "jsToolBar.prototype.elements.img.title = '".html::escapeJS(__('External image'))."'; ".621 "jsToolBar.prototype.elements.img.src_prompt = '".html::escapeJS(__('URL?'))."'; ".622 623 "jsToolBar.prototype.elements.post_link.title = '".html::escapeJS(__('Link to an entry'))."'; ";624 625 626 $res .=627 "\n//]]>\n".628 "</script>\n";629 630 return $res;631 }632 553 633 554 public static function jsToolMan()
Note: See TracChangeset
for help on using the changeset viewer.