diff --git a/inc/Data.php b/inc/Data.php index 34a836f4..743e5c67 100644 --- a/inc/Data.php +++ b/inc/Data.php @@ -27,6 +27,8 @@ public static function runtime() { 'resturl' => \get_home_url() . '/index.php?rest_route=', 'wpversion' => $wp_version, 'admin' => \admin_url(), + 'siteurl' => \get_site_url(), + 'sitetitle' => htmlspecialchars_decode( \get_bloginfo( 'name' ) ), 'assets' => HOSTGATOR_PLUGIN_URL . 'assets/', 'brand' => get_option( 'mm_brand', false ), 'region' => get_option( 'hg_region', false ), diff --git a/src/app/components/header/index.js b/src/app/components/header/index.js deleted file mode 100644 index a76bf79a..00000000 --- a/src/app/components/header/index.js +++ /dev/null @@ -1,28 +0,0 @@ -import './stylesheet.scss'; - -import Logo from './logo'; -import NavLarge from './nav-large'; -import NavMobile from './nav-mobile'; -import NavUtility from './nav-utility'; -import { useViewportMatch } from '@wordpress/compose'; - -const Header = () => { - const isLargeViewport = useViewportMatch('medium'); - return ( - -
-
- - {(isLargeViewport && ) || } -
-
- {isLargeViewport && ( - - )} -
- ); -}; - -export default Header; diff --git a/src/app/components/header/logo.js b/src/app/components/header/logo.js deleted file mode 100644 index a87f3b9d..00000000 --- a/src/app/components/header/logo.js +++ /dev/null @@ -1,21 +0,0 @@ -import { Heading } from '../../components'; -import { ReactComponent as Brand } from '../../../../assets/svg/nav-for-light.svg'; -import { Button } from '@wordpress/components'; - -const Logo = () => { - return ( -
- - - {__('HostGator WordPress Plugin', 'wp-plugin-hostgator')} - -
- ); -}; - -export default Logo; diff --git a/src/app/components/header/nav-large.js b/src/app/components/header/nav-large.js deleted file mode 100644 index bb58559f..00000000 --- a/src/app/components/header/nav-large.js +++ /dev/null @@ -1,16 +0,0 @@ -import { NavLink } from 'react-router-dom'; -import { topRoutes } from '../../data/routes'; - -const NavLarge = () => ( - -); - -export default NavLarge; diff --git a/src/app/components/header/nav-mobile.js b/src/app/components/header/nav-mobile.js deleted file mode 100644 index 509a687b..00000000 --- a/src/app/components/header/nav-mobile.js +++ /dev/null @@ -1,42 +0,0 @@ -import { Button, Modal } from '@wordpress/components'; -import { menu } from '@wordpress/icons'; -import { topRoutes } from '../../data/routes'; -import { NavLink } from 'react-router-dom'; - -const NavMobile = () => { - const [isOpen, setIsOpen] = useState(false); - const MobileMenu = () => { - return ( - - ); - }; - return ( - - + + + + + + ); +} \ No newline at end of file diff --git a/src/app/index.js b/src/app/index.js index 16ba1dc2..85894544 100644 --- a/src/app/index.js +++ b/src/app/index.js @@ -16,6 +16,7 @@ import { store as noticesStore } from '@wordpress/notices'; import { setActiveSubnav } from './util/helpers'; import { kebabCase, filter } from 'lodash'; import { AppNav } from './components/app-nav'; +import { SiteInfoBar } from './components/site-info'; import { NotificationFeed } from './components/notifications/feed'; // component sourced from module @@ -93,6 +94,7 @@ const AppBody = (props) => {
}> {hasError && } + {(true === booted && ) || (!hasError && )}