| @@ 40-60 (lines=21) @@ | ||
| 37 | ||
| 38 | class BlockController extends AbstractController |
|
| 39 | { |
|
| 40 | public function index(Application $app, Request $request) |
|
| 41 | { |
|
| 42 | $DeviceType = $app['eccube.repository.master.device_type'] |
|
| 43 | ->find(DeviceType::DEVICE_TYPE_PC); |
|
| 44 | ||
| 45 | // 登録されているブロック一覧の取得 |
|
| 46 | $Blocks = $app['eccube.repository.block']->getList($DeviceType); |
|
| 47 | ||
| 48 | $event = new EventArgs( |
|
| 49 | array( |
|
| 50 | 'DeviceType' => $DeviceType, |
|
| 51 | 'Blocks' => $Blocks, |
|
| 52 | ), |
|
| 53 | $request |
|
| 54 | ); |
|
| 55 | $app['eccube.event.dispatcher']->dispatch(EccubeEvents::ADMIN_CONTENT_BLOCK_INDEX_COMPLETE, $event); |
|
| 56 | ||
| 57 | return $app->render('Content/block.twig', array( |
|
| 58 | 'Blocks' => $Blocks, |
|
| 59 | )); |
|
| 60 | } |
|
| 61 | ||
| 62 | public function edit(Application $app, Request $request, $id = null) |
|
| 63 | { |
|
| @@ 40-59 (lines=20) @@ | ||
| 37 | ||
| 38 | class PageController extends AbstractController |
|
| 39 | { |
|
| 40 | public function index(Application $app, Request $request) |
|
| 41 | { |
|
| 42 | $DeviceType = $app['eccube.repository.master.device_type'] |
|
| 43 | ->find(DeviceType::DEVICE_TYPE_PC); |
|
| 44 | ||
| 45 | $PageLayouts = $app['eccube.repository.page_layout']->getPageList($DeviceType); |
|
| 46 | ||
| 47 | $event = new EventArgs( |
|
| 48 | array( |
|
| 49 | 'DeviceType' => $DeviceType, |
|
| 50 | 'PageLayouts' => $PageLayouts, |
|
| 51 | ), |
|
| 52 | $request |
|
| 53 | ); |
|
| 54 | $app['eccube.event.dispatcher']->dispatch(EccubeEvents::ADMIN_CONTENT_PAGE_INDEX_COMPLETE, $event); |
|
| 55 | ||
| 56 | return $app->render('Content/page.twig', array( |
|
| 57 | 'PageLayouts' => $PageLayouts, |
|
| 58 | )); |
|
| 59 | } |
|
| 60 | ||
| 61 | public function edit(Application $app, Request $request, $id = null) |
|
| 62 | { |
|