@@ -2253,16 +2253,16 @@ function render_thread_preview_html(
22532253 ob_start (); ?>
22542254 <div class="mt-6 w-full">
22552255 <div
2256- class="forum-preview <?= $ heightClass ?> overflow-y-auto border border-gray-25 rounded-xl p-3 bg-white"
2256+ class="forum-preview <?php echo $ heightClass ?> overflow-y-auto border border-gray-25 rounded-xl p-3 bg-white"
22572257 role="region"
2258- aria-label="<?= get_lang ('Discussion thread ' ); ?> "
2258+ aria-label="<?php echo get_lang ('Discussion thread ' ); ?> "
22592259 >
22602260 <div class="sticky top-0 z-10 bg-white pb-2 text-gray-90 font-bold shadow-[0_1px_0_0_#e4e9ed]">
2261- <?= get_lang ('Discussion thread ' ); ?>
2261+ <?php echo get_lang ('Discussion thread ' ); ?>
22622262 </div>
22632263
22642264 <?php if (empty ($ rows )): ?>
2265- <div class="text-gray-50 text-body-2 mt-2"><?= get_lang ('No posts yet ' ); ?> </div>
2265+ <div class="text-gray-50 text-body-2 mt-2"><?php echo get_lang ('No posts yet ' ); ?> </div>
22662266 <?php else : foreach ($ rows as $ row ):
22672267 $ postId = (int ) $ row ['iid ' ];
22682268 $ isFocus = $ highlightPostId && $ postId === (int ) $ highlightPostId ;
@@ -2275,28 +2275,28 @@ class="forum-preview <?= $heightClass ?> overflow-y-auto border border-gray-25 r
22752275
22762276 $ userTitle = api_htmlentities (sprintf (get_lang ('Login: %s ' ), $ row ['username ' ]), ENT_QUOTES );
22772277 ?>
2278- <article id="post-<?= $ postId ?> "
2279- class="mb-2 border border-gray-25 rounded-lg p-3 <?= $ isFocus ? 'bg-gray-15 ring-1 ring-primary ' : 'bg-white ' ?> ">
2280- <div class="text-caption text-gray-50" title="<?= $ userTitle ?> ">
2281- <?= Security::remove_XSS ($ displayName ) ?> • <?= api_convert_and_format_date ($ row ['post_date ' ]) ?>
2278+ <article id="post-<?php echo $ postId ?> "
2279+ class="mb-2 border border-gray-25 rounded-lg p-3 <?php echo $ isFocus ? 'bg-gray-15 ring-1 ring-primary ' : 'bg-white ' ?> ">
2280+ <div class="text-caption text-gray-50" title="<?php echo $ userTitle ?> ">
2281+ <?php echo Security::remove_XSS ($ displayName ) ?> • <?php echo api_convert_and_format_date ($ row ['post_date ' ]) ?>
22822282 </div>
22832283
22842284 <div class="font-bold mt-1 mb-1 text-gray-90">
2285- <?= Security::remove_XSS ($ row ['post_title ' ]) ?>
2285+ <?php echo Security::remove_XSS ($ row ['post_title ' ]) ?>
22862286 </div>
22872287
22882288 <div class="text-body-2 leading-4">
2289- <?= Security::remove_XSS ($ row ['post_text ' ], STUDENT ) ?>
2289+ <?php echo Security::remove_XSS ($ row ['post_text ' ], STUDENT ) ?>
22902290 </div>
22912291 </article>
22922292 <?php endforeach ; endif ; ?>
22932293 </div>
22942294
22952295 <div class="mt-2">
22962296 <a class="text-body-2 underline text-primary"
2297- href="<?= api_get_path (WEB_CODE_PATH ) . 'forum/viewthread.php? ' . api_get_cidreq ()
2297+ href="<?php echo api_get_path (WEB_CODE_PATH ) . 'forum/viewthread.php? ' . api_get_cidreq ()
22982298 . '&forum= ' .(int )$ forumId .'&thread= ' .(int )$ threadId ?> ">
2299- <?= get_lang ('View full thread ' ) ?>
2299+ <?php echo get_lang ('View full thread ' ) ?>
23002300 </a>
23012301 </div>
23022302 </div>
0 commit comments