File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
web/app/themes/mitlib-parent/lib Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ function RenderPool( $items ) {
193
193
if ( $ item ->post_type === 'post ' && array_key_exists ( 'is_event ' , $ custom ) ) {
194
194
if ( $ custom ['is_event ' ][0 ] === '1 ' ) {
195
195
$ eventDate = \DateTime::createFromFormat ( 'Ymd ' , $ custom ['event_date ' ][0 ] );
196
- $ eventDate = '<div class="date-event"><img alt="calendar icon" src="/wp-content/themes/libraries/ images/calendar.svg" width="13px" height="13px" ><span class="event"> ' . date_format ( $ eventDate , 'F j ' ) . '</span> ' ;
196
+ $ eventDate = '<div class="date-event"><img alt="calendar icon" src=" ' . esc_url ( get_template_directory_uri () . ' / images/calendar.svg' ) . ' " width="13px" height="13px" ><span class="event"> ' . date_format ( $ eventDate , 'F j ' ) . '</span> ' ;
197
197
if ( $ custom ['event_start_time ' ][0 ] != '' ) {
198
198
$ eventDate = $ eventDate . '<span class="time-event"> ' . $ custom ['event_start_time ' ][0 ];
199
199
};
You can’t perform that action at this time.
0 commit comments