Update of /cvsroot/phpslash/phpslash-skins/include/templates/en/embedded
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31709/phpslash-skins/include/templates/en/embedded
Added Files:
skin.ini slashFoot.tpl slashHead-htmlarea3.tpl slashHead.tpl
Log Message:
Added embedded ShankZend skin - no html or body tags.
--- NEW FILE: skin.ini ---
;; Name of parent skin
;; $Id: skin.ini,v 1.1 2004/09/21 11:28:14 joestewart Exp $
skin.parent = "ShankZen"
--- NEW FILE: slashFoot.tpl ---
<!-- START slashfoot.tpl -->
<table id="footer" border=0 width=80%>
<tr><td>
{NAVBAR}
<p class="psl-copyright">This site is powered by <a href="http://www.php-slash.org/">phpslash</a> -
Copyright © 1998 - 2003 and licensed under the
<a href="http://www.gnu.org/copyleft/gpl.html">GPL</a> -
No warranty is, has, or will be given in any way whatsoever to anyone.</p>
<p style="text-align:right"><a href="#top">Go 2 Top</a></p>
</td></tr>
</table> <!-- end: footer -->
<!-- END slashFoot.tpl -->
--- NEW FILE: slashHead-htmlarea3.tpl ---
<!-- START slashHead.tpl -->
<!-- theme design: Peter Cruickshank < in...@cu... > -->
<!-- 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.. -->
<!-- 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="stylesheet" type="text/css" href="{ROOTDIR}/styles/ShankZen.css" />
<!-- <style type="text/css" media="screen">@import "{ROOTDIR}/styles/ShankZen_ext.css";</style> -->
<!-- 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 -->
<a name="top"> </a>
<table id="header" width=80%>
<tr><td>
<div style="vertical-align:bottom">
<div class="psl-logo">
<a href="{ROOTDIR}"><img src="{IMAGEDIR}/topics/topicphpslash.gif" alt="{SITE_NAME}" border="0" width="100" height="40"/></a>
</div>
<div class="psl-title">
{SITETITLE}
</div>
</div>
<!-- Search box
<div class="psl-search">
<form method="get" action="{SEARCH_ACTION_URL}">
<input type="text" name="query" value="" size="15" class="psl-text" />
<input type="submit" value="Search" class="psl-button" />
<input type="hidden" name="topic_id" value="" />
<input type="hidden" name="section_id" value="" />
<input type="hidden" name="author_id" value="" />
</form>
</div> end: search -->
<!-- TOPICBAR -->
</td></tr>
<tr><td>
{NAVBAR}
</td></tr>
</table> <!-- end: header -->
<!-- END slashHead.tpl -->
--- NEW FILE: slashHead.tpl ---
<!-- START slashHead.tpl -->
<!-- theme design: Peter Cruickshank < in...@cu... > -->
<!-- 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.. -->
<!-- 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="stylesheet" type="text/css" href="{ROOTDIR}/styles/ShankZen.css" />
<style type="text/css" media="screen">@import "{ROOTDIR}/styles/ShankZen_ext.css";</style>
<a name="top"> </a>
<table id="header" width=80%>
<tr><td>
<div style="vertical-align:bottom">
<div class="psl-logo">
<a href="{ROOTDIR}"><img src="{IMAGEDIR}/topics/topicphpslash.gif" alt="{SITE_NAME}" border="0" width="100" height="40"/></a>
</div>
<div class="psl-title">
{SITETITLE}
</div>
</div>
<!-- Search box
<div class="psl-search">
<form method="get" action="{SEARCH_ACTION_URL}">
<input type="text" name="query" value="" size="15" class="psl-text" />
<input type="submit" value="Search" class="psl-button" />
<input type="hidden" name="topic_id" value="" />
<input type="hidden" name="section_id" value="" />
<input type="hidden" name="author_id" value="" />
</form>
</div> end: search -->
<!-- TOPICBAR -->
</td></tr>
<tr><td>
{NAVBAR}
</td></tr>
</table> <!-- end: header -->
<!-- END slashHead.tpl -->
|