/**
* External dependencies
*/
import { Suspense, cloneElement, isValidElement } from '@wordpress/element';
import parse from 'html-react-parser';
/**
* Internal dependencies
*/
import { getBlockMap } from './get-block-map';
/**
* Replaces saved block HTML markup with Inner Block Components.
*
* @param {Object} props Render props.
* @param {Array} props.children Children/inner blocks to render.
* @param {string} props.blockName Parent Block Name used to get the block map and for keys.
* @param {number} [props.depth] Depth of inner blocks being rendered.
*/
export const renderInnerBlocks = ( {
children,
blockName: parentBlockName,
depth = 1,
} ) => {
const blockMap = getBlockMap( parentBlockName );
return Array.from( children ).map( ( el, index ) => {
const componentProps = {
...el.dataset,
key: `${ parentBlockName }_${ depth }_${ index }`,
};
const componentChildren =
el.children && el.children.length
? renderInnerBlocks( {
children: el.children,
blockName: parentBlockName,
depth: depth + 1,
} )
: null;
const LayoutComponent =
componentProps.blockName && blockMap[ componentProps.blockName ]
? blockMap[ componentProps.blockName ]
: null;
if ( ! LayoutComponent ) {
const element = parse( el.outerHTML );
if ( isValidElement( element ) ) {
return componentChildren
? cloneElement( element, componentProps, componentChildren )
: cloneElement( element, componentProps );
}
return null;
}
return (
}
>
{ componentChildren }
);
} );
};
/**
* External dependencies
*/
import { SVG } from 'wordpress-components';
const chevronUp = (
);
export default chevronUp;
/**
* External dependencies
*/
import { previewReviews } from '@woocommerce/resource-previews';
export const example = {
attributes: {
editMode: false,
imageType: 'reviewer',
orderby: 'most-recent',
reviewsOnLoadMore: 10,
reviewsOnPageLoad: 10,
showLoadMore: true,
showOrderby: true,
showReviewDate: true,
showReviewerName: true,
showReviewImage: true,
showReviewRating: true,
showReviewContent: true,
previewReviews,
},
};
.redux-container-multi_text {
ul.redux-multi-text {
margin: 0;
padding: 0;
}
.redux-multi-text-add {
clear: both;
margin: 5px 0;
}
a.redux-multi-text-remove {
&.deletion {
color: #f00;
padding: 2px 4px;
margin-left: 5px;
&:hover {
background: #ff0;
color: #fff;
text-decoration: none;
}
}
}
}
@media screen and (max-width: 782px) {
.redux-container-multi_text {
input {
clear: both;
}
.redux-multi-text-remove {
margin: 0;
float: right;
}
}
}
.wp-customizer {
.redux-container-multi_text {
.button {
float: right;
}
.redux-multi-text-remove {
float: right;
margin-bottom: 5px;
}
ul.redux-multi-text input {
width: 100% !important;
}
}
}
/**
* External dependencies
*/
import { previewReviews } from '@woocommerce/resource-previews';
export const example = {
attributes: {
editMode: false,
imageType: 'reviewer',
orderby: 'most-recent',
reviewsOnLoadMore: 10,
reviewsOnPageLoad: 10,
showLoadMore: true,
showOrderby: true,
showReviewDate: true,
showReviewerName: true,
showReviewImage: true,
showReviewRating: true,
showReviewContent: true,
previewReviews,
},
};
Můj účet - Popular Store
Nebo
Registrace
Registrace na tento web vám umožní přístup k stavu a historii vaší objednávky. Vyplňte níže uvedená pole pro vytvoření nového účtu. Budeme od vás žádat pouze o informace nezbytné k tomu, aby byl proces nákupu rychlejší a snadnější.
Registrovat se
Začněte zadávat název produktů, které vyhledáváte.