diff --git a/lib/php/UNL/DWT.php b/lib/php/UNL/DWT.php deleted file mode 100644 index 696e79ad1244dde3c1bfcf2845b88575a22195c4..0000000000000000000000000000000000000000 --- a/lib/php/UNL/DWT.php +++ /dev/null @@ -1,323 +0,0 @@ -<?php -/** - * This package is intended to create PHP Class files (Objects) from - * Dreamweaver template (.dwt) files. It allows designers to create a - * standalone Dreamweaver template for the website design, and developers - * to use that design in php pages without interference. - * - * Similar to the way DB_DataObject works, the DWT package uses a - * Generator to scan a .dwt file for editable regions and creates an - * appropriately named class for that .dwt file with member variables for - * each region. - * - * Once the objects have been generated, you can render a html page from - * the template. - * - * $page = new UNL_DWT::factory('Template_style1'); - * $page->pagetitle = "Contact Information"; - * $page->maincontent = "Contact us by telephone at 111-222-3333."; - * echo $page->toHtml(); - * - * Parts of this package are modeled on (borrowed from) the PEAR package - * DB_DataObject. - * - * PHP version 5 - * - * @category Templates - * @package UNL_DWT - * @author Brett Bieber <brett.bieber@gmail.com> - * @created 01/18/2006 - * @copyright 2008 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/package/UNL_DWT - */ - -/** - * Base class which understands Dreamweaver Templates. - * - * @category Templates - * @package UNL_DWT - * @author Brett Bieber <brett.bieber@gmail.com> - * @created 01/18/2006 - * @copyright 2008 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/package/UNL_DWT - */ -class UNL_DWT -{ - const TEMPLATE_TOKEN = 'Template'; - const INSTANCE_TOKEN = 'Instance'; - - const REGION_BEGIN_TOKEN = '<!-- %sBeginEditable name="%s" -->'; - const REGION_END_TOKEN = '<!-- %sEndEditable -->'; - - const PARAM_DEF_TOKEN = '<!-- %sParam name="%s" type="%s" value="%s" -->'; - const PARAM_REPLACE_TOKEN = '@@(%s)@@'; - const PARAM_REPLACE_TOKEN_ALT = '@@(_document[\'%s\'])@@'; - - public $__template; - - /** - * Run-time configuration options - * - * @var array - * @see UNL_DWT::setOption() - */ - static public $options = array( - 'debug' => 0, - ); - - /** - * Returns a string that contains the template file. - * - * @return string - */ - public function getTemplateFile() - { - if (!isset($this->__template) || empty(self::$options['tpl_location'])) { - return ''; - } - - return file_get_contents(self::$options['tpl_location'].$this->__template); - } - - /** - * Returns the given DWT with all regions replaced with their assigned - * content. - * - * @return string - */ - public function toHtml() - { - $p = $this->getTemplateFile(); - $regions = get_object_vars($this); - - unset($regions['__template']); - - $params = array(); - if (isset($regions['__params'])) { - $params = $regions['__params']; - unset($regions['__params']); - } - - $p = $this->replaceRegions($p, $regions); - $p = $this->replaceParams($p, $params); - - return $p; - } - - public function getRegionBeginMarker($type, $region) - { - return sprintf(self::REGION_BEGIN_TOKEN, $type, $region); - } - - public function getRegionEndMarker($type) - { - return sprintf(self::REGION_END_TOKEN, $type); - } - - public function getParamDefMarker($type, $name, $paramType, $value) - { - return sprintf(self::PARAM_DEF_TOKEN, $type, $name, $paramType, $value); - } - - public function getParamReplacePattern($name) - { - return '/' . sprintf(self::PARAM_DEF_TOKEN, '(' . self::TEMPLATE_TOKEN . '|' . self::INSTANCE_TOKEN . ')', - $name, '([^"]*)', '[^"]*') . '/'; - } - - public function getParamNeedle($name) - { - return array( - sprintf(self::PARAM_REPLACE_TOKEN, $name), - sprintf(self::PARAM_REPLACE_TOKEN_ALT, $name) - ); - } - - /** - * Replaces region tags within a template file wth their contents. - * - * @param string $p Page with DW Region tags. - * @param array $regions Associative array with content to replace. - * - * @return string page with replaced regions - */ - function replaceRegions($p, $regions) - { - self::debug('Replacing regions.', 'replaceRegions', 5); - - foreach ($regions as $region => $value) { - /* Replace the region with the replacement text */ - $startMarker = $this->getRegionBeginMarker(self::TEMPLATE_TOKEN, $region); - $endMarker = $this->getRegionEndMarker(self::TEMPLATE_TOKEN); - $p = str_replace( - self::strBetween($startMarker, $endMarker, $p, true), - $startMarker . $value . $endMarker, - $p, - $count - ); - - if (!$count) { - $startMarker = $this->getRegionBeginMarker(self::INSTANCE_TOKEN, $region); - $endMarker = $this->getRegionEndMarker(self::INSTANCE_TOKEN); - $p = str_replace( - self::strBetween($startMarker, $endMarker, $p, true), - $startMarker . $value . $endMarker, - $p, - $count - ); - } - - if (!$count) { - self::debug("Counld not find region $region!", 'replaceRegions', 3); - } else { - self::debug("$region is replaced with $value.", 'replaceRegions', 5); - } - } - return $p; - } - - function replaceParams($p, $params) - { - self::debug('Replacing params.', 'replaceRegions', 5); - - foreach ($params as $name => $config) { - $value = isset($config['value']) ? $config['value'] : ''; - $p = preg_replace($this->getParamReplacePattern($name), $this->getParamDefMarker('$1', $name, '$2', $value), - $p, 1, $count); - - if ($count) { - $p = str_replace($this->getParamNeedle($name), $value, $p); - } - } - - return $p; - } - - /** - * Create a new UNL_DWT object for the specified layout type - * - * @param string $type the template type (eg "fixed") - * @param array $coptions an associative array of option names and values - * - * @return object a new UNL_DWT. A UNL_DWT_Error object on failure. - * - * @see UNL_DWT::setOption() - */ - static function &factory($type) - { - include_once self::$options['class_location']."{$type}.php"; - - $classname = self::$options['class_prefix'].$type; - - if (!class_exists($classname)) { - require_once 'UNL/DWT/Exception.php'; - throw new UNL_DWT_Exception('Unable to include the ' . self::$options['class_location'] . $type . '.php file.'); - } - - @$obj = new $classname; - - return $obj; - } - - /** - * Sets options. - * - * @param string $option Option to set - * @param mixed $value Value to set for this option - * - * @return void - */ - static function setOption($option, $value) - { - self::$options[$option] = $value; - } - - /* ----------------------- Debugger ------------------ */ - - /** - * Debugger. - use this in your extended classes to output debugging - * information. - * - * Uses UNL_DWT::debugLevel(x) to turn it on - * - * @param string $message message to output - * @param string $logtype bold at start - * @param string $level output level - * - * @return none - */ - static function debug($message, $logtype = 0, $level = 1) - { - if (empty(self::$options['debug']) || - (is_numeric(self::$options['debug']) && self::$options['debug'] < $level)) { - return; - } - // this is a bit flaky due to php's wonderfull class passing around crap.. - // but it's about as good as it gets.. - $class = (isset($this) && ($this instanceof UNL_DWT)) ? get_class($this) : 'UNL_DWT'; - - if (!is_string($message)) { - $message = print_r($message, true); - } - if (!is_numeric(self::$options['debug']) && is_callable(self::$options['debug'])) { - return call_user_func(self::$options['debug'], $class, $message, $logtype, $level); - } - - if (!ini_get('html_errors')) { - echo "$class : $logtype : $message\n"; - flush(); - return; - } - if (!is_string($message)) { - $message = print_r($message, true); - } - $colorize = ($logtype == 'ERROR') ? '<font color="red">' : '<font>'; - echo "<code>{$colorize}<strong>$class: $logtype:</strong> ". nl2br(htmlspecialchars($message)) . "</font></code><br />\n"; - flush(); - } - - /** - * sets and returns debug level - * eg. UNL_DWT::debugLevel(4); - * - * @param int $v level - * - * @return void - */ - static function debugLevel($v = null) - { - if ($v !== null) { - $r = isset(self::$options['debug']) ? self::$options['debug'] : 0; - self::$options['debug'] = $v; - return $r; - } - return isset(self::$options['debug']) ? self::$options['debug'] : 0; - } - - /** - * Returns content between two strings - * - * @param string $start String which bounds the start - * @param string $end end collecting content when you see this - * @param string $p larger body of content to search - * - * @return string - */ - static function strBetween($start, $end, $p, $inclusive = false) - { - if (!empty($start) && strpos($p, $start) !== false) { - $p = substr($p, strpos($p, $start)+($inclusive ? 0 : strlen($start))); - } else { - return ''; - } - - if (strpos($p, $end) !==false) { - $p = substr($p, 0, strpos($p, $end)+($inclusive ? strlen($end) : 0)); - } else { - return ''; - } - return $p; - } -} diff --git a/lib/php/UNL/DWT/Exception.php b/lib/php/UNL/DWT/Exception.php deleted file mode 100644 index 8d20483598c40134eee71383ab6eff6375e70e2b..0000000000000000000000000000000000000000 --- a/lib/php/UNL/DWT/Exception.php +++ /dev/null @@ -1,15 +0,0 @@ -<?php -/** - * Exception used by the UNL_DWT class. - * - * @category Templates - * @package UNL_DWT - * @author Brett Bieber <brett.bieber@gmail.com> - * @copyright 2008 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/package/UNL_DWT - */ -class UNL_DWT_Exception extends Exception -{ - -} diff --git a/lib/php/UNL/DWT/Generator.php b/lib/php/UNL/DWT/Generator.php deleted file mode 100644 index 81f4f5bd8f732e84d5ff3c85d6bd26da12749f9a..0000000000000000000000000000000000000000 --- a/lib/php/UNL/DWT/Generator.php +++ /dev/null @@ -1,500 +0,0 @@ -<?php -/** - * The Generator is used to generate UNL_DWT classes and cached .tpl files from - * Dreamweaver Template files. - * - * PHP version 5 - * - * @category Templates - * @package UNL_DWT - * @author Brett Bieber <brett.bieber@gmail.com> - * @created 01/18/2006 - * @copyright 2008 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/package/UNL_DWT - */ - -require_once 'UNL/DWT.php'; -require_once 'UNL/DWT/Exception.php'; -require_once 'UNL/DWT/Region.php'; - -/** - * The generator parses actual .dwt Dreamweaver Template files to create object relationship - * files which have member variables for editable regions within the dreamweaver templates. - * - * @category Templates - * @package UNL_DWT - * @author Brett Bieber <brett.bieber@gmail.com> - * @created 01/18/2006 - * @copyright 2008 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/package/UNL_DWT - */ -class UNL_DWT_Generator extends UNL_DWT -{ - - /** - * Array of template names. - */ - var $templates; - - /** - * Current template being output - */ - var $template; - - /** - * Assoc array of template region names. - * $_regions[$template] = array(); - */ - var $_regions; - - /** - * Assoc array of template params - * $_params[$template] = array(); - */ - var $_params; - - /** - * class being extended (can be overridden by - * [UNL_DWT_Generator] extends=xxxx - * - * @var string - * @access private - */ - var $_extends = 'UNL_DWT'; - - /** - * line to use for require_once 'UNL/DWT.php'; - * - * @var string - * @access private - */ - var $_extendsFile = 'UNL/DWT.php'; - - /** - * begins generation of template files - * - * @return void - */ - function start() - { - $this->debugLevel(3); - $this->createTemplateList(); - $this->generateTemplates(); - $this->generateClasses(); - } - - /** - * Generates .tpl files from .dwt - * - * @return void - */ - function generateTemplates() - { - $dwt_location = UNL_DWT::$options['dwt_location']; - if (!file_exists(UNL_DWT::$options['dwt_location'])) { - include_once 'System.php'; - System::mkdir(array('-p', UNL_DWT::$options['dwt_location'])); - } - if (!file_exists(UNL_DWT::$options['tpl_location'])) { - include_once 'System.php'; - System::mkdir(array('-p', UNL_DWT::$options['tpl_location'])); - } - foreach ($this->templates as $this->template) { - $dwt = file_get_contents($dwt_location.$this->template); - $dwt = $this->scanRegions($dwt); - - $sanitizedName = $this->sanitizeTemplateName($this->template); - //Write out the .tpl file? - if (strpos(UNL_DWT::$options['tpl_location'], '%s') !== false) { - $outfilename = sprintf(UNL_DWT::$options['tpl_location'], $sanitizedName); - } else { - $outfilename = UNL_DWT::$options['tpl_location']."/{$sanitizedName}.tpl"; - } - $this->debug("Writing {$sanitizedName} to {$outfilename}", - 'generateTemplates'); - $fh = fopen($outfilename, "w"); - fputs($fh, $dwt); - fclose($fh); - } - } - - /** - * Create a list of dwts - * - * @return void - */ - function createTemplateList() - { - $this->templates = array(); - - $dwt_location = UNL_DWT::$options['dwt_location']; - if (is_dir($dwt_location)) { - $handle = opendir($dwt_location); - while (false !== ($file = readdir($handle))) { - if (isset(UNL_DWT::$options['generator_include_regex']) && - !preg_match(UNL_DWT::$options['generator_include_regex'], $file)) { - continue; - } else if (isset(UNL_DWT::$options['generator_exclude_regex']) && - preg_match(UNL_DWT::$options['generator_exclude_regex'], $file)) { - continue; - } - if (substr($file, strlen($file)-4) == '.dwt') { - $this->debug("Adding {$file} to the list of templates.", - 'createTemplateList'); - $this->templates[] = $file; - } - } - } else { - throw new UNL_DWT_Exception("dwt_location is incorrect\n"); - } - } - - /** - * Generate the classes for templates in $this->templates - * - * @return void - */ - function generateClasses() - { - if ($extends = @UNL_DWT::$options['extends']) { - $this->_extends = $extends; - $this->_extendsFile = UNL_DWT::$options['extends_location']; - } - - foreach ($this->templates as $this->template) { - $this->classname = $this->generateClassName($this->template); - if (strpos(UNL_DWT::$options['class_location'], '%s') !== false) { - $outfilename = sprintf(UNL_DWT::$options['class_location'], - sanitizeTemplateName($this->template)); - } else { - $outfilename = UNL_DWT::$options['class_location']."/".$this->sanitizeTemplateName($this->template).".php"; - } - $oldcontents = ''; - if (file_exists($outfilename)) { - // file_get_contents??? - $oldcontents = implode('', file($outfilename)); - } - $out = $this->_generateClassTemplate($oldcontents); - $this->debug("Writing {$this->classname} to {$outfilename}", - 'generateClasses'); - $fh = fopen($outfilename, "w"); - fputs($fh, $out); - fclose($fh); - } - } - - /** - * Generates the class name from a filename. - * - * @param string $filename The filename of the template. - * - * @return string Sanitized filename prefixed with the class_prefix - * defined in the ini. - */ - function generateClassName($filename) - { - if (!($class_prefix = @UNL_DWT::$options['class_prefix'])) { - $class_prefix = ''; - } - return $class_prefix.$this->sanitizeTemplateName($filename);; - } - - /** - * Cleans the template filename. - * - * @param string $filename Filename of the template - * - * @return string Sanitized template name - */ - function sanitizeTemplateName($filename) - { - return preg_replace('/[^A-Z0-9]/i', '_', - ucfirst(str_replace('.dwt', '', $filename))); - } - - /** - * Scans the .dwt for regions - all found are loaded into assoc array - * $this->_regions[$template]. - * - * @param string $dwt Dreamweaver template file to scan. - * - * @return string derived template file. - */ - function scanRegions($dwt) - { - - $this->_regions[$this->template] = array(); - $this->_params[$this->template] = array(); - - $dwt = str_replace("\r", "\n", $dwt); - $dwt = preg_replace("/(\<\!-- InstanceBeginEditable name=\"([A-Za-z0-9]*)\" -->)/i", "\n\\0\n", $dwt); - $dwt = preg_replace("/(\<\!-- TemplateBeginEditable name=\"([A-Za-z0-9]*)\" -->)/i", "\n\\0\n", $dwt); - $dwt = preg_replace("/\<\!-- InstanceEndEditable -->/", "\n\\0\n", $dwt); - $dwt = preg_replace("/\<\!-- TemplateEndEditable -->/", "\n\\0\n", $dwt); - $dwt = explode("\n", $dwt); - - $newRegion = false; - $region = new UNL_DWT_Region(); - $this->debug("Checking {$this->template}", 'scanRegions', 0); - foreach ($dwt as $key=>$fileregion) { - $matches = array(); - if (preg_match("/\<\!-- InstanceBeginEditable name=\"([A-Za-z0-9]*)\" -->/i", $fileregion, $matches) - || preg_match("/\<\!-- TemplateBeginEditable name=\"([A-Za-z0-9]*)\" -->/i", $fileregion, $matches)) { - if ($newRegion == true) { - // Found a new nested region. - // Remove the previous one. - $dwt[$region->line] = str_replace(array("<!--"." InstanceBeginEditable name=\"{$region->name}\" -->"), '', $dwt[$region->line]); - } - $newRegion = true; - $region = new UNL_DWT_Region(); - $region->name = $matches[1]; - $region->line = $key; - $region->value = ""; - } elseif ((preg_match("/\<\!-- InstanceEndEditable -->/i", $fileregion, $matches) || preg_match("/\<\!-- TemplateEndEditable -->/", $fileregion, $matches))) { - // Region is closing. - if ($newRegion===true) { - $region->value = trim($region->value); - if (strpos($region->value, "@@(\" \")@@") === false) { - $this->_regions[$this->template][] = $region; - } else { - // Editable Region tags must be removed within .tpl - unset($dwt[$region->line], $dwt[$key]); - } - $newRegion = false; - } else { - // Remove the nested region closing tag. - $dwt[$key] = str_replace("<!--"." InstanceEndEditable -->", '', $fileregion); - } - } else { - if ($newRegion===true) { - // Add the value of this region. - $region->value .= trim($fileregion)." "; - } - } - } - $dwt = implode("\n", $dwt); - - preg_match_all("/<!-- (?:Instance|Template)Param name=\"([^\"]*)\" type=\"([^\"]*)\" value=\"([^\"]*)\" -->/", $dwt, $matches, PREG_SET_ORDER); - foreach ($matches as $match) { - if (!empty($match[1])) { - $this->_params[$this->template][$match[1]] = array( - 'name' => $match[1], - 'type' => $match[2], - 'value' => $match[3] - ); - } - } - $dwt = str_replace(array( "<!--"." TemplateBeginEditable ", - "<!--"." TemplateEndEditable -->", - "<!-- TemplateParam ", - "\n\n"), - array( "<!--"." InstanceBeginEditable ", - "<!--"." InstanceEndEditable -->", - "<!-- InstanceParam ", - "\n"), $dwt); - if (preg_match("<!--"." InstanceBegin template=\"([\/\w\d\.]+)\" codeOutsideHTMLIsLocked=\"([\w]+)\" -->", $dwt)) { - $dwt = preg_replace("/<!--"." InstanceBegin template=\"([\/\w\d\.]+)\" codeOutsideHTMLIsLocked=\"([\w]+)\" -->/", "<!--"." InstanceBegin template=\"/Templates/{$this->template}\" codeOutsideHTMLIsLocked=\"\\2\" -->", $dwt); - } else { - $pos = strpos($dwt, ">", strripos($dwt, "<html") + 5) + 1; - $dwt = substr($dwt, 0, $pos) . - "<!--"." InstanceBegin template=\"/Templates/{$this->template}\" codeOutsideHTMLIsLocked=\"false\" -->" . - substr($dwt, $pos); - } - $dwt = str_replace('@@(" ")@@', '', $dwt); - return $dwt; - } - - /** - * The template class geneation part - single file. - * - * @param string $input file to generate a class for. - * - * @return updated .php file - */ - private function _generateClassTemplate($input = '') - { - // title = expand me! - $foot = ""; - $head = "<?php\n/**\n * Template Definition for {$this->template}\n */\n"; - // requires - $head .= "require_once '{$this->_extendsFile}';\n\n"; - // add dummy class header in... - // class - $head .= "class {$this->classname} extends {$this->_extends} \n{"; - - $body = "\n ###START_AUTOCODE\n"; - $body .= " /* the code below is auto generated do not remove the above tag */\n\n"; - // table - $padding = (30 - strlen($this->template)); - if ($padding < 2) { - $padding =2; - } - $p = str_repeat(' ', $padding); - - $var = (substr(phpversion(), 0, 1) > 4) ? 'public' : 'var'; - $body .= " {$var} \$__template = '".$this->sanitizeTemplateName($this->template).".tpl'; {$p}// template name\n"; - - $regions = $this->_regions[$this->template]; - - foreach ($regions as $t) { - if (!strlen(trim($t->name))) { - continue; - } - $padding = (30 - strlen($t->name)); - if ($padding < 2) $padding =2; - $p = str_repeat(' ', $padding); - - $body .=" {$var} \${$t->name} = \"".addslashes($t->value)."\"; {$p}// {$t->type}({$t->len}) {$t->flags}\n"; - } - - $body .= "\n"; - $body .= " {$var} \$__params = " . var_export($this->_params[$this->template], true) . ";\n"; - - // simple creation tools ! (static stuff!) - $body .= "\n"; - $body .= " /* Static get */\n"; - $body .= " function staticGet(\$k,\$v=NULL) { return UNL_DWT::staticGet('{$this->classname}',\$k,\$v); }\n"; - - // generate getter and setter methods - $body .= $this->_generateGetters($input); - $body .= $this->_generateSetters($input); - - $body .= "\n /* the code above is auto generated do not remove the tag below */"; - $body .= "\n ###END_AUTOCODE\n"; - - $foot .= "}\n"; - $full = $head . $body . $foot; - - if (!$input) { - return $full; - } - if (!preg_match('/(\n|\r\n)\s*###START_AUTOCODE(\n|\r\n)/s', $input)) { - return $full; - } - if (!preg_match('/(\n|\r\n)\s*###END_AUTOCODE(\n|\r\n)/s', $input)) { - return $full; - } - - $class_rewrite = 'UNL_DWT'; - if (!($class_rewrite = @UNL_DWT::$options['generator_class_rewrite'])) { - $class_rewrite = 'UNL_DWT'; - } - if ($class_rewrite == 'ANY') { - $class_rewrite = '[a-z_]+'; - } - $input = preg_replace('/(\n|\r\n)class\s*[a-z0-9_]+\s*extends\s*' .$class_rewrite . '\s*\{(\n|\r\n)/si', - "\nclass {$this->classname} extends {$this->_extends} \n{\n", - $input); - - return preg_replace('/(\n|\r\n)\s*###START_AUTOCODE(\n|\r\n).*(\n|\r\n)\s*###END_AUTOCODE(\n|\r\n)/s', - $body, $input); - - } - - /** - * Generate getter methods for class definition - * - * @param string $input Existing class contents - * - * @return string - */ - function _generateGetters($input) - { - $getters = ''; - - // only generate if option is set to true - if (empty(UNL_DWT::$options['generate_getters'])) { - return ''; - } - - /* - * remove auto-generated code from input to be able to check if - * the method exists outside of the auto-code - */ - $input = preg_replace('/(\n|\r\n)\s*###START_AUTOCODE(\n|\r\n).*(\n|\r\n)\s*###END_AUTOCODE(\n|\r\n)/s', '', $input); - - $getters .= "\n\n"; - $regions = $this->_regions[$this->table]; - - // loop through properties and create getter methods - foreach ($regions = $regions as $t) { - - // build mehtod name - $methodName = 'get' . ucfirst($t->name); - - if (!strlen(trim($t->name)) - || preg_match("/function[\s]+[&]?$methodName\(/i", $input)) { - continue; - } - - $getters .= " /**\n"; - $getters .= " * Getter for \${$t->name}\n"; - $getters .= " *\n"; - $getters .= (stristr($t->flags, 'multiple_key')) ? " * @return object\n" - : " * @return {$t->type}\n"; - $getters .= " * @access public\n"; - $getters .= " */\n"; - $getters .= (substr(phpversion(), 0, 1) > 4) ? ' public ' - : ' '; - $getters .= "function $methodName() {\n"; - $getters .= " return \$this->{$t->name};\n"; - $getters .= " }\n\n"; - } - - return $getters; - } - - /** - * Generate setter methods for class definition - * - * @param string $input Existing class contents - * - * @return string - */ - function _generateSetters($input) - { - $setters = ''; - - // only generate if option is set to true - if (empty(UNL_DWT::$options['generate_setters'])) { - return ''; - } - - /* - * remove auto-generated code from input to be able to check if - * the method exists outside of the auto-code - */ - $input = preg_replace('/(\n|\r\n)\s*###START_AUTOCODE(\n|\r\n).*(\n|\r\n)\s*###END_AUTOCODE(\n|\r\n)/s', '', $input); - - $setters .= "\n"; - $regions = $this->_regions[$this->table]; - - // loop through properties and create setter methods - foreach ($regions = $regions as $t) { - - // build mehtod name - $methodName = 'set' . ucfirst($t->name); - - if (!strlen(trim($t->name)) - || preg_match("/function[\s]+[&]?$methodName\(/i", $input)) { - continue; - } - - $setters .= " /**\n"; - $setters .= " * Setter for \${$t->name}\n"; - $setters .= " *\n"; - $setters .= " * @param mixed input value\n"; - $setters .= " * @access public\n"; - $setters .= " */\n"; - $setters .= (substr(phpversion(), 0, 1) > 4) ? ' public ' - : ' '; - $setters .= "function $methodName(\$value) {\n"; - $setters .= " \$this->{$t->name} = \$value;\n"; - $setters .= " }\n\n"; - } - - return $setters; - } -} diff --git a/lib/php/UNL/DWT/Region.php b/lib/php/UNL/DWT/Region.php deleted file mode 100644 index e8376a073089d7ea636edb123f7d42990d2b46a8..0000000000000000000000000000000000000000 --- a/lib/php/UNL/DWT/Region.php +++ /dev/null @@ -1,21 +0,0 @@ -<?php -/** - * Object representing a Dreamweaver template region - * - * @category Templates - * @package UNL_DWT - * @author Brett Bieber <brett.bieber@gmail.com> - * @created 01/18/2006 - * @copyright 2008 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/package/UNL_DWT - */ -class UNL_DWT_Region -{ - var $name; - var $type = 'string'; - var $len; - var $line; - var $flags; - var $value; -} diff --git a/lib/php/UNL/DWT/Scanner.php b/lib/php/UNL/DWT/Scanner.php deleted file mode 100644 index e4a2a29bfa2816146e046a5e1a6861d7e0e8a722..0000000000000000000000000000000000000000 --- a/lib/php/UNL/DWT/Scanner.php +++ /dev/null @@ -1,158 +0,0 @@ -<?php -/** - * Handles scanning a dwt file for regions and rendering. - * - * PHP version 5 - * - * @category Templates - * @package UNL_DWT - * @author Brett Bieber <brett.bieber@gmail.com> - * @created 01/18/2006 - * @copyright 2008 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/package/UNL_DWT - */ -require_once 'UNL/DWT.php'; -require_once 'UNL/DWT/Region.php'; - -/** - * Will scan a dreamweaver templated file for regions and other relevant info. - * - * @author Brett Bieber <brett.bieber@gmail.com> - * @created 01/18/2006 - * @copyright 2008 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/package/UNL_DWT - */ -class UNL_DWT_Scanner extends UNL_DWT -{ - protected $_regions; - - /** - * The contents of the .dwt file you wish to scan. - * - * @param string $dwt Source of the .dwt file - */ - function __construct($dwt) - { - $this->__template = $dwt; - $this->scanRegions($dwt); - } - - /** - * Return the template markup - * - * @return string - */ - function getTemplateFile() - { - return $this->__template; - } - - function scanRegions($dwt) - { - $this->_regions[] = array(); - - $dwt = str_replace("\r", "\n", $dwt); - $dwt = preg_replace("/(\<\!-- InstanceBeginEditable name=\"([A-Za-z0-9]*)\" -->)/i", "\n\\0\n", $dwt); - $dwt = preg_replace("/(\<\!-- TemplateBeginEditable name=\"([A-Za-z0-9]*)\" -->)/i", "\n\\0\n", $dwt); - $dwt = preg_replace("/\<\!-- InstanceEndEditable -->/", "\n\\0\n", $dwt); - $dwt = preg_replace("/\<\!-- TemplateEndEditable -->/", "\n\\0\n", $dwt); - $dwt = explode("\n", $dwt); - - $newRegion = false; - $region = new UNL_DWT_Region(); - foreach ($dwt as $key=>$fileregion) { - $matches = array(); - if (preg_match("/\<\!-- InstanceBeginEditable name=\"([A-Za-z0-9]*)\" -->/i", $fileregion, $matches) - || preg_match("/\<\!-- TemplateBeginEditable name=\"([A-Za-z0-9]*)\" -->/i", $fileregion, $matches)) { - if ($newRegion == true) { - // Found a new nested region. - // Remove the previous one. - $dwt[$region->line] = str_replace(array("<!--"." InstanceBeginEditable name=\"{$region->name}\" -->"), '', $dwt[$region->line]); - } - $newRegion = true; - $region = new UNL_DWT_Region(); - $region->name = $matches[1]; - $region->line = $key; - $region->value = ""; - } elseif ((preg_match("/\<\!-- InstanceEndEditable -->/i", $fileregion, $matches) || preg_match("/\<\!-- TemplateEndEditable -->/", $fileregion, $matches))) { - // Region is closing. - if ($newRegion===true) { - $region->value = trim($region->value); - if (strpos($region->value, "@@(\" \")@@") === false) { - $this->_regions[$region->name] = $region; - } else { - // Editable Region tags must be removed within .tpl - unset($dwt[$region->line], $dwt[$key]); - } - $newRegion = false; - } else { - // Remove the nested region closing tag. - $dwt[$key] = str_replace("<!--"." InstanceEndEditable -->", '', $fileregion); - } - } else { - if ($newRegion===true) { - // Add the value of this region. - $region->value .= trim($fileregion).PHP_EOL; - } - } - } - } - - /** - * returns the region object - * - * @param string $region - * - * @return UNL_DWT_Region - */ - public function getRegion($region) - { - if (isset($this->_regions[$region])) { - return $this->_regions[$region]; - } - return null; - } - - /** - * returns array of all the regions found - * - * @return array(UNL_DWT_Region) - */ - public function getRegions() - { - return $this->_regions; - } - - public function __isset($region) - { - return isset($this->_regions[$region]); - } - - public function __get($region) - { - if (isset($this->_regions[$region])) { - return $this->_regions[$region]->value; - } - - $trace = debug_backtrace(); - trigger_error( - 'Undefined property: ' . $region . - ' in ' . $trace[0]['file'] . - ' on line ' . $trace[0]['line'], - E_USER_NOTICE); - return null; - } - - /** - * Allow directly rendering - * - * @return string - */ - function __toString() - { - return $this->toHtml(); - } - -} diff --git a/lib/php/UNL/DWT/createTemplates.php b/lib/php/UNL/DWT/createTemplates.php deleted file mode 100644 index f501baf5ba587c80353a00f4260471475e1baf08..0000000000000000000000000000000000000000 --- a/lib/php/UNL/DWT/createTemplates.php +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/php -q -<?php -/** - * Tool to generate objects for dreamweaver template files. - * - * PHP version 5 - * - * @package UNL_DWT - * @author Brett Bieber <brett.bieber@gmail.com> - * @created 01/18/2006 - * @copyright 2008 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/package/UNL_DWT - */ - -// since this version doesnt use overload, -// and I assume anyone using custom generators should add this.. -define('UNL_DWT_NO_OVERLOAD',1); -ini_set('display_errors',true); - -set_include_path(dirname(__DIR__).'/../../src'); -require_once 'UNL/DWT/Generator.php'; - -if (!ini_get('register_argc_argv')) { - throw new Exception("\nERROR: You must turn register_argc_argv On in your php.ini file for this to work\neg.\n\nregister_argc_argv = On\n\n"); -} - -if (!@$_SERVER['argv'][1]) { - throw new Exception("\nERROR: createTemplates.php usage: 'php phpdwtparser/src/UNL/DWT/createTemplates.php example.ini'\n\n"); -} - -$config = parse_ini_file($_SERVER['argv'][1], true); -foreach($config as $class=>$values) { - if ($class == 'UNL_DWT') { - UNL_DWT::$options = $values; - } -} - -if (empty(UNL_DWT::$options)) { - throw new Exception("\nERROR: could not read ini file\n\n"); -} -set_time_limit(0); -//UNL_DWT::debugLevel(1); -$generator = new UNL_DWT_Generator; -$generator->start(); diff --git a/lib/php/UNL/Templates.php b/lib/php/UNL/Templates.php deleted file mode 100644 index 63917217378a3d98938ab74867fdf9d60edb59dc..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates.php +++ /dev/null @@ -1,365 +0,0 @@ -<?php -/** - * Object oriented interface to create UNL Template based HTML pages. - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ - -/** - * Utilizes the UNL_DWT Dreamweaver template class. - */ -require_once 'UNL/DWT.php'; - -/** - * Allows you to create UNL Template based HTML pages through an object - * oriented interface. - * - * Install on your PHP server with: - * pear channel-discover pear.unl.edu - * pear install unl/UNL_Templates - * - * <code> - * <?php - * require_once 'UNL/Templates.php'; - * $page = UNL_Templates::factory('Fixed'); - * $page->titlegraphic = '<h1>UNL Templates</h1>'; - * $page->maincontentarea = 'Hello world!'; - * $page->loadSharedcodeFiles(); - * echo $page; - * </code> - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -class UNL_Templates extends UNL_DWT -{ - const VERSION2 = 2; - const VERSION3 = 3; - const VERSION3x1 = '3.1'; - - /** - * Cache object for output caching - * - * @var UNL_Templates_CachingService - */ - static protected $cache; - - static public $options = array( - 'debug' => 0, - 'sharedcodepath' => 'sharedcode', - 'templatedependentspath' => '', - 'cache' => array(), - 'version' => self::VERSION3, - 'timeout' => 5 - ); - - /** - * The version of the templates we're using. - * - * @var UNL_Templates_Version - */ - static public $template_version; - - /** - * Construct a UNL_Templates object - */ - public function __construct() - { - date_default_timezone_set(date_default_timezone_get()); - if (empty(self::$options['templatedependentspath'])) { - self::$options['templatedependentspath'] = $_SERVER['DOCUMENT_ROOT']; - } - } - - /** - * Initialize the configuration for the UNL_DWT class - * - * @return void - */ - public static function loadDefaultConfig() - { - $version = str_replace('.', 'x', self::$options['version']); - include_once 'UNL/Templates/Version'.$version.'.php'; - $class = 'UNL_Templates_Version'.$version; - self::$template_version = new $class(); - UNL_DWT::$options = array_merge(UNL_DWT::$options, self::$template_version->getConfig()); - } - - /** - * The factory returns a template object for any UNL Template style requested: - * * Fixed - * * Liquid - * * Popup - * * Document - * * Secure - * * Unlaffiliate - * - * <code> - * $page = UNL_Templates::factory('Fixed'); - * </code> - * - * @param string $type Type of template to get, Fixed, Liquid, Doc, Popup - * - * @return UNL_Templates - */ - static function &factory($type) - { - UNL_Templates::loadDefaultConfig(); - return parent::factory($type); - } - - public function getTemplateFile() - { - return $this->getCache(); - } - - /** - * Attempts to connect to the template server and grabs the latest cache of the - * template (.tpl) file. Set options for Cache_Lite in self::$options['cache'] - * - * @return string - */ - function getCache() - { - $cache = self::getCachingService(); - $cache_key = self::$options['version'].self::$options['templatedependentspath'].$this->__template; - // Test if there is a valid cache for this template - if ($data = $cache->get($cache_key)) { - // Content is in $data - self::debug('Using cached version from '. - date('Y-m-d H:i:s', $cache->lastModified()), 'getCache', 3); - } else { // No valid cache found - if ($data = self::$template_version->getTemplate($this->__template)) { - self::debug('Updating cache.', 'getCache', 3); - $data = $this->makeIncludeReplacements($data); - $cache->save($data, $cache_key); - } else { - // Error getting updated version of the templates. - self::debug('Could not connect to template server. ' . PHP_EOL . - 'Extending life of template cache.', 'getCache', 3); - $cache->extendLife(); - $data = $cache->get($this->__template); - } - } - return $data; - } - - /** - * Loads standard customized content (sharedcode) files from the filesystem. - * - * @return void - */ - function loadSharedcodeFiles() - { - $includes = array( - 'footercontent' => 'footer.html', - 'contactinfo' => 'footerContactInfo.html', - 'navlinks' => 'navigation.html', - 'leftcollinks' => 'relatedLinks.html', - 'optionalfooter' => 'optionalFooter.html', - 'collegenavigationlist' => 'unitNavigation.html', - ); - foreach ($includes as $element=>$filename) { - if (file_exists(self::$options['sharedcodepath'].'/'.$filename)) { - $this->{$element} = file_get_contents(self::$options['sharedcodepath'].'/'.$filename); - } - } - } - - - /** - * Add a link within the head of the page. - * - * @param string $href URI to the resource - * @param string $relation Relation of this link element (alternate) - * @param string $relType The type of relation (rel) - * @param array $attributes Any additional attribute=>value combinations - * - * @return void - */ - function addHeadLink($href, $relation, $relType = 'rel', array $attributes = array()) - { - $attributeString = ''; - foreach ($attributes as $name=>$value) { - $attributeString .= $name.'="'.$value.'" '; - } - - $this->head .= '<link '.$relType.'="'.$relation.'" href="'.$href.'" '.$attributeString.' />'.PHP_EOL; - - } - - /** - * Add a (java)script to the page. - * - * @param string $url URL to the script - * @param string $type Type of script text/javascript - * - * @return void - */ - function addScript($url, $type = 'text/javascript') - { - $this->head .= '<script type="'.$type.'" src="'.$url.'"></script>'.PHP_EOL; - } - - /** - * Adds a script declaration to the page. - * - * @param string $content The javascript you wish to add. - * @param string $type Type of script tag. - * - * @return void - */ - function addScriptDeclaration($content, $type = 'text/javascript') - { - $this->head .= '<script type="'.$type.'">//<![CDATA['.PHP_EOL.$content.PHP_EOL.'//]]></script>'.PHP_EOL; - } - - /** - * Add a style declaration to the head of the document. - * <code> - * $page->addStyleDeclaration('.course {font-size:1.5em}'); - * </code> - * - * @param string $content CSS content to add - * @param string $type type attribute for the style element - * - * @return void - */ - function addStyleDeclaration($content, $type = 'text/css') - { - $this->head .= '<style type="'.$type.'">'.$content.'</style>'.PHP_EOL; - } - - /** - * Add a link to a stylesheet. - * - * @param string $url Address of the stylesheet, absolute or relative - * @param string $media Media target (screen/print/projector etc) - * - * @return void - */ - function addStyleSheet($url, $media = 'all') - { - $this->addHeadLink($url, 'stylesheet', 'rel', array('media'=>$media, 'type'=>'text/css')); - } - - /** - * returns this template as a string. - * - * @return string - */ - function __toString() - { - return $this->toHtml(); - } - - - /** - * Populates templatedependents files - * - * Replaces the template dependent include statements with the corresponding - * files from the /ucomm/templatedependents/ directory. To specify the location - * of your templatedependents directory, use something like - * $page->options['templatedependentspath'] = '/var/www/'; - * and set the path to the directory containing /ucomm/templatedependents/ - * - * @param string $p Page to make replacements in - * - * @return string - */ - function makeIncludeReplacements($p) - { - return self::$template_version->makeIncludeReplacements($p); - } - - /** - * Debug handler for messages. - * - * @param string $message Message to send to debug output - * @param int $logtype Which log to send this to - * @param int $level The threshold to send this message or not. - * - * @return void - */ - static function debug($message, $logtype = 0, $level = 1) - { - UNL_DWT::$options['debug'] = self::$options['debug']; - parent::debug($message, $logtype, $level); - } - - /** - * Cleans the cache. - * - * @param mixed $o Pass a cached object to clean it's cache, or a string id. - * - * @return bool true if cache was successfully cleared. - */ - public function cleanCache($object = null) - { - return self::getCachingService()->clean($object); - } - - static public function setCachingService(UNL_Templates_CachingService $cache) - { - self::$cache = $cache; - } - - static public function getCachingService() - { - if (!isset(self::$cache)) { - $file = 'UNL/Templates/CachingService/Null.php'; - $class = 'UNL_Templates_CachingService_Null'; - - $fp = @fopen('UNL/Cache/Lite.php', 'r', true); - if ($fp) { - fclose($fp); - $file = 'UNL/Templates/CachingService/UNLCacheLite.php'; - $class = 'UNL_Templates_CachingService_UNLCacheLite'; - } else { - $fp = @fopen('Cache/Lite.php', 'r', true); - if ($fp) { - fclose($fp); - $file = 'UNL/Templates/CachingService/CacheLite.php'; - $class = 'UNL_Templates_CachingService_CacheLite'; - } - } - - include_once $file; - self::$cache = new $class(self::$options['cache']); - } - return self::$cache; - } - - static public function getDataDir() - { - if (file_exists(dirname(__FILE__).'/../../data/pear.unl.edu/UNL_Templates')) { - // new pear2 package & pyrus installation layout - return dirname(__FILE__).'/../../data/pear.unl.edu/UNL_Templates'; - } - - if (file_exists(dirname(__FILE__).'/../../data/tpl_cache')) { - // svn checkout - return realpath(dirname(__FILE__).'/../../data'); - } - - if ('@DATA_DIR@' != '@DATA_DIR'.'@') { - // pear/pyrus installation - return '@DATA_DIR@/UNL_Templates/data/'; - } - - throw new Exception('Cannot determine data directory!'); - } -} diff --git a/lib/php/UNL/Templates/CachingService.php b/lib/php/UNL/Templates/CachingService.php deleted file mode 100644 index 3dc28c46dc8c581b1ed3ca664d2d611210ab91e8..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/CachingService.php +++ /dev/null @@ -1,20 +0,0 @@ -<?php -/** - * An interface for a caching service. - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -interface UNL_Templates_CachingService -{ - public function get($key); - public function save($data, $key); - public function clean($object = null); -} \ No newline at end of file diff --git a/lib/php/UNL/Templates/CachingService/CacheLite.php b/lib/php/UNL/Templates/CachingService/CacheLite.php deleted file mode 100644 index 98853e323b73e70f902782126c13cec954a81ced..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/CachingService/CacheLite.php +++ /dev/null @@ -1,64 +0,0 @@ -<?php -/** - * A Cache Service using Cache_Lite - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates/CachingService.php'; -class UNL_Templates_CachingService_CacheLite implements UNL_Templates_CachingService -{ - protected $cache; - - function __construct($options = array()) - { - include_once 'Cache/Lite.php'; - $options = array_merge(array('lifeTime'=>3600), $options); - $this->cache = new Cache_Lite($options); - } - - function get($key) - { - return $this->cache->get($key, 'UNL_Templates'); - } - - function save($data, $key) - { - return $this->cache->save($data, $key, 'UNL_Templates'); - } - - function clean($object = null) - { - if (isset($object)) { - if (is_object($object) - && $object instanceof UNL_UCBCN_Cacheable) { - $key = $object->getCacheKey(); - if ($key === false) { - // This is a non-cacheable object. - return true; - } - } else { - $key = (string) $object; - } - if ($this->cache->get($key) !== false) { - // Remove the cache for this individual object. - return $this->cache->remove($key, 'UNL_Templates'); - } - } else { - return $this->cache->clean('UNL_Templates'); - } - return false; - } - function __call($method, $params) - { - return $this->cache->$method($params); - } - -} diff --git a/lib/php/UNL/Templates/CachingService/Null.php b/lib/php/UNL/Templates/CachingService/Null.php deleted file mode 100644 index 6a2f16f1f528d1deee52f1f4194058012a34764b..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/CachingService/Null.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php -/** - * A Null cache service that can be used for testing - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates/CachingService.php'; -class UNL_Templates_CachingService_Null implements UNL_Templates_CachingService -{ - - function clean($object = null) - { - return true; - } - - function save($data, $key) - { - return true; - } - - function get($key) - { - return false; - } -} \ No newline at end of file diff --git a/lib/php/UNL/Templates/CachingService/UNLCacheLite.php b/lib/php/UNL/Templates/CachingService/UNLCacheLite.php deleted file mode 100644 index 1226c665ba63daaed4ee07e940e9e12e3880f60e..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/CachingService/UNLCacheLite.php +++ /dev/null @@ -1,26 +0,0 @@ -<?php -/** - * A Cache Service using UNL_Cache_Lite - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates/CachingService/CacheLite.php'; -class UNL_Templates_CachingService_UNLCacheLite extends UNL_Templates_CachingService_CacheLite -{ - - function __construct($options = array()) - { - include_once 'UNL/Cache/Lite.php'; - $options = array_merge(array('lifeTime'=>3600), $options); - $this->cache = new UNL_Cache_Lite($options); - } - -} diff --git a/lib/php/UNL/Templates/Scanner.php b/lib/php/UNL/Templates/Scanner.php deleted file mode 100644 index c8fdf51bfb346d2c8aafff1a3e5693f0bacb3b32..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Scanner.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php -/** - * This class will scan a template file for the regions, which you can use to - * analyze and use a rendered template file. - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/DWT/Scanner.php'; - - -class UNL_Templates_Scanner extends UNL_DWT_Scanner -{ - /** - * Construct a remote file. - * - * @param string $html Contents of the page - */ - function __construct($html) - { - parent::__construct($html); - } -} - -?> \ No newline at end of file diff --git a/lib/php/UNL/Templates/Version.php b/lib/php/UNL/Templates/Version.php deleted file mode 100644 index 074d6af725d699c12e340562c0c0e3318aedbc15..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version.php +++ /dev/null @@ -1,21 +0,0 @@ -<?php -/** - * Interface for a version of the template files. - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -interface UNL_Templates_Version -{ - function getConfig(); - function getTemplate($template); - function makeIncludeReplacements($html); -} -?> \ No newline at end of file diff --git a/lib/php/UNL/Templates/Version2.php b/lib/php/UNL/Templates/Version2.php deleted file mode 100644 index e4aad342d3bdeffb3fa4eabec12c53ad8d35848a..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version2.php +++ /dev/null @@ -1,64 +0,0 @@ -<?php -/** - * Base class for version 2 (2006) of the template files. - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates/Version.php'; - -class UNL_Templates_Version2 implements UNL_Templates_Version -{ - function getConfig() - { - return array('class_location' => 'UNL/Templates/Version2/', - 'class_prefix' => 'UNL_Templates_Version2_'); - } - - function getTemplate($template) - { - // Set a timeout for the HTTP download of the template file - $http_context = stream_context_create(array('http' => array('timeout' => UNL_Templates::$options['timeout']))); - - // Always try and retrieve the latest - if (!(UNL_Templates::getCachingService() instanceof UNL_Templates_CachingService_Null) - && $tpl = file_get_contents('http://pear.unl.edu/UNL/Templates/server.php?version=2&template='.$template, false, $http_context)) { - return $tpl; - } - - if (file_exists(UNL_Templates::getDataDir().'/tpl_cache/Version2/'.$template)) { - return file_get_contents(UNL_Templates::getDataDir().'/tpl_cache/Version2/'.$template); - } - - throw new Exception('Could not get the template file!'); - } - - function makeIncludeReplacements($html) - { - UNL_Templates::debug('Now making template include replacements.', - 'makeIncludeReplacements', 3); - $includes = array(); - preg_match_all('<!--#include virtual="(/ucomm/templatedependents/[A-Za-z0-9\.\/]+)" -->', - $html, $includes); - UNL_Templates::debug(print_r($includes, true), 'makeIncludeReplacements', 3); - foreach ($includes[1] as $include) { - UNL_Templates::debug('Replacing '.$include, 'makeIncludeReplacements', 3); - $file = UNL_Templates::$options['templatedependentspath'].$include; - if (!file_exists($file)) { - UNL_Templates::debug('File does not exist:'.$file, - 'makeIncludeReplacements', 3); - $file = 'http://www.unl.edu'.$include; - } - $html = str_replace('<!--#include virtual="'.$include.'" -->', - file_get_contents($file), $html); - } - return $html; - } -} diff --git a/lib/php/UNL/Templates/Version2/Document.php b/lib/php/UNL/Templates/Version2/Document.php deleted file mode 100644 index 62e6d3bc6f643adf9b015d9b1222382d6cf0ec5e..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version2/Document.php +++ /dev/null @@ -1,42 +0,0 @@ -<?php -/** - * Template Definition for document.dwt - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates.php'; - -/** - * Document template object. - * - * @package UNL_Templates - */ -class UNL_Templates_Version2_Document extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Document.tpl'; // template name - public $doctitle = "<title>UNL | Document Template</title>"; // string() - public $head = "<script type=\"text/javascript\"> var navl2Links = 0; //Default navline2 links to display (zero based counting) </script>"; // string() - public $breadcrumbs = ""; // string() - public $collegenavigationlist = ""; // string() - public $titlegraphic = "<h1>Department</h1> <h2>Taglines - We Do The Heavy Lifting</h2>"; // string() - public $maincontentarea = "<p style=\"margin:20px; border:3px solid #CC0000;padding:10px; text-align:center\"> <strong>Delete this box and place your content here.</strong><br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://www.unl.edu/webdevnet/\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Click here to check Validation</a> </p>"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version2_Document',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version2/Fixed.php b/lib/php/UNL/Templates/Version2/Fixed.php deleted file mode 100644 index fa02b80041bc2bba5cfbce61073a932fd85d12a4..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version2/Fixed.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php -/** - * Template Definition for fixed.dwt - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - * - */ -require_once 'UNL/Templates.php'; - -/** - * Fixed width template object. - * - * @package UNL_Templates - * - */ -class UNL_Templates_Version2_Fixed extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Fixed.tpl'; // template name - public $doctitle = "<title>UNL | Department | New Page</title>"; // string() - public $head = "<script type=\"text/javascript\"> var navl2Links = 0; //Default navline2 links to display (zero based counting) </script>"; // string() - public $breadcrumbs = "<!-- WDN: see glossary item \'breadcrumbs\' --> <ul> <li class=\"first\"><a href=\"http://www.unl.edu/\">UNL</a></li> <li><a href=\"http://www.unl.edu/\">Department</a></li> <li>New Page</li> </ul>"; // string() - public $collegenavigationlist = ""; // string() - public $titlegraphic = "<h1>Department</h1> <h2>Taglines - We Do The Heavy Lifting</h2>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $leftRandomPromo = "<div class=\"image_small_short\" id=\"leftRandomPromo\"> <a href=\"#\" id=\"leftRandomPromoAnchor\"><img id=\"leftRandomPromoImage\" alt=\"\" src=\"/ucomm/templatedependents/templatecss/images/transpixel.gif\" /></a> <script type=\"text/javascript\" src=\"../sharedcode/leftRandomPromo.js\"></script> </div>"; // string() - public $leftcollinks = "<!-- WDN: see glossary item \'sidebar links\' --> <!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $maincontentarea = "<p style=\"margin:20px; border:3px solid #CC0000;padding:10px; text-align:center\"> <strong>Delete this box and place your content here.</strong><br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://www.unl.edu/webdevnet/\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Click here to check Validation</a> </p>"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version2_Fixed',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version2/Liquid.php b/lib/php/UNL/Templates/Version2/Liquid.php deleted file mode 100644 index 673bc993a3fb16dd085ba6c2190f10e3164b28e9..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version2/Liquid.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php -/** - * Template Definition for liquid.dwt - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - * - */ -require_once 'UNL/Templates.php'; - -/** - * Liquid width template object - * - * @package UNL_Templates - * - */ -class UNL_Templates_Version2_Liquid extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Liquid.tpl'; // template name - public $doctitle = "<title>UNL | Department | New Page</title>"; // string() - public $head = "<script type=\"text/javascript\"> var navl2Links = 0; //Default navline2 links to display (zero based counting) </script>"; // string() - public $breadcrumbs = "<!-- WDN: see glossary item \'breadcrumbs\' --> <ul> <li class=\"first\"><a href=\"http://www.unl.edu/\">UNL</a></li> <li><a href=\"http://www.unl.edu/\">Department</a></li> <li>New Page</li> </ul>"; // string() - public $collegenavigationlist = ""; // string() - public $titlegraphic = "<h1>Department</h1> <h2>Taglines - We Do The Heavy Lifting</h2>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $leftRandomPromo = "<div class=\"image_small_short\" id=\"leftRandomPromo\"> <a href=\"#\" id=\"leftRandomPromoAnchor\"><img id=\"leftRandomPromoImage\" alt=\"\" src=\"/ucomm/templatedependents/templatecss/images/transpixel.gif\" /></a> <script type=\"text/javascript\" src=\"../sharedcode/leftRandomPromo.js\"></script> </div>"; // string() - public $leftcollinks = "<!-- WDN: see glossary item \'sidebar links\' --> <!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $maincontentarea = "<p style=\"margin:20px; border:3px solid #CC0000;padding:10px; text-align:center\"> <strong>Delete this box and place your content here.</strong><br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://www.unl.edu/webdevnet/\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Click here to check Validation</a> </p>"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version2_Liquid',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version2/Popup.php b/lib/php/UNL/Templates/Version2/Popup.php deleted file mode 100644 index 44e5f823fede57c1cb45811096e00dbc4f7da3e3..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version2/Popup.php +++ /dev/null @@ -1,42 +0,0 @@ -<?php -/** - * Template Definition for popup.dwt - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates.php'; - -/** - * popup template object - * - * @package UNL_Templates - * - */ -class UNL_Templates_Version2_Popup extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Popup.tpl'; // template name - public $doctitle = "<title>UNL | Department | New Page</title>"; // string() - public $head = "<script type=\"text/javascript\"> var navl2Links = 0; //Default navline2 links to display (zero based counting) </script>"; // string() - public $collegenavigationlist = ""; // string() - public $titlegraphic = "<h1>Department</h1> <h2>Taglines - We Do The Heavy Lifting</h2>"; // string() - public $maincontentarea = "<p style=\"margin:20px; border:3px solid #CC0000;padding:10px; text-align:center\"> <strong>Delete this box and place your content here.</strong><br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://www.unl.edu/webdevnet/\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Click here to check Validation</a> </p>"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version2_Popup',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version2/Secure.php b/lib/php/UNL/Templates/Version2/Secure.php deleted file mode 100644 index 90ac4755bf745f192267c538f597446d92c2d138..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version2/Secure.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php -/** - * Template Definition for secure.dwt - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates.php'; - -/** - * Secure template object - * - * @package UNL_Templates - * - */ -class UNL_Templates_Version2_Secure extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Secure.tpl'; // template name - public $doctitle = "<title>UNL | Department | New Page</title>"; // string() - public $head = "<script type=\"text/javascript\"> var navl2Links = 0; //Default navline2 links to display (zero based counting) </script>"; // string() - public $breadcrumbs = "<!-- WDN: see glossary item \'breadcrumbs\' --> <ul> <li class=\"first\"><a href=\"http://www.unl.edu/\">UNL</a></li> <li><a href=\"http://www.unl.edu/\">Department</a></li> <li>New Page</li> </ul> <!--#include virtual=\"/ucomm/templatedependents/templatesharedcode/includes/badges/secure.html\" -->"; // string() - public $collegenavigationlist = ""; // string() - public $titlegraphic = "<h1>Department</h1> <h2>Taglines - We Do The Heavy Lifting</h2>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $leftcollinks = "<!-- WDN: see glossary item \'sidebar links\' --> <!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $maincontentarea = "<p style=\"margin:20px; border:3px solid #CC0000;padding:10px; text-align:center\"> <strong>Delete this box and place your content here.</strong><br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://www.unl.edu/webdevnet/\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Click here to check Validation</a> </p>"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version2_Secure',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version2/Unlaffiliate.php b/lib/php/UNL/Templates/Version2/Unlaffiliate.php deleted file mode 100644 index 194231ae963ba67fd8a9d8cdb1068b17bec38a8c..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version2/Unlaffiliate.php +++ /dev/null @@ -1,41 +0,0 @@ -<?php -/** - * Template Definition for unlaffiliate.dwt - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates.php'; - -class UNL_Templates_Version2_Unlaffiliate extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Unlaffiliate.tpl'; // template name - public $doctitle = "<title>UNL Redesign</title>"; // string() - public $head = "<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"/ucomm/templatedependents/templatecss/layouts/affiliate.css\" />"; // string() - public $siteheader = "<!--#include virtual=\"/ucomm/templatedependents/templatesharedcode/includes/siteheader/affiliate.shtml\" -->"; // string() - public $breadcrumbs = "<!-- WDN: see glossary item \'breadcrumbs\' --> <ul> <li class=\"first\"><a href=\"http://www.unl.edu/\">UNL</a></li> <li>UNL Framework</li> </ul>"; // string() - public $shelf = ""; // string() - public $titlegraphic = "<h1>Affiliate</h1> <h2>Taglines - We Do The Heavy Lifting</h2>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $leftRandomPromo = "<div class=\"image_small_short\" id=\"leftRandomPromo\"> <a href=\"#\" id=\"leftRandomPromoAnchor\"><img id=\"leftRandomPromoImage\" alt=\"\" src=\"/ucomm/templatedependents/templatecss/images/transpixel.gif\" /></a> <script type=\"text/javascript\" src=\"../sharedcode/leftRandomPromo.js\"></script> </div>"; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $maincontentarea = "<h2 class=\"sec_main\">This template is only for affiliates of UNL, or units that have been granted a marketing exemption from the university. Confirm your use of this template before using it!</h2> <p style=\"margin:20px; border:3px solid #CC0000;padding:10px; text-align:center\"> <strong>Delete this box and place your content here.</strong><br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://www.unl.edu/webdevnet/\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Click here to check Validation</a> </p> <!--THIS IS THE END OF THE MAIN CONTENT AREA.-->"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version2_Unlaffiliate',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version2/Unlframework.php b/lib/php/UNL/Templates/Version2/Unlframework.php deleted file mode 100644 index 47b4261693c11c4d01a3192e73646796390f2d6d..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version2/Unlframework.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php -/** - * Template Definition for unlframework.dwt - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates.php'; - -/** - * Unlframework template object - * - * @package UNL_Templates - * - */ -class UNL_Templates_Version2_Unlframework extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Unlframework.tpl'; // template name - public $doctitle = "<title>UNL Redesign</title>"; // string() - public $head = "<!--#include virtual=\"/ucomm/templatedependents/templatesharedcode/includes/browsersniffers/ie.html\" --> <!--#include virtual=\"/ucomm/templatedependents/templatesharedcode/includes/comments/developersnote.html\" --> <!--#include virtual=\"/ucomm/templatedependents/templatesharedcode/includes/metanfavico/metanfavico.html\" -->"; // string() - public $siteheader = "<!--#include virtual=\"/ucomm/templatedependents/templatesharedcode/includes/siteheader/siteheader.shtml\" -->"; // string() - public $breadcrumbs = "<!-- WDN: see glossary item \'breadcrumbs\' --> <ul> <li class=\"first\"><a href=\"http://www.unl.edu/\">UNL</a></li> <li>UNL Framework</li> </ul>"; // string() - public $shelf = "<!--#include virtual=\"/ucomm/templatedependents/templatesharedcode/includes/shelf/shelf.shtml\" -->"; // string() - public $collegenavigationlist = ""; // string() - public $titlegraphic = "<h1>Department</h1> <h2>Taglines - We Do The Heavy Lifting</h2>"; // string() - public $leftcolcontent = "<div id=\"navigation\"> <h4 id=\"sec_nav\">Navigation</h4> <div id=\"navlinks\"> <!--#include virtual=\"../sharedcode/navigation.html\" --> </div> <div id=\"nav_end\"></div> <div class=\"image_small_short\" id=\"leftRandomPromo\"> <a href=\"#\" id=\"leftRandomPromoAnchor\"><img id=\"leftRandomPromoImage\" alt=\"\" src=\"/ucomm/templatedependents/templatecss/images/transpixel.gif\" /></a> <script type=\"text/javascript\" src=\"../sharedcode/leftRandomPromo.js\"></script> </div> <!-- WDN: see glossary item \'sidebar links\' --> <div id=\"leftcollinks\"> <!--#include virtual=\"../sharedcode/relatedLinks.html\" --> </div> </div> <!-- close navigation -->"; // string() - public $maincolcontent = "<!-- optional main big content image --> <div id=\"maincontent\"> <p style=\"margin:20px; border:3px solid #CC0000;padding:10px; text-align:center\"> <strong>Delete this box and place your content here.</strong><br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://www.unl.edu/webdevnet/\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Click here to check Validation</a> </p> </div> <!-- close right-area -->"; // string() - public $bigfooter = "<div id=\"footer\"> <div id=\"footer_floater\"> <div id=\"copyright\"> <!--#include virtual=\"../sharedcode/footer.html\" --> <span><a href=\"http://jigsaw.w3.org/css-validator/check/referer\">CSS</a> <a href=\"http://validator.unl.edu/check/referer\">W3C</a> <a href=\"http://www1.unl.edu/feeds/\">RSS</a> </span><a href=\"http://www.unl.edu/\" title=\"UNL Home\"><img src=\"/ucomm/templatedependents/templatecss/images/wordmark.png\" alt=\"UNL\'s wordmark\" id=\"wordmark\" /></a></div> </div> </div>"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version2_Unlframework',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version2/Unlstandardtemplate.php b/lib/php/UNL/Templates/Version2/Unlstandardtemplate.php deleted file mode 100644 index 5aff6955702cb8efadde4d09afbe9f35a7e61bb2..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version2/Unlstandardtemplate.php +++ /dev/null @@ -1,48 +0,0 @@ -<?php -/** - * Template Definition for unlstandardtemplate.dwt - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates.php'; - -/** - * Unlstandardtemplate object - * - * @package UNL_Templates - * - */ -class UNL_Templates_Version2_Unlstandardtemplate extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Unlstandardtemplate.tpl'; // template name - public $doctitle = "<title>UNL Redesign</title>"; // string() - public $head = ""; // string() - public $siteheader = "<!--#include virtual=\"/ucomm/templatedependents/templatesharedcode/includes/siteheader/siteheader.shtml\" -->"; // string() - public $breadcrumbs = "<ul> <li class=\"first\"><a href=\"http://www.unl.edu/\">UNL</a></li> <li>UNL Standard Template</li> </ul>"; // string() - public $shelf = "<!--#include virtual=\"/ucomm/templatedependents/templatesharedcode/includes/shelf/shelf.shtml\" -->"; // string() - public $collegenavigationlist = ""; // string() - public $titlegraphic = "<h1>Department</h1> <h2>Taglines - We Do The Heavy Lifting</h2>"; // string() - public $navcontent = "<div id=\"navlinks\"> <!--#include virtual=\"../sharedcode/navigation.html\" --> </div>"; // string() - public $leftRandomPromo = "<div class=\"image_small_short\" id=\"leftRandomPromo\"> <a href=\"#\" id=\"leftRandomPromoAnchor\"><img id=\"leftRandomPromoImage\" alt=\"\" src=\"/ucomm/templatedependents/templatecss/images/transpixel.gif\" /></a> <script type=\"text/javascript\" src=\"../sharedcode/leftRandomPromo.js\"></script> </div>"; // string() - public $leftcollinks = "<h3>Related Links</h3> <!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $maincontent = "<p style=\"margin:20px; border:3px solid #CC0000;padding:10px; text-align:center\"> <strong>Delete this box and place your content here.</strong><br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://www.unl.edu/webdevnet/\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Click here to check Validation</a> </p>"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version2_Unlstandardtemplate',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3.php b/lib/php/UNL/Templates/Version3.php deleted file mode 100644 index 81931203eaefdca6ad8c937d1db46751e3029b60..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3.php +++ /dev/null @@ -1,81 +0,0 @@ -<?php -/** - * Base class for Version 3 (2009) template files. - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates/Version.php'; - -/** - * Base class for Version 3 (2009) template files. - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -class UNL_Templates_Version3 implements UNL_Templates_Version -{ - function getConfig() - { - return array('class_location' => 'UNL/Templates/Version3/', - 'class_prefix' => 'UNL_Templates_Version3_'); - } - - function getTemplate($template) - { - if (!file_exists(UNL_Templates::$options['templatedependentspath'].'/wdn/templates_3.0')) { - UNL_Templates::debug('ERROR You should have a local copy of wdn/templates_3.0!' - . ' Overriding your specified template to use absolute references' , - 'getTemplate', 1); - $template = 'Absolute.tpl'; - } - - // Set a timeout for the HTTP download of the template file - $http_context = stream_context_create(array('http' => array('timeout' => UNL_Templates::$options['timeout']))); - - // Always try and retrieve the latest - if (!(UNL_Templates::getCachingService() instanceof UNL_Templates_CachingService_Null) - && $tpl = file_get_contents('http://pear.unl.edu/UNL/Templates/server.php?version=3&template='.$template, false, $http_context)) { - return $tpl; - } - - if (file_exists(UNL_Templates::getDataDir().'/tpl_cache/Version3/'.$template)) { - return file_get_contents(UNL_Templates::getDataDir().'/tpl_cache/Version3/'.$template); - } - - throw new Exception('Could not get the template file!'); - } - - function makeIncludeReplacements($html) - { - UNL_Templates::debug('Now making template include replacements.', - 'makeIncludeReplacements', 3); - $includes = array(); - preg_match_all('<!--#include virtual="(/wdn/templates_3.0/[A-Za-z0-9\.\/_]+)" -->', - $html, $includes); - UNL_Templates::debug(print_r($includes, true), 'makeIncludeReplacements', 3); - foreach ($includes[1] as $include) { - UNL_Templates::debug('Replacing '.$include, 'makeIncludeReplacements', 3); - $file = UNL_Templates::$options['templatedependentspath'].$include; - if (!file_exists($file)) { - UNL_Templates::debug('File does not exist:'.$file, - 'makeIncludeReplacements', 3); - $file = 'http://www.unl.edu'.$include; - } - $html = str_replace('<!--#include virtual="'.$include.'" -->', - file_get_contents($file), $html); - } - return $html; - } -} diff --git a/lib/php/UNL/Templates/Version3/Absolute.php b/lib/php/UNL/Templates/Version3/Absolute.php deleted file mode 100644 index 3a7f120bf874ce4097e8a8e06a5602f32917d3a2..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3/Absolute.php +++ /dev/null @@ -1,50 +0,0 @@ -<?php -/** - * Template Definition for absolute.dwt - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates.php'; - -/** - * Template Definition for absolute.dwt - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -class UNL_Templates_Version3_Absolute extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Absolute.tpl'; // template name - public $doctitle = "<title>UNL | Department | New Page</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.unl.edu/\" title=\"University of Nebraska–Lincoln\">UNL</a></li> <li>Department</li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $titlegraphic = "<h1>Department</h1>"; // string() - public $pagetitle = ""; // string() - public $maincontentarea = "<p>Place your content here.<br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://wdn.unl.edu//\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Check this page</a> </p>"; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3_Absolute',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3/Debug.php b/lib/php/UNL/Templates/Version3/Debug.php deleted file mode 100644 index 2a8e34e5fc5cc1cb04f80b35fc8567f7be41937c..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3/Debug.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php -/** - * Template Definition for debug.dwt - */ -require_once 'UNL/Templates.php'; - -class UNL_Templates_Version3_Debug extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Debug.tpl'; // template name - public $doctitle = "<title>UNL | Department | New Page</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.unl.edu/\" title=\"University of Nebraska–Lincoln\">UNL</a></li> <li>Department</li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $titlegraphic = "<h1>Department</h1>"; // string() - public $pagetitle = ""; // string() - public $maincontentarea = "<p>Place your content here.<br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://wdn.unl.edu//\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Check this page</a> </p>"; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3_Debug',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3/Document.php b/lib/php/UNL/Templates/Version3/Document.php deleted file mode 100644 index efc4581930ed56de0d311bd540605a7b33f2c57b..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3/Document.php +++ /dev/null @@ -1,46 +0,0 @@ -<?php -/** - * Template Definition for document.dwt - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates.php'; - -/** - * Template Definition for document.dwt - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -class UNL_Templates_Version3_Document extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Document.tpl'; // template name - public $doctitle = "<title>UNL | Department | New Page</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.unl.edu/\" title=\"University of Nebraska–Lincoln\">UNL</a></li> <li>Department</li> </ul>"; // string() - public $titlegraphic = "<h1>Department</h1>"; // string() - public $pagetitle = ""; // string() - public $maincontentarea = "<p>Place your content here.<br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://wdn.unl.edu//\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Check this page</a> </p>"; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3_Document',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3/Fixed.php b/lib/php/UNL/Templates/Version3/Fixed.php deleted file mode 100644 index 5f7a566d3233a80865ccb0a6557467a7d49e2076..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3/Fixed.php +++ /dev/null @@ -1,50 +0,0 @@ -<?php -/** - * Template Definition for fixed.dwt - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates.php'; - -/** - * Template Definition for fixed.dwt - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -class UNL_Templates_Version3_Fixed extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Fixed.tpl'; // template name - public $doctitle = "<title>UNL | Department | New Page</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.unl.edu/\" title=\"University of Nebraska–Lincoln\">UNL</a></li> <li>Department</li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $titlegraphic = "<h1>Department</h1>"; // string() - public $pagetitle = ""; // string() - public $maincontentarea = "<p>Place your content here.<br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://wdn.unl.edu//\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Check this page</a> </p>"; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3_Fixed',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3/Fixed_html5.php b/lib/php/UNL/Templates/Version3/Fixed_html5.php deleted file mode 100644 index 7e359fa6f5688543dd632245b82de3939860c462..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3/Fixed_html5.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php -/** - * Template Definition for fixed_html5.dwt - */ -require_once 'UNL/Templates.php'; - -class UNL_Templates_Version3_Fixed_html5 extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Fixed_html5.tpl'; // template name - public $doctitle = "<title>UNL | Department | New Page</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.unl.edu/\" title=\"University of Nebraska–Lincoln\">UNL</a></li> <li>Department</li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $titlegraphic = "<h1>Department</h1>"; // string() - public $pagetitle = ""; // string() - public $maincontentarea = "<p>Place your content here.<br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://wdn.unl.edu//\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Check this page</a> </p>"; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3_Fixed_html5',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3/Liquid.php b/lib/php/UNL/Templates/Version3/Liquid.php deleted file mode 100644 index 065d3fc61a53447e0a3f070d649c02501b4393a8..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3/Liquid.php +++ /dev/null @@ -1,50 +0,0 @@ -<?php -/** - * Template Definition for liquid.dwt - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates.php'; - -/** - * Template Definition for liquid.dwt - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -class UNL_Templates_Version3_Liquid extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Liquid.tpl'; // template name - public $doctitle = "<title>UNL | Department | New Page</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.unl.edu/\" title=\"University of Nebraska–Lincoln\">UNL</a></li> <li>Department</li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $titlegraphic = "<h1>Department</h1>"; // string() - public $pagetitle = ""; // string() - public $maincontentarea = "<p>Place your content here.<br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://wdn.unl.edu//\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Check this page</a> </p>"; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3_Liquid',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3/Mobile.php b/lib/php/UNL/Templates/Version3/Mobile.php deleted file mode 100644 index ce3a0f1e72978c1d12dd099f138ec5b9d7c59009..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3/Mobile.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php -/** - * Template Definition for mobile.dwt - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Kyle Powers <kylepowers@gmail.com> - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates.php'; - -class UNL_Templates_Version3_Mobile extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Mobile.tpl'; // template name - public $doctitle = "<title>UNL | Department | New Page</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.unl.edu/\" title=\"University of Nebraska–Lincoln\">UNL</a></li> <li>Department</li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $titlegraphic = "<h1>Department</h1>"; // string() - public $pagetitle = ""; // string() - public $maincontentarea = "<p>Place your content here.<br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://wdn.unl.edu//\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Check this page</a> </p>"; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3_Mobile',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3/Popup.php b/lib/php/UNL/Templates/Version3/Popup.php deleted file mode 100644 index f8a9cb83992e3ceaea7ae59654db7e5400944ccc..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3/Popup.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php -/** - * Template Definition for popup.dwt - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates.php'; - -/** - * Template Definition for popup.dwt - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -class UNL_Templates_Version3_Popup extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Popup.tpl'; // template name - public $doctitle = "<title>UNL | Department | New Page</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $titlegraphic = "<h1>Department</h1>"; // string() - public $pagetitle = ""; // string() - public $maincontentarea = "<p>Place your content here.<br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://wdn.unl.edu//\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Check this page</a> </p>"; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3_Popup',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3/Secure.php b/lib/php/UNL/Templates/Version3/Secure.php deleted file mode 100644 index 03d4f90baa59eca9fe9ee265ff2b2e82e8f79f03..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3/Secure.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php -/** - * Template Definition for secure.dwt - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates.php'; - -/** - * Template Definition for secure.dwt - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -class UNL_Templates_Version3_Secure extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Secure.tpl'; // template name - public $doctitle = "<title>UNL | Department | New Page</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.unl.edu/\" title=\"University of Nebraska–Lincoln\">UNL</a></li> <li>Department</li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $titlegraphic = "<h1>Department</h1>"; // string() - public $pagetitle = ""; // string() - public $maincontentarea = "<p>Place your content here.<br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://wdn.unl.edu//\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Check this page</a> </p>"; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3_Secure',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3/Shared_column_left.php b/lib/php/UNL/Templates/Version3/Shared_column_left.php deleted file mode 100644 index af770692bf5ba9437526c509758d6a044a3769db..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3/Shared_column_left.php +++ /dev/null @@ -1,51 +0,0 @@ -<?php -/** - * Template Definition for shared_column_left.dwt - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates.php'; - -/** - * Template definition for shared_column_left.dwt - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -class UNL_Templates_Version3_Shared_column_left extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Shared_column_left.tpl'; // template name - public $doctitle = "<title>UNL | Department | New Page</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.unl.edu/\" title=\"University of Nebraska–Lincoln\">UNL</a></li> <li>Department</li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $titlegraphic = "<h1>Department</h1>"; // string() - public $pagetitle = ""; // string() - public $sharedcolumn = "<div class=\"col left\"> <!--#include virtual=\"../sharedcode/sharedColumn.html\" --> </div>"; // string() - public $maincontentarea = "<p>Place your content here.<br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://wdn.unl.edu//\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Check this page</a> </p>"; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3_Shared_column_left',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3/Shared_column_right.php b/lib/php/UNL/Templates/Version3/Shared_column_right.php deleted file mode 100644 index 00247c20de1569557549fcca068d371f13d04b34..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3/Shared_column_right.php +++ /dev/null @@ -1,51 +0,0 @@ -<?php -/** - * Template Definition for shared_column_right.dwt - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates.php'; - -/** - * Template Definition for shared_column_right.dwt - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -class UNL_Templates_Version3_Shared_column_right extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Shared_column_right.tpl'; // template name - public $doctitle = "<title>UNL | Department | New Page</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.unl.edu/\" title=\"University of Nebraska–Lincoln\">UNL</a></li> <li>Department</li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $titlegraphic = "<h1>Department</h1>"; // string() - public $pagetitle = ""; // string() - public $maincontentarea = "<p>Place your content here.<br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://wdn.unl.edu//\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Check this page</a> </p>"; // string() - public $sharedcolumn = "<div class=\"col right\"> <!--#include virtual=\"../sharedcode/sharedColumn.html\" --> </div>"; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3_Shared_column_right',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3/Unlaffiliate.php b/lib/php/UNL/Templates/Version3/Unlaffiliate.php deleted file mode 100644 index c36dfc3516eedf64131da4c6da0aca5f9d97a610..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3/Unlaffiliate.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php -/** - * Template Definition for unlaffiliate.dwt - */ -require_once 'UNL/Templates.php'; - -class UNL_Templates_Version3_Unlaffiliate extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Unlaffiliate.tpl'; // template name - public $doctitle = "<title>UNL | Department | New Page</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $sitebranding = "<div id=\"affiliate_note\"><a href=\"http://www.unl.edu\" title=\"University of Nebraska–Lincoln\">An affiliate of the University of Nebraska–Lincoln</a></div> <a href=\"/\" title=\"Through the Eyes of the Child Initiative\"><img src=\"../sharedcode/affiliate_imgs/affiliate_logo.png\" alt=\"Through the Eyes of the Child Initiative\" id=\"logo\" /></a> <h1>Through the Eyes of the Child Initiative</h1> <div id=\'tag_line\'>A Nebraska Supreme Court Initiative</div>"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.unl.edu/\" title=\"University of Nebraska–Lincoln\">UNL</a></li> <li>Department</li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $titlegraphic = "<h1>Department</h1>"; // string() - public $pagetitle = ""; // string() - public $maincontentarea = "<p>Place your content here.<br /> Remember to validate your pages before publishing! Sample layouts are available through the <a href=\"http://wdn.unl.edu//\">Web Developer Network</a>. <br /> <a href=\"http://validator.unl.edu/check/referer\">Check this page</a> </p>"; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3_Unlaffiliate',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3x1.php b/lib/php/UNL/Templates/Version3x1.php deleted file mode 100644 index 3aacf6bc7f81e04f51be33ffdcd58a9ac165c46c..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3x1.php +++ /dev/null @@ -1,78 +0,0 @@ -<?php -/** - * Base class for Version 3 (2009) template files. - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates/Version.php'; - -/** - * Base class for Version 3 (2009) template files. - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -class UNL_Templates_Version3x1 implements UNL_Templates_Version -{ - function getConfig() - { - return array('class_location' => 'UNL/Templates/Version3x1/', - 'class_prefix' => 'UNL_Templates_Version3x1_'); - } - - function getTemplate($template) - { - if (!file_exists(UNL_Templates::$options['templatedependentspath'].'/wdn/templates_3.1')) { - UNL_Templates::debug('ERROR You should have a local copy of wdn/templates_3.1!' - . ' Overriding your specified template to use absolute references' , - 'getTemplate', 1); - $template = 'Local.tpl'; - } - - // Always try and retrieve the latest - if (!(UNL_Templates::getCachingService() instanceof UNL_Templates_CachingService_Null) - && $tpl = file_get_contents('http://pear.unl.edu/UNL/Templates/server.php?version=3x1&template='.$template)) { - return $tpl; - } - - if (file_exists(UNL_Templates::getDataDir().'/tpl_cache/Version3x1/'.$template)) { - return file_get_contents(UNL_Templates::getDataDir().'/tpl_cache/Version3x1/'.$template); - } - - throw new Exception('Could not get the template file!'); - } - - function makeIncludeReplacements($html) - { - UNL_Templates::debug('Now making template include replacements.', - 'makeIncludeReplacements', 3); - $includes = array(); - preg_match_all('<!--#include virtual="(/wdn/templates_3.1/[A-Za-z0-9\.\/_]+)" -->', - $html, $includes); - UNL_Templates::debug(print_r($includes, true), 'makeIncludeReplacements', 3); - foreach ($includes[1] as $include) { - UNL_Templates::debug('Replacing '.$include, 'makeIncludeReplacements', 3); - $file = UNL_Templates::$options['templatedependentspath'].$include; - if (!file_exists($file)) { - UNL_Templates::debug('File does not exist:'.$file, - 'makeIncludeReplacements', 3); - $file = 'http://www.unl.edu'.$include; - } - $html = str_replace('<!--#include virtual="'.$include.'" -->', - file_get_contents($file), $html); - } - return $html; - } -} diff --git a/lib/php/UNL/Templates/Version3x1/Debug.php b/lib/php/UNL/Templates/Version3x1/Debug.php deleted file mode 100644 index 03474443b3165ffee3ca8bb8e96e0891bbeea1a3..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3x1/Debug.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php -/** - * Template Definition for debug.dwt - */ -require_once 'UNL/Templates.php'; - -class UNL_Templates_Version3x1_Debug extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Debug.tpl'; // template name - public $doctitle = "<title>Use a descriptive page title | Optional Site Title (use for context) | University of Nebraska–Lincoln</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $titlegraphic = "The Title of My Site"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.unl.edu/\" title=\"University of Nebraska–Lincoln\">UNL</a></li> <li class=\"selected\"><a href=\"#\" title=\"Site Title\">Site Title</a></li> <li>Page Title</li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $pagetitle = "<h1>This is your page title. It\'s now an <h1>, baby!</h1>"; // string() - public $maincontentarea = "<h2>This is a blank page</h2> <p>Impress your audience with awesome content!</p>"; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - public $__params = array ( - 'class' => - array ( - 'name' => 'class', - 'type' => 'text', - 'value' => 'fixed debug', - ), -); - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3x1_Debug',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3x1/Fixed.php b/lib/php/UNL/Templates/Version3x1/Fixed.php deleted file mode 100644 index 792cb987e9155c93b2cfbe11f483e869314bc44e..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3x1/Fixed.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php -/** - * Template Definition for fixed.dwt - */ -require_once 'UNL/Templates.php'; - -class UNL_Templates_Version3x1_Fixed extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Fixed.tpl'; // template name - public $doctitle = "<title>Use a descriptive page title | Optional Site Title (use for context) | University of Nebraska–Lincoln</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $titlegraphic = "The Title of My Site"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.unl.edu/\" title=\"University of Nebraska–Lincoln\">UNL</a></li> <li class=\"selected\"><a href=\"#\" title=\"Site Title\">Site Title</a></li> <li>Page Title</li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $pagetitle = "<h1>This is your page title. It\'s now an <h1>, baby!</h1>"; // string() - public $maincontentarea = "<h2>This is a blank page</h2> <p>Impress your audience with awesome content!</p>"; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - public $__params = array ( - 'class' => - array ( - 'name' => 'class', - 'type' => 'text', - 'value' => 'fixed', - ), -); - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3x1_Fixed',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3x1/Local.php b/lib/php/UNL/Templates/Version3x1/Local.php deleted file mode 100644 index 77fed187638d0cf187efb1aa98cd9323926001f0..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3x1/Local.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php -/** - * Template Definition for local.dwt - */ -require_once 'UNL/Templates.php'; - -class UNL_Templates_Version3x1_Local extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Local.tpl'; // template name - public $doctitle = "<title>Use a descriptive page title | Optional Site Title (use for context) | University of Nebraska–Lincoln</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $titlegraphic = "The Title of My Site"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.unl.edu/\" title=\"University of Nebraska–Lincoln\">UNL</a></li> <li class=\"selected\"><a href=\"#\" title=\"Site Title\">Site Title</a></li> <li>Page Title</li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $pagetitle = "<h1>This is your page title. It\'s now an <h1>, baby!</h1>"; // string() - public $maincontentarea = "<h2>This is a blank page</h2> <p>Impress your audience with awesome content!</p>"; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - public $__params = array ( - 'class' => - array ( - 'name' => 'class', - 'type' => 'text', - 'value' => 'fixed', - ), -); - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3x1_Local',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3x1/Unlaffiliate.php b/lib/php/UNL/Templates/Version3x1/Unlaffiliate.php deleted file mode 100644 index 5eb78990d65075dcb5253a34d0796c51ed2a34a2..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3x1/Unlaffiliate.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php -/** - * Template Definition for unlaffiliate.dwt - */ -require_once 'UNL/Templates.php'; - -class UNL_Templates_Version3x1_Unlaffiliate extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Unlaffiliate.tpl'; // template name - public $doctitle = "<title>Use a descriptive page title | Optional Site Title (use for context) | UNL Affiliate</title>"; // string() - public $head = "<!-- Place optional header elements here --> <link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"../sharedcode/affiliate.css\" /> <link href=\"../sharedcode/affiliate_imgs/favicon.ico\" rel=\"shortcut icon\" />"; // string() - public $titlegraphic = "Throught the Eyes of a Child Initiative<span>A Nebraska Supreme Court Initiative</span>"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.throughtheeyes.org/\" title=\"Through the Eyes of the Child Initiative\">Home</a></li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $pagetitle = "<h1>This is your page title. It\'s now an <h1>, baby!</h1>"; // string() - public $maincontentarea = "<h2>This is a blank page</h2> <p>Impress your audience with awesome content!</p>"; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - public $__params = array ( - 'class' => - array ( - 'name' => 'class', - 'type' => 'text', - 'value' => 'fixed', - ), -); - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3x1_Unlaffiliate',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3x1/Unlaffiliate_debug.php b/lib/php/UNL/Templates/Version3x1/Unlaffiliate_debug.php deleted file mode 100644 index 1804ad91082a962072655a46da0684571168ee3b..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3x1/Unlaffiliate_debug.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php -/** - * Template Definition for unlaffiliate_debug.dwt - */ -require_once 'UNL/Templates.php'; - -class UNL_Templates_Version3x1_Unlaffiliate_debug extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Unlaffiliate_debug.tpl'; // template name - public $doctitle = "<title>Use a descriptive page title | Optional Site Title (use for context) | UNL Affiliate</title>"; // string() - public $head = "<!-- Place optional header elements here --> <link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"../sharedcode/affiliate.css\" /> <link href=\"../sharedcode/affiliate_imgs/favicon.ico\" rel=\"shortcut icon\" />"; // string() - public $titlegraphic = "Throught the Eyes of a Child Initiative<span>A Nebraska Supreme Court Initiative</span>"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.throughtheeyes.org/\" title=\"Through the Eyes of the Child Initiative\">Home</a></li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $pagetitle = "<h1>This is your page title. It\'s now an <h1>, baby!</h1>"; // string() - public $maincontentarea = "<h2>This is a blank page</h2> <p>Impress your audience with awesome content!</p>"; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - public $__params = array ( - 'class' => - array ( - 'name' => 'class', - 'type' => 'text', - 'value' => 'fixed debug', - ), -); - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3x1_Unlaffiliate_debug',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version3x1/Unlaffiliate_local.php b/lib/php/UNL/Templates/Version3x1/Unlaffiliate_local.php deleted file mode 100644 index 20511b9b85b7ade733efa8819731fb5767703fba..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version3x1/Unlaffiliate_local.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php -/** - * Template Definition for unlaffiliate_local.dwt - */ -require_once 'UNL/Templates.php'; - -class UNL_Templates_Version3x1_Unlaffiliate_local extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Unlaffiliate_local.tpl'; // template name - public $doctitle = "<title>Use a descriptive page title | Optional Site Title (use for context) | UNL Affiliate</title>"; // string() - public $head = "<!-- Place optional header elements here --> <link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"../sharedcode/affiliate.css\" /> <link href=\"../sharedcode/affiliate_imgs/favicon.ico\" rel=\"shortcut icon\" />"; // string() - public $titlegraphic = "Throught the Eyes of a Child Initiative<span>A Nebraska Supreme Court Initiative</span>"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.throughtheeyes.org/\" title=\"Through the Eyes of the Child Initiative\">Home</a></li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $pagetitle = "<h1>This is your page title. It\'s now an <h1>, baby!</h1>"; // string() - public $maincontentarea = "<h2>This is a blank page</h2> <p>Impress your audience with awesome content!</p>"; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $optionalfooter = ""; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - public $__params = array ( - 'class' => - array ( - 'name' => 'class', - 'type' => 'text', - 'value' => 'fixed', - ), -); - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version3x1_Unlaffiliate_local',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version4.php b/lib/php/UNL/Templates/Version4.php deleted file mode 100644 index a786fb22cb8053da6e2404fbc5b80df8fff670c5..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version4.php +++ /dev/null @@ -1,95 +0,0 @@ -<?php -/** - * Base class for Version 4 (2013) template files. - * - * PHP version 5 - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @author Ned Hummel <nhummel2@unl.edu> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -require_once 'UNL/Templates/Version.php'; - -/** - * Base class for Version 4 (2013) template files. - * - * @category Templates - * @package UNL_Templates - * @author Brett Bieber <brett.bieber@gmail.com> - * @copyright 2009 Regents of the University of Nebraska - * @license http://www1.unl.edu/wdn/wiki/Software_License BSD License - * @link http://pear.unl.edu/ - */ -class UNL_Templates_Version4 implements UNL_Templates_Version -{ - function getConfig() - { - return array('class_location' => 'UNL/Templates/Version4/', - 'class_prefix' => 'UNL_Templates_Version4_'); - } - - function getTemplate($template) - { - - // Set a timeout for the HTTP download of the template file - $http_context = stream_context_create(array('http' => array('timeout' => UNL_Templates::$options['timeout']))); - - // Always try and retrieve the latest - if (!(UNL_Templates::getCachingService() instanceof UNL_Templates_CachingService_Null) - && $tpl = file_get_contents('https://raw.github.com/unl/wdntemplates/master/Templates/'.$template, false, $http_context)) { - - // Grab the HTML version number for this file - $version = file_get_contents('https://raw.github.com/unl/wdntemplates/master/Templates/VERSION_HTML'); - $tpl = str_replace('$HTML_VERSION$', $version, $tpl); - - return $tpl; - } - - if (file_exists(UNL_Templates::getDataDir().'/tpl_cache/Version4/'.$template)) { - return file_get_contents(UNL_Templates::getDataDir().'/tpl_cache/Version4/'.$template); - } - - - throw new Exception('Could not get the template file!'); - } - - function makeIncludeReplacements($html) - { - UNL_Templates::debug('Now making template include replacements.', - 'makeIncludeReplacements', 3); - $includes = array(); - preg_match_all('<!--#include virtual="(/wdn/templates_4.0/[A-Za-z0-9\.\/_]+)" -->', - $html, $includes); - UNL_Templates::debug(print_r($includes, true), 'makeIncludeReplacements', 3); - - // Normally the templates will not need to have the dependency version replaced - static $dep_version = ''; - - foreach ($includes[1] as $include) { - UNL_Templates::debug('Replacing '.$include, 'makeIncludeReplacements', 3); - $file = UNL_Templates::$options['templatedependentspath'].$include; - if (!file_exists($file)) { - - UNL_Templates::debug('File does not exist:'.$file, 'makeIncludeReplacements', 3); - // We'll grab the latest copy of the file from Github - - if ($dep_version == '') { - // Grab the dependency version from github - $dep_version = file_get_contents('https://raw.github.com/unl/wdntemplates/master/VERSION_DEP'); - } - - $file = 'https://raw.github.com/unl/wdntemplates/master'.$include; - } - $html = str_replace( - array('<!--#include virtual="'.$include.'" -->', '$DEP_VERSION$'), - array(file_get_contents($file), $dep_version), - $html - ); - } - return $html; - } -} diff --git a/lib/php/UNL/Templates/Version4/Debug.php b/lib/php/UNL/Templates/Version4/Debug.php deleted file mode 100644 index 13954092d9072806cfcaa6d3aac7ab1ef115827b..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version4/Debug.php +++ /dev/null @@ -1,39 +0,0 @@ -<?php -/** - * Template Definition for fixed.dwt - */ -require_once 'UNL/Templates.php'; - -class UNL_Templates_Version4_Debug extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Debug.tpl'; // template name - public $doctitle = "<title>Use a descriptive page title | Optional Site Title (use for context) | University of Nebraska–Lincoln</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $titlegraphic = "The Title of My Site"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.unl.edu/\" title=\"University of Nebraska–Lincoln\" class=\"wdn-icon-home\">UNL</a></li> <li><a href=\"#\" title=\"Site Title\">Site Title</a></li> <li>Home</li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $pagetitle = "<h1>Please Title Your Page Here</h1>"; // string() - public $maincontentarea = "<div class=\"wdn-band\"> <div class=\"wdn-inner-wrapper\"> <p>Impress your audience with awesome content!</p> </div> </div>"; // string() - public $optionalfooter = ""; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - public $__params = array ( - 'class' => - array ( - 'name' => 'class', - 'type' => 'text', - 'value' => 'debug', - ), -); - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version4_Debug',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version4/Fixed.php b/lib/php/UNL/Templates/Version4/Fixed.php deleted file mode 100644 index 2d3af49030248875397b5f35871712620da7080b..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version4/Fixed.php +++ /dev/null @@ -1,39 +0,0 @@ -<?php -/** - * Template Definition for fixed.dwt - */ -require_once 'UNL/Templates.php'; - -class UNL_Templates_Version4_Fixed extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Fixed.tpl'; // template name - public $doctitle = "<title>Use a descriptive page title | Optional Site Title (use for context) | University of Nebraska–Lincoln</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $titlegraphic = "The Title of My Site"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.unl.edu/\" title=\"University of Nebraska–Lincoln\" class=\"wdn-icon-home\">UNL</a></li> <li><a href=\"#\" title=\"Site Title\">Site Title</a></li> <li>Home</li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $pagetitle = "<h1>Please Title Your Page Here</h1>"; // string() - public $maincontentarea = "<div class=\"wdn-band\"> <div class=\"wdn-inner-wrapper\"> <p>Impress your audience with awesome content!</p> </div> </div>"; // string() - public $optionalfooter = ""; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - public $__params = array ( - 'class' => - array ( - 'name' => 'class', - 'type' => 'text', - 'value' => '', - ), -); - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version4_Fixed',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version4/Local.php b/lib/php/UNL/Templates/Version4/Local.php deleted file mode 100644 index a40359852c8095b0e7a4a3220076b02fee96a89a..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version4/Local.php +++ /dev/null @@ -1,39 +0,0 @@ -<?php -/** - * Template Definition for local.dwt - */ -require_once 'UNL/Templates.php'; - -class UNL_Templates_Version4_Local extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Local.tpl'; // template name - public $doctitle = "<title>Use a descriptive page title | Optional Site Title (use for context) | University of Nebraska–Lincoln</title>"; // string() - public $head = "<!-- Place optional header elements here -->"; // string() - public $titlegraphic = "The Title of My Site"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.unl.edu/\" title=\"University of Nebraska–Lincoln\" class=\"wdn-icon-home\">UNL</a></li> <li><a href=\"#\" title=\"Site Title\">Site Title</a></li> <li>Home</li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $pagetitle = "<h1>Please Title Your Page Here</h1>"; // string() - public $maincontentarea = "<div class=\"wdn-band\"> <div class=\"wdn-inner-wrapper\"> <p>Impress your audience with awesome content!</p> </div> </div>"; // string() - public $optionalfooter = ""; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - public $__params = array ( - 'class' => - array ( - 'name' => 'class', - 'type' => 'text', - 'value' => '', - ), -); - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version4_Local',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version4/Unlaffiliate.php b/lib/php/UNL/Templates/Version4/Unlaffiliate.php deleted file mode 100644 index 7bf68c0325ffac40ca002edb9dcd12bbd0093688..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version4/Unlaffiliate.php +++ /dev/null @@ -1,39 +0,0 @@ -<?php -/** - * Template Definition for unlaffiliate.dwt - */ -require_once 'UNL/Templates.php'; - -class UNL_Templates_Version4_Unlaffiliate extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Unlaffiliate.tpl'; // template name - public $doctitle = "<title>Use a descriptive page title | Optional Site Title (use for context) | UNL Affiliate</title>"; // string() - public $head = "<!-- Place optional header elements here --> <link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"../sharedcode/affiliate.css\" /> <link href=\"../sharedcode/affiliate_imgs/favicon.ico\" rel=\"shortcut icon\" />"; // string() - public $titlegraphic = "The Title of My Site"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.throughtheeyes.org/\" title=\"Through the Eyes of the Child Initiative\">Home</a></li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $pagetitle = "<h1>Please Title Your Page Here</h1>"; // string() - public $maincontentarea = "<div class=\"wdn-band\"> <div class=\"wdn-inner-wrapper\"> <p>Impress your audience with awesome content!</p> </div> </div>"; // string() - public $optionalfooter = ""; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - public $__params = array ( - 'class' => - array ( - 'name' => 'class', - 'type' => 'text', - 'value' => '', - ), -); - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version4_Unlaffiliate',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version4/Unlaffiliate_debug.php b/lib/php/UNL/Templates/Version4/Unlaffiliate_debug.php deleted file mode 100644 index 9905d431c90a7434ec0a5c65b3ca0c6b50854d86..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version4/Unlaffiliate_debug.php +++ /dev/null @@ -1,39 +0,0 @@ -<?php -/** - * Template Definition for unlaffiliate_debug.dwt - */ -require_once 'UNL/Templates.php'; - -class UNL_Templates_Version4_Unlaffiliate_debug extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Unlaffiliate_debug.tpl'; // template name - public $doctitle = "<title>Use a descriptive page title | Optional Site Title (use for context) | UNL Affiliate</title>"; // string() - public $head = "<!-- Place optional header elements here --> <link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"../sharedcode/affiliate.css\" /> <link href=\"../sharedcode/affiliate_imgs/favicon.ico\" rel=\"shortcut icon\" />"; // string() - public $titlegraphic = "The Title of My Site"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.throughtheeyes.org/\" title=\"Through the Eyes of the Child Initiative\">Home</a></li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $pagetitle = "<h1>Please Title Your Page Here</h1>"; // string() - public $maincontentarea = "<div class=\"wdn-band\"> <div class=\"wdn-inner-wrapper\"> <p>Impress your audience with awesome content!</p> </div> </div>"; // string() - public $optionalfooter = ""; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - public $__params = array ( - 'class' => - array ( - 'name' => 'class', - 'type' => 'text', - 'value' => 'debug', - ), -); - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version4_Unlaffiliate_debug',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/lib/php/UNL/Templates/Version4/Unlaffiliate_local.php b/lib/php/UNL/Templates/Version4/Unlaffiliate_local.php deleted file mode 100644 index 13681f492778e8db79f604babd39f5270f5e37c0..0000000000000000000000000000000000000000 --- a/lib/php/UNL/Templates/Version4/Unlaffiliate_local.php +++ /dev/null @@ -1,39 +0,0 @@ -<?php -/** - * Template Definition for unlaffiliate_local.dwt - */ -require_once 'UNL/Templates.php'; - -class UNL_Templates_Version4_Unlaffiliate_local extends UNL_Templates -{ - ###START_AUTOCODE - /* the code below is auto generated do not remove the above tag */ - - public $__template = 'Unlaffiliate_local.tpl'; // template name - public $doctitle = "<title>Use a descriptive page title | Optional Site Title (use for context) | UNL Affiliate</title>"; // string() - public $head = "<!-- Place optional header elements here --> <link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"../sharedcode/affiliate.css\" /> <link href=\"../sharedcode/affiliate_imgs/favicon.ico\" rel=\"shortcut icon\" />"; // string() - public $titlegraphic = "The Title of My Site"; // string() - public $breadcrumbs = "<ul> <li><a href=\"http://www.throughtheeyes.org/\" title=\"Through the Eyes of the Child Initiative\">Home</a></li> </ul>"; // string() - public $navlinks = "<!--#include virtual=\"../sharedcode/navigation.html\" -->"; // string() - public $pagetitle = "<h1>Please Title Your Page Here</h1>"; // string() - public $maincontentarea = "<div class=\"wdn-band\"> <div class=\"wdn-inner-wrapper\"> <p>Impress your audience with awesome content!</p> </div> </div>"; // string() - public $optionalfooter = ""; // string() - public $leftcollinks = "<!--#include virtual=\"../sharedcode/relatedLinks.html\" -->"; // string() - public $contactinfo = "<!--#include virtual=\"../sharedcode/footerContactInfo.html\" -->"; // string() - public $footercontent = "<!--#include virtual=\"../sharedcode/footer.html\" -->"; // string() - - public $__params = array ( - 'class' => - array ( - 'name' => 'class', - 'type' => 'text', - 'value' => '', - ), -); - - /* Static get */ - function staticGet($k,$v=NULL) { return UNL_DWT::staticGet('UNL_Templates_Version4_Unlaffiliate_local',$k,$v); } - - /* the code above is auto generated do not remove the tag below */ - ###END_AUTOCODE -} diff --git a/src/UNL/Search.php b/src/UNL/Search.php index 1f718e6c1ce6da30afb6cbc6038e9286927fe421..2f71e7bbebca7c2e8fc66c8375d8aaea112f15a4 100644 --- a/src/UNL/Search.php +++ b/src/UNL/Search.php @@ -74,7 +74,7 @@ class UNL_Search return false; } - return new UNL_Templates_Scanner($scanned); + return new \UNL\Templates\Scanner($scanned); } /**