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

add page_builder_class function #11

Closed
jazzsequence opened this issue Jul 15, 2015 · 1 comment
Closed

add page_builder_class function #11

jazzsequence opened this issue Jul 15, 2015 · 1 comment
Milestone

Comments

@jazzsequence
Copy link
Contributor

would work like post_class does in WordPress core. echoes a generic class (e.g. pagebuilder-part) and takes an optional string parameter to pass specific classes. would be used in markup when building containers/wrappers, e.g.

<div <?php page_builder_class( 'my-class-name' ); ?>>
     <!-- stuff here -->
</div>

which would display as:

<div class="pagebuilder-part my-class-name">
     <!-- stuff here -->
</div>
@jazzsequence jazzsequence modified the milestone: 1.5 Jul 15, 2015
jazzsequence added a commit that referenced this issue Jul 20, 2015
…TODO need to figure out a way to identify the current template part being used

#11
@jazzsequence
Copy link
Contributor Author

added in 303459a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant