diff --git a/html/mod_breadcrumbs/default.php b/html/mod_breadcrumbs/default.php new file mode 100644 index 0000000000000000000000000000000000000000..adf79b05c38b477a97a21483b1fb7babf0bd1a69 --- /dev/null +++ b/html/mod_breadcrumbs/default.php @@ -0,0 +1,15 @@ +<?php // no direct access +defined('_JEXEC') or die('Restricted access'); ?> + +<ul> + <li><a href="http://www.unl.edu">UNL</a></li> + <li><a href="<?php echo $this->baseurl; ?>"><?php echo JFactory::getConfig()->getValue('config.sitename'); ?></a></li> +<?php +$names = array(); +foreach ($list as $item) { + $names[] = $item->name; +} +array_shift($names); +?> + <li><?php echo implode(' | ', $names); ?></li> +</ul> diff --git a/index.php b/index.php new file mode 100644 index 0000000000000000000000000000000000000000..964952db6e68a41ac413e2f5150836d4564415c7 --- /dev/null +++ b/index.php @@ -0,0 +1,45 @@ +<?php + +include "UNL/Templates.php"; + +UNL_Templates::$options['version'] = UNL_Templates::VERSION3; +$t = UNL_Templates::factory('Fixed'); + +$t->head .= <<<EOF +<jdoc:include type="head" /> +<link rel="stylesheet" href="{$this->baseurl}/templates/system/css/system.css" type="text/css" /> +<link rel="stylesheet" href="{$this->baseurl}/templates/system/css/general.css" type="text/css" /> +EOF; + +$t->doctitle = '<title>' . JFactory::getConfig()->getValue('config.sitename') . ' | ' . $this->title . '</title>'; + +$t->titlegraphic = '<h1>' . JFactory::getConfig()->getValue('config.sitename') . '</h1>'; +$t->pagetitle = '<h2>' . $this->title . '</h2>'; + +$t->breadcrumbs = <<<EOF +<jdoc:include type="modules" name="breadcrumb" /> +EOF; + +$t->navlinks = <<<EOF +<jdoc:include type="modules" name="navlinks" /> +EOF; + +$t->maincontentarea = <<<EOF +<jdoc:include type="modules" name="left" /> +<jdoc:include type="modules" name="top" /> +<jdoc:include type="component" /> +<jdoc:include type="modules" name="bottom" /> +<jdoc:include type="modules" name="right" /> +EOF; + +$t->contactinfo = <<<EOF +<h3>Contacting Us</h3> +<jdoc:include type="modules" name="contactinfo" /> +EOF; + +$t->leftcollinks = <<<EOF +<h3>Related Links</h3> +<jdoc:include type="modules" name="relatedlinks" /> +EOF; + +echo $t->toHtml(); diff --git a/templateDetails.xml b/templateDetails.xml new file mode 100644 index 0000000000000000000000000000000000000000..71aace50001320409f2c3b35efdaa9695b654728 --- /dev/null +++ b/templateDetails.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD template 1.0//EN" + "http://dev.joomla.org/xml/1.5/template-install.dtd"> +<install version="1.5" type="template"> + <name>UNL Template v3</name> + <creationDate>2008-10-01</creationDate> + <author>Tim Steiner</author> + <authorEmail>tsteiner2@unl.edu</authorEmail> + <authorUrl>http://www.example.com</authorUrl> + <copyright>Tim Steiner 2009</copyright> + <license>GNU/GPL</license> + <version>1.0.0</version> + <description>UNL Template v3</description> + <files> + <filename>index.php</filename> + <filename>templateDetails.xml</filename> + <folder>html</folder> + </files> + <positions> + <position>navlinks</position> + <position>breadcrumb</position> + <position>left</position> + <position>right</position> + <position>top</position> + <position>user1</position> + <position>user2</position> + <position>user3</position> + <position>user4</position> + <position>footer</position> + <position>relatedlinks</position> + <position>contactinfo</position> + </positions> +</install> \ No newline at end of file