{"id":30028704,"url":"https://github.com/pocketsize/bolts-wp","last_synced_at":"2025-08-06T15:59:00.565Z","repository":{"id":98377688,"uuid":"117860439","full_name":"pocketsize/bolts-wp","owner":"pocketsize","description":"A starter theme for WordPress using Bolts","archived":false,"fork":false,"pushed_at":"2024-04-14T01:23:26.000Z","size":849,"stargazers_count":2,"open_issues_count":21,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-01T19:58:26.844Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/pocketsize.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2018-01-17T16:14:00.000Z","updated_at":"2023-04-19T19:07:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"2a88faa7-650c-43af-bfa6-70f568ca0639","html_url":"https://github.com/pocketsize/bolts-wp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pocketsize/bolts-wp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocketsize%2Fbolts-wp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocketsize%2Fbolts-wp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocketsize%2Fbolts-wp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocketsize%2Fbolts-wp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pocketsize","download_url":"https://codeload.github.com/pocketsize/bolts-wp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocketsize%2Fbolts-wp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269108627,"owners_count":24361219,"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","status":"online","status_checked_at":"2025-08-06T02:00:09.910Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-08-06T15:58:59.764Z","updated_at":"2025-08-06T15:59:00.543Z","avatar_url":"https://github.com/pocketsize.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bolts WP\n*1.0.1*\n\nBolts WP is your new favourite developer theme (at least for WordPress) - tough enough to power (and easily maintain) websites of any shape and size, yet so simple that you can become a power user within a day. It focuses on removing complexity and streamlining development without creating a whole new workflow. Its not trying to recreate the wheel, just make it rounder.\n\nBolts WP has a modern workflow and many of the build tools you´ve come to love and expect, out of the box:\n\n- **Webpack** for bundling and task running\n- **Babel** for transpiling and polyfilling ES6+\n- **Sass** with **Autoprefixer**, **CSSNano** and **MQPacker** for styles\n- **ESLint**, **Stylelint** and **Prettier** for linting and code formatting\n- **Bolts** front-end library\n\nAs for the PHP, Bolts WP is component oriented and features helpers to keep your code as DRY as possible. Just use the `component()` function, pass in your data and never write any markup in your page templates again.\n\nThe theme also features a lot of handy functions and cleaning defaults, removing bloat and filling WP's blatant gaps, making the workflow more normalized and easy to use.\n\n## Table of contents\n- [Installation](#installation \"Installation\")\n- [Build scripts](#build-scripts \"Build scripts\")\n  - [For development](#for-development \"For development\")\n  - [For production](#for-production \"For production\")\n\n## Installation\n1. Run `git clone` in your themes directory to install the theme\n2. Run `npm install` to install all npm packages\n\n## Build scripts\n### For development\n- `npm run dev` bundles a unminified development version of the theme\n- `npm run watch` bundles a development version every time a SCSS or JS file changes\n\n### For production\n- `npm run build` bundles a production ready theme.\n\n### PHP Defaults\nBolts WP features a couple of defaults used both during the init, but also by some of our functions. They are all configurable with `define()`, that should be done in `functions.php`.\n\n| Name                             | Type   | Default Value |\n|----------------------------------|--------|---------------|\n| `BOLTS_WP_DEFAULT_MENU_LOCATION` | Bool   | `false`       |\n\n## Content functions\n\n#### get_page_ids_by_template( $template )\nReturn an array of page ids that match the specified template\n\n\n------------\n\n\u003cbr\u003e\n\n\n#### get_page_id_by_template( $template )\nReturn the first page id that matches a template\n\n\n------------\n\n\u003cbr\u003e\n\n\n#### is_template( $template, $post_id = false )\nReturn whether the current (or specified) post matches a template\n\n\n------------\n\n\u003cbr\u003e\n\n#### is_post_type( $post_type, $post = false )\nDetermine if a post has a specific post type\n\n\n------------\n\n\u003cbr\u003e\n\n#### get_title( $post_id = false, $filtered = false )\nReturn the title of a post\n\n\n------------\n\n\u003cbr\u003e\n\n#### get_content( $post_id = false, $filtered = false )\nReturn the content of a post\n\n\n------------\n\n\u003cbr\u003e\n\n#### get_excerpt( $post_id = false, $words = false, $more = false )\nReturn the excerpt for a post (manual or automatically generated)\n\n\n------------\n\n\u003cbr\u003e\n\n#### get_author( $post_id = false, $field = 'display_name' )\nReturn author information from a post (defaults to display name)\n\n\n------------\n\n\u003cbr\u003e\n\n#### get_date( $post_id = false, $format = false )\nReturn formatted date from a post\n\n\n------------\n\n\u003cbr\u003e\n\n#### get_featured_image( $post_id = false, $size = 'full', $fallback = false )\nReturn the URI for the featured image of a post\n\n\n------------\n\n\u003cbr\u003e\n\n#### get_media( $attachment_id, $size = 'full', $fallback = false )\nReturn the path to an attachment in the media library\n\n\n------------\n\n## Theme functions\n\n#### component( $file, $args = false )\nInclude a template part from the components folder, with optional arguments\n\n\n------------\n\n\u003cbr\u003e\n\n#### get_theme_dir()\nReturn the current theme directory\n\n\n------------\n\n\u003cbr\u003e\n\n#### get_theme_uri()\nReturn the current theme directory URI\n\n\n------------\n\n\u003cbr\u003e\n\n#### get_asset( $asset, $fallback = false )\nReturn the path to a theme asset file\n\n\n------------\n\n\u003cbr\u003e\n\n#### get_svg( $asset, $fallback = false )\nReturn .svg file parsed for inline use\n\n\n------------\n\n\u003cbr\u003e\n\n#### create_post_type( $slug, $singular, $plural, $icon = null, $custom_args = false )\nRegister a custom post type\n\n\n------------\n\n\u003cbr\u003e\n\n#### create_taxonomy( $slug, $singular, $plural, $post_type = 'post', $custom_args = false )\nRegister a custom taxonomy\n\n\n------------\n\n\n\u003cbr\u003e\n\n#### layout_items($items, $item_class = false)\nUsed in layout components. Loop through the layout items and output components from their data, if a class and a class suffix is present wrap the component in a div.\n\n\n------------\n\n\u003cbr\u003e\n\n#### get_menu_object($location = false)\nReturn an object with the full menu structure for a menu location\n\n\n------------\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocketsize%2Fbolts-wp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpocketsize%2Fbolts-wp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocketsize%2Fbolts-wp/lists"}