Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visibility Toggle #141

Open
j0hannr opened this issue Sep 1, 2022 · 2 comments
Open

Visibility Toggle #141

j0hannr opened this issue Sep 1, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@j0hannr
Copy link
Member

j0hannr commented Sep 1, 2022

Visibility Toggle

Uncaught ReferenceError: $ is not defined

File: visibility_toggle.php

Screenshot

Bildschirmfoto 2022-09-01 um 16 09 10

@j0hannr j0hannr added the bug Something isn't working label Sep 1, 2022
@j0hannr j0hannr self-assigned this Sep 1, 2022
@j0hannr
Copy link
Member Author

j0hannr commented Sep 1, 2022

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
Copy link
Member Author

j0hannr commented Sep 1, 2022

Solution

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant