altis/test-theme
Composer 安装命令:
composer require altis/test-theme
包简介
Test theme for Altis DXP, based on Automattic/_s starter theme.
关键字:
README 文档
README
_s
Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
My ultra-minimal CSS might make me look like theme tartare but that means less stuff to get in your way when you're designing your awesome theme. Here are some of the other more interesting things you'll find here:
- A modern workflow with a pre-made command-line interface to turn your project into a more pleasant experience.
- A just right amount of lean, well-commented, modern, HTML5 templates.
- A custom header implementation in
inc/custom-header.php. Just add the code snippet found in the comments ofinc/custom-header.phpto yourheader.phptemplate. - Custom template tags in
inc/template-tags.phpthat keep your templates clean and neat and prevent code duplication. - Some small tweaks in
inc/template-functions.phpthat can improve your theming experience. - A script at
js/navigation.jsthat makes your menu a toggled dropdown on small screens (like your phone), ready for CSS artistry. It's enqueued infunctions.php. - 2 sample layouts in
sass/layouts/made using CSS Grid for a sidebar on either side of your content. Just uncomment the layout of your choice insass/style.scss. Note:.no-sidebarstyles are automatically loaded. - Smartly organized starter CSS in
style.cssthat will help you to quickly get your design off the ground. - Full support for
WooCommerce pluginintegration with hooks ininc/woocommerce.php, styling override woocommerce.css with product gallery features (zoom, swipe, lightbox) enabled. - Licensed under GPLv2 or later. :) Use it to make something cool.
Installation
Requirements
_s requires the following dependencies:
Quick Start
Clone or download this repository, change its name to something else (like, say, megatherium-is-awesome), and then you'll need to do a six-step find and replace on the name in all the templates.
- Search for
'_s'(inside single quotations) to capture the text domain and replace with:'megatherium-is-awesome'. - Search for
_s_to capture all the functions names and replace with:megatherium_is_awesome_. - Search for
Text Domain: _sinstyle.cssand replace with:Text Domain: megatherium-is-awesome. - Search for
_s(with a space before it) to capture DocBlocks and replace with:Megatherium_is_Awesome. - Search for
_s-to capture prefixed handles and replace with:megatherium-is-awesome-. - Search for
_S_(in uppercase) to capture constants and replace with:MEGATHERIUM_IS_AWESOME_.
Then, update the stylesheet header in style.css, the links in footer.php with your own information and rename _s.pot from languages folder to use the theme's slug. Next, update or delete this readme.
Setup
To start using all the tools that come with _s you need to install the necessary Node.js and Composer dependencies :
$ composer install $ npm install
Available CLI commands
_s comes packed with CLI commands tailored for WordPress theme development :
composer lint:wpcs: checks all PHP files against PHP Coding Standards.composer lint:php: checks all PHP files for syntax errors.composer make-pot: generates a .pot file in thelanguages/directory.npm run compile:css: compiles SASS files to css.npm run compile:rtl: generates an RTL stylesheet.npm run watch: watches all SASS files and recompiles them to css when they change.npm run lint:scss: checks all SASS files against CSS Coding Standards.npm run lint:js: checks all JavaScript files against JavaScript Coding Standards.npm run bundle: generates a .zip archive for distribution, excluding development and system files.
Now you're ready to go! The next step is easy to say, but harder to do: make an awesome WordPress theme. :)
Good luck!
altis/test-theme 适用场景与选型建议
altis/test-theme 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 23.9k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2022 年 02 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「themes」 「wordpress」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 altis/test-theme 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 altis/test-theme 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 altis/test-theme 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel Themes
WordPress mu-plugin to register the theme directory for the default WordPress themes.
This is twig version of Flow Theme for OXID eShop.
This is a Smarty version of Admin Theme for OXID eShop.
Themes module of YajraCMS.
A WordPress theme based on the _s by Automattic, but uses react and REST API to render content.
统计信息
- 总下载量: 23.9k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2022-02-07