{"id":16025465,"url":"https://github.com/pattonwebz/customizer-info-control","last_synced_at":"2025-04-05T04:20:00.667Z","repository":{"id":70083429,"uuid":"173189213","full_name":"pattonwebz/customizer-info-control","owner":"pattonwebz","description":"A simple control for outputting small informational blocks in the customizer.","archived":false,"fork":false,"pushed_at":"2019-03-04T18:13:24.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T12:21:17.131Z","etag":null,"topics":["customizer","customizer-control","wordpress","wordpress-customizer"],"latest_commit_sha":null,"homepage":null,"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":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-28T21:20:57.000Z","updated_at":"2019-03-04T18:13:12.000Z","dependencies_parsed_at":"2023-03-01T17:46:09.765Z","dependency_job_id":null,"html_url":"https://github.com/pattonwebz/customizer-info-control","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattonwebz%2Fcustomizer-info-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattonwebz%2Fcustomizer-info-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattonwebz%2Fcustomizer-info-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattonwebz%2Fcustomizer-info-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pattonwebz","download_url":"https://codeload.github.com/pattonwebz/customizer-info-control/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247285919,"owners_count":20913901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["customizer","customizer-control","wordpress","wordpress-customizer"],"created_at":"2024-10-08T20:00:38.367Z","updated_at":"2025-04-05T04:20:00.640Z","avatar_url":"https://github.com/pattonwebz.png","language":"PHP","readme":"# PattonWebz Customizer Info Control\nA simple control for using when you want to output a small informational section within the customizer.\n\n## Using the class\n\nThe control works just like any other custom class control in that you register a setting for it and the control and place it inside a section.\n\nThe class looks at 2 specific keys that you pass into the args array when registering the control. The `title` key and the `html` key.\n\nThe passed in value for `title` is wrapped inside an `\u003ch1\u003e` tag and the `html` is wrapped inside of a `\u003cp\u003e` tag at output time.\n\n```\n// The control must go in a defined section.\n$wp_customize-\u003eadd_section(\n\t'a_section',\n\tarray(\n\t\t'title' =\u003e __( 'A Section', 'pattonwebz' ),\n\t)\n);\n\n// It should also have a setting defined with a custom setting 'type'.\n// This can be any unique string you want - you won't be attaching custom actions to it.\n$wp_customize-\u003eadd_setting(\n\t'an_info_control',\n\tarray(\n\t\t'type' =\u003e 'display_only',\n\t)\n);\n\n// Add the control with it's title and html content.\n$wp_customize-\u003eadd_control(\n\tnew \\PattonWebz\\Customizer\\Control\\InfoControl(\n\t\t$wp_customize,\n\t\t'an_info_control',\n\t\tarray(\n\t\t\t'section' =\u003e 'a_section',\n\t\t\t'title'   =\u003e __( 'Custom Info Control', 'pattonwebz' ),\n\t\t\t'html'    =\u003e __( 'This control has ability to output a title and custom html content.', 'pattonwebz' ),\n\t\t)\n\t)\n);\n```\n\nYou can optionally override the wrappers added by passing in an `'override_wrapper' =\u003e 'true'` argument. This will output just raw `html` so you need to include your own wrappers and any title you may want directly in the html string.\n\n# Licence Information\nThis package is licensed under GNU GPLv2 or later licence.\n\nCopyright 2019 © William Patton.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpattonwebz%2Fcustomizer-info-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpattonwebz%2Fcustomizer-info-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpattonwebz%2Fcustomizer-info-control/lists"}