Download the PHP package kunoichi/theme-customizer without Composer
On this page you can find all versions of the php package kunoichi/theme-customizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kunoichi/theme-customizer
More information about kunoichi/theme-customizer
Files in kunoichi/theme-customizer
Package theme-customizer
Short Description A handy class for WordPress customizer settings.
License GPL-3.0-or-later
Informations about the package theme-customizer
Kunoichi Theme Customizer
A handy PHP class to integrate WordPress Theme Customizer.
Installation
In your theme's functions.php
:
How to Implement
This library is an abstract class, so you have to implement it.
And you can call them in your theme's functions.php
.
Or, simply scan directory for convenience. Let's suppose that your theme is my-theme
and directory is PSR-0 ready like below:
You should call like this:
Arguments
$namespace
Your PSR-0 name space. Directory will be scan recursively.
$direcotry
If not set, default is get_template_directory() . '/src
, which seem to be a common location in theme development.
Predefined Classes
Some customizers are predefined for convenience.
See src/Kunoichi\ThemeCustomizer\Pattern
.
1. Meta and SEO
Kunoichi\ThemeCutomizer\Pattern\Seo
adds HTML meta information like meta-description, OGP, etc.
This customizer is userful to provide basic SEO features. For more advanced features, you should recommmend some plugins.
- Google Analytics or Google Tag Manager scirpt.
- Default and Site top OGP image.
- Top page description.
- Option to stop all feature(in plugins' favor).
2. Sharing
Kunoichi\ThemeCutomizer\Pattern\Share
adds share buttons for SNS. The only codes you should implement:
- Write code to display share buttons via
Kunoichi\ThemeCutomizer\Pattern\Share::render( $position )
Available services are listed in src/Kunoithi/ThemeCustomizer/Models/Brand
Development
wp-env is supported for instant development. You need node, npm, and docker installed.
License
GPL 3.0 or later.
All versions of theme-customizer with dependencies
hametuha/singleton-pattern Version ^1.2
symfony/finder Version ^5.4.0
hametuha/string-utility Version ^1.2