Panneau N0C 04 EN 250 250
Get 15% discount on our partner PlanetHoster with the code PHA-ceikay

Modifier lecteur audio

More
8 years 10 months ago #46748 by Laurentfrom47
ah faut peut être re créer et placer l'élément ?

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #46749 by ced1870
Replied by ced1870 on topic Modifier lecteur audio

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

tu as bien créé le dossier "pagebuilderck" ?

html/pagebuilderck/audio.php


Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #46750 by Laurentfrom47
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.

More
8 years 10 months ago #46751 by Laurentfrom47
Non idem, dans le plugin il y a la variable $html2
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.

More
8 years 10 months ago #46753 by ced1870
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
Code:
$html ='TEST<audio ....
pour voir si ça affiche le mot TEST ou pas

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #46754 by Laurentfrom47
Non, toujours pas, voici mon chemin
/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

Fast and powerful creation, customizable and responsive.

Read More

We have 731 guests and one member online