Ich glaube es ist die Datei includes/extra/ajax/get_subcat.php
Hier steht folgender Code
$subcategories_button = '<div class="category_button" data-value="'.($in_path ? ($my_foo[$counter-1]['path'] != '' ? $my_foo[$counter-1]['path'] : 0) : $my_foo[$counter]['path']).'">' . ($in_path ? '-' : '+') . '</div>';
Ich habe die Stelle abgeändert in
$subcategories_button = '<div class="category_button" data-value="'.($in_path ? ($my_foo[$counter-1]['path'] != '' ? $my_foo[$counter-1]['path'] : 0) : $my_foo[$counter]['path']).'">' . ($in_path ? '<i class="fas fa-chevron-up"></i>' : '<i class="fas fa-chevron-down"></i>') . '</div>';
Das hat nicht funktioniert. Scheinbar muss in der ajax.menu.js.php folgende Stelle abgeändert werden
}(jQuery));
$('.box_category').on('click', '.category_button', function() {
var $this = $(this);
if($this.next('ul').length > 0) {
$this.next('ul').slideToggle();
$this.text($this.text() == "+" ? "-" : "+");
} else {
var path = $this.data("value");
var lang = '<?php echo $_SESSION['languages_id']; ?>';
$.get('<?php echo xtc_href_link('ajax.php') ?>', {ext: 'get_subcat', type: 'html', cPath: path, language: lang}, function(data) {
if (data != '' && data != undefined) {
$this.after(data);
$this.next('ul').slideToggle();
$this.text($this.text() == "+" ? "-" : "+");
} else {
$this.insertAfter('AJAX-FEHLER');
}
});
}
});
Ich habe die eine Zeile so abgeändert:
$this.text($this.text() == "<i class="fas fa-chevron-up"></i>" ? "<i class="fas fa-chevron-down"></i>" : "<i class="fas fa-chevron-up"></i>");
Das hat nicht funktioniert.