@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | { |
| 26 | 26 | $shop = $this->getShop(); |
| 27 | 27 | |
| 28 | - $this->document->setTitle('Basket evaluation for' . ' ' . $shop->name); |
|
| 28 | + $this->document->setTitle('Basket evaluation for'.' '.$shop->name); |
|
| 29 | 29 | $this->document->options = array($this->url('../') => 'Close'); |
| 30 | 30 | |
| 31 | 31 | $basketevaluation = new Intraface_modules_shop_BasketEvaluation($this->mdb2, $this->getKernel()->intranet, $shop); |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | $data = array('shop' => $shop, 'evaluations' => $evaluations); |
| 35 | 35 | |
| 36 | - $tpl = $this->template->create(dirname(__FILE__) . '/../tpl/evaluation-index'); |
|
| 36 | + $tpl = $this->template->create(dirname(__FILE__).'/../tpl/evaluation-index'); |
|
| 37 | 37 | return $tpl->render($this, $data); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | { |
| 22 | 22 | $this->document->setTitle($this->getModel()->getName()); |
| 23 | 23 | |
| 24 | - $tpl = $this->template->create(dirname(__FILE__) . '/../tpl/category'); |
|
| 24 | + $tpl = $this->template->create(dirname(__FILE__).'/../tpl/category'); |
|
| 25 | 25 | return $tpl->render($this); |
| 26 | 26 | } |
| 27 | 27 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | 'category_object' => $this->getModel(), |
| 35 | 35 | 'regret_link' => $redirect->getRedirect($this->url('../')) |
| 36 | 36 | ); |
| 37 | - $tpl = $this->template->create(dirname(__FILE__) . '/../tpl/categories-edit'); |
|
| 37 | + $tpl = $this->template->create(dirname(__FILE__).'/../tpl/categories-edit'); |
|
| 38 | 38 | return $tpl->render($this, $data); |
| 39 | 39 | } |
| 40 | 40 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | 'category_object' => $this->getModel(), |
| 42 | 42 | 'regret_link' => $redirect->getRedirect($this->url('../')) |
| 43 | 43 | ); |
| 44 | - $tpl = $this->template->create(dirname(__FILE__) . '/../tpl/categories-edit'); |
|
| 44 | + $tpl = $this->template->create(dirname(__FILE__).'/../tpl/categories-edit'); |
|
| 45 | 45 | return $tpl->render($this, $data); |
| 46 | 46 | } |
| 47 | 47 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | $data = array('shop' => $shop, 'evaluations' => $evaluations); |
| 46 | 46 | |
| 47 | - $tpl = $this->template->create(dirname(__FILE__) . '/tpl/show'); |
|
| 47 | + $tpl = $this->template->create(dirname(__FILE__).'/tpl/show'); |
|
| 48 | 48 | return $tpl->render($this, $data); |
| 49 | 49 | } |
| 50 | 50 | |
@@ -85,8 +85,8 @@ discard block |
||
| 85 | 85 | 'settings' => $settings, |
| 86 | 86 | 'currencies' => $currencies, |
| 87 | 87 | 'languages' => $langs); |
| 88 | - $tpl = $this->template->create(dirname(__FILE__) . '/tpl/edit'); |
|
| 89 | - return $this->getError()->view() . $tpl->render($this, $data); |
|
| 88 | + $tpl = $this->template->create(dirname(__FILE__).'/tpl/edit'); |
|
| 89 | + return $this->getError()->view().$tpl->render($this, $data); |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | function postForm() |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | if (!is_null($options)) { |
| 28 | 28 | $config = HTMLPurifier_Config::createDefault(); |
| 29 | 29 | foreach ($options as $option) { |
| 30 | - $config->set($option[0] . '.' . $option[1], $option[2]); |
|
| 30 | + $config->set($option[0].'.'.$option[1], $option[2]); |
|
| 31 | 31 | } |
| 32 | 32 | } |
| 33 | 33 | $this->_htmlPurifier = new HTMLPurifier($config); |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | { |
| 47 | 47 | $options = array( |
| 48 | 48 | array('Cache', 'SerializerPath', |
| 49 | - PATH_CACHE . '/htmlpurifier' |
|
| 49 | + PATH_CACHE.'/htmlpurifier' |
|
| 50 | 50 | ), |
| 51 | 51 | //array('HTML', 'Doctype', 'XHTML 1.0 Strict'), |
| 52 | 52 | array('HTML', 'Allowed', |
@@ -151,12 +151,12 @@ discard block |
||
| 151 | 151 | $shops = Doctrine::getTable('Intraface_modules_shop_Shop')->findByIntranetId($this->getKernel()->intranet->getId()); |
| 152 | 152 | |
| 153 | 153 | if (count($shops) == 0) { |
| 154 | - $tpl = $this->template->create(dirname(__FILE__) . '/tpl/empty-table'); |
|
| 154 | + $tpl = $this->template->create(dirname(__FILE__).'/tpl/empty-table'); |
|
| 155 | 155 | return $tpl->render($this, array('message' => 'No shops has been created yet.')); |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | $data = array('shops' => $shops); |
| 159 | - $tpl = $this->template->create(dirname(__FILE__) . '/tpl/shops'); |
|
| 159 | + $tpl = $this->template->create(dirname(__FILE__).'/tpl/shops'); |
|
| 160 | 160 | return $tpl->render($this, $data); |
| 161 | 161 | } |
| 162 | 162 | |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | if (!$this->isValid()) { |
| 170 | 170 | $data = $this->body(); |
| 171 | 171 | } else { |
| 172 | - $data['receipt'] = $this->getKernel()->setting->get('intranet','webshop.webshop_receipt'); |
|
| 172 | + $data['receipt'] = $this->getKernel()->setting->get('intranet', 'webshop.webshop_receipt'); |
|
| 173 | 173 | } |
| 174 | 174 | |
| 175 | 175 | if ($this->getKernel()->intranet->hasModuleAccess('currency')) { |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | 'settings' => $settings, |
| 195 | 195 | 'currencies' => $currencies, |
| 196 | 196 | 'languages' => $langs); |
| 197 | - $tpl = $this->template->create(dirname(__FILE__) . '/tpl/edit'); |
|
| 197 | + $tpl = $this->template->create(dirname(__FILE__).'/tpl/edit'); |
|
| 198 | 198 | return $tpl->render($this, $data); |
| 199 | 199 | } |
| 200 | 200 | |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | |
| 245 | 245 | function wrapHtml($content) |
| 246 | 246 | { |
| 247 | - $tpl = $this->template->create(dirname(__FILE__) . '/tpl/content'); |
|
| 247 | + $tpl = $this->template->create(dirname(__FILE__).'/tpl/content'); |
|
| 248 | 248 | return $tpl->render($this, array('content' => $content)); |
| 249 | 249 | } |
| 250 | 250 | |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | 'kernel' => $this->getKernel(), |
| 43 | 43 | 'keywords' => $keywords); |
| 44 | 44 | |
| 45 | - $tpl = $this->template->create(dirname(__FILE__) . '/tpl/featuredproducts'); |
|
| 45 | + $tpl = $this->template->create(dirname(__FILE__).'/tpl/featuredproducts'); |
|
| 46 | 46 | return $tpl->render($this, $data); |
| 47 | 47 | } |
| 48 | 48 | |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | { |
| 13 | 13 | $shop = Doctrine::getTable('Intraface_modules_shop_Shop')->find($this->getShopId()); |
| 14 | 14 | |
| 15 | - $this->document->setTitle('Payment methods for') . ' ' . $shop->name; |
|
| 15 | + $this->document->setTitle('Payment methods for').' '.$shop->name; |
|
| 16 | 16 | |
| 17 | 17 | $this->document->options = array($this->url('../') => 'Close'); |
| 18 | 18 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | $chosen = $this->getPaymentMethodsForShop(); |
| 23 | 23 | |
| 24 | 24 | $data = array('shop' => $shop, 'methods' => $methods, 'chosen' => $chosen); |
| 25 | - $tpl = $this->template->create(dirname(__FILE__) . '/../tpl/paymentmethods-index'); |
|
| 25 | + $tpl = $this->template->create(dirname(__FILE__).'/../tpl/paymentmethods-index'); |
|
| 26 | 26 | return $tpl->render($this, $data); |
| 27 | 27 | } |
| 28 | 28 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | $shop_gateway = $this->getShopGateway(); |
| 29 | 29 | $shop = $shop_gateway->findById($this->context->name()); |
| 30 | 30 | |
| 31 | - $this->document->setTitle('Categories for shop' . $shop->getName()); |
|
| 31 | + $this->document->setTitle('Categories for shop'.$shop->getName()); |
|
| 32 | 32 | $this->document->options = array( |
| 33 | 33 | $redirect->getRedirect($this->url('../')) => 'Close', $this->url('create') => 'Add new category' |
| 34 | 34 | ); |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | ); |
| 31 | 31 | |
| 32 | 32 | $this->hasOne('Intraface_modules_product_Variation_X_Attribute as variation_x_attribute', |
| 33 | - array( 'local' => 'id','foreign' => 'product_attribute_id') |
|
| 33 | + array('local' => 'id', 'foreign' => 'product_attribute_id') |
|
| 34 | 34 | ); |
| 35 | 35 | } |
| 36 | 36 | |