바른중개사
6개월 전
vivid 레이아웃
메뉴에 New 표시와
메뉴에 Update 표시
modules/zzz_menu_new/zzz_menu_new.model.php
91부터
123 아래와 같이 수정
inline-flex 추가하면 됨
if (!empty($config->new_image)) {
$new_image = sprintf(
'<img src="%s" alt="new" title="new" style="margin-left:3px; border:2px solid #F6F6F6; border-radius:10px; width:12px; height:12px;" class="menu_new inline-flex"/>',
htmlspecialchars($config->new_image, ENT_QUOTES, 'UTF-8') // HTML 특수 문자를 이스케이프
);
} else {
$path = sprintf('%s%s', getUrl(), 'modules/document/tpl/icons/');
$new_image = sprintf(
'<img src="%snew.gif" alt="new" title="new" style="margin-left:6px; width:12px; height:12px;" class="addon_menu_new inline-flex"/>',
htmlspecialchars($path, ENT_QUOTES, 'UTF-8') // HTML 특수 문자를 이스케이프
);
}
return $new_image;
}
/**
* @brief 댓글 new 이미지 태그
*
* 새 댓글 표시 이미지 태그를 반환한다.
* 새 댓글 이미지를 따로 설정하지 않았을 경우 XE의 기본 이미지를 이용한다.
*
* @return 새 댓글 표시 이미지 태그
**/
function getCommentNewImageTag($config) {
if (!empty($config->new_image_comment)) {
$new_image = sprintf('<img src="%s" alt="new comment" title="new comment" style="margin-left:2px;" class="addon_menu_new_comment inline-flex"/>', $config->new_image_comment);
}else{
$path = sprintf('%s%s',getUrl(), 'modules/document/tpl/icons/');
$new_image = sprintf('<img src="%supdate.gif" alt="new comment" title="new comment" style="margin-left:2px;" class="addon_menu_new_comment inline-flex"/>', $path);
}