ivoox.pug
– Ivoox podcasts players ¶
View source code on GithubAudios¶
mixin ivoox-audio(id)
- src = `https://www.ivoox.com/player_ej_${id}_4_1.html?`
- if ("c1" in attributes)
- c1 = attributes.c1;
- delete attributes.c1;
- src = src + `c1=${c1}`
- if ("alt" in attributes)
- alt = attributes.alt;
- delete attributes.alt;
- else
- alt = true;
iframe(frameborder="0"
allowfullscreen="true"
scrolling="no"
src=`${src}`
width="100%"
height="200")&attributes(attributes)
- if (alt)
| Your browser does not support iframes.
-
+ivoox-audio
(id)(c1=null, width="100%", height="200")¶ Embed an audio from Ivoox.
Arguments: - id (string, integer) – Audio identificator. You can get it from the url of an audio page:
https://www.ivoox.com/...audios-mp3_rf_<THIS_NUMBER>_1.html
. - c1 (string, optional) – Main color of the embedded player in HEX format without
#
character. As defaultnull
(default Ivoox main color will be used:"FF6600"
).
- id (string, integer) – Audio identificator. You can get it from the url of an audio page:
Usage¶
Input
+ivoox-audio(25288583)(c1="007300")
Output
<iframe frameborder="0" allowfullscreen="true" scrolling="no" src="https://www.ivoox.com/player_ej_25288583_4_1.html?c1=007300" width="100%" height="200"></iframe>
Render
Podcasts¶
mixin ivoox-podcast(id)
- if ("alt" in attributes)
- alt = attributes.alt;
- delete attributes.alt;
- else
- alt = true;
iframe(src=`https://www.ivoox.com/player_es_podcast_${id}_1.html`
frameborder="0"
allowfullscreen="0"
scrolling="no"
width="100%"
height="440")&attributes(attributes)
- if (alt)
| Your browser does not support iframes.
-
+ivoox-podcast
(id)(width="100%", height="440")¶ Embed a podcast from Ivoox.
Arguments: - id (string) – Podcast identificator. You can get it from the url of a podcast page:
https://www.ivoox.com/..._sq_f1<THIS_NUMBER>_1.html
.
- id (string) – Podcast identificator. You can get it from the url of a podcast page:
Usage¶
Input
+ivoox-podcast(70523)
Output
<iframe src="https://www.ivoox.com/player_es_podcast_70523_1.html" frameborder="0" allowfullscreen="0" scrolling="no" width="100%", height="440"></iframe>
Render
Playlists¶
mixin ivoox-playlist(id)
- if ("alt" in attributes)
- alt = attributes.alt;
- delete attributes.alt;
- else
- alt = true;
iframe(src=`https://www.ivoox.com/player_es_channel_${id}_1.html`
frameborder="0"
allowfullscreen="0"
scrolling="no"
width="100%"
height="440")&attributes(attributes)
- if (alt)
| Your browser does not support iframes.
-
+ivoox-playlist
(id)(width="100%", height="440")¶ Insert an Ivoox channel playlist.
Arguments: - id (integer, string) – Your channel identificator. You can obtain it from your channel page url:
https://www.ivoox.com/..._nq_<THIS_NUMBER>_1.html
.
- id (integer, string) – Your channel identificator. You can obtain it from your channel page url:
Usage¶
Input
+ivoox-playlist(40562)
Output
<iframe src="https://www.ivoox.com/player_es_channel_40562_1.html" frameborder="0" allowfullscreen="0" scrolling="no" width="100%" height="440"></iframe>
Render
Channel subscription widget¶
mixin ivoox-channel-subscription(id)
- src = `https://www.ivoox.com/_ns_${id}_0_.html?`
- if ("c1" in attributes)
- c1 = attributes.c1;
- delete attributes.c1;
- src = src + `c1=${c1}&`
- if ("c2" in attributes)
- c2 = attributes.c2;
- delete attributes.c2;
- src = src + `c2=${c2}&`
- if ("r" in attributes)
- r = attributes.r;
- delete attributes.r;
- src = src + `r=${r}&`
- if ("alt" in attributes)
- alt = attributes.alt;
- delete attributes.alt;
- else
- alt = true;
iframe(src=`${src}`
frameborder="0"
scrolling="no"
allowfullscreen="true"
height="174")&attributes(attributes)
- if (alt)
| Your browser does not support iframes.
-
+ivoox-channel-subscription
(id)(c1="555555", c2="ffffff", r=null, height="174")¶ Insert an Ivoox subscription widget.
Arguments: - id (integer, string) – Your channel identificator. You can obtain it from your channel page url:
https://www.ivoox.com/..._nq_<THIS_NUMBER>_1.html
. - c1 (string) – Widget background color with HEX format without
#
character. As default"555555"
. - c1 – Widget text color with HEX format without
#
character. As default"ffffff"
.
- id (integer, string) – Your channel identificator. You can obtain it from your channel page url:
Usage¶
+ivoox-channel-subscription(40562)(c1="007300", c2="ffffff")
<iframe src="https://www.ivoox.com/_ns_40562_0_.html?c1=007300&c2=ffffff" frameborder="0" scrolling="no" allowfullscreen="true" height="174"></iframe>