Skip to content
Snippets Groups Projects
Commit 2f4bea28 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

Update unl plugin for 3.1 templates and update example

parent 68c4898a
Branches
Tags
No related merge requests found
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><!-- InstanceBegin template="/Templates/fixed.dwt" codeOutsideHTMLIsLocked="false" --> <!--[if IEMobile 7 ]><html class="ie iem7"><![endif]-->
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"><![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"><![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"><![endif]-->
<!--[if (gte IE 9)|(gt IEMobile 7) ]><html class="ie" lang="en"><![endif]-->
<!--[if !(IEMobile)|!(IE)]><!--><html lang="en"><!-- InstanceBegin template="/Templates/fixed.dwt" codeOutsideHTMLIsLocked="false" --><!--<![endif]-->
<head> <head>
<!--#include virtual="/wdn/templates_3.1/includes/metanfavico.html" -->
<!-- <!--
Membership and regular participation in the UNL Web Developer Network Membership and regular participation in the UNL Web Developer Network
is required to use the UNL templates. Visit the WDN site at is required to use the UNL templates. Visit the WDN site at
...@@ -13,17 +19,14 @@ ...@@ -13,17 +19,14 @@
create a derivative work. create a derivative work.
This message may not be removed from any pages based on the UNL site template. This message may not be removed from any pages based on the UNL site template.
$Id: fixed.dwt 536 2009-07-23 15:47:30Z bbieber2 $ $Id$
--> -->
<link rel="stylesheet" type="text/css" media="screen" href="/wdn/templates_3.0/css/all.css" /> <!--#include virtual="/wdn/templates_3.1/includes/scriptsandstyles.html" -->
<link rel="stylesheet" type="text/css" media="print" href="/wdn/templates_3.0/css/print.css" />
<script type="text/javascript" src="/wdn/templates_3.0/scripts/all.js"></script>
<!--#include virtual="/wdn/templates_3.0/includes/browserspecifics.html" -->
<!--#include virtual="/wdn/templates_3.0/includes/metanfavico.html" -->
<!-- InstanceBeginEditable name="doctitle" --> <!-- InstanceBeginEditable name="doctitle" -->
<title>UNL | Department | New Page</title> <title>Use a descriptive page title | Optional Site Title (use for context) | University of Nebraska&ndash;Lincoln</title>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="head" --> <!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- Place optional header elements here --> <!-- Place optional header elements here -->
<!-- tinymce stuff --> <!-- tinymce stuff -->
...@@ -73,36 +76,60 @@ WDN.loadJS("jquery.tinymce.js",function () { ...@@ -73,36 +76,60 @@ WDN.loadJS("jquery.tinymce.js",function () {
<!-- InstanceEndEditable --> <!-- InstanceEndEditable -->
<!-- TemplateParam name="class" type="text" value="fixed" -->
</head> </head>
<body class="fixed"> <body class="fixed">
<p class="skipnav"> <a class="skipnav" href="#maincontent">Skip Navigation</a> </p> <nav class="skipnav">
<a class="skipnav" href="#maincontent">Skip Navigation</a>
</nav>
<div id="wdn_wrapper"> <div id="wdn_wrapper">
<div id="header"> <a href="http://www.unl.edu/" title="UNL website"><img src="/wdn/templates_3.0/images/logo.png" alt="UNL graphic identifier" id="logo" /></a> <header id="header" role="banner">
<h1>University of Nebraska&ndash;Lincoln</h1> <a id="logo" href="http://www.unl.edu/" title="UNL website">UNL</a>
<!--#include virtual="/wdn/templates_3.0/includes/wdnTools.html" --> <span id="wdn_institution_title">University of Nebraska&ndash;Lincoln</span>
</div> <span id="wdn_site_title">
<!-- InstanceBeginEditable name="titlegraphic" -->
The Title of My Site
<!-- InstanceEndEditable -->
</span>
<!--#include virtual="/wdn/templates_3.1/includes/idm.html" -->
<!--#include virtual="/wdn/templates_3.1/includes/wdnTools.html" -->
</header>
<div id="wdn_navigation_bar"> <div id="wdn_navigation_bar">
<div id="breadcrumbs"> <nav id="breadcrumbs">
<!-- WDN: see glossary item 'breadcrumbs' --> <!-- WDN: see glossary item 'breadcrumbs' -->
<h3 class="wdn_list_descriptor hidden">Breadcrumbs</h3>
<!-- InstanceBeginEditable name="breadcrumbs" --> <!-- InstanceBeginEditable name="breadcrumbs" -->
<ul> <ul>
<li><a href="http://www.unl.edu/" title="University of Nebraska&ndash;Lincoln">UNL</a></li> <li><a href="http://www.unl.edu/" title="University of Nebraska&ndash;Lincoln">UNL</a></li>
<li>Department</li> <li class="selected"><a href="#" title="Site Title">Site Title</a></li>
<li>Page Title</li>
</ul> </ul>
<!-- InstanceEndEditable --></div>
<!-- InstanceEndEditable -->
</nav>
<div id="wdn_navigation_wrapper"> <div id="wdn_navigation_wrapper">
<div id="navigation"><!-- InstanceBeginEditable name="navlinks" --> <nav id="navigation" role="navigation">
<ul><li><a href="http://unl.edu/">Home</a></li></ul> <h3 class="wdn_list_descriptor hidden">Navigation</h3>
<!-- InstanceEndEditable --></div>
<!-- InstanceBeginEditable name="navlinks" -->
<ul><li><a href="http://www.unl.edu/" title="UNL homepage">UNL</a></li></ul>
<!-- InstanceEndEditable -->
</nav>
</div> </div>
</div> </div>
<div id="wdn_content_wrapper"> <div id="wdn_content_wrapper">
<div id="titlegraphic"><!-- InstanceBeginEditable name="titlegraphic" --> <div id="pagetitle">
<h1><a href="#">TinyMCE Example</a></h1>
<!-- InstanceEndEditable --></div> <!-- InstanceBeginEditable name="pagetitle" -->
<div id="pagetitle"><!-- InstanceBeginEditable name="pagetitle" --><h2><a href="#">My Page Title</a></h2><!-- InstanceEndEditable --></div> <h1>This is your page title. It's now an &lt;h1&gt;, baby!</h1>
<div id="maincontent">
<!-- InstanceEndEditable -->
</div>
<div id="maincontent" role="main">
<!--THIS IS THE MAIN CONTENT AREA; WDN: see glossary item 'main content area' --> <!--THIS IS THE MAIN CONTENT AREA; WDN: see glossary item 'main content area' -->
<!-- InstanceBeginEditable name="maincontentarea" --> <!-- InstanceBeginEditable name="maincontentarea" -->
...@@ -120,7 +147,7 @@ WDN.loadJS("jquery.tinymce.js",function () { ...@@ -120,7 +147,7 @@ WDN.loadJS("jquery.tinymce.js",function () {
<div> <div>
<textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%" class="tinymce"> <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%" class="tinymce">
&lt;h3&gt;Headline H3&lt;/h3&gt; &lt;h3&gt;Headline H3&lt;/h3&gt;
&lt;div class="three_col left"&gt; &lt;div class="grid9 first"&gt;
&lt;p&gt; &lt;p&gt;
This is some <a href="http://wdn.unl.edu/">example text</a> that you can edit inside the &lt;strong&gt;TinyMCE editor&lt;/strong&gt;. This is some <a href="http://wdn.unl.edu/">example text</a> that you can edit inside the &lt;strong&gt;TinyMCE editor&lt;/strong&gt;.
&lt;/p&gt; &lt;/p&gt;
...@@ -129,7 +156,7 @@ WDN.loadJS("jquery.tinymce.js",function () { ...@@ -129,7 +156,7 @@ WDN.loadJS("jquery.tinymce.js",function () {
&lt;/p&gt; &lt;/p&gt;
&lt;/div&gt; &lt;/div&gt;
&lt;div class="col right"&gt; &lt;div class="grid3"&gt;
&lt;div class="zenbox"&gt;&lt;h3&gt;zenbox title&lt;/h3&gt;this is text in a zenbox&lt;/div&gt; &lt;div class="zenbox"&gt;&lt;h3&gt;zenbox title&lt;/h3&gt;this is text in a zenbox&lt;/div&gt;
&lt;/div&gt; &lt;/div&gt;
</textarea> </textarea>
...@@ -156,32 +183,48 @@ WDN.loadJS("jquery.tinymce.js",function () { ...@@ -156,32 +183,48 @@ WDN.loadJS("jquery.tinymce.js",function () {
<!-- InstanceEndEditable --> <!-- InstanceEndEditable -->
<div class="clear"></div> <div class="clear"></div>
<!--#include virtual="/wdn/templates_3.0/includes/noscript.html" --> <!--#include virtual="/wdn/templates_3.1/includes/noscript.html" -->
<!--THIS IS THE END OF THE MAIN CONTENT AREA.--> <!--THIS IS THE END OF THE MAIN CONTENT AREA.-->
</div> </div>
<div id="footer"> </div>
<footer id="footer">
<div id="footer_floater"></div> <div id="footer_floater"></div>
<div class="footer_col"> <div class="footer_col" id="wdn_footer_feedback">
<!--#include virtual="/wdn/templates_3.0/includes/feedback.html" --> <!--#include virtual="/wdn/templates_3.1/includes/feedback.html" -->
</div> </div>
<div class="footer_col"><!-- InstanceBeginEditable name="leftcollinks" --> <div class="footer_col" id="wdn_footer_related">
<!-- InstanceBeginEditable name="leftcollinks" -->
<h3>Related Links</h3> <h3>Related Links</h3>
<!-- InstanceEndEditable --></div>
<div class="footer_col"><!-- InstanceBeginEditable name="contactinfo" --> <!-- InstanceEndEditable -->
<h3>Contacting Us</h3> </div>
<!-- InstanceEndEditable --></div> <div class="footer_col" id="wdn_footer_contact">
<div class="footer_col">
<!--#include virtual="/wdn/templates_3.0/includes/socialmediashare.html" --> <!-- InstanceBeginEditable name="contactinfo" -->
<h3>Contact Us</h3>
<!-- InstanceEndEditable -->
</div> </div>
<!-- InstanceBeginEditable name="optionalfooter" --> <!-- InstanceEndEditable --> <div class="footer_col" id="wdn_footer_share">
<div id="wdn_copyright"><!-- InstanceBeginEditable name="footercontent" --> <!--#include virtual="/wdn/templates_3.1/includes/socialmediashare.html" -->
Copyright 2010 </div>
<!-- InstanceBeginEditable name="optionalfooter" -->
<!-- InstanceEndEditable -->
<div id="wdn_copyright">
<div>
<!-- InstanceBeginEditable name="footercontent" -->
&copy; 2012
<!-- InstanceEndEditable --> <!-- InstanceEndEditable -->
<!--#include virtual="/wdn/templates_3.0/includes/wdn.html" --> <!--#include virtual="/wdn/templates_3.1/includes/wdn.html" -->
| <a href="http://validator.unl.edu/check/referer">W3C</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer?profile=css3">CSS</a> <a href="http://www.unl.edu/" title="UNL Home" id="wdn_unl_wordmark"><img src="/wdn/templates_3.0/css/footer/images/wordmark.png" alt="UNL's wordmark" /></a> </div>
</div> </div>
<!--#include virtual="/wdn/templates_3.1/includes/logos.html" -->
</div> </div>
<div id="wdn_wrapper_footer"> </div> </footer>
</div> </div>
</body> </body>
<!-- InstanceEnd --></html> </html>
...@@ -43,9 +43,11 @@ Unl.hasParentNodeWithClass = function(childNode, parentClass) { ...@@ -43,9 +43,11 @@ Unl.hasParentNodeWithClass = function(childNode, parentClass) {
//'div[style]/[*]'; //'div[style]/[*]';
ed.onBeforeSetContent.add(function(ed, o) { ed.onBeforeSetContent.add(function(ed, o) {
ed.dom.loadCSS("/wdn/templates_3.0/css/all.css"); ed.dom.loadCSS("/wdn/templates_3.1/css/compressed/base.css");
ed.dom.loadCSS("/wdn/templates_3.1/css/compressed/combined_widths.css");
ed.getBody().className += ' fixed'; ed.getBody().className += ' fixed';
ed.getBody().id = 'maincontent'; ed.getBody().id = 'maincontent';
ed.getBody().style.background = '#ffffff';
}); });
/*ed.onPostProcess.add(function(ed, o) { /*ed.onPostProcess.add(function(ed, o) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment