[wordpress插件] Audio Album音频专辑

wordpress 插件 文章 2020-02-23 03:40 595 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

The plugin was originally created for Dave Draper's website where the it is used on

该插件最初是为 Dave Draper的网站创建的。

the music pages.

音乐页面。

For an example, please see the page for the Wild Bunch album

例如,请参见 Wild Bunch专辑的页面

featuring Dave on vocals and bass.

以Dave的人声和贝斯为特色。

Audio Album uses the default audio capabilities of mediaelement.js included with core WordPress files and enables you to style a group of audio files (MP3 etc) as single block formatted as an album.

音频专辑使用核心WordPress文件随附的mediaelement.js的默认音频功能,并使您可以将一组音频文件(MP3等)设置为格式化为专辑的单个块。

The colours can be customized in the Audio Album section of the WordPress customizer.

可以在WordPress定制程序的“音频专辑”部分中自定义颜色。

You can display as many Audio Albums as you need on your site, with multiple albums on each page.

您可以根据需要在站点上显示任意数量的音频专辑,每页上可以显示多个专辑。

Usage:

用法:

There are two shortcodes that can be used [audioalbum] and [audiotrack]

有两种可以使用的短码 [audioalbum] [audiotrack]

[audioalbum]

  [音频专辑]

This shortcode is required and can be used as a header before the [audiotrack] shortcodes.

此短代码是必需的,并且可以用作 [audiotrack] 短代码之前的标头。

    • title
    • 标题

    • detail
    • 细节

    • date

      日期

      [audiotrack]

      [音轨]

      This acts as a wrapper to the WordPress [audio] shortcode so uses the same parameters as the [audio] shortcode, plus the following which are specific to this plugin:

      它充当WordPress [音频]简码的包装,因此使用与[音频]简码相同的参数,以及此插件特有的以下参数:

    • title

      标题

    • width
    • 宽度

    • height
    • 高度

    • songwriter
    • 作曲家

    • buttontext
    • buttontext

    • buttonlink
    • 按钮链接

    The following attributes can also be used in the [audiotrack] shortcode in the same way in which they are used in the default WordPress [audio] shortcode:

    以下属性也可以在 [audiotrack] 短代码中使用,就像在默认的WordPress [audio]短代码中使用以下属性一样:

      • src
      • src

      • mp3
      • mp3

      • ogg
      • ogg

      • wma
      • wma

      • m4a
      • m4a

      • wav
      • wav

      • loop
      • 循环

      • autoplay
      • 自动播放

      • preload
      • 预加载

      Example

      示例

      [audioalbum title="The Album Title" detail="Some other Details" date="2016"]

        [音频专辑标题=“专辑标题” detail =“其他详细信息” date =“ 2016”]

      [audiotrack title="Song One" songwriter="credit" mp3="http://domain.com/wp-content/uploads/audiofile1.mp3"]

      [audiotrack title =“ Song One” songwriter =“ credit” mp3 =“ http://domain.com/wp-content/uploads/audiofile1.mp3”]

      [audiotrack title="Song Two" songwriter="credit" mp3="http://domain.com/wp-content/uploads/audiofile2.mp3"]

      [audiotrack title =“歌曲2” songwriter =“ credit” mp3 =“ http://domain.com/wp-content/uploads/audiofile2.mp3”]

      Lyrics / other info in a popup window

      弹出窗口中的歌词/其他信息

      There are some additional parameters which can be added to the [audioalbum] shortcode to optionally add a button to allow a visitor to open a link on each audio track to open a page in your site within a popup window.

      可以将一些附加参数添加到[audioalbum]短代码中,以有选择地添加一个按钮,以允许访问者打开每个音轨上的链接,从而在弹出窗口中打开站点中的页面。

      >

      >

      You need to first create the page, post, or custom post type post and make a note of the post/page id.

      您需要先创建页面,帖子或自定义帖子类型的帖子,并记下帖子/页面ID。

      There are four parameter/value pairs which can be added to the [audiotrack] shortcode to make a popup link

      可以将四个参数/值对添加到[audiotrack]短代码中以创建弹出链接

        • buttonlink
        • 按钮链接

        • buttontext
        • buttontext

        • width
        • 宽度

        • height
        • 高度

        Enter the page/post id of the target page as the value for the buttonlink parameter.

        输入目标页面的页面/帖子ID作为buttonlink参数的值。

        A button will only be shown when a value is set for the buttonlink parameter.

        仅当为buttonlink参数设置值时,才会显示按钮。

        The buttontext attribute is optional, if no value is specified, the default label of ‘lyrics’ will be shown on the button.

        buttontext属性是可选的,如果未指定任何值,则默认标签“歌词”将显示在按钮上。

        The dimensions of the popup window can also be specified using optional width and height attributes.

        还可以使用可选的width和height属性指定弹出窗口的尺寸。

        If no values are given, default values of 520px (width) and 400px (height) will be used.

        如果未指定任何值,则将使用默认值520px(宽度)和400px(高度)。

        If your site is using a Genesis child theme, as a little bonus, a landing-page template without a masthead, menus, sidebars or other distractions will be applied to the popup page.

        如果您的站点使用Genesis子主题,作为一个小小的奖励,则没有标头,菜单,侧边栏或其他干扰内容的登录页面模板将应用于弹出页面。

        Example with default ‘lyrics’ button

        带有默认“歌词”按钮的示例

        [audiotrack title="Song One" songwriter="credit" mp3="http://domain.com/wp-content/uploads/audiofile1.mp3" buttonlink="808"]

          [audiotrack title =“歌曲一” songwriter =“ credit” mp3 =“ http://domain.com/wp-content/uploads/audiofile1.mp3” buttonlink =“ 808”]

        Example with custom button and custom popup window dimensions

        带有自定义按钮和自定义弹出窗口尺寸的示例

        [audiotrack title="Song Two" songwriter="credit" mp3="http://domain.com/wp-content/uploads/audiofile2.mp3" buttonlink="909" buttontext="linklabel"

          [audiotrack title =“歌曲两首” songwriter =“ credit” mp3 =“ http://domain.com/wp-content/uploads/audiofile2.mp3” buttonlink =“ 909” buttontext =“ linklabel”

        width="300" height="500"]

        宽度=“ 300”高度=“ 500”]

        The parameters used with the standard native WordPress audio shortcode outlined in the codex: Audio Shortcode<

        与法典中概述的标准本机WordPress音频短代码一起使用的参数:音频短代码<

        /a> page can also be used in the [audiotrack] shortcode.

        / a>页面也可以用在 [audiotrack] 简码中。

安装步骤

    1. Upload the plugin folder to your ‘/wp-content/plugins/’ directory
    2. 将插件文件夹上传到您的“ / wp-content / plugins /”目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

下载地址
https://downloads.wordpress.org/plugin/audio-album.1.3.1.zip
-EOF-

AI助手支持GPT4.0