From dda5ba6e8f47abc23e6eba4aa42c4bd03c5e1ac8 Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Mon, 7 Dec 2009 23:46:13 +0000 Subject: [PATCH] Add jQuery library to the default layout. --- application/modules/default/views/scripts/layout.phtml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/modules/default/views/scripts/layout.phtml b/application/modules/default/views/scripts/layout.phtml index 8a6ec46a..08fec116 100644 --- a/application/modules/default/views/scripts/layout.phtml +++ b/application/modules/default/views/scripts/layout.phtml @@ -12,7 +12,8 @@ $staticBaseUrl .= $_SERVER['HTTP_HOST'] $this->headLink()->appendStylesheet($this->baseUrl() . '/css/index.css', 'all'); $this->headLink()->appendStylesheet($this->baseUrl() . '/css/print.css', 'print'); $this->headScript()->prependFile($this->baseUrl() . '/javascript/index.js'); -$this->headScript()->prependFile($this->baseUrl() . '/yui/yuiloader/yuiloader-min.js'); +$this->headScript()->prependFile('http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js'); +$this->headScript()->prependFile('http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'); $this->headLink(array('rel' => 'home', 'href' => $staticBaseUrl, @@ -44,7 +45,7 @@ $template->maincontentarea = '<div id="creqMain">' . "\n" . '</div>' . "\n"; $template->doctitle = '<title>' . $this->layout()->title . ': ' . $this->layout()->tagline . '</title>'; -$template->head .= "\n" . $this->headLink()->__toString() +$template->head .= "\n" . $this->headLink()->__toString() . "\n" . $this->headMeta()->__toString() . "\n" . $this->headScript()->__toString() . "\n" . $this->headStyle()->__toString(); @@ -81,7 +82,7 @@ EOF; $template->contactinfo = <<<EOF <h3>Contacting Us</h3> <p> - <strong>Office of Undergraduate Studies</strong><br /> + <strong>Office of Undergraduate Studies</strong><br /> 201 Seaton Hall<br /> Lincoln NE 68583-0683<br /> (402) 472-1185<br /> -- GitLab