[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.15.15.31: ~ $
/**
 * WordPress dependencies
 */
 import { __ } from '@wordpress/i18n';
const { Fragment } = wp.element;
const { withFilters } = wp.components;
const { TabPanel, Panel, PanelBody } = wp.components;
import ChangelogItem from './changelog-item';

export const ChangelogTab = () => {
	const tabs = [
		{
			name: 'kadence',
			title: __( 'Changelog', 'kadence' ),
			className: 'kadence-changelog-tab',
		},
		{
			name: 'pro',
			title: __( 'Pro Changelog', 'kadence' ),
			className: 'kadence-pro-changelog-tab',
		},
	];
	return (
		<Fragment>
			{ kadenceDashboardParams.changelog && (
				<Fragment>
					{ kadenceDashboardParams.proChangelog && kadenceDashboardParams.proChangelog.length && (
						<TabPanel className="kadence-dashboard-changelog-tab-panel"
							activeClass="active-tab"
							tabs={ tabs }>
							{
								( tab ) => {
									switch ( tab.name ) {
										case 'kadence':
											return (
												<Panel className="kadence-changelog-section tab-section">
													<PanelBody
														opened={ true }
													>
														{ kadenceDashboardParams.changelog.map( ( item, index ) => {
															return <ChangelogItem
																item={ item }
																index={ item }
															/>;
														} ) }
													</PanelBody>
												</Panel>
											);

										case 'pro':
											return (
												<Panel className="pro-changelog-section tab-section">
													<PanelBody
														opened={ true }
													>
														{ kadenceDashboardParams.proChangelog.map( ( item, index ) => {
															return <ChangelogItem
																item={ item }
																index={ item }
															/>;
														} ) }
													</PanelBody>
												</Panel>
											);
									}
								}
							}
						</TabPanel>
					) }
					{ ( '' == kadenceDashboardParams.proChangelog || ( Array.isArray( kadenceDashboardParams.proChangelog ) && ! kadenceDashboardParams.proChangelog.length ) ) && (
						<Fragment>
							{ kadenceDashboardParams.changelog.map( ( item, index ) => {
								return <ChangelogItem
									item={ item }
									index={ item }
								/>;
							} ) }
						</Fragment>
					) }
				</Fragment>
			) }
		</Fragment>
	);
};

export default withFilters( 'kadence_theme_changelog' )( ChangelogTab );

Filemanager

Name Type Size Permission Actions
changelog-item.js File 958 B 0644
changelog.js File 2.29 KB 0644
customizer.js File 2.21 KB 0644
dash-controls.scss File 5.78 KB 0644
help.js File 1.15 KB 0644
index.js File 3.23 KB 0644
notices.js File 508 B 0644
pro-extension.js File 3.11 KB 0644
recomended.js File 290 B 0644
sidebar.js File 1.22 KB 0644
starter.js File 2.15 KB 0644