bootscore/bs-grid
Composer 安装命令:
composer require bootscore/bs-grid
包简介
Grid for Bootscore
README 文档
README
WordPress plugin to show posts, pages or custom-post-types in grid / list cards, heroes, accordion or tabs via shortcode in Bootscore theme.
- Demo and documentation: https://bootscore.me/documentation/bs-grid/
Installation
- Download latest release bs-grid.zip.
- In your admin panel, go to Plugins > and click the Add New button.
- Click Upload Plugin and Choose File, then select the Plugin's .zip file. Click Install Now.
- Click Activate to use your new Plugin right away.
Usage
Select template you want to use by replacing bs-* placeholder in shortcode examples.
[bs-grid]
bs-gridshows items in 4 (xxl), 3 (lg), 2 (md) and 1 (sm) column cards.bs-listshows items in 1 column vertical cards (md) and flip into 1 column horizontal cards (lg).bs-heroshows hero items with background-images.bs-accordionshows items with full content in a Bootstrap accordion.bs-tabsshows items with full content in Bootstrap tabs.
Posts
Shortcode to show posts by category
[bs-* type="post" category="cars, boats" order="ASC" orderby="date" posts="6"]
Options
category=""category-slug, multiple categories separated by commaorder=""ASC or DESCorderby=""date, title, or randposts=""amount of posts
Additional options bs-grid, bs-list and bs-hero
excerpt="false"hide excerpttags="false"hide tagscategories="false"hide categories
Shortcode to show posts by tags
[bs-* type="post" tax="post_tag" terms="bikes, motorbikes" order="DESC" orderby="date" posts="5"]
Options
tax=""taxonomy (post_tag)terms=""tags-slug, multiple terms separated by commaorder=""ASC or DESCorderby=""date, title, or randposts=""amount of posts
Additional options bs-grid, bs-list and bs-hero
excerpt="false"hide excerpttags="false"hide tagscategories="false"hide categories
Shortcode to show single posts by id
[bs-* type="post" id="1, 15"]
Options
id=""post id, multiple ids separated by commaorder=""ASC or DESCorderby=""date, title, or rand
Additional options bs-grid, bs-list and bs-hero
excerpt="false"hide excerpttags="false"hide tagscategories="false"hide categories
Pages
Shortcode to show child-pages by parent-page id
[bs-* type="page" post_parent="21" order="ASC" orderby="title" posts="6"]
Showing child-pages in parent-page is very useful to avoid empty parent-pages.
Options
post_parent=""parent-page idorder=""ASC or DESCorderby=""date, title, or randposts=""amount of pages
Additional options bs-grid, bs-list and bs-hero
excerpt="false"hide excerpt
Shortcode to show single pages by id
[bs-* type="page" id="2, 25"]
Options
id=""page id, multiple ids separated by commaorder=""ASC or DESCorderby=""date, title, or rand
Additional options bs-grid, bs-list and bs-hero
excerpt="false"hide excerpt
Custom Post Types
Shortcode to show custom-post-types by terms
[bs-* type="isotope" tax="isotope_category" terms="dogs, cats" order="DESC" orderby="date" posts="5"]
Options:
type=""type of custom-post-typetax=""taxonomyterms=""terms-slug, multiple terms separated by commaorder=""ASC or DESCorderby=""date, title, or randposts=""amount of custom-post-types
Additional options bs-grid, bs-list and bs-hero
excerpt="false"hide excerpt
Shortcode to show single custom-post-types by id
[bs-* type="isotope" id="33, 31"]
Options
id=""custom-post-type's id, multiple ids separated by commaorder=""ASC or DESCorderby=""date, title, or rand
Additional options bs-grid, bs-list and bs-hero
excerpt="false"hide excerpt
Overriding templates via theme
Template files can be found within the /bs-grid-main/templates/ plugin directory.
Edit files in an upgrade-safe way using overrides. Copy the template into a directory within your theme named /bs-grid/ keeping the same file structure but removing the /templates/ subdirectory. Path must be /your-theme/bs-grid/[file].php.
The copied file will now override the bs Grid template file. Change cards, classes or HTML as you want.
Templates that can be overridden
sc-grid.phpsc-list.phpsc-hero.phpsc-accordion.phpsc-tabs.php
License & Credits
- bs Grid, MIT License https://github.com/bootscore/bs-grid/blob/main/LICENSE
- Plugin Update Checker, YahnisElsts, MIT License https://github.com/YahnisElsts/plugin-update-checker/blob/master/license.txt
bootscore/bs-grid 适用场景与选型建议
bootscore/bs-grid 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 66 次下载、GitHub Stars 达 6, 最近一次更新时间为 2023 年 06 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「plugin」 「bootstrap」 「wordpress」 「grid」 「bootscore」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 bootscore/bs-grid 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bootscore/bs-grid 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 bootscore/bs-grid 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CakePHP 4.x AdminLTE Theme.
Views for the package MedicOneSystems Livewire Datatables with Bootstrap 4
bootstrap select field module implementing http://silviomoreto.github.io/bootstrap-select/
Selectize Theme for Bootstrap 4
Plugin for YOURLS. Default tools to use in some laemmi plugins
Cross browser time implementation using CSS and JQuery. Compatible with Twitter Bootstrap
统计信息
- 总下载量: 66
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-08