Giter Club home page Giter Club logo

Comments (4)

slackero avatar slackero commented on June 2, 2024 1

Du machst für $template_default['attributes'] keinen Merge, sondern ersetzt das Array, damit löschst Du natürlich andere Properties. Mach es nicht so, wenn Du nur einzelne Werte überschreiben möchtest. Ist auch viel einfacher zu warten und zu lesen.

Besser einfacher die Einzelwerte, die Du brauchst neu setzen. Das reicht.

$template_default['attributes']['navlist-bs-dropdown-data'] = 'data-bs-toggle="dropdown"';
$template_default['attributes']['navlist-bs-dropdown-caret'] = '';

from phpwcms.

slackero avatar slackero commented on June 2, 2024

Gleiche mal Deine template default config ab.Sollte zwar nicht passieren, aber dürfte helfen.

from phpwcms.

uwe367 avatar uwe367 commented on June 2, 2024

Danke für den Hinweis bezüglich der conf.template_default.inc.php.
Ich merge eine custom-settings.php und da scheint irgendwo ein Fehler drin zu sein, den ich nicht sehe.
BIeibt die Datei, die gemerged wird, leer, gibt es keine Meldung.
Sobald ich diese Datei mit folgendem Inhalt merge, treten die Warnings auf.

<?php

// some more default classes
$template_default['classes'] = array_merge($template_default['classes'], array(

    'navlist-sub_ul_true'           => 'sub_ul_true',
    'navlist-sub_ul'                => 'nav-item',
    'navlist-sub_no'                => 'nav-item',
    'navlist-sub_first'             => '',
    'navlist-sub_last'              => '',
    'navlist-sub_parent'            => 'nav-item',
    'navlist-asub_no'               => 'asub_no',
    'navlist-asub_first'            => 'asub_first',
    'navlist-asub_last'             => 'asub_last',
    'navlist-link-class'            => '<!--if:mobile-->dropdown-item text wrap<!--/if-->',
	'navlist-link-class'            => '<!--if:desktop-->dropdown-item<!--/if-->',
    'navlist-bs-dropdown-toggle'    => '<!--if:mobile-->dropdown-toggle text-wrap<!--/if-->',
	'navlist-bs-dropdown-toggle'    => '<!--if:desktop-->dropdown-toggle<!--/if-->',
));
$template_default['attributes'] = array(
    'navlist-bs-dropdown-data'  => 'data-bs-toggle="dropdown"',
    'navlist-bs-dropdown-caret' => '',
	);

Was mich allerdings wundert ist, dass unter PHP 7.4 eine Notice ausgeben wird und unter PHP 8.0.1 ist es schon eine Warning.

from phpwcms.

uwe367 avatar uwe367 commented on June 2, 2024

Danke für den Hinweis.
Ich dachte mir schon, dass der Fehler bei mir liegt.

from phpwcms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.