Bonjour,
J'ai intégré un module carousel bootstrap dans mon site joomla. J'obtiens l'erreur ci-après:Ci-après le contenu du fichier mod_carousel.php (la ligne 19 est celle commençant par <<<<<<<HEAD)
Code : Sélectionner tout - Visualiser dans une fenêtre à part Parse error: syntax error, unexpected '<<' (T_SL) in C:\wamp64\www\joomla36\modules\mod_carousel\mod_carousel.php on line 19
Mon environnement de dev est : PHP 5.6.25 et Apache 2.4.23.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 <?php /** * @version 1.1 * @package mod_carousel * @copyright Copyright (C) 2013. All rights reserved. * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL * @author Brad Traversy <support@joomdigi.com> - http://www.joomdigi.com */ //No Direct Access defined('_JEXEC') or die; /* Params */ $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx')); //store params as object that we can loop through in tmpl/default.php $slideritems = new stdClass; <<<<<<<HEAD for ($i=1; $i <= 3; $i++) { $slideritems->$i = new stdClass; ======= for ($i=1; $i <= 6; $i++) { >>>>>>> 6248772a906d6369fc6cafe301b56bd883689c50 $slideritems->$i->heading = $params->get("slide".$i."_heading"); $slideritems->$i->text = $params->get("slide".$i."_text"); $slideritems->$i->background_image = $params->get("slide".$i."_background_image"); $slideritems->$i->main_image = $params->get("slide".$i."_main_image"); $slideritems->$i->button_text = $params->get("slide".$i."_button_text"); $slideritems->$i->button_link = $params->get("slide".$i."_button_link"); $slideritems->$i->show_read_more = $params->get("slide".$i."_show_read_more"); } //more options $custom_style = $params->get('custom_style'); $slide1_caption_class = $params->get('slide1_caption_class'); $slide2_caption_class = $params->get('slide2_caption_class'); $slide3_caption_class = $params->get('slide3_caption_class'); // Include the syndicate functions only once require_once dirname(__FILE__).'/helper.php'; require JModuleHelper::getLayoutPath('mod_carousel', $params->get('layout', 'default')); ?>
Prière m'aider à comprendre l'erreur et à savoir comment y rémédier.
Merci.
Partager