Skip to content

Commit dcc85b3

Browse files
committed
Change shortcode from able-player to ableplayer
1 parent c7d53fd commit dcc85b3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ableplayer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function ableplayer_enqueue_scripts(){
7171

7272
function ableplayer_shortcode( $atts,$content=null ) {
7373

74-
// Each of the following attributes can be passed with the [able-player] shortcode
74+
// Each of the following attributes can be passed with the [ableplayer] shortcode
7575
// 'id' and 'type' (video or audio) is required
7676

7777
// normalize attribute keys, lowercase
@@ -193,7 +193,7 @@ function ableplayer_shortcode( $atts,$content=null ) {
193193
return $o;
194194
}
195195
}
196-
add_shortcode('able-player', 'ableplayer_shortcode');
196+
add_shortcode('ableplayer', 'ableplayer_shortcode');
197197

198198
/*
199199
*

readme.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ There are currently two ways to add an Able Player instance to a WordPress site:
3434

3535
1. Enter or paste any valid HTML5 Able Player code into your web page. Full documentation is available on the [Able Player](http://ableplayer.github.io/ableplayer) project page on GitHub.
3636

37-
2. Enter an [able-player] shortcode. The shortcode is intended for adding videos hosted on YouTube or Vimeo, with captions and subtitles hosted on these services. For anything more complex, use HTML.
37+
2. Enter an [ableplayer] shortcode. The shortcode is intended for adding videos hosted on YouTube or Vimeo, with captions and subtitles hosted on these services. For anything more complex, use HTML.
3838

39-
== The [able-player] shortcode ==
39+
== The [ableplayer] shortcode ==
4040

41-
The [able-player] shortcode supports the following attributes.
41+
The [ableplayer] shortcode supports the following attributes.
4242

4343
= Required attributes (one of these) =
4444

@@ -90,13 +90,13 @@ This example uses HTML to add a video player to the page, with one source (an MP
9090

9191
This example uses a shortcode to add a YouTube player to the page, with two versions of the video, one with audio description and the other without (the user can toggle between the two versions using the D button).
9292

93-
[able-player youtube-id="XXXXXXXXXXX" youtube-desc-id="YYYYYYYYYYY"]
93+
[ableplayer youtube-id="XXXXXXXXXXX" youtube-desc-id="YYYYYYYYYYY"]
9494

9595
= Example 4 =
9696

9797
This example uses a shortcode to add a Vimeo player to the page, with two versions of the video, one with audio description and the other without (the user can toggle between the two versions using the D button).
9898

99-
[able-player vimeo-id="XXXXXXXXX" vimeo-desc-id="YYYYYYYYY"]
99+
[ableplayer vimeo-id="XXXXXXXXX" vimeo-desc-id="YYYYYYYYY"]
100100

101101
== Roadmap ==
102102
1. Provide a user interface by which authors can select and configure default options through WordPress.

0 commit comments

Comments
 (0)