PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /home/ngamzghe/hexomodo.com/wp-content__92e43fe/themes/genesis/lib/js/editor/ |
| Server: Linux server1.ngambekcore.com 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 04:00:07 EDT 2025 x86_64 IP: 159.198.77.92 |
| Dir : /home/ngamzghe/hexomodo.com/wp-content__92e43fe/themes/genesis/lib/js/editor/genesis-sidebar.js |
/**
* Adds the Genesis Sidebar to the Block Editor.
*
* Exposes a 'GenesisSidebar' slot. Other components can use portal rendering
* to appear inside the Genesis sidebar by wrapping themselves in a Fill
* component. First, import the Fill component:
*
* `import { Fill } from '@wordpress/components';`
*
* Then wrap your own component in a Fill component:
*
* `<Fill name="GenesisSidebar">I'm in the Genesis sidebar</Fill>`
*
* @since 3.1.0
* @package Genesis\JS
* @author StudioPress
* @license GPL-2.0-or-later
*/
/**
* WordPress dependencies
*/
import { Fragment } from '@wordpress/element';
import { registerPlugin } from '@wordpress/plugins';
import { PluginSidebar, PluginSidebarMoreMenuItem } from '@wordpress/edit-post';
import { Slot } from '@wordpress/components';
/**
* Internal dependencies
*/
import { GenesisIcon, GenesisIconSmall } from '../components/genesis-icons';
// Genesis Sidebar Component
const render = () => {
return (
<Fragment>
<PluginSidebarMoreMenuItem
target="genesis-sidebar"
icon={ <GenesisIconSmall /> }
>
Genesis
</PluginSidebarMoreMenuItem>
<PluginSidebar
name="genesis-sidebar"
title="Genesis"
icon={ <GenesisIcon /> }
>
<Slot name="GenesisSidebar" />
</PluginSidebar>
</Fragment>
);
};
registerPlugin( 'genesis-sidebar', { render, icon: <GenesisIconSmall /> } );