Print_Api.php 增加红色标记内容:
$t_title = file_get_field( $p_attachment['id'], 'title' );
$t_image_url = $p_attachment['download_url'] . '&show_inline=1' . form_security_param( 'file_show_inline' );
echo "\n<div class=\"bug-attachment-preview-image\">";
echo '<a href="' . string_attribute( $p_attachment['download_url'] ) . '" target="_blank">';
echo '<img src="' . string_attribute( $t_image_url ) . '" alt="' . string_attribute( $t_title ) . '" style="' . string_attribute( $t_preview_style ) . '" />';
echo '</a></div>';
}
博客展示了在Print_Api.php中增加红色标记内容的代码,包括获取附件标题、设置图片URL,以及输出包含图片链接和图片展示的HTML代码。
3203

被折叠的 条评论
为什么被折叠?



