1

i have this function and it echos a banner of 250*250 banner. Now i want to display a image to this content. I cant figure out how i can display images. Can someone help this is my code

   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>';

    }
}
4

1 回答 1

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" />

于 2014-12-13T13:18:39.780 回答