studio-arrenberg / quartiersplattform

🏡 Repo für die Quartiersplattform
https://arrenberg.app
MIT License
2 stars 3 forks source link

Visibility Toggle #141

Open j0hannr opened 1 year ago

j0hannr commented 1 year ago

Visibility Toggle

Uncaught ReferenceError: $ is not defined

File: visibility_toggle.php

Screenshot

Bildschirmfoto 2022-09-01 um 16 09 10

j0hannr commented 1 year ago

Error

Because the Path was http://localhost/quartiersplattform/. Files were always not loaded.

$qp_pages = array(
        '/sdgs/',
        '/quartiersplattform/',
    );
// check for QP Pages
    foreach ( $qp_pages as $key => $um_url ) {
        if ( strpos( $REQUEST_URI, $um_url ) !== FALSE ) {
            files_none();
            return false;
        }
    }
j0hannr commented 1 year ago

Solution

$qp_pages = array(
        '/sdgs/',
        // '/quartiersplattform/',
    );