uawdijnntqw1x1x1
IP : 3.15.44.161
Hostname : c17w.hoster.ru
Kernel : Linux c17w.hoster.ru 3.10.0 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64
Disable Function : dl,shell_exec,exec,system,passthru,popen,proc_open,proc_nice,proc_get_status,proc_close,proc_terminate,posix_mkfifo,chown,chgrp,show_source,opcache_reset,opcache_get_configuration,opcache_get_status
OS : Linux
PATH:
/
home
/
srv221441
/
kso-don.ru
/
wp-content
/
plugins
/
presto-player
/
inc
/
..
/
img
/
..
/
.
/
.
/
src
/
router
/
link.js
/
/
const { useContext } = wp.element; import { RouterContext, history } from "./context"; import classNames from "classnames"; import { match } from "path-to-regexp"; export function Link(props) { const { to, onClick, children, activeClassName } = props; const { route } = useContext(RouterContext); let state = { ...props }; delete state.activeClassName; const isActive = () => { const checkMatch = match(`${to}`); return checkMatch(`${route.hash.substr(1)}`); }; const handleClick = (e) => { e.preventDefault(); // Dont' navigate if current path if (route.path === to) { return; } // Trigger onClick prop manually if (onClick) { onClick(e); } const { search } = history.location; // Use history API to navigate page history.push(`${search}#${to}`); }; return ( <a {...state} className={classNames({ [activeClassName]: isActive() }, props.className)} onClick={handleClick} > {children} </a> ); }
/home/srv221441/kso-don.ru/wp-content/plugins/presto-player/inc/../img/../././src/router/link.js