| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/structural.tar |
pricing/index.js 0000666 00000005017 15114222546 0007655 0 ustar 00 /**
* WordPress dependencies
*/
const { __ } = wp.i18n;
const { registerBlockType } = wp.blocks;
const { InnerBlocks } = wp.editor;
/**
* Internal dependencies
*/
import { pricingIcon } from '../../../helpers/icons.js';
registerBlockType( 'themeisle-blocks/pricing', {
title: __( 'Pricing' ),
description: __( 'Pricing tables are a critical part in showcasing your services, prices and overall offerings.' ),
icon: pricingIcon,
category: 'themeisle-blocks',
keywords: [
'pricing',
'table',
'money'
],
edit: props => {
const TEMPLATE = [
[ 'themeisle-blocks/advanced-heading', {
content: __( 'Basic' ),
align: 'center',
tag: 'h5'
} ],
[ 'themeisle-blocks/advanced-heading', {
content: __( '$9.99' ),
align: 'center',
tag: 'h3',
fontSize: 36,
fontFamily: 'Roboto Slab',
fontVariant: 'normal'
} ],
[ 'themeisle-blocks/advanced-heading', {
content: __( 'Per Month' ),
align: 'center',
tag: 'p',
fontSize: 12,
marginBottom: 0
} ],
[ 'core/separator', {} ],
[ 'themeisle-blocks/advanced-heading', {
content: __( 'First Feature' ),
align: 'center',
tag: 'p',
fontSize: 12,
marginBottom: 0
} ],
[ 'core/separator', {} ],
[ 'themeisle-blocks/advanced-heading', {
content: __( 'Second Feature' ),
align: 'center',
tag: 'p',
fontSize: 12,
marginBottom: 0
} ],
[ 'core/separator', {} ],
[ 'themeisle-blocks/advanced-heading', {
content: __( 'Last Feature' ),
align: 'center',
tag: 'p',
fontSize: 12,
marginBottom: 0
} ],
[ 'core/separator', {} ],
[ 'themeisle-blocks/button-group', {
align: 'center',
buttons: 1,
data: [ {
text: __( 'Buy Now' ),
newTab: false,
color: '#ffffff',
background: '#32373c',
hoverColor: '#ffffff',
hoverBackground: '#444a50',
borderSize: 0,
borderRadius: 3,
boxShadow: false,
boxShadowColorOpacity: 50,
boxShadowBlur: 5,
boxShadowSpread: 1,
boxShadowHorizontal: 0,
boxShadowVertical: 0,
hoverBoxShadowColorOpacity: 50,
hoverBoxShadowBlur: 5,
hoverBoxShadowSpread: 1,
hoverBoxShadowHorizontal: 0,
hoverBoxShadowVertical: 0,
iconType: 'none',
paddingTopBottom: 12,
paddingLeftRight: 24
} ]
} ]
];
return [
<div className={ props.className } >
<InnerBlocks
template={ TEMPLATE }
/>
</div>
];
},
save: props => {
return (
<div className={ props.className } >
<InnerBlocks.Content/>
</div>
);
}
});
index.js 0000666 00000000171 15114222546 0006216 0 ustar 00 /**
* Structural Blocks
*/
import './pricing/index.js';
import './service/index.js';
import './testimonials/index.js';
testimonials/index.js 0000666 00000003022 15114222546 0010727 0 ustar 00 /**
* WordPress dependencies
*/
const { __ } = wp.i18n;
const { registerBlockType } = wp.blocks;
const { InnerBlocks } = wp.editor;
/**
* Internal dependencies
*/
import { testimonialsIcon } from '../../../helpers/icons.js';
registerBlockType( 'themeisle-blocks/testimonials', {
title: __( 'Testimonials' ),
description: __( 'Display kudos from customers and clients and display them on your website.' ),
icon: testimonialsIcon,
category: 'themeisle-blocks',
keywords: [
'testimonials',
'quotes',
'business'
],
edit: props => {
const TEMPLATE = [
[ 'core/image', {
align: 'center'
} ],
[ 'themeisle-blocks/advanced-heading', {
content: __( 'John Doe' ),
align: 'center',
fontSize: 24,
tag: 'h3',
marginTop: 25,
marginBottom: 10,
marginTopTablet: 25,
marginTopMobile: 25
} ],
[ 'themeisle-blocks/advanced-heading', {
content: __( 'Jedi Master' ),
align: 'center',
fontSize: 14,
tag: 'h6',
marginTop: 10,
marginBottom: 10
} ],
[ 'themeisle-blocks/advanced-heading', {
content: __( '"What is the point of being alive if you don’t at least try to do something remarkable?"' ),
align: 'center',
color: '#999999',
tag: 'p',
fontSize: 14,
marginTop: 10,
marginBottom: 20
} ]
];
return [
<div className={ props.className } >
<InnerBlocks
template={ TEMPLATE }
/>
</div>
];
},
save: props => {
return (
<div className={ props.className } >
<InnerBlocks.Content/>
</div>
);
}
});
service/index.js 0000666 00000003763 15114222546 0007670 0 ustar 00 /**
* WordPress dependencies
*/
const { __ } = wp.i18n;
const { registerBlockType } = wp.blocks;
const { InnerBlocks } = wp.editor;
/**
* Internal dependencies
*/
import { servicesIcon } from '../../../helpers/icons.js';
registerBlockType( 'themeisle-blocks/service', {
title: __( 'Service' ),
description: __( 'Use this Service block to showcase services your website offers.' ),
icon: servicesIcon,
category: 'themeisle-blocks',
keywords: [
'services',
'icon',
'features'
],
edit: props => {
const TEMPLATE = [
[ 'themeisle-blocks/font-awesome-icons', {
fontSize: 62,
prefix: 'fab',
icon: 'angellist'
} ],
[ 'themeisle-blocks/advanced-heading', {
content: __( 'Basic' ),
align: 'center',
tag: 'h4',
marginBottom: 20
} ],
[ 'themeisle-blocks/advanced-heading', {
content: __( 'Lorem ipsum dolor sit amet elit do, consectetur adipiscing, sed eiusmod tempor incididunt ut labore et dolore magna aliqua.' ),
align: 'center',
color: '#999999',
tag: 'p',
fontSize: 14,
marginBottom: 20
} ],
[ 'themeisle-blocks/button-group', {
align: 'center',
buttons: 1,
data: [ {
text: __( 'Know More' ),
newTab: false,
color: '#ffffff',
background: '#32373c',
hoverColor: '#ffffff',
hoverBackground: '#444a50',
borderSize: 0,
borderRadius: 3,
boxShadow: false,
boxShadowColorOpacity: 50,
boxShadowBlur: 5,
boxShadowSpread: 1,
boxShadowHorizontal: 0,
boxShadowVertical: 0,
hoverBoxShadowColorOpacity: 50,
hoverBoxShadowBlur: 5,
hoverBoxShadowSpread: 1,
hoverBoxShadowHorizontal: 0,
hoverBoxShadowVertical: 0,
iconType: 'none',
paddingTopBottom: 12,
paddingLeftRight: 24
} ]
} ]
];
return [
<div className={ props.className } >
<InnerBlocks
template={ TEMPLATE }
/>
</div>
];
},
save: props => {
return (
<div className={ props.className } >
<InnerBlocks.Content/>
</div>
);
}
});