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
Improvements for the Default theme #282
Conversation
I have made some modifications to HTMl so it can be more user-friendly.
Improvements to the HTML of the list of episodes
I forgot to mention that i have added a custom.css file inside style folder with only a class in it |
Thanks, I will review the PR the next days. I'm currently a bit busy |
Sorry, that I am still delaying it. I am very likely out of free time until the end of the month though, but I won't forget this PR! |
No problem, i guess we have time untill the new release, maybe in the meantime i could modify the backend too... This way the user is getting a software with a nice UX out of the box. I still think we should give a brand identity to the software... This way it will be more known... but im out of ideas right now... I am doing some brainstorming when im bored... 😅 Oh yea and btw Italian language is 99.99% translated! |
Thanks for the translation! |
PodcastGenerator/admin/navbar.php
Outdated
<a class="navbar-brand" href="index.php">Admin</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="<?php echo _('Toggle navigation'); ?>"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarNav"> | ||
<ul class="navbar-nav"> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="index.php">Home</a> | ||
<a class="nav-link" href="../index.php">Home</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we changing the path of index.php to the parent directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right...
I have nested the navbar inside a container (looks a bit more clear) making this, the navbar is less wider and i couldnt fit all the previous menu links inside it...
Since the "Admin" and "Home" in the administrator navbar were pointing to the same link i have removed "View Podcast" which pointed to the main homepage, and modified "Home" so it will point to the main page (like the "view podcast" button did previously).
Hope i made it clear :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please leave the View Podcast button as it is, the home button is intended to access the homepage of the admin interface (with the news blog)
<li class="nav-item"> | ||
<a class="nav-link" href="categories.php"><?php echo $categories; ?></a> | ||
<a class="nav-link" href="<?php echo $config['indexfile']; ?>">Home</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was it intentional that we are changing the categories page link to the home page?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was it intentional that we are changing the categories page link to the home page?
i dont remember making this change... it doesnt make sense to me...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I strugle to find this code, i dont have it in my navbar.php (i guess i did something wrong 👎 ) how can i fix this?
if (strtolower($config["categoriesenabled"]) == "yes") { | ||
?> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="categories.php"><?php echo $categories; ?></a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you relocated the categories link, makes a bit of sense!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good, there are some questions I left as comments about some decisions that were made, @emilengler will probably be completing the final review in the future, but I wanted to get you some feedback!
@NeaMitika This looks wonderful, im excited to see the dark theme too.
@ryangurn Hell yeah!!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this is my first fundamental review of this PR. I have not tested it so far but it looks good! I will do a more detailed review later once I tested this more in detail.
Please fix the things I adjusted in this fundamental review
PodcastGenerator/admin/navbar.php
Outdated
@@ -1,12 +1,13 @@ | |||
<nav class="navbar navbar-expand-lg navbar-dark bg-danger"> | |||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not use a dark background honestly. I think the admin interface/bar should differ from the default theme
PodcastGenerator/admin/navbar.php
Outdated
<a class="navbar-brand" href="index.php">Admin</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="<?php echo _('Toggle navigation'); ?>"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarNav"> | ||
<ul class="navbar-nav"> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="index.php">Home</a> | ||
<a class="nav-link" href="../index.php">Home</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please leave the View Podcast button as it is, the home button is intended to access the homepage of the admin interface (with the news blog)
<meta charset="utf-8"> | ||
<link rel="stylesheet" href="<?php echo htmlspecialchars($config["theme_path"]); ?>style/bootstrap.css"> | ||
<link rel="stylesheet" href="<?php echo htmlspecialchars($config["theme_path"]); ?>style/custom.css"> | ||
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> <meta charset="utf-8"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is problematic.
I don't think using CDNs is a good idea especially because we need to provide a privacy policy then.
I would suggest to download that file and put it into PodcastGenerator/themes/default/style/font-awesome.min.css
.
And then change the line to this
<link rel="stylesheet" href="<?php echo htmlspecialchars($config["theme_path"]); ?>style/font-awesome.min.css"
Also please add a linebreak before the tag
@@ -4,6 +4,8 @@ | |||
<head> | |||
<title><?php echo htmlspecialchars($config["podcast_title"]); ?></title> | |||
<link rel="stylesheet" href="<?php echo htmlspecialchars($config["theme_path"]); ?>style/bootstrap.css"> | |||
<link rel="stylesheet" href="<?php echo htmlspecialchars($config["theme_path"]); ?>style/custom.css"> | |||
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here as well
<li class="nav-item"> | ||
<a class="nav-link" href="categories.php"><?php echo $categories; ?></a> | ||
<a class="nav-link" href="<?php echo $config['indexfile']; ?>">Home</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this change
@@ -1,8 +1,8 @@ | |||
{ | |||
"name": "default", | |||
"description": "The default theme, simple and modern", | |||
"name": "Light", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note to myself. Once the dark theme is out we should move the theme to from default to a light directory. Will give more details later (because of our best friends - backwards compatibility :) )
Made the navbar background blue (red was too much, but i agree that it should be different from the main navbar, as an alternative green works well too) Reversed the changes to "Home" button and "View Podcast" button Since i made the navbar nested inside a container class i strugle with the space and in my case the last 2 buttons in the navbar are on 2 rows. I will try to find a solution before mergin this pull
I had to add the fonts folder as requierd by fontawsome modified the categories.php and index.php of the theme as requested by Emil
baby steps, i will be more carefull in the future
Full time co-author of the Light Theme 👍
PodcastGenerator/admin/navbar.php
Outdated
@@ -7,7 +7,7 @@ | |||
<div class="collapse navbar-collapse" id="navbarNav"> | |||
<ul class="navbar-nav"> | |||
<li class="nav-item"> | |||
<a class="nav-link" href="../index.php">Home</a> | |||
<a class="nav-link" href="index.php">Home</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking better!
<a class="nav-link active p-1" href="logout.php">Logout - <?php echo $_SESSION["username"]; ?></a> | ||
<ul class="navbar-nav"> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="<?php echo $config['url']; ?>" target="_blank"><?php echo _('View Podcast'); ?></a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this intended to go to the main podcast page?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe yes... it is inside the admin area..
@@ -28,7 +28,7 @@ | |||
?> | |||
<div class="alert alert-danger" role="alert"> | |||
WARNING!: You use a development version of Podcast Generator!<br> | |||
Please use a release version rather than this. You can find them <a class="alert-link" href="https://github.com/PodcastGenerator/PodcastGenerator/releases" target="_blank">here</a> | |||
Please use a release version rather than this. You can find them <a class="alert-link" href="https://github.com/PodcastGenerator/PodcastGenerator/releases" target="_blank">here</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing the tab.
@@ -3,6 +3,6 @@ | |||
"description": "The Light theme, simple and modern", | |||
"version": "3.1", | |||
"pg_versions": ["3.1"], | |||
"author": "Emil Engler, with some help from Manoliu Lucian", | |||
"author": "Emil Engler, Manoliu Lucian", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better!
Ok I will do the final review with testing later today. Found some time |
Very well, one thing though, do not include the (PodcastGenerator/admin/navbar.php ), let make this PR only about the Default Theme, i know i have made a mess and included all the stuff here, but it was my first PR, i have learned more in the meantime... I see now that i can make a PR "work in progress" and after i have finished all the stuff put it in "ready for review" in the next PR i will try to use this feature.. BTW: Bootstrap v5 (alpha) was released... when the final version will be out i cant wait to use it (they have documented better the .sass) we could change colors and stuff |
No problem, we were all beginners some day :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I merged it with some minimal adjustments.
I nearly cried when I saw it. It looks so beatiful now. Thank you a lot.
Also thanks to @ryangurn for your review, I put a dedication to you in the commit message.
Merged now, thank you a lot |
By the way, if someone wants to help out, he can replace the preview screenshot of the default theme |
I have done some improvements for the default theme which i think it should be called Light (cuz i am planning to make a Dark one too)...
Some how there is the login.php commit here too... i am pretty new on github i dont really know how to use it...