Download the PHP package gebruederheitz/wp-block-video-overlay without Composer

On this page you can find all versions of the php package gebruederheitz/wp-block-video-overlay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-block-video-overlay

Wordpress Block Video Overlay (Backend Module)

see @gebruederheitz/wp-block-video-overlay

Usage

Registering the block

Given you have already initialized the gebruederheitz/wp-gutenberg-blocks BlockRegistrar somewhere:

You will then simply have to instantiate a VideoOverlayBlock:

Using consent management functionality

Managing user consent of third-party platforms is quite simple with this block and @gebruederheitz/consent-tools. To provide the editor scripts in @gebruderheitz/wp-block-video-overlay with a list of possible embed types, use the filter hook:

Changing the default embed provider

You can simply pass the default service's identifier to the constructor:

Enabling video captions

Use the filter hook HOOK_CC_LANG_PREFS to provide an array of available languages on your site to allow editors to input a language preset for Youtube captions:

Editors may input a string in the Block Editor representing a language or locale slug (like "en", "en-GB", "en-US", "fr", "de-DE" etc.). The input is sanitized to only allow alphanumeric characters, dashes and underscores.

Defining additional attributes

Yes, there's a filter hook for that:

Changing the block markup

You can override the template used by the block by simply putting a file into wp-content/themes/{your-theme}/template-parts/blocks/video-overlay.php. The block's attributes are accessible using get_query_var('attributeName'). Take look at the default template as an example.

Alternatively you can filter & override the template partial path and gain even more control:


All versions of wp-block-video-overlay with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
gebruederheitz/wp-easy-customizer Version ^v3.0.0
gebruederheitz/wp-gutenberg-blocks Version ~1.6
gebruederheitz/wp-simple-rest Version ^2.0
league/uri Version ^7.3
league/uri-interfaces Version ^7.3
league/uri-components Version ^7.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gebruederheitz/wp-block-video-overlay contains the following files

Loading the files please wait ....