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

filters for header, main etc divs #33

Closed
petskratt opened this issue Feb 28, 2013 · 3 comments
Closed

filters for header, main etc divs #33

petskratt opened this issue Feb 28, 2013 · 3 comments

Comments

@petskratt
Copy link
Contributor

Some of the divs in header.php / footer.php have filter callbacks allowing customisation - but some div's are unfiltered. Is there some policy decision... or it would be welcomed if I go through all files, add filters and submit a pull request for inclusion?

e.g

echo ( apply_filters( 'thematic_open_header', '

' ) );
vs

also, there seems to be filter to remove wrapper... but not customize it -

if ( apply_filters( 'thematic_open_wrapper', true ) )
echo ( '

' );

is there a policy for using filters that modify content vs true/false toggle filters?

@ghost
Copy link

ghost commented Mar 1, 2013

There was never an official decision. Most of what you're mentioning here were Chris' and my responses to devs/user requests to make Thematic more flexible.

The boolean filters for the wrapper were introduced to provide the ability to remove the wrapper div if desired. I believe that was back in to 0.9.7.1 days.

Later on the filters on the header and footer divs were provided to allow for converting Thematic's default xhtml doctype to html5 and output native HTML 5 elements. Middlesister's Thematic HTML 5 plugin was the motivator for these filter additions.

Anyone is welcome to review Thematic and suggest changes. Thanks for your interest :)

@ghost
Copy link

ghost commented Mar 5, 2013

Closing... I think I answered your question if not feel free to continue with the discussion.

@ghost ghost closed this as completed Mar 5, 2013
@petskratt
Copy link
Contributor Author

yes, sure - safe to close, I'll take some time in near future to create some filters and submit them with pull requests

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

No branches or pull requests

1 participant