我有这个功能,它回收了250 * 250横幅的横幅。现在我想在此内容中显示图像。我无法弄清楚我如何显示图像。有人可以帮助这是我的代码
if(!function_exists('aiclassy_draw_ad')) {
function aiclassy_draw_ad(){
echo '<div class="advertise_area">
</div>';
echo ' <br /> <div class="advertise_area">
</div>';
echo ' <br /> <div class="advertise_area">
</div>';
echo ' <br /> <div class="advertise_area">
</div>';
}
}
答案 0 :(得分:0)
您可能希望使用<img />
HTML元素。
在Osclass中,您可能会将您的图像存储在您的主题中(约定是两个放置图像的oc-content / themes / your_theme / assets / img /)。
在这种情况下:
<img src="<?php echo osc_current_web_theme_url("assets/img/your-image.jpg"); ?> alt="alt attribute of your image" />