golden hour
/home/phakp/public_html/wp/wp-content/themes/neve/dashboard/src/Components/Content
⬆️ Go Up
Upload
File/Folder
Size
Actions
Changelog.js
2.16 KB
Del
OK
FreePro.js
829 B
Del
OK
Help.js
3.19 KB
Del
OK
Plugins.js
504 B
Del
OK
Pro.js
458 B
Del
OK
Start.js
2.07 KB
Del
OK
StarterSites.js
777 B
Del
OK
Edit: Start.js
/* global neveDash */ import Card from '../Card'; import {tabs} from '../../utils/common'; const {__} = wp.i18n; const {Fragment} = wp.element; const {Button} = wp.components; const Start = (props) => { function renderLeftCol() { if (neveDash.whiteLabel && neveDash.whiteLabel.hideStarterSites) { return null; } return ( <div className="col"> {tabs['starter-sites'] && <Card icon={neveDash.assets + 'squares.svg'} title={__('Starter Sites', 'neve')} description={neveDash.strings.starterSitesCardDescription} > <Button isPrimary isLarge onClick={() => { setTab('starter-sites'); }} >{__('Go to Starter Sites', 'neve')}</Button> </Card> } {! neveDash.whiteLabel && <Card icon={neveDash.assets + 'page.svg'} title={__('Getting Started? Check help and docs', 'neve')} description={__('Need more details? Please check our full documentation for detailed information on how to use Neve.', 'neve')} > <Button isLink onClick={() => setTab('help')} >{__('Go to docs', 'neve')} </Button> </Card> } </div> ); } const {setTab} = props; return ( <Fragment> {renderLeftCol()} <div className="col col-last"> <Card classNames="customizer-quick-links" icon={neveDash.assets + 'compass.svg'} title={__('Customizer quick links', 'neve')} > {renderCustomizerLinks()} </Card> </div> </Fragment> ); }; const renderCustomizerLinks = () => { const links = neveDash.customizerShortcuts; const split = Math.ceil(links.length / 2); const parts = [ links.slice(0, split), links.slice(split) ]; return ( <div className="columns"> { parts.map((column) => { return ( <div className="col"> { column.map((item, index) => { return ( <Fragment> <Button isLink href={item.link}>{item.text}</Button> {index !== column.length - 1 && <hr/>} </Fragment> ); }) } </div> ); }) } </div> ); }; export default Start;
Save