| Zeile 205... |
Zeile 205... |
| 205 |
$items = Item::with( 'price' )->with( 'medium.medium' )->where( "directory_id", $dirId )->where( 'status', '=', 0 )->get();
|
205 |
$items = Item::with( 'price' )->with( 'medium.medium' )->where( "directory_id", $dirId )->where( 'status', '=', 0 )->get();
|
| 206 |
$subdir = Directory::with( 'medium.medium', 'template.template' )->find( $dirId );
|
206 |
$subdir = Directory::with( 'medium.medium', 'template.template' )->find( $dirId );
|
| 207 |
$subdir["subdirs"] = $dirs;
|
207 |
$subdir["subdirs"] = $dirs;
|
| 208 |
$subdir["items"] = $items;
|
208 |
$subdir["items"] = $items;
|
| 209 |
$template = 'subdir';
|
209 |
$template = 'subdir';
|
| - |
|
210 |
$artstaemmeItems = array();
|
| 210 |
if ( is_countable( $subdir->template ) && isset( $subdir->template[0] ) )
|
211 |
if ( is_countable( $subdir->template ) && isset( $subdir->template[0] ) )
|
| 211 |
{
|
212 |
{
|
| 212 |
$template = substr( $subdir->temmplate[0]->template->template_value, strpos( "$subdir->temmplate[0]->template->template_value", "=" ) + 1 );
|
213 |
$template = substr( $subdir->temmplate[0]->template->template_value, strpos( "$subdir->temmplate[0]->template->template_value", "=" ) + 1 );
|
| - |
|
214 |
foreach ( $dirs as $dir )
|
| - |
|
215 |
{
|
| - |
|
216 |
if ( $dir->articlemaster == 1 )
|
| - |
|
217 |
{
|
| - |
|
218 |
$artstaemmeItems[$dir->id] = Item::with( 'medium.medium', 'price' )->where( 'directory_id', '=', $dir->id )->where( 'status', '=', 0 )->get();
|
| - |
|
219 |
}
|
| - |
|
220 |
}
|
| 213 |
}
|
221 |
}
|
| 214 |
return view( $template, [
|
222 |
return view( $template, [
|
| 215 |
"serviceCenterMenu" => $GLOBALS["serviceCenterMenu"],
|
223 |
"serviceCenterMenu" => $GLOBALS["serviceCenterMenu"],
|
| 216 |
"subdir" => $subdir,
|
224 |
"subdir" => $subdir,
|
| 217 |
"nav" => $GLOBALS["menu"],
|
225 |
"nav" => $GLOBALS["menu"],
|
| 218 |
"ini" => $GLOBALS["INI"],
|
226 |
"ini" => $GLOBALS["INI"],
|
| 219 |
"langstrings" => $GLOBALS["langstrings"],
|
227 |
"langstrings" => $GLOBALS["langstrings"],
|
| - |
|
228 |
"artstaemmeItems" => $artstaemmeItems,
|
| 220 |
] );
|
229 |
] );
|
| 221 |
} );
|
230 |
} );
|
| 222 |
Route::get( "{item:slug}.html", function ( Item $item )
|
231 |
Route::get( "{item:slug}.html", function ( Item $item )
|
| 223 |
{
|
232 |
{
|
| 224 |
$item->load( 'price', 'medium.medium' );
|
233 |
$item->load( 'price', 'medium.medium' );
|