update addon setting and admin page css
This commit is contained in:
parent
3d28b1d9f0
commit
47254debf1
12 changed files with 67 additions and 16 deletions
|
|
@ -75,6 +75,11 @@ class SampleAddon extends Addon
|
|||
</div>';
|
||||
}
|
||||
|
||||
public function saveAction($data = [])
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getConfig()
|
||||
{
|
||||
global $g5;
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ add_stylesheet(get_embed_file("css", G5_PATH . "/adm/css/addon_config.css"), 1);
|
|||
</content><?php
|
||||
}
|
||||
} else {
|
||||
echo "애드온을 선택하세요";
|
||||
echo "<span class=\"empty\">애드온을 선택하세요</span>";
|
||||
}
|
||||
?>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -47,6 +47,10 @@ if (array_key_exists($addon_name, AddonLoader::$addons)) {
|
|||
}
|
||||
|
||||
sql_query($sql);
|
||||
|
||||
if (method_exists($addon, "saveAction")) {
|
||||
$addon->saveAction($config_data);
|
||||
}
|
||||
} else {
|
||||
alert("애드온이 설정되지 않았습니다.");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@ include_once G5_PATH . '/head.sub.php';
|
|||
<div id="admin_prof">
|
||||
<h1>
|
||||
<a href="<?php echo G5_ADMIN_URL ?>"><img src="<?= G5_ADMIN_URL ?>/img/logo.png" alt="Avocado Edition" /></a>
|
||||
<i><?= G5_GNUBOARD_VER ?></i>
|
||||
</h1>
|
||||
<p>
|
||||
<a href="<?php echo G5_ADMIN_URL ?>/member_form.php?w=u&mb_id=<?php echo $member['mb_id'] ?>" class="name">
|
||||
|
|
|
|||
|
|
@ -2,9 +2,12 @@
|
|||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
?>
|
||||
<div class="footer-copyright">
|
||||
<a href="https://info.drk.st/about"> Avocado Amber v<?= G5_GNUBOARD_VER ?> </a>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<!-- <p>실행시간 : <?php echo get_microtime() - $begin_time; ?> -->
|
||||
<!-- <p>실행시간 : <?php echo microtime(true) - $begin_time; ?> -->
|
||||
<script src="<?php echo G5_ADMIN_URL ?>/js/admin.js?ver=<?php echo G5_JS_VER; ?>"></script>
|
||||
<script src="<?php echo G5_ADMIN_URL ?>/js/admin.ajax.js?ver=<?php echo G5_JS_VER; ?>"></script>
|
||||
<script>
|
||||
|
|
|
|||
|
|
@ -68,3 +68,18 @@ th a+a {
|
|||
td a {
|
||||
color: var(--theme-color-d);
|
||||
}
|
||||
|
||||
.footer-copyright {
|
||||
padding: 20px !important;
|
||||
}
|
||||
|
||||
span.empty {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
min-height: 200px;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #A0A0A0;
|
||||
border: 1px solid #F0F0F0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@
|
|||
--theme-color-c: #c7996b;
|
||||
--theme-color-d: hsl(30, 72%, 55%);
|
||||
--theme-color-d-gnb: hsla(30, 72%, 55%, .2);
|
||||
--theme-color-e: hsl(30, 75%, 40%);
|
||||
--theme-color-e: hsl(45, 100%, 50%);
|
||||
--theme-color-sub: #4a797b;
|
||||
}
|
||||
|
||||
/* 초기화 */
|
||||
|
|
@ -471,7 +472,7 @@ label+input {
|
|||
text-decoration: none;
|
||||
margin: 0 1px;
|
||||
color: #62656c;
|
||||
border-radius: 9.0em;
|
||||
border-radius: 4px;
|
||||
box-sizing: border-box;
|
||||
z-index: 1;
|
||||
}
|
||||
|
|
@ -497,8 +498,9 @@ label+input {
|
|||
#anc_014 a[href="#anc_014"],
|
||||
#anc_015 a[href="#anc_015"],
|
||||
#anc_016 a[href="#anc_016"] {
|
||||
background: #b0c4de;
|
||||
background: var(--theme-color-sub);
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.color-preview {
|
||||
|
|
@ -805,7 +807,7 @@ table {
|
|||
}
|
||||
|
||||
#theme_list li .tmli_if {
|
||||
border: 1px solid #b9cec5;
|
||||
border: 1px solid var(--theme-color-a);
|
||||
width: 300px;
|
||||
box-sizing: border-box;
|
||||
min-height: 240px;
|
||||
|
|
@ -836,8 +838,8 @@ table {
|
|||
|
||||
#theme_list li .tmli_tit {
|
||||
position: relative;
|
||||
border-top: 1px solid #b9cec5;
|
||||
background: #e0fff2;
|
||||
border-top: 1px solid var(--theme-color-a);
|
||||
background: var(--theme-color-0);
|
||||
}
|
||||
|
||||
#theme_list li .tmli_tit p {
|
||||
|
|
@ -876,7 +878,7 @@ table {
|
|||
}
|
||||
|
||||
#theme_list li .theme_sl:hover {
|
||||
background: #ff3061
|
||||
background: var(--theme-color-d);
|
||||
}
|
||||
|
||||
#theme_list li .theme_deactive {
|
||||
|
|
@ -884,7 +886,7 @@ table {
|
|||
}
|
||||
|
||||
#theme_list li .theme_sl_use {
|
||||
background: #ff3061;
|
||||
background: var(--theme-color-d);
|
||||
line-height: 26px
|
||||
}
|
||||
|
||||
|
|
@ -1025,3 +1027,14 @@ table {
|
|||
content: "\F45D";
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.footer-copyright {
|
||||
padding: 20px 0;
|
||||
font-size: 11px;
|
||||
color: #A0A0A0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.footer-copyright a {
|
||||
color: #A0A0A0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -284,6 +284,7 @@ body {
|
|||
|
||||
#gnb .gnb_2dli.check {
|
||||
background: var(--theme-color-d-gnb);
|
||||
border-left: 4px solid var(--theme-color-e);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -76,9 +76,14 @@ EventHandler::triggerEvent("amber.admin.editor_font_form_before");
|
|||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="font_name">폰트 이름<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="font_name" value="" id="font_name" required class="required frm_input"
|
||||
size="50"></td>
|
||||
<th scope="row">
|
||||
<label for="font_name">폰트 이름<strong class="sound_only">필수</strong></label>
|
||||
</th>
|
||||
<td>
|
||||
<span class="frm_info">DHTML 에디터에서 출력될 폰트 이름입니다.</span>
|
||||
<input type="text" name="font_name" value="" id="font_name" required class="required frm_input"
|
||||
size="50">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="font_css">@font-face CSS 또는 @import URL<strong class="sound_only">필수</strong>
|
||||
|
|
@ -87,7 +92,8 @@ EventHandler::triggerEvent("amber.admin.editor_font_form_before");
|
|||
</label></th>
|
||||
<td>
|
||||
<span class="frm_info">@font-face CSS를 그대로 붙여넣거나, Google Fonts의 @import URL을 입력하세요.</span>
|
||||
<span class="frm_info"><strong>구글 폰트의 경우 여러 폰트가 한번에 선택되지 않도록 주의해 주시기 바랍니다.</strong></span>
|
||||
<span class="frm_info">구글 폰트의 경우 여러 폰트가 한번에 선택되지 않도록 주의해 주시기 바랍니다.</span>
|
||||
<span class="frm_info">구글 폰트를 사용할 경우 폰트 선택 이후 다른 폰트를 가져올 때 보관함에서 이전 폰트를 삭제하세요.</span>
|
||||
<textarea name="font_css" id="font_css" rows="8" required class="required frm_input" style="width:100%;"
|
||||
placeholder="@font-face {
|
||||
font-family: 'FontName';
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ include_once "./admin.head.php";
|
|||
}
|
||||
?>
|
||||
<li>
|
||||
<div class="tmli_if" style="--bg:url(<?=$screenshot?>">
|
||||
<div class="tmli_if" style="--bg:url(<?= $screenshot ?>);">
|
||||
<div class="tmli_tit">
|
||||
<p><?= get_text($info['theme_name']); ?></p>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -14,4 +14,9 @@ class Addon
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
public function saveAction($data = [])
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
BIN
AvocadoEdition_Light/theme/basic/screenshot.png
Normal file
BIN
AvocadoEdition_Light/theme/basic/screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
Loading…
Reference in a new issue