| Server IP : 51.254.39.36 / Your IP : 216.73.217.109 Web Server : Microsoft-IIS/10.0 System : Windows NT WIN-12GDIEC772I 10.0 build 20348 (Windows Server 2022) AMD64 User : IWPD_21(allbatf787) ( 0) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Inetpub/vhosts/allbat-sb.fr/httpdocs/wp-content/plugins/kadence-cloud/inc/settings/src/ |
Upload File : |
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { TabPanel, Panel, PanelBody, withFilters } from '@wordpress/components';
import kadenceTryParseJSON from './components/common/try-parse';
export const Help = () => {
const args = ( kadenceSettingsParams.args ? kadenceTryParseJSON( kadenceSettingsParams.args ) : {} );
return (
<>
{ args.sidebar && (
<>
{ Object.keys( args.sidebar ).map( function( key, index ) {
const help = args.sidebar[key];
return (
<div className="kadence-desk-help-inner-wrap">
{ help?.title && (
<h2>{ help.title }</h2>
) }
{ help?.description && (
<p>{ help.description }</p>
) }
{ help?.link && help?.link_text && (
<a href={ help.link } className="sidebar-link" target="_blank">{ help.link_text }</a>
) }
</div>
);
} ) }
</>
) }
</>
);
};
export default withFilters( 'kadence_settings_help' )( Help );