Download the PHP package mwdelaney/acf-flexible-content-blocks without Composer

On this page you can find all versions of the php package mwdelaney/acf-flexible-content-blocks. 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 acf-flexible-content-blocks

Advanced Custom Fields Flexible Content Blocks

NOTE: This plugin is very much a work in progress. It includes a small number of layouts now, and will include more as time allows.

A WordPress plugin that provides a collection of useful, reusable flexible content blocks for use with ACF Pro 5. Basic templates included and automatically loaded, can be optionally overridden at the theme level.

This plugin creates a Flexible Content Field below the content editor on Pages and automatically includes content entered there below the_content() on page templates.

Also wraps the_content() in some basic HTML to make it easy to differentiate from the added content blocks.

Requirements

  1. WordPress 4.5+
  2. Advanced Custom Fields Pro 5

Usage

By default all included layouts are available:

  1. Content
  2. Media (image, oembed, 'content', code)
  3. Content With Media
  4. Featured Content
  5. Slider
  6. Tabs
  7. Gallery
  8. Collapsibles
  9. Cards
  10. Post List
  11. Strap

Enable only some layouts

To remove layouts from the available list, declare theme support for only the layouts you wish to use: `

Change post type blocks appear on

By default content blocks are enabled for Pages, to define which post types blocks should be available on, declare theme support:

`

Templates

Basic templates for each layout are included. These templates are designed to be simple for styling via your theme. To override the included templates, copy the template(s) you wish to override from templates to your theme in a sub-directory called fcb-templates

Base template wrapper

The layout base can be overridden on a per-block-type basis. When a block is rendered, the plugin will first look in your theme, and then in the plugin directory, for layout-base-[layout_name].php (e.g. layout-base-content_with_media.php) if a specific base doesn't exist, the plugin will load the layout-base.php template.

Layout-specific template parts

Like the base template, each template part's file name can be appended with a layout name (like content_with_media to override the template for that layout only. For example, [your-theme]/fcb-templates/blocks/parts/block-cta-content_with_media.php will be loaded only for calls to action in the "Content with Media" layout.

Actions and filters

Several filters are available to alter the plugin's output.

Filter: fcb_bg_colors

Change or add to the available "theme" background colors for blocks

`

Filter: fcb_btn_colors

Change or add to the available button colors for block calls to action

`

Filter: fcb_set_block_htag

Set the tag that block titles are wrapped in. This defaults to <h2>. First remove the existing filter and then add your own:

`

Filter: fcb_set_block_wrapper_classes

Set the classes applied to content block wrappers. This filter runs each time a block is rendered, so classes can be conditionally applied per-block.

`

Filter: fcb_set_block_classes

Set the classes applied to content blocks. This filter runs each time a block is rendered, so classes can be conditionally applied per-block.

`

Filter: fcb_set_block_wrapper_styles

Set the styles applied to content blocks. This filter runs each time a block is rendered, so styles can be conditionally applied per-block.

This filter isn't recommended for use --it's used by the plugin to apply background styles which are set in the block. Semantic styles are always preferrable to style attributes applied per block.

`

Filter: fcb_content_before

This plugin armors the main WordPress content (the_content()), by default. This filter can be used to modify the armor and output of the_content().

`

Filter: fcb_content_after

This plugin armors the main WordPress content (the_content()), by default. This filter can be used to modify the armor and output of the_content().

`

Filter: fcb_get_layouts

Change the PHP class that the plugin looks at for layouts. See Adding Your Own Layouts.

Adding Your Own Layouts

You can append your own layouts to the included set using a filter:

`


All versions of acf-flexible-content-blocks with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
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 mwdelaney/acf-flexible-content-blocks contains the following files

Loading the files please wait ....