D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
realadss
/
www
/
wp-content
/
themes
/
rishi
/
js
/
dashboard
/
Filename :
Home.js
back
Copy
import React from 'react'; import { __ } from "@wordpress/i18n"; import CustomizerOptions from './ui-components/CustomizerOptions'; import { applyFilters } from '@wordpress/hooks'; import { SiteIdentityIcon, ColorSettingsIcon, TypographySettingsIcon, LayoutSettingsIcon, HeaderBuilderIcon, BlogSettingsIcon, PageSettingsIcon, SidebarSettingsIcon, FooterBuilderIcon, RightArrow, DocumentIcon, RightIcon, VideoIcon, SupportIcon } from './ui-components/Icons'; import Sidebar from './ui-components/Sidebar'; export const Home = () => { return ( <> <div className="home--wrapper"> <div className="container"> {applyFilters('rishi_license_activation_placeholder', null)} <div className="customizer--wrapper"> <div className="customizer--grid--wrapper"> <div className="customizer--cards"> <CustomizerOptions Title={__("Site Identity", "rishi")} Icon={<SiteIdentityIcon />} RightArrow={<RightArrow />} Link="header&rt_autofocus=header:builder_panel_logo" /> <CustomizerOptions Title={__("Color Settings", "rishi")} Icon={<ColorSettingsIcon />} RightArrow={<RightArrow />} Link="colors_panel" /> <CustomizerOptions Title={__("Typography Settings", "rishi")} Icon={<TypographySettingsIcon />} RightArrow={<RightArrow />} Link="typography" /> <CustomizerOptions Title={__("Layout Settings", "rishi")} Icon={<LayoutSettingsIcon />} RightArrow={<RightArrow />} Link="layout" /> <CustomizerOptions Title={__("Header Builder", "rishi")} Icon={<HeaderBuilderIcon />} RightArrow={<RightArrow />} Link="header" /> <CustomizerOptions Title={__("Blog Settings", "rishi")} Icon={<BlogSettingsIcon />} RightArrow={<RightArrow />} Link="blogarchive" /> <CustomizerOptions Title={__("Page Settings", "rishi")} Icon={<PageSettingsIcon />} RightArrow={<RightArrow />} Link="pages" /> <CustomizerOptions Title={__("Sidebar Settings", "rishi")} Icon={<SidebarSettingsIcon />} RightArrow={<RightArrow />} Link="layout" /> <CustomizerOptions Title={__("Footer Builder", "rishi")} Icon={<FooterBuilderIcon />} RightArrow={<RightArrow />} Link="footer" /> </div> {(!RishiDashboard.plugin_data.hide_support_link || !RishiDashboard.plugin_data.hide_doc_link || !RishiDashboard.plugin_data.hide_video_link || !RishiDashboard.plugin_data.hide_roadmap_link ) && <div className="sidebar--wrapper"> {RishiDashboard.plugin_data.hide_support_link ? '' : <Sidebar SidebarTitle={__("Documentation", "rishi")} SidebarContent={__("Need help with using the WordPress as quickly as possible? Visit our well-organized Knowledge Base!", "rishi")} SidebarIcon={<DocumentIcon />} SidebarBtnContent={__("Documentation", "rishi")} SidebarRightIcon={<RightIcon />} SidebarLink={"https://rishitheme.com/docs/"} />} {RishiDashboard.plugin_data.hide_doc_link ? '' : <Sidebar SidebarTitle={__("Support", "rishi")} SidebarContent={__("If the Knowledge Base didn't answer your queries, submit us a support ticket here. Our response time usually is less than a business day, except on the weekends.", "rishi")} SidebarIcon={<SupportIcon />} SidebarBtnContent={__("Submit a Ticket", "rishi")} SidebarRightIcon={<RightIcon />} SidebarLink={RishiDashboard.support_url} />} {RishiDashboard.plugin_data.hide_video_link ? '' : <Sidebar SidebarTitle={__("Video Tutorials", "rishi")} SidebarContent={__("Check our step by step video tutorials.", "rishi")} SidebarIcon={<VideoIcon />} SidebarBtnContent={__("Watch Videos", "rishi")} SidebarRightIcon={<RightIcon />} SidebarLink={RishiDashboard.video_url} />} {RishiDashboard.plugin_data.hide_roadmap_link ? '' : <Sidebar SidebarTitle={__("Roadmap", "rishi")} SidebarContent={__("Request and upvote a feature or see what are the future plans for Rishi theme.", "rishi")} SidebarIcon={<SupportIcon />} SidebarBtnContent={__("View our Roadmap", "rishi")} SidebarRightIcon={<RightIcon />} SidebarLink={RishiDashboard.roadmap_url} />} </div>} </div> </div> {!RishiDashboard.proActive && ( <div className="upgrade-free-wrapper"> <div className="upgrade-content-wrapper"> <span className="desc"> {__( "Upgrade to Rishi Pro", "rishi" )} </span> <div className="upgrade-desc"> <p> {__( "Rishi Pro plugin extends the features and functionalities of Rishi Theme and Rishi Companion plugin to help you create powerful and feature-rich website.", "rishi" )} </p> </div> <div className="upgrade-features"> <ul className="lists"> <li> {__( "Access to all Pro extensions", "rishi" )} </li> <li> {__( "More Header and Footer Elements", "rishi" )} </li> <li> {__( "Access to all Premium Starter Sites", "rishi" )} </li> <li> {__( "Advanced Blogging extension", "rishi" )} </li> <li> {__( "Hooked Elements extension", "rishi" )} </li> <li> {__( "Priority Support", "rishi" )} </li> </ul> </div> <a href="https://rishitheme.com/pricing/" target="_blank" className="upgrade-primary-btn" > {__("Upgrade Now", "rishi")} </a> </div> <div className="upgrade-img-wrapper"> <img width="772" height="250" src={RishiDashboard.upgradeImage} /> </div> </div> )} </div> </div> </> ) } export default Home;