{"id":21239818,"url":"https://github.com/horttcore/wp-content-width","last_synced_at":"2025-03-15T03:42:03.909Z","repository":{"id":62533065,"uuid":"192353950","full_name":"Horttcore/wp-content-width","owner":"Horttcore","description":"Setting the global WordPress variable `$content_width` in a single place for php and css","archived":false,"fork":false,"pushed_at":"2020-01-16T13:36:48.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-12T08:11:37.962Z","etag":null,"topics":["composer","package","wordpress"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Horttcore.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}},"created_at":"2019-06-17T13:36:38.000Z","updated_at":"2020-01-16T13:36:33.000Z","dependencies_parsed_at":"2022-11-02T15:02:01.741Z","dependency_job_id":null,"html_url":"https://github.com/Horttcore/wp-content-width","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Horttcore%2Fwp-content-width","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Horttcore%2Fwp-content-width/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Horttcore%2Fwp-content-width/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Horttcore%2Fwp-content-width/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Horttcore","download_url":"https://codeload.github.com/Horttcore/wp-content-width/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681003,"owners_count":20330155,"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":["composer","package","wordpress"],"created_at":"2024-11-21T00:45:39.481Z","updated_at":"2025-03-15T03:42:03.886Z","avatar_url":"https://github.com/Horttcore.png","language":"PHP","readme":"# Content Width\n\nSetting the global WordPress variable `$content_width` in a single place for php and css\n\n## Installation\n\n`$ composer require ralfhortt/wp-content-width`\n\n## Usage\n\n```php\n\u003c?php\nuse RalfHortt\\ContentWidth\\ContentWidth;\n\n(new ContentWidth(980))-\u003eregister();\n```\n\n```css\n.container {\n\tmargin-left: auto;\n\tmargin-right: auto;\n\tmax-width: var(--content-width);\n\twidth: 100%;\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhorttcore%2Fwp-content-width","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhorttcore%2Fwp-content-width","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhorttcore%2Fwp-content-width/lists"}