| @@ 81-90 (lines=10) @@ | ||
| 78 | }  | 
                                |
| 79 | }  | 
                                |
| 80 | ||
| 81 | public function resolveViewer()  | 
                                |
| 82 |     { | 
                                |
| 83 |         if ($this->viewer !== 'inherit') { | 
                                |
| 84 | return $this->viewer;  | 
                                |
| 85 |         } elseif ($this->viewer == 'inherit' && $this->category) { | 
                                |
| 86 | return $this->category->resolveViewer(true);  | 
                                |
| 87 |         } else { | 
                                |
| 88 | return (!empty(App::$cur->ecommerce->config['defaultCategoryView']) ? App::$cur->ecommerce->config['defaultCategoryView'] : 'itemList');  | 
                                |
| 89 | }  | 
                                |
| 90 | }  | 
                                |
| 91 | ||
| 92 | }  | 
                                |
| 93 | ||
| @@ 142-151 (lines=10) @@ | ||
| 139 | }  | 
                                |
| 140 | }  | 
                                |
| 141 | ||
| 142 |   public function resolveViewer() { | 
                                |
| 143 |     if ($this->viewer !== 'inherit') { | 
                                |
| 144 | return $this->viewer;  | 
                                |
| 145 |     } elseif ($this->viewer == 'inherit' && $this->category) { | 
                                |
| 146 | return $this->category->resolveViewer(true);  | 
                                |
| 147 |     } else { | 
                                |
| 148 | return (!empty(\App::$cur->ecommerce->config['defaultCategoryView']) ? \App::$cur->ecommerce->config['defaultCategoryView'] : 'itemList');  | 
                                |
| 149 | }  | 
                                |
| 150 | }  | 
                                |
| 151 | ||
| 152 | }  | 
                                |
| 153 | ||
| @@ 132-140 (lines=9) @@ | ||
| 129 | }  | 
                                |
| 130 | }  | 
                                |
| 131 | ||
| 132 |   public function resolveTemplate() { | 
                                |
| 133 |     if ($this->template !== 'inherit') { | 
                                |
| 134 | return $this->template;  | 
                                |
| 135 |     } elseif ($this->template == 'inherit' && $this->category) { | 
                                |
| 136 | return $this->category->resolveTemplate(true);  | 
                                |
| 137 |     } else { | 
                                |
| 138 | return (!empty(\App::$cur->ecommerce->config['defaultCategoryTemplate']) ? \App::$cur->ecommerce->config['defaultCategoryTemplate'] : 'current');  | 
                                |
| 139 | }  | 
                                |
| 140 | }  | 
                                |
| 141 | ||
| 142 |   public function resolveViewer() { | 
                                |
| 143 |     if ($this->viewer !== 'inherit') { | 
                                |