Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/cartflows-pro   php

Repository URL to install this package:

Version: 1.6.10 

/**
 * BLOCK: Offer Product Quantity
 *
 * Registering a basic block with Gutenberg.
 * Simple block, renders and saves the same content without any interactivity.
 */

import CFP_Block_Icons from "../../../dist/blocks/controls/block-icons"
import "./style.scss"
import "./editor.scss"
import edit from "./edit"


const { __ } = wp.i18n

const {
	registerBlockType
} = wp.blocks

if( 'upsell' === cfp_blocks_info.step_type || 'downsell' === cfp_blocks_info.step_type  && cfp_blocks_info.is_woo_active){
registerBlockType( "wcfpb/offer-product-quantity", {
	title: cfp_blocks_info.blocks["wcfpb/offer-product-quantity"]["title"],
	description: cfp_blocks_info.blocks["wcfpb/offer-product-quantity"]["description"],
	icon: CFP_Block_Icons.offer_product_quantity,
	category: cfp_blocks_info.category,
	keywords: [
		__( "cartflows", 'cartflows-pro' ),
		__( 'offer product quantity', 'cartflows-pro' ),
		__( "cfp", 'cartflows-pro' ),
	],
	edit,
} ) }