first
This commit is contained in:
39
widgets/bs4-default/site/menu/quickmenu/card-menu/main.css
Normal file
39
widgets/bs4-default/site/menu/quickmenu/card-menu/main.css
Normal file
@@ -0,0 +1,39 @@
|
||||
.widget-quick .card {
|
||||
background-size: cover
|
||||
}
|
||||
.widget-quick .card::before {
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
opacity: 1 !important;
|
||||
content: '';
|
||||
transform: translate(0px, 0px);
|
||||
transition-timing-function: ease-in;
|
||||
transition-duration: 0.3s;
|
||||
background-color: rgba(0, 0, 0, 0.4) !important;
|
||||
}
|
||||
|
||||
.widget-quick .card:hover::before {
|
||||
background-color: rgba(0, 0, 0, 0.7) !important;
|
||||
}
|
||||
|
||||
.widget-quick .card-title {
|
||||
min-height: 50px
|
||||
}
|
||||
|
||||
.widget-quick .card-body {
|
||||
margin-top: 4.5rem;
|
||||
margin-bottom: 4.5rem;
|
||||
z-index: 1
|
||||
}
|
||||
.widget-quick a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
.widget-quick .card-text {
|
||||
width: 70%;
|
||||
margin: 20px auto 0;
|
||||
padding-top: 20px;
|
||||
border-top: 2px solid #5cccfa
|
||||
}
|
||||
29
widgets/bs4-default/site/menu/quickmenu/card-menu/main.php
Normal file
29
widgets/bs4-default/site/menu/quickmenu/card-menu/main.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<h3><?php echo $wdgvar['title'] ?></h3>
|
||||
<section class="widget-quick">
|
||||
<div class="row gutter-half">
|
||||
<?php
|
||||
$_MENUQ1=getDbData($table['s_menu'],'site='.$s." and id='".$wdgvar['smenu']."'",'uid');
|
||||
$_MENUQ2=getDbSelect($table['s_menu'],'site='.$s.' and parent='.$_MENUQ1['uid'].' and hidden=0 order by gid asc','*');
|
||||
?>
|
||||
<?php while($_M2=db_fetch_array($_MENUQ2)):?>
|
||||
|
||||
<?php
|
||||
if($_M2['upload']) {
|
||||
$ufilesArray = getArrayString($_M2['upload']);
|
||||
$_IMG = getDbData($table['s_upload'], 'uid='.$ufilesArray['data'][0], '*');
|
||||
$Topimg_URL = $_IMG['url'].$_IMG['folder'].'/'.$_IMG['tmpname'];
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="col-4 mb-3">
|
||||
<div class="card text-center bg-secondary border-0" <?php if ($_M2['upload']): ?>style="background-image: url('<?php echo getPreviewResize($Topimg_URL,'z')?>')"<?php endif; ?>>
|
||||
<a href="<?php echo RW('c='.$wdgvar['smenu'].'/'.$_M2['id'])?>" class="card-body text-white">
|
||||
<h4 class="card-title"><?php echo $_M2['addinfo']?> </h4>
|
||||
<p class="card-text mb-0"><?php echo $_M2['name']?></p>
|
||||
</a>
|
||||
</div><!-- /.card -->
|
||||
</div><!-- /.col-4 -->
|
||||
<?php endwhile?>
|
||||
|
||||
</div><!-- /.row -->
|
||||
</section>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
$wdgvar_smenu_arr = explode('/' , $wdgvar['smenu']);
|
||||
$wdgvar_smenu_arr_end = array_pop($wdgvar_smenu_arr);
|
||||
$_MENUQ1=getDbData($table['s_menu'],'site='.$s." and id='".$wdgvar_smenu_arr_end."'",'uid,name');
|
||||
$_MENUQ2=getDbSelect($table['s_menu'],'site='.$s.' and parent='.$_MENUQ1['uid'].' and hidden=0 order by gid asc','*');
|
||||
?>
|
||||
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-white btn-sm dropdown-toggle"
|
||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="min-width: 170px">
|
||||
<?php echo $_MENUQ1['name'] ?>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right shadow-sm f14" style="min-width: 170px">
|
||||
<?php while($_M2=db_fetch_array($_MENUQ2)):?>
|
||||
<a class="dropdown-item" href="<?php echo $_M2['joint']?>" target="_blank">
|
||||
<?php echo $_M2['name']?>
|
||||
</a>
|
||||
<?php endwhile?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1 @@
|
||||
드롭다운 조인트
|
||||
@@ -0,0 +1 @@
|
||||
사용안내
|
||||
BIN
widgets/bs4-default/site/menu/quickmenu/dropdown-joint/thumb.png
Normal file
BIN
widgets/bs4-default/site/menu/quickmenu/dropdown-joint/thumb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
14
widgets/bs4-default/site/menu/quickmenu/list-inline/main.php
Normal file
14
widgets/bs4-default/site/menu/quickmenu/list-inline/main.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
$wdgvar_smenu_arr = explode('/' , $wdgvar['smenu']);
|
||||
$wdgvar_smenu_arr_end = array_pop($wdgvar_smenu_arr);
|
||||
$_MENUQ1=getDbData($table['s_menu'],'site='.$s." and id='".$wdgvar_smenu_arr_end."'",'uid,name');
|
||||
$_MENUQ2=getDbSelect($table['s_menu'],'site='.$s.' and parent='.$_MENUQ1['uid'].' and hidden=0 order by gid asc','*');
|
||||
?>
|
||||
|
||||
<?php while($_M2=db_fetch_array($_MENUQ2)):?>
|
||||
<li class="list-inline-item">
|
||||
<a class="muted-link" href="<?php echo RW('c='.$wdgvar['smenu'].'/'.$_M2['id'])?>">
|
||||
<?php echo $_M2['name']?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endwhile?>
|
||||
@@ -0,0 +1 @@
|
||||
리스트 인라인
|
||||
@@ -0,0 +1 @@
|
||||
사용안내
|
||||
BIN
widgets/bs4-default/site/menu/quickmenu/list-inline/thumb.png
Normal file
BIN
widgets/bs4-default/site/menu/quickmenu/list-inline/thumb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.3 KiB |
Reference in New Issue
Block a user