{"id":14955174,"url":"https://github.com/pattonwebz/customizer-framework","last_synced_at":"2026-01-20T18:55:53.718Z","repository":{"id":57036373,"uuid":"126551391","full_name":"pattonwebz/customizer-framework","owner":"pattonwebz","description":"A base framework that can be included in a theme for working with the WP Theme Customizer.","archived":false,"fork":false,"pushed_at":"2018-11-01T00:02:44.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T08:42:09.351Z","etag":null,"topics":["theme-customizer","wordpress","wordpress-development","wordpress-theme"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pattonwebz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-24T00:20:29.000Z","updated_at":"2018-11-01T00:02:46.000Z","dependencies_parsed_at":"2022-08-23T20:51:01.818Z","dependency_job_id":null,"html_url":"https://github.com/pattonwebz/customizer-framework","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pattonwebz/customizer-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattonwebz%2Fcustomizer-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattonwebz%2Fcustomizer-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattonwebz%2Fcustomizer-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattonwebz%2Fcustomizer-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pattonwebz","download_url":"https://codeload.github.com/pattonwebz/customizer-framework/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattonwebz%2Fcustomizer-framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28609368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["theme-customizer","wordpress","wordpress-development","wordpress-theme"],"created_at":"2024-09-24T13:10:36.901Z","updated_at":"2026-01-20T18:55:53.694Z","avatar_url":"https://github.com/pattonwebz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PattonWebz Customizer Framework\nA starter template for use with the WordPress Theme Customizer.\n\nPrimarily this is a clean base class to start with a customizer implementation within a WordPress theme and is still a work in progress.\n\nYou need to define all of your own settings, sections, panels and controls in exactly the same way that you would do inside other functions. This class doesn't have helper methods to make adding those any easier than the default WP methods.\n\nSome Features:\n\n* Contains separate methods for adding panels, sections, settings and controls.\n* Has an example 'help section' based on Justin Tadlock's TRT-Customizer-Pro Section (can be used as a 'pro' or 'upsell' section). Has these customization options:\n  * Title\n  * Button with Link\n  * Description Text\n* Has properties to hold passed default values for settings that can be passed from the theme instantiating the extended class.\n\n## Extending the class\n\nThe class is setup in a way that it is intended to be extended to use.\n\nThe first step is to create a class which extends the base class and place it somewhere that it (and the base PattonWebz_Customize class file) can accessed. In these examples I assume it is located at `/path/to/theme/inc/` but you could place it elsewhere.\n\nThe file at `examples/class-themename-customizer.php` shows an example of an extension class. You should replace 'Themename' in the class definition and 'themename' in the filename with your own prefix:\n\nRequire the base class and the theme customizer class files then get an instance of the extended class like so:\n\n``` php\n// Register the theme customizer settings.\nrequire_once trailingslashit( get_template_directory() ) . 'inc/customizer/class-pattonwebz-customizer.php';\nrequire_once trailingslashit( get_template_directory() ) . 'inc/class-themename-customizer.php';\n\n// pass in the directory of the customizer package, the uri to it and an array of of setting defaults.\n$prefix_customizer_class = new Themename_Customizer( $dir, $uri, $defaults );\n```\n\nFollow the instructions contained in the `NOTE:` doc blocks in that file for help with where to add your customizer options.\n\n## Using the `settings_defaults` property\n\nA property is used here to hold an array with your settings to be used as default values in the settings.\n\n# Licence Information\nThis package is licensed under GNU GPLv2 or later licence.\n\nHelp Section contained in the package is based on and inspired by Justin Tadlock's Customizer Upsell Section - https://github.com/justintadlock/trt-customizer-pro - GPLv2 licence.\n\nCopyright 2018 © William Patton.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpattonwebz%2Fcustomizer-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpattonwebz%2Fcustomizer-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpattonwebz%2Fcustomizer-framework/lists"}