Gamajo-Template-Loader

A class to copy into your WordPress plugin, to allow loading template parts with fallback through the child theme > parent theme > plugin.

GPL-2.0 License

Downloads
36.3K
Stars
290
Committers
15
Gamajo-Template-Loader - 1.3.1 Latest Release

Published by GaryJones about 6 years ago

  • Fix coding standards.
Gamajo-Template-Loader - 1.3.0

Published by GaryJones over 7 years ago

  • Add prefixed get_template_part filter.
  • Add a template cache to store previously located template paths.
  • Add a custom data variable name cache, so unset_template_data() can remove all custom references.
  • Update set_template_data() and unset_template_data() to become fluent methods.
  • Remove array type hint from set_template_data() argument.
  • Update documentation.
Gamajo-Template-Loader - 1.2.0

Published by GaryJones over 8 years ago

  • Support adding custom template data.
  • Add check around class definition if class exists.
  • Added composer.json.
  • Fix code standards.
  • Improve README.
  • Move example meal planner class into README.
Gamajo-Template-Loader - 1.1.0

Published by GaryJones over 10 years ago

Small bug fixes and improvements.

Thanks to @bradyvercher, @grappler and @wpsmith.

Gamajo-Template-Loader - 1.0.0

Published by GaryJones almost 11 years ago

Initial release. Exists to be used verbatim within other plugins as a template loader, allowing template parts to be searched for in child theme, parent theme and finally the plugin itself (though this list is individually filterable per plugin).

Package Rankings
Top 2.63% on Packagist.org
Badges
Extracted from project README
Code Climate
Related Projects