diff --git a/themes/blueprint/templates/layout/layout.phtml b/themes/blueprint/templates/layout/layout.phtml index 89cc15048506c65a52b37d1b5c1d179664b21b74..35d26033449d6bc29f189e694b71ff2821ee1da0 100644 --- a/themes/blueprint/templates/layout/layout.phtml +++ b/themes/blueprint/templates/layout/layout.phtml @@ -23,11 +23,11 @@ // Deal with cart stuff: $cart = $this->cart(); + $script = 'var vufindString = {};'; if ($cart->isActive()) { $this->headScript()->appendFile("jquery.cookie.js"); $this->headScript()->appendFile("cart.js"); - $script = 'var vufindString = {};' - . 'vufindString.bulk_noitems_advice = "' . $this->transEsc('bulk_noitems_advice') . '";' + $script .= 'vufindString.bulk_noitems_advice = "' . $this->transEsc('bulk_noitems_advice') . '";' . 'vufindString.confirmEmpty = "' . $this->transEsc('bookbag_confirm_empty') . '";' . 'vufindString.viewBookBag = "' . $this->transEsc('View Book Bag') . '";' . 'vufindString.addBookBag = "' . $this->transEsc('Add to Book Bag') . '";' @@ -37,8 +37,8 @@ . 'vufindString.bookbagMax = "' . $cart->getMaxSize() . '";' . 'vufindString.bookbagFull = "' . $this->transEsc('bookbag_full_msg') . '";' . 'vufindString.bookbagStatusFull = "' . $this->transEsc('bookbag_full') . '";'; - $this->headScript()->appendScript($script); } + $this->headScript()->appendScript($script); ?> <?=$this->headScript()?> </head>