'acfb-testimonial', 'mode' => 'preview', 'title' => __('Testimonial'), 'description' => __('Let others know what your clients or customers say about you.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/testimonial.php', 'category' => 'acfb-blocks', 'icon' => '', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); }, )); // register a team block. acf_register_block_type(array( 'name' => 'acfb-team', 'mode' => 'preview', 'title' => __('Team'), 'description' => __('Introduce your team to your site visitors in style.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/team.php', 'category' => 'acfb-blocks', 'icon' => '', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); }, )); // register a multi buttons block. acf_register_block_type(array( 'name' => 'acfb-multibuttons', 'mode' => 'preview', 'title' => __('Multi Buttons'), 'description' => __('Display multiple buttons inline with ease.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/multi-buttons.php', 'category' => 'acfb-blocks', 'icon' => '', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); }, )); // register a pricing box block. acf_register_block_type(array( 'name' => 'acfb-pricingbox', 'mode' => 'preview', 'title' => __('Pricing Box'), 'description' => __('Display your plans and offers in style.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/pricing-box.php', 'category' => 'acfb-blocks', 'icon' => '', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); }, )); // register a Star Rating block. acf_register_block_type(array( 'name' => 'acfb-starrating', 'mode' => 'preview', 'title' => __('Star Rating'), 'description' => __('Add start ratings anywhere easily.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/star-rating.php', 'category' => 'acfb-blocks', 'icon' => '', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); }, )); // register a Progress Bar block. acf_register_block_type(array( 'name' => 'acfb-progressbar', 'mode' => 'preview', 'title' => __('Progress Bar'), 'description' => __('Show your progress using percentage defined progress bars.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/progress-bar.php', 'category' => 'acfb-blocks', 'icon' => ' ', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); }, )); // register a Counter Number block. acf_register_block_type(array( 'name' => 'acfb-counternumber', 'mode' => 'preview', 'title' => __('Counter Number'), 'description' => __('Display stats with animated counter numbers.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/counter-number.php', 'category' => 'acfb-blocks', 'icon' => '', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); wp_enqueue_script( 'acfb-blocks-js', plugin_dir_url( __FILE__ ) . 'js/frontend.js', array('jquery'), '', false ); }, )); // register a Price List block. acf_register_block_type(array( 'name' => 'acfb-pricelist', 'mode' => 'preview', 'title' => __('Price List'), 'description' => __('Display price list for any product easily.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/price-list.php', 'category' => 'acfb-blocks', 'icon' => '', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); }, )); // register a Click To Tweet block. acf_register_block_type(array( 'name' => 'acfb-clicktotweet', 'mode' => 'preview', 'title' => __('Click To Tweet'), 'description' => __('Add a tweet-able quote to let your reader tweet with 1-click.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/click-to-tweet.php', 'category' => 'acfb-blocks', 'icon' => ' ', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); }, )); // register a Post block. acf_register_block_type(array( 'name' => 'acfb-posts', 'mode' => 'preview', 'title' => __('Posts'), 'description' => __('Display a grid or list of your blog posts.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/posts.php', 'category' => 'acfb-blocks', 'icon' => ' ', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); }, )); // register a Photo Collage block. acf_register_block(array( 'name' => 'acfb-photocollage', 'mode' => 'preview', 'title' => __('Photo Collage'), 'description' => __('Display beautiful photo collage using pre-made templates.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/photo-collage.php', 'category' => 'acfb-blocks', 'icon' => ' ', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); }, )); // register a Social Sharing Block. acf_register_block(array( 'name' => 'acfb-socialsharing', 'mode' => 'preview', 'title' => __('Social Sharing'), 'description' => __('Super fast and customizable Social Media Sharing Buttons for WordPress. No JavaScript. No tracking.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/social-sharing.php', 'category' => 'acfb-blocks', 'icon' => ' ', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); }, )); //Register a Image Slider Block acf_register_block(array( 'name' => 'acfb-image-slider', 'mode' => 'preview', 'title' => __('Image Slider'), 'description' => __('Display your images as a slider or carousel.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/image-slider.php', 'category' => 'acfb-blocks', 'icon' => ' ', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-image-slider-css', plugin_dir_url( __FILE__ ) . 'css/swiper.min.css' ); wp_enqueue_script('jQuery'); wp_enqueue_script( 'acfb-image-slider-swiper-js' ,plugin_dir_url( __FILE__ ) . 'js/swiper.min.js', array('jquery'), '', true ); wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); wp_enqueue_script( 'acfb-image-slider-custom' ,plugin_dir_url( __FILE__ ) . 'js/image-slider.js', array('jquery'), '', true ); }, )); // register a Tabs Block. acf_register_block(array( 'name' => 'acfb-tabs', 'mode' => 'preview', 'title' => __('Tabs'), 'description' => __('Add tabbed content in your posts/pages.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/tabs.php', 'category' => 'acfb-blocks', 'icon' => '', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); wp_enqueue_script( 'acfb-tabs-js', plugin_dir_url( __FILE__ ) . 'js/tabs.js', array('jquery'), '', true ); }, )); // register a Toggle Block. acf_register_block(array( 'name' => 'acfb-toggle', 'mode' => 'preview', 'title' => __('Toggle'), 'description' => __('Add toggleable content in your pages/posts.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/toggle.php', 'category' => 'acfb-blocks', 'icon' => '', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); wp_enqueue_script( 'acfb-toggle-js', plugin_dir_url( __FILE__ ) . 'js/toggle.js', array('jquery'), '', true ); }, )); // register a Accordion Block. acf_register_block(array( 'name' => 'acfb-accordion', 'mode' => 'preview', 'title' => __('Accordion'), 'description' => __('Add accordion content in your pages/posts.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/accordion.php', 'category' => 'acfb-blocks', 'icon' => '', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); wp_enqueue_script( 'acfb-accordion-js', plugin_dir_url( __FILE__ ) . 'js/accordion.js', array('jquery'), '', true ); }, )); // register a Scrollable Image Block. acf_register_block(array( 'name' => 'acfb-scrollable-image', 'mode' => 'preview', 'title' => __('Scrollable Image'), 'description' => __('Add Scrollable Image in your pages/posts.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/scrollable-image.php', 'category' => 'acfb-blocks', 'icon' => '', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); }, )); // register a Business Hours Block. acf_register_block(array( 'name' => 'acfb-business-hours', 'mode' => 'preview', 'title' => __('Business Hours'), 'description' => __('Add Business Hours in your pages/posts.'), 'render_callback' => 'acf_blocks_template', // 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/scrollable-image.php', 'category' => 'acfb-blocks', 'icon' => ' ', 'enqueue_assets' => function(){ wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' ); }, )); } }