Thread: [Phpslash-commit] [CVS phpslash-skins] first commit
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2004-12-01 20:49:09
|
Commit in phpslash-skins/include/templates/en/bluerobot on MAIN slashHead-fckeditor.tpl +99 added 1.1 <pre class="comment"> first commit </pre> <hr /><a name="file1" /><div class="file"> <span class="pathname" id="added">phpslash-skins/include/templates/en/bluerobot<br /></span> <div class="fileheader" id="added"><big><b>slashHead-fckeditor.tpl</b></big> <small id="info">added at 1.1</small></div> <pre class="diff"><small id="info">diff -N slashHead-fckeditor.tpl --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ slashHead-fckeditor.tpl 1 Dec 2004 20:49:02 -0000 1.1 @@ -0,0 +1,99 @@ </small></pre><pre class="diff" id="added">+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> + +<!-- START slashHead-fckeditor.tpl --> + +<html> +<head> +<title>{SITE_NAME} - {SECTION} {SITETITLE}</title> + +<!-- Based on the Layout Reservoir at BlueRobot.com --> +<!-- (http://www.bluerobot.com/web/layouts/) --> + +<!-- Enter Your Desired META Tags Below Here --> +<!-- This Meta Tag is Defined In Each Page By Setting The Variable + $xsiteobject = "HomePage"; to the page type HomePage, Glossary, + Info, etc.. --> +<meta name="object" content="{XSITEOBJECT}" /> +<!-- Enter Your META Tags Above Here --> +<!-- BEGIN each_metatag --> +<meta name="{METANAME}" content="{METADESCRIPTION}" /> +<!-- END each_metatag --> +<link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> +<link rel="alternate" type="application/atom+xml" title="RSS" href="{ROOTDIR}/backend.php?view=atom" /> + +<link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{CSS}.css" /> +<link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/basic_print.css" media="print"/> + +<!-- BEGIN FCKeditor Javascript --> +<script type="text/javascript" src="{ROOTDIR}/scripts/fckeditor/fckeditor.js"></script> + +<script type="text/javascript"> +// this function will get called at body.onload + function initEditor() { + /* + var oFCKeditor = new FCKeditor( 'intro_text' ); + oFCKeditor.BasePath = '{ROOTDIR}/scripts/fckeditor/'; + oFCKeditor.ReplaceTextarea() ; + + var oFCKeditor = new FCKeditor( 'body_text' ) ; + oFCKeditor.BasePath = '{ROOTDIR}/scripts/fckeditor/'; + oFCKeditor.ReplaceTextarea() ; + */ + var oFCKeditor = new FCKeditor( 'comment_text' ) ; + oFCKeditor.BasePath = '{ROOTDIR}/scripts/fckeditor/'; + oFCKeditor.ToolbarSet = "Basic" ; + oFCKeditor.Config['SkinPath'] = '{ROOTDIR}/scripts/fckeditor/editor/skins/silver/' ; + oFCKeditor.ReplaceTextarea() ; +//--------------------------------------------------------------------- + }; + + + +function PSL_chooseEditor(onLoad) { + + // if IE 5.5 or W3C/Moz 1.3+ - Can't combine the two due to problems with reload() & IE + + // IE 5.5 - Eliminating reload() because it pulled down new form data + if(document.all && document.designMode) { + // HTML or htmlArea + if (document.editNew.content_type[0].checked) { + // HTMLArea.replace('en'); + // HTMLArea.replaceAll(); + initEditor(); + } else { + // how to remove in IE? + + } + + // W3C/Moz 1.3+ - reload() without adjusting form data + } else if(document.designMode) { + // HTML or htmlArea + if (document.editNew.content_type[0].checked) { + // HTMLArea.replace('en'); + // HTMLArea.replaceAll(); + initEditor(); + } else { + if(onLoad == 1) { + onLoad = 2; + window.location.reload(); + } + } + } +} + +</script> + +<!-- END HTMLAREA3 Javascript --> + +</head> +<body onload="PSL_chooseEditor()"> + +<div id="Header"> +<!-- START: Title --> + <a href="{ROOTDIR}" title="phpSlash Home">phpSlash</a> +<!-- END: Title --> +{NAVBAR} +</div> <!-- id="Header" --> +<a name="top"></a> + +<!-- END slashHead-fckeditor.tpl --> </pre></div> http://www.badgers-in-foil.co.uk/projects/cvsspam/ - CVSspam - 0.2.10 |
From: Joe S. <joe...@us...> - 2004-12-01 20:58:23
|
Commit in phpslash-skins/include/templates/en/bluerobot on MAIN slashHead-tinymce.tpl +92 added 1.1 <pre class="comment"> first commit </pre> <hr /><a name="file1" /><div class="file"> <span class="pathname" id="added">phpslash-skins/include/templates/en/bluerobot<br /></span> <div class="fileheader" id="added"><big><b>slashHead-tinymce.tpl</b></big> <small id="info">added at 1.1</small></div> <pre class="diff"><small id="info">diff -N slashHead-tinymce.tpl --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ slashHead-tinymce.tpl 1 Dec 2004 20:58:15 -0000 1.1 @@ -0,0 +1,92 @@ </small></pre><pre class="diff" id="added">+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> + +<!-- START slashHead-tinymce.tpl --> + +<html> +<head> +<title>{SITE_NAME} - {SECTION} {SITETITLE}</title> + +<!-- Based on the Layout Reservoir at BlueRobot.com --> +<!-- (http://www.bluerobot.com/web/layouts/) --> + +<!-- Enter Your Desired META Tags Below Here --> +<!-- This Meta Tag is Defined In Each Page By Setting The Variable + $xsiteobject = "HomePage"; to the page type HomePage, Glossary, + Info, etc.. --> +<meta name="object" content="{XSITEOBJECT}" /> +<!-- Enter Your META Tags Above Here --> +<!-- BEGIN each_metatag --> +<meta name="{METANAME}" content="{METADESCRIPTION}" /> +<!-- END each_metatag --> +<link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> +<link rel="alternate" type="application/atom+xml" title="RSS" href="{ROOTDIR}/backend.php?view=atom" /> + +<link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{CSS}.css" /> +<link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/basic_print.css" media="print"/> + +<!-- BEGIN tinyMCE Javascript --> +<script language="javascript" type="text/javascript" src="{ROOTDIR}/scripts/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script> +<script language="javascript" type="text/javascript"> + +tinyMCE.init({ + mode : "textareas", + theme : "advanced", + plugins : "advimage,advlink,emotions,iespell,insertdatetime,preview,zoom", + theme_advanced_buttons1_add : "fontselect,fontsizeselect,forecolor", + theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom", + theme_advanced_buttons3_add : "emotions,iespell", + plugin_insertdate_dateFormat : "%Y-%m-%d", + plugin_insertdate_timeFormat : "%H:%M:%S", + extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout],font[face|size|color]" + }); + +// this function will get called at body.onload + function initEditor() { + +//--------------------------------------------------------------------- + }; + + +function PSL_chooseEditor(onLoad) { + + // if IE 5.5 or W3C/Moz 1.3+ - Can't combine the two due to problems with reload() & IE + + // IE 5.5 - Eliminating reload() because it pulled down new form data + if(document.all && document.designMode) { + // tinyMCE + if (document.editNew.content_type[0].checked) { + initEditor(); + } else { + // how to remove in IE? + + } + + // W3C/Moz 1.3+ - reload() without adjusting form data + } else if(document.designMode) { + // tinyMCE + if (document.editNew.content_type[0].checked) { + initEditor(); + } else { + if(onLoad == 1) { + onLoad = 2; + window.location.reload(); + } + } + } +} + +</script> + +<!-- END tinyMCE Javascript --> +</head> +<body onload="PSL_chooseEditor()"> + +<div id="Header"> +<!-- START: Title --> + <a href="{ROOTDIR}" title="phpSlash Home">phpSlash</a> +<!-- END: Title --> +{NAVBAR} +</div> <!-- id="Header" --> +<a name="top"></a> + +<!-- END slashHead-tinymce.tpl --> </pre></div> http://www.badgers-in-foil.co.uk/projects/cvsspam/ - CVSspam - 0.2.10 |
From: Joe S. <joe...@us...> - 2004-12-01 20:58:36
|
Commit in phpslash-skins/include/templates/en/bluerobot on MAIN slashHead-htmlarea3.tpl +246 added 1.1 <pre class="comment"> first commit </pre> <hr /><a name="file1" /><div class="file"> <span class="pathname" id="added">phpslash-skins/include/templates/en/bluerobot<br /></span> <div class="fileheader" id="added"><big><b>slashHead-htmlarea3.tpl</b></big> <small id="info">added at 1.1</small></div> <pre class="diff"><small id="info">diff -N slashHead-htmlarea3.tpl --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ slashHead-htmlarea3.tpl 1 Dec 2004 20:58:30 -0000 1.1 @@ -0,0 +1,246 @@ </small></pre><pre class="diff" id="added">+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> + +<!-- START slashHead-htmlarea3.tpl --> + +<html> +<head> +<title>{SITE_NAME} - {SECTION} {SITETITLE}</title> + +<!-- Based on the Layout Reservoir at BlueRobot.com --> +<!-- (http://www.bluerobot.com/web/layouts/) --> + +<!-- Enter Your Desired META Tags Below Here --> +<!-- This Meta Tag is Defined In Each Page By Setting The Variable + $xsiteobject = "HomePage"; to the page type HomePage, Glossary, + Info, etc.. --> +<meta name="object" content="{XSITEOBJECT}" /> +<!-- Enter Your META Tags Above Here --> +<!-- BEGIN each_metatag --> +<meta name="{METANAME}" content="{METADESCRIPTION}" /> +<!-- END each_metatag --> +<link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> +<link rel="alternate" type="application/atom+xml" title="RSS" href="{ROOTDIR}/backend.php?view=atom" /> + +<link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{CSS}.css" /> +<link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/basic_print.css" media="print"/> +<!-- BEGIN HTMLAREA3 Javascript --> + + + <script type="text/javascript"> + // the _editor_url is REQUIRED! don't forget to set it. + _editor_url="{ROOTDIR}/scripts/htmlarea3/"; + // implicit language will be "en", but let's set it for brevity + _editor_lang = "en"; + </script> + <script type="text/javascript" src="{ROOTDIR}/scripts/htmlarea3/htmlarea.js"></script> + +<!-- load the plugins --> +<script type="text/javascript"> + // WARNING: using this interface to load plugin + // will _NOT_ work if plugins do not have the language + // loaded by HTMLArea. + + // In other words, this function generates SCRIPT tags + // that load the plugin and the language file, based on the + // global variable HTMLArea.I18N.lang (defined in the lang file, + // in our case "lang/en.js" loaded above). + + // If this lang file is not found the plugin will fail to + // load correctly and nothing will work. + + HTMLArea.loadPlugin("TableOperations"); + // HTMLArea.loadPlugin("SpellChecker"); + // HTMLArea.loadPlugin("FullPage"); + // HTMLArea.loadPlugin("CSS"); + HTMLArea.loadPlugin("ContextMenu"); + // HTMLArea.loadPlugin("HtmlTidy"); + // HTMLArea.loadPlugin("ListType"); + HTMLArea.loadPlugin("ImageManager"); + +</script> + +<script type="text/javascript"> +// this function will get called at body.onload + function initEditor() { + // cache these values as we need to pass it for both editors + var css_plugin_args = { + combos : [ + { label: "Syntax", + // menu text // CSS class + options: { "None" : "", + "Code" : "code", + "String" : "string", + "Comment" : "comment", + "Variable name" : "variable-name", + "Type" : "type", + "Reference" : "reference", + "Preprocessor" : "preprocessor", + "Keyword" : "keyword", + "Function name" : "function-name", + "Html tag" : "html-tag", + "Html italic" : "html-helper-italic", + "Warning" : "warning", + "Html bold" : "html-helper-bold" + }, + context: "pre" + }, + { label: "Info", + options: { "None" : "", + "Quote" : "quote", + "Highlight" : "highlight", + "Deprecated" : "deprecated" + } + } + ] + }; + + + + + + + +//--------------------------------------------------------------------- + // GENERAL PATTERN + // + // 1. Instantitate an editor object. + // 2. Register plugins (note, it's required to have them loaded). + // 3. Configure any other items in editor.config. + // 4. generate() the editor + // + // The above are steps that you use to create one editor. Nothing new + // so far. In order to create more than one editor, you just have to + // repeat those steps for each of one. Of course, you can register any + // plugins you want (no need to register the same plugins for all + // editors, and to demonstrate that we'll skip the TableOperations + // plugin for the second editor). Just be careful to pass different + // ID-s in the constructor (you don't want to _even try_ to create more + // editors for the same TEXTAREA element ;-)). + // + // So much for the noise, see the action below. + +//--------------------------------------------------------------------- + + + +//--------------------------------------------------------------------- + // CREATE FIRST EDITOR + // + var editor1 = new HTMLArea("intro_text"); + + // plugins must be registered _per editor_. Therefore, we register + // plugins for the first editor here, and we will also do this for the + // second editor. + editor1.registerPlugin(TableOperations); + // editor1.registerPlugin(SpellChecker); + // editor1.registerPlugin(CSS, css_plugin_args); + // editor1.registerPlugin(HtmlTidy); + // editor1.registerPlugin(ListType); + editor1.registerPlugin(ContextMenu); + editor1.registerPlugin(ImageManager); + + // custom config must be done per editor. Here we're importing the + // stylesheet used by the CSS plugin. + // editor1.config.pageStyle = "@import url(custom.css);"; + + // generate first editor + editor1.config.hideSomeButtons(" fontname fontsize formatblock "); + editor1.generate(); + +//--------------------------------------------------------------------- + + + +//--------------------------------------------------------------------- + // CREATE SECOND EDITOR + // + var editor2 = new HTMLArea("body_text"); + + // we are using the same plugins + editor2.registerPlugin(TableOperations); + // editor2.registerPlugin(SpellChecker); + // editor2.registerPlugin(CSS, css_plugin_args); + // editor2.registerPlugin(HtmlTidy); + // editor2.registerPlugin(ListType); + editor2.registerPlugin(ContextMenu); + editor2.registerPlugin(ImageManager); + + // import the CSS plugin styles + // editor2.config.pageStyle = "@import url(custom.css);"; + + // generate the second editor + // IMPORTANT: if we don't give it a timeout, the first editor will + // not function in Mozilla. Soon I'll think about starting to + // implement some kind of event that will fire when the editor + // finished creating, then we'll be able to chain the generate() + // calls in an elegant way. But right now there's no other solution + // than the following. + setTimeout(function() { + editor2.config.hideSomeButtons(" fontname fontsize formatblock "); + editor2.generate(); + }, 500); + +//--------------------------------------------------------------------- + }; + + +function insertHTML() { + var html = prompt("Enter some HTML code here"); + if (html) { + editor.insertHTML(html); + } +} +function highlight() { + editor.surroundHTML('<span style="background-color: yellow">', '</span>'); +} +</script> + +<script type="text/javascript"> + +function PSL_chooseEditor(onLoad) { + + // if IE 5.5 or W3C/Moz 1.3+ - Can't combine the two due to problems with reload() & IE + // if((document.all && document.designMode) || (document.designMode)) { + + // IE 5.5 - Eliminating reload() because it pulled down new form data + if(document.all && document.designMode) { + // HTML or htmlArea + if (document.editNew.content_type[0].checked) { + // HTMLArea.replace('en'); + // HTMLArea.replaceAll(); + initEditor(); + } else { + // how to remove in IE? + } + + // W3C/Moz 1.3+ - reload() without adjusting form data + } else if(document.designMode) { + // HTML or htmlArea + if (document.editNew.content_type[0].checked) { + // HTMLArea.replace('en'); + // HTMLArea.replaceAll(); + initEditor(); + } else { + if(onLoad == 1) { + onLoad = 2; + window.location.reload(); + } + } + } +} + +</script> + +<!-- END HTMLAREA3 Javascript --> +</head> +<body onload="PSL_chooseEditor()"> + +<div id="Header"> +<!-- START: Title --> + <a href="{ROOTDIR}" title="phpSlash Home">phpSlash</a> +<!-- END: Title --> +{NAVBAR} +</div> <!-- id="Header" --> +<a name="top"></a> + +<!-- END slashHead-htmlarea3.tpl --> </pre></div> http://www.badgers-in-foil.co.uk/projects/cvsspam/ - CVSspam - 0.2.10 |