Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance beans_get_layout_class to build multiple layouts #79

Open
hellofromtonya opened this issue Nov 29, 2017 · 0 comments
Open

Enhance beans_get_layout_class to build multiple layouts #79

hellofromtonya opened this issue Nov 29, 2017 · 0 comments

Comments

@hellofromtonya
Copy link
Contributor

hellofromtonya commented Nov 29, 2017

The beans_get_layout_class() is very powerful in that it automatically builds the class attributes for the content and each of the select sidebars based upon:

  1. The selected layout for that web page.
  2. Each enabled sidebar (widget area).

However, it's limited to one set of grid configuration settings:

	$args = apply_filters( 'beans_layout_grid_settings', array(
		'grid'              => 4,
		'sidebar_primary'   => 1,
		'sidebar_secondary' => 1,
		'breakpoint'        => 'medium',
	) );

Let's enhance this function, allowing you to configure multiple breakpoints.

For example, let's say you are building a theme that uses large and medium breakpoints. This enhancement would allow you to define and configure what you want and then Beans just handles it for you.

Notes

The problem was original identified by Alex in this Community Forum post.

@hellofromtonya hellofromtonya added this to Planning and Organization in v2 Roadmap via automation Nov 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
v2 Roadmap
  
Planning and Organization
Development

No branches or pull requests

1 participant