Skip to content
Snippets Groups Projects

Support WDN templates 5.2

Merged Jeff Sturek requested to merge JSTUREK8/PlanetRed:support-5.2 into develop
3 files
+ 10
10
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -21,10 +21,10 @@ if (isset($vars['body_attrs'])) {
use UNL\Templates\Templates;
$unl_template = Templates::factory('Local', Templates::VERSION_5_1);
$unl_template = Templates::factory('Local', Templates::VERSION_5_2);
$wdn_include_path = elgg_get_root_path();
if (file_exists($wdn_include_path . '/wdn/templates_5.1')) {
if (file_exists($wdn_include_path . '/wdn/templates_5.2')) {
$unl_template->setLocalIncludePath($wdn_include_path);
}
@@ -38,7 +38,7 @@ $unl_template->titlegraphic = '<a class="dcf-txt-h5" href="' . elgg_get_site_url
$unl_template->pagetitle ="";
$unl_template->doctitle ="<title>UNL | Planet Red | ".$vars["title"]." </title>";
$unl_template->affiliation ="";
$unl_template->head .= '<link rel="preload" href="/wdn/templates_5.1/css/deprecated.css" as="style" onload="this.onload=null;this.rel=\'stylesheet\'"> <noscript><link rel="stylesheet" href="/wdn/templates_5.1/css/deprecated.css"></noscript>';
$unl_template->head .= '<link rel="preload" href="/wdn/templates_5.2/css/deprecated.css" as="style" onload="this.onload=null;this.rel=\'stylesheet\'"> <noscript><link rel="stylesheet" href="/wdn/templates_5.2/css/deprecated.css"></noscript>';
$unl_template->head .= $vars['head'];
$unl_template->jsbody = '<script src="' . elgg_get_site_url() . 'mod/unl_theme/js/planetred.js"></script>';
Loading