Skip to content

Instantly share code, notes, and snippets.

@imadonis
Created March 24, 2021 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imadonis/4f4d02cccebac17b5e49cded23970f49 to your computer and use it in GitHub Desktop.
Save imadonis/4f4d02cccebac17b5e49cded23970f49 to your computer and use it in GitHub Desktop.
[오늘일정 : 요일 구하기] 오늘의 당일 일정 구하기 #당일일정 #오늘일정
<!--@if($mini_display_option == "F" || $mini_display_option == "T" )-->
<div class='Mini_TodayPlanList'>
<h1 style="text-align: center;"><span style="color:#3ce77e;"><span style="background-color:#dddddd;">{date("Y년 m월 d일",$wrkday_stamp)}</span></span></h1>
<h2><span style="color:#e74c3c;"><span style="background-color:#dddddd;">{$lang->pln_today_event}:
{@
$today = date("Y-m-d");
$weekString = array("일요일 일정표", "월요일 일정표", "화요일 일정표", "수요일 일정표", "목요일 일정표", "금요일 일정표", "토요일 일정표");
echo($weekString[date('w', strtotime($day))]);
//출처: https://offbyone.tistory.com/38 [쉬고 싶은 개발자]
}
</span></span></h2>
<!--@if($today_schedule != null )-->
<h3><span style="color:#1abc9c;"><span style="background-color:#ecf0f1;">{@ echo $today_schedule}</span></span></h3>
<!--@else-->
<h3><span style="color:#1abc9c;"><span style="background-color:#ecf0f1;">{@ echo $lang->pln_no_event}</span></span></h3>
<!--@end-->
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment