Kunena Menu
Modifier lecteur audio
- Laurentfrom47
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 91
- Thank you received: 2
8 years 10 months ago #46748
by Laurentfrom47
Replied by Laurentfrom47 on topic Modifier lecteur audio
ah faut peut être re créer et placer l'élément ?
Please Log in or Create an account to join the conversation.
8 years 10 months ago #46749
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Modifier lecteur audio
tu as bien créé le dossier "pagebuilderck" ?Laurentfrom47 wrote: Ah oui merdoum désolé, par contre ça marche pas là, j'ai bien vérifié, dans le dossier html de mon template
html/pagebuilderck/audio.php
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
- Laurentfrom47
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 91
- Thank you received: 2
8 years 10 months ago #46750
by Laurentfrom47
Replied by Laurentfrom47 on topic Modifier lecteur audio
Oui oui bien sur, je vérifie un truc parce que j'utilise article anywhere donc c'est peut être en cause...
Please Log in or Create an account to join the conversation.
- Laurentfrom47
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 91
- Thank you received: 2
8 years 10 months ago #46751
by Laurentfrom47
Replied by Laurentfrom47 on topic Modifier lecteur audio
Non idem, dans le plugin il y a la variable $html2
Mon override :
Code:
public function onPagebuilderckRenderItemAudio($item) {
$attrs = $item->find('.tab_audio');
$params = PagebuilderckFrontHelper::createParamsFromElement($attrs);
$audiosrc = PagebuilderckFrontHelper::getSource($params->get('audiourl'));
$html ='<audio style="width:100%;box-sizing:border-box;max-width:100%;" controls src="' . $audiosrc . '" ' . ($params->get('autoplayyes') == 'checked' ? 'autoplay' : '') . '>'
. 'Your browser does not support the audio element.'
. '</audio>';
$html2 = preg_replace('#<div class="audiock">(.*?)<\/div>#is', $html, $item->innertext);
return $html2;
}
Mon override :
Code:
<?php
defined('_JEXEC') or die;
$attrs = $item->find('.tab_audio');
$params = PagebuilderckFrontHelper::createParamsFromElement($attrs);
$audiosrc = PagebuilderckFrontHelper::getSource($params->get('audiourl'));
$html ='<audio style="width:50%;box-sizing:border-box;max-width:100%;" controls controlsList="nodownload" src="' . $audiosrc . '" ' . ($params->get('autoplayyes') == 'checked' ? 'autoplay' : '') . '>'
. 'Your browser does not support the audio element.'
. '</audio>';
$html = preg_replace('#<div class="audiock">(.*?)<\/div>#is', $html, $item->innertext);
Please Log in or Create an account to join the conversation.
8 years 10 months ago #46753
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Modifier lecteur audio
oui je sais qu'il y a cette variable, mais il y a un "return" qui n'est pas dans l'override.
es-tu sur que ça ne marche pas ?
essaie tout simplement
pour voir si ça affiche le mot TEST ou pas
es-tu sur que ça ne marche pas ?
essaie tout simplement
Code:
$html ='TEST<audio ....
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
- Laurentfrom47
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 91
- Thank you received: 2
8 years 10 months ago #46754
by Laurentfrom47
Replied by Laurentfrom47 on topic Modifier lecteur audio
Non, toujours pas, voici mon chemin
/templates/it_paradise/html/pagebuilderck/audio.php
Mon override:
Bizarre!
/templates/it_paradise/html/pagebuilderck/audio.php
Mon override:
Code:
<?php
defined('_JEXEC') or die;
$attrs = $item->find('.tab_audio');
$params = PagebuilderckFrontHelper::createParamsFromElement($attrs);
$audiosrc = PagebuilderckFrontHelper::getSource($params->get('audiourl'));
$html ='Test<audio style="width:50%;box-sizing:border-box;max-width:100%;" controls controlsList="nodownload" src="' . $audiosrc . '" ' . ($params->get('autoplayyes') == 'checked' ? 'autoplay' : '') . '>'
. 'Your browser does not support the audio element.'
. '</audio>';
$html = preg_replace('#<div class="audiock">(.*?)<\/div>#is', $html, $item->innertext);
Bizarre!
Please Log in or Create an account to join the conversation.
Time to create page: 0.215 seconds




