Plugin info

Total downloads: 884
Active installs: 10
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 12/3/2020 (1854 days ago)
Added to WordPress: 8/12/2020 (5 years old)
Minimum WordPress version: 5.0
Tested up to WordPress version: 5.5.17
Minimum PHP version: 7.1

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 1854 days ago

20/100

Is Jinx-Block-Renderer abandoned?

Possibly abandoned (last update 1854 days ago).

Compatibility

Requires WordPress: 5.0
Tested up to: 5.5.17
Requires PHP: 7.1

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Agenda
Rating 0.0/5 (0 reviews)Active installs 10

Description

The plugin allows you to parse all kinds gutenberg blocks and render them in your own template.

Usage

Use the filter ‘jinx_block_renderers’ in your theme to render gutenberg blocks.

 'core-embed/youtube', // name of the block
      'conditions' => [], // default - accepts an array of key value pairs
      // 'conditions' => [
      //   'className' => 'is-style-custom', // strings are used inside a regular expression
      //   'field' => function($value) { // callbacks will receive the fields value and must return true or false
      //     return $value === 'some value';
      //   }
      // ],
      'fields' => [
        'url' => [ // name of your parameter
          'path' => '//iframe[@src]',
          'item' => 0,
          // 'item' => 9, // if not exists, will return null
          // 'item': 'first', // constant Jinx\BlockRenderer\Field::ITEM_FIRST
          // 'item': 'last', // constant Jinx\BlockRenderer\Field::ITEM_LAST
          // 'item': null // default - returns all results as an array
          'attr' => 'src',
          //'attr' => null // default - returns the results value
          //'filter' => 'my_filter_function' // filters each matched field
        ],
      ],
      // 'insert' => '//*[contains(@class,"wp-block-")]' // default - inserts rendered block back into the block-wrapper
      'template' => __DIR__.'/youtube-video.php', // relative path, templates will handle each field as a variable
      // 'callback' => 'my_render_function'
    ];

    return $renderers;

  });

?>

Installation

  1. Unzip the downloaded package
  2. Upload jinx-block-renderer to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

No changelog available