Skip to content

Instantly share code, notes, and snippets.

<?php
// Pretendard 글꼴 Import
function custom_font_pretendard() {
wp_enqueue_style( 'custom_font_style', 'https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css', false );
}
add_action( 'wp_enqueue_scripts', 'custom_font_pretendard' );
// Pretendard 글꼴을 Jetcraft 콤포넌트 요소에만 적용
add_action( 'wp_head', function () { ?>
class EventBus {
constructor() {
// 이벤트 리스트 초기화
this.eventObject = {};
}
// 이벤트 발행
publish(eventName) {
// 현재 이벤트의 모든 콜백함수 호출
const callbackList = this.eventObject[eventName];
<style>
.container:after {
content: '';
clear: both;
}
img { float: left }
</style>
<div class="container">
<style>
.container {
display: flex;
flex-direction: row;
}
</style>
<div class="container">
<div>1</div>
<div>2</div>
<style>
.container {
display: flex;
flex-flow: row nowrap;
align-content: stretch;
}
</style>
<div class="container">
<div>1</div>