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

Enable Modal for Themes #19

Merged
merged 15 commits into from
Apr 18, 2024
Merged

Enable Modal for Themes #19

merged 15 commits into from
Apr 18, 2024

Conversation

KTS915
Copy link
Member

@KTS915 KTS915 commented Apr 18, 2024

This PR enables the use of a modal for themes. I have also changed a function name in PluginInstall.class.php to reflect the fact that I use the same function for themes.

I have NOT included a CSS or JS file here because I tried duplicating plugin-page.js and plugin-page.css for themes and they both worked perfectly without me changing anything. So I wanted to ask whether you still want me to add both files, or whether you might instead just rename plugin-page.js and plugin-page.css and use them for both plugins and themes.

@xxsimoxx
Copy link
Member

I'm fine to keep the js and css as a single file if they work for both.

About cp_get_markdown_contents(), if used in both pages, maybe you can move the function inside includes/functions.php?

Copy link
Member

@xxsimoxx xxsimoxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xxsimoxx xxsimoxx merged commit 0ca025a into ClassicPress:main Apr 18, 2024
1 check passed
@KTS915 KTS915 deleted the themes branch April 18, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants