
NOTICE: All information contained herein is, and remains
the property of TechnoCore.
The intellectual and technical concepts contained
herein are proprietary to TechnoCore and dissemination of this information or reproduction of this material
is strictly forbidden unless prior written permission is obtained
from TechnoCore.
The ObjTextBanner object is responsible for generating HTML <img> tags for banner images. It dynamically checks for the existence of the image in two predefined locations: the banners directory and the email directory.
Process(Param1: str, ...)This method takes the name of an image as its primary parameter (Param1) and constructs an HTML <img> tag. It will first look for the image in a /banners/ directory, and if not found, it will look in an /email/ directory.
Parameters:
Param1 (str): The name of the image file (e.g., my_banner.jpg). The file extension is optional and will be stripped.Returns:
<img> tag if the image is found. Otherwise, it returns an empty string.Example Usage:
Assuming an image exists at /banners/welcome.jpg:
banner = ObjProcessText()
banner_html = banner.Process(Param1="welcome")
print(banner_html)
This would output:
<img src='http://your-site.com/banners/welcome.jpg'>