shoppingmallv2 init...
This commit is contained in:
parent
e4b2bb4a46
commit
b595839bed
@ -240,6 +240,20 @@ define('CLASS_ICONS', [
|
||||
'CARD' => '<i class="bi bi-credit-card"></i>',
|
||||
'DEPOSIT' => '<i class="bi bi-piggy-bank"></i>',
|
||||
]);
|
||||
define('CLASS_TOP_BANNER', [
|
||||
'USER' => '<img src="/images/banner/sub_visual1.jpg"/>',
|
||||
'USERSNS' => '<img src="/images/banner/sub_visual2.jpg"/>',
|
||||
'BOARD' => '<img src="/images/banner/sub_visual3.jpg"/>',
|
||||
'SITEPAGE' => '<img src="/images/banner/sub_visual4.jpg"/>',
|
||||
'CATEGORY' => '<img src="/images/banner/sub_visual1.jpg"/>',
|
||||
'PRODUCT' => '<img src="/images/banner/sub_visual2.jpg"/>',
|
||||
'ORDER' => '<img src="/images/banner/sub_visual3.jpg"/>',
|
||||
'PAYMENT' => '<img src="/images/banner/sub_visual4.jpg"/>',
|
||||
'ECOMMERCE' => '<img src="/images/banner/sub_visual1.jpg"/>',
|
||||
'CART' => '<img src="/images/banner/sub_visual2.jpg"/>',
|
||||
'CARD' => '<img src="/images/banner/sub_visual3.jpg"/>',
|
||||
'DEPOSIT' => '<img src="/images/banner/sub_visual4.jpg"/>',
|
||||
]);
|
||||
define('AUDIOS', [
|
||||
'Alram_GetEmail' => '<object width=0 height=0 data="/sound/jarvis_email.mp3" type="audio/mpeg"></object>',
|
||||
]);
|
||||
|
||||
@ -30,7 +30,7 @@ abstract class FrontController extends BaseController
|
||||
{
|
||||
$this->_category ?: throw new \Exception("분류를 지정하지 않으셨습니다.");
|
||||
$this->_viewDatas['category'] = $this->getCategoryModel()->getEntity([$this->getCategoryModel()->getPrimaryKey() => $this->_category]);
|
||||
$this->_viewDatas['parent_category'] = $this->getCategoryModel()->getEntity([$this->getCategoryModel()->getPrimaryKey() => $this->_viewDatas['category']->getHierarchy_ParentUID()]);
|
||||
// $this->_viewDatas['parent_category'] = $this->getCategoryModel()->getEntity([$this->getCategoryModel()->getPrimaryKey() => $this->_viewDatas['category']->getHierarchy_ParentUID()]);
|
||||
switch ($action) {
|
||||
case 'insert':
|
||||
$category_field = CATEGORY_ROLE_FIELDS['WRITE'];
|
||||
|
||||
@ -33,9 +33,7 @@
|
||||
<div id="head">
|
||||
<?= $this->include($viewDatas['layout']['path'] . '/top_navigator'); ?>
|
||||
<?= $this->include($viewDatas['layout']['path'] . '/top_menu'); ?>
|
||||
<?php if (array_key_exists('parent_category', $viewDatas) && !is_null($viewDatas['parent_category'])) : ?>
|
||||
<?= $viewDatas['parent_category']->getFileImage() ?>
|
||||
<?php endif ?>
|
||||
<?= CLASS_TOP_BANNER[strtoupper($viewDatas['className'])] ?>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<nav class="nav"></nav>
|
||||
|
||||
BIN
public/images/banner/sub_visual1.jpg
Normal file
BIN
public/images/banner/sub_visual1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 153 KiB |
BIN
public/images/banner/sub_visual2.jpg
Normal file
BIN
public/images/banner/sub_visual2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
BIN
public/images/banner/sub_visual3.jpg
Normal file
BIN
public/images/banner/sub_visual3.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 177 KiB |
BIN
public/images/banner/sub_visual4.jpg
Normal file
BIN
public/images/banner/sub_visual4.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 101 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 29 KiB |
Loading…
Reference in New Issue
Block a user