/** * Returns an <a> tag linking to a specified url * * @param string $url link target * @param string $link_text the text displayed in the tag * @param array $params[optional] html parameters * * @return string */ function link_tag($url, $link_text = null, $params = array()) { $params['href'] = $url; if ($link_text === null) { $link_text = $url; } return "<a " . parseHTMLoptions($params) . ">{$link_text}</a>"; }
/** * Returns an <input type="image"> tag * * @param string $image image source * @param array $params [optional] html parameters * @param bool $notheme [optional] whether this is a themed image or a top level path * * @return string */ function image_submit_tag($image, $params = array(), $notheme = false) { $params['src'] = !$notheme ? \thebuggenie\core\framework\Context::getWebroot() . 'iconsets/' . Settings::getIconsetName() . '/' . $image : $image; return '<input type="image" ' . parseHTMLoptions($params) . ' />'; }
/** * Returns an <input type="image"> tag * * @param string $image image source * @param array $params[optional] html parameters * @param bool $notheme[optional] whether this is a themed image or a top level path * * @return string */ function image_submit_tag($image, $params = array(), $notheme = false) { $params['src'] = !$notheme ? TBGContext::getTBGPath() . 'iconsets/' . TBGSettings::getIconsetName() . '/' . $image : $image; return '<input type="image" ' . parseHTMLoptions($params) . ' />'; }