-
FAQ
- Forum Search
- Community
- Online Manual
- Support Helpers of the Month
- Function Database
create_button
Description
Generates an image or text button based on the given parameters.
Syntax
void create_button (string $name, string $alt[, string $label[, string $custom]])
Parameter $name
Expected type: String
Description: The name of the image
Parameter $alt
Expected type: String
Description: A string corresponding to the index of the $txt array for the language string to be used as the alt text of the image (or displayed in place of the image if $settings['use_images'] is false)
Parameter $label
Expected type: String
Description: A label to display in bold next to the button (if we're using buttons)
Parameter $custom
Expected type: String
Description: A string with custom parameters to be added to the img tag ('height="xxx" width="yyy"', 'border="0"', etc.)
Notes
- Returns $txt[$alt] if $settings['use_images'] is false
- Returns the HTML code to display the specified button with the given parameters (and the label in bold next to it if $label was specified) if $settings['use_buttons'] is true
- Returns the HTML code to display the specified image with the given parameters, taking into account the current user's language
Advertisement:- Help | Terms and Rules | Go Up ▲
- Copyright © 2022 Simple Machines. All Rights Reserved.
- Page created in 0.036 seconds with 13 queries.
- Forum Search