Giter Site home page Giter Site logo

yiyinyiyang / aplayerhandle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kn007/aplayerhandle

0.0 1.0 0.0 13 KB

Easy handle APlayer on WordPress. A shortcode for WordPress to using APlayer.

Home Page: https://kn007.net/topics/wordpress-blog-use-new-html5-player-aplayer/

License: MIT License

PHP 100.00%

aplayerhandle's Introduction

Description

Easy handle APlayer on WordPress. A shortcode for WordPress to using APlayer.

Support [audio] tag, compatible with AMP.

Requirement

  • WordPress
  • APlayer

How To Using

Put class.aplayer.php into your theme folder, then put this following code to your theme functions.php:

class_exists('APlayerHandle') or require(get_template_directory() . '/class.aplayer.php');
$aplayer = new APlayerHandle;
$aplayer->init();

Shortcode example:

[aplayer mutex="true" autoplay="true" theme="#b7daff" preload="auto" mode="circulation" maxheight="500"]
[aplayer_trac title="あっちゅ~ま青春!" author="七森中☆ごらく部" src="http://devtest.qiniudn.com/あっちゅ~ま青春!.mp3" pic="http://devtest.qiniudn.com/あっちゅ~ま青春!.jpg"]
[aplayer_trac title="回レ!雪月花" author="小倉唯" src="http://devtest.qiniudn.com/回レ!雪月花.mp3" pic="http://devtest.qiniudn.com/回レ!雪月花.jpg"]
[/aplayer]

Audio tag shortcode example:

[audio src="http://devtest.qiniudn.com/あっちゅ~ま青春!.mp3" title="あっちゅ~ま青春!" author="七森中☆ごらく部"]

More information: https://kn007.net/topics/wordpress-blog-use-new-html5-player-aplayer/

Thank you list

DIYgod, the author of APlayer. Github repo

About

kn007's blog


中文说明

轻松的在WordPress使用上APlayer,短代码形式调用。

支持原生[audio]标签,不影响AMP模式。

依赖组件

  • WordPress
  • APlayer

如何使用

class.aplayer.php放在你主题的根目录下,然后将下面代码放在functions.php里即可。

class_exists('APlayerHandle') or require(get_template_directory() . '/class.aplayer.php');
$aplayer = new APlayerHandle;
$aplayer->init();

短代码调用方式举例:

[aplayer mutex="true" autoplay="true" theme="#b7daff" preload="auto" mode="circulation" maxheight="500"]
[aplayer_trac title="あっちゅ~ま青春!" author="七森中☆ごらく部" src="http://devtest.qiniudn.com/あっちゅ~ま青春!.mp3" pic="http://devtest.qiniudn.com/あっちゅ~ま青春!.jpg"]
[aplayer_trac title="回レ!雪月花" author="小倉唯" src="http://devtest.qiniudn.com/回レ!雪月花.mp3" pic="http://devtest.qiniudn.com/回レ!雪月花.jpg"]
[/aplayer]

Audio短代码调用方式举例:

[audio src="http://devtest.qiniudn.com/あっちゅ~ま青春!.mp3" title="あっちゅ~ま青春!" author="七森中☆ごらく部"]

详细说明见:https://kn007.net/topics/wordpress-blog-use-new-html5-player-aplayer/

特别鸣谢

感谢DIYgod写的APlayer,Github项目地址

关于作者

kn007的个人博客

aplayerhandle's People

Contributors

kn007 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.