multiplane/mp-theme-base 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

multiplane/mp-theme-base

Composer 安装命令:

composer require multiplane/mp-theme-base

包简介

Multiplane base theme

README 文档

README

TODO: update README

Features

  • basic css
  • ...

mp.js

  • simple cookie management
  • handle privacy events
  • simple video - display YouTube and Vimeo iframes with a thumbnail and don't load videos without user's privacy consent
  • simple image lightbox
  • simple image carousel

Image lightbox

MP.ready(function() { // document is ready
    // init lightbox
    MP.Lightbox.init({
        group: '.gallery',  // all elements with class 'gallery' are galleries
        selector: 'a'       // all a tags are detected as image links
    });
});

Marginalia: The lightbox is compatible with WordPress Gutenberg galleries, but it might have unwanted side effects, if your theme doesn't fit exactly.

MP.ready(function() {
    MP.Lightbox.init({group: '.wp-block-gallery', selector: 'a'});
}

Video

requires VideoLinkField addon and videolink field, that is named "video"

build

  • npm install - install dev dependencies
  • npm run build to rebuild js+css files
  • npm run watch watch js+css changes
  • npm run update to build js+css with regenerated copyright preamble

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-23