shoppingmallv2 init...

This commit is contained in:
최준흠git config git config --helpgit config --global user.name 최준흠 2023-08-12 10:44:37 +09:00
parent e4b2bb4a46
commit b595839bed
8 changed files with 16 additions and 4 deletions

View File

@ -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>',
]);

View File

@ -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'];

View File

@ -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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB