Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1582 | Revision 1604 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1582 Revision 1586
Zeile 191... Zeile 191...
191
            }
191
            }
192
        }
192
        }
193
        return $ini;
193
        return $ini;
194
    }
194
    }
Zeile -... Zeile 195...
-
 
195
 
-
 
196
    if ( !isset( $_SESSION["navigation"]["position"] ) )
-
 
197
    {
-
 
198
        $_SESSION["navigation"]["position"] = null;
195
 
199
    }
196
    $nav = new Directory();
200
    $nav = new Directory();
197
    $menu = $nav->nav_menu();
201
    $menu = $nav->nav_menu();
198
    $shopPosition = $nav->shopPosition();
202
    $shopPosition = $nav->shopPosition();
199
    $sc = parseCMSPage( $GLOBALS["INI"]["typo3"]["url"] . "/typo3/" );
203
    $sc = parseCMSPage( $GLOBALS["INI"]["typo3"]["url"] . "/typo3/" );
Zeile 333... Zeile 337...
333
        ] );
337
        ] );
334
    } );
338
    } );
335
    Route::get( "/directory/{id}", function ( $id )
339
    Route::get( "/directory/{id}", function ( $id )
336
    {
340
    {
337
        list( $dirId, $dirName ) = explode( "-", $id, 2 );
341
        list( $dirId, $dirName ) = explode( "-", $id, 2 );
-
 
342
        $_SESSION["navigation"]["position"] = $dirId;
338
        $dirs = Directory::with( 'medium.medium' )->where( "directory_id", $dirId )->whereIn( 'status', [
343
        $dirs = Directory::with( 'medium.medium' )->where( "directory_id", $dirId )->whereIn( 'status', [
339
            0,
344
            0,
340
            99
345
            99
341
        ] )->orderBy( 'kennung' )->orderBy( 'name' )->get();
346
        ] )->orderBy( 'kennung' )->orderBy( 'name' )->get();
342
        $items = Item::with( 'price', 'medium.medium', 'manufacturer' )->where( "directory_id", $dirId )->where( 'status', '=', 0 )->get();
347
        $items = Item::with( 'price', 'medium.medium', 'manufacturer' )->where( "directory_id", $dirId )->where( 'status', '=', 0 )->get();