Skip to content

Conversation

@Alex-Jordan
Copy link
Contributor

With this, in a config chain, you can set like:

$institutionLogo = 'pcc_logo.png';
$institutionURL  = 'https://www.pcc.edu';
$institutionName = 'Portland Community College';

and then the place where we usually see the MAA logo will have a different logo, with a different href, and different alt text.

One thing an institution wants to do to customize the look of their site is have a logo link to their school. This makes that easy without having to create a new theme. The defaults are still to/for MAA, except I saw no reason not to use the larger slightlly higher res MAA logo file.

Also with this, it could be customized at the course level. So if your server hosts more than one school, some courses could have different institution logos than others.

Copy link
Member

@pstaabp pstaabp left a comment

Choose a reason for hiding this comment

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

Works well and looks good.

Copy link
Member

@pstaabp pstaabp left a comment

Choose a reason for hiding this comment

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

Actually, just noticed that the image I put in the htdocs/images directory is now tracked with git. Perhaps, make a directory in htdocs/images to store these and put the directory contents in .gitignore.

@drgrice1
Copy link
Member

I would like the image to be able to be placed in a custom theme directory rather than in the images directory.

@Alex-Jordan
Copy link
Contributor Author

Does an images folder in the math4 theme make sense?

If so, should I move the MAA logo and WeBWorK logo in there? Tracked by git.

@drgrice1
Copy link
Member

I think that makes sense. You could say that they are part of the theme. Then we can move closer to just being able to delete the images directory. Very little of what is in there is used.

@Alex-Jordan
Copy link
Contributor Author

OK, now there is an images folder in math4. And symlinks to that folder from math4-green and math4-red.

I either removed or deleted the various log image files that relate to this form htdocs/images.

@taniwallach
Copy link
Member

@Alex-Jordan: I think we wanted to use .gitconfig to have Git ignore changes in these images folders.
Is there anything else we need to fix?

@Alex-Jordan
Copy link
Contributor Author

@taniwallach I don't recall that there was anything more to do. I just committed that change to .gitignore though.

Copy link
Member

@taniwallach taniwallach left a comment

Choose a reason for hiding this comment

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

Tested and works. Having the extra line in .gitignore helps as it should help keep local image files from ending up in the main repository.
I think this is ready to merge.
@drgrice1 - Sorry this also has maketext calls.

@taniwallach taniwallach requested a review from pstaabp July 1, 2021 19:45
@taniwallach
Copy link
Member

@pstaabp - With the .gitignore I think @Alex-Jordan fixed your remaining reservation.

@Alex-Jordan
Copy link
Contributor Author

Stand by. Glenn and I think that the .gitignore addition should not use a wildcard and go directly through math4, math4-green, and math4-red. I'll make that change soon.

@Alex-Jordan
Copy link
Contributor Author

OK, now this has each of math4, math4-green, and math4-red with an honest images folder. There are honest logo files in math4/images, and symlinks to them in the other two images folders. All of that is part of the distribution.

But then anything inside the three images/ folders is in .gitignore.

So I think this will be good for @pstaabp and anyone else to make another review.

Copy link
Member

@drgrice1 drgrice1 left a comment

Choose a reason for hiding this comment

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

This looks good and is a good improvement to the theme system.

@drgrice1 drgrice1 added the Do Not Merge Yet PR to allow others to inspect -- not ready for prime time label Jul 2, 2021
@drgrice1
Copy link
Member

drgrice1 commented Jul 5, 2021

Why did I add the "Do not merge yet" label to this? Github says I did that, but I don't remember doing it or why.

@drgrice1 drgrice1 removed the Do Not Merge Yet PR to allow others to inspect -- not ready for prime time label Jul 5, 2021
@Alex-Jordan
Copy link
Contributor Author

Why did I add the "Do not merge yet" label to this? Github says I did that, but I don't remember doing it or why.

Could just be an errant GitHub click.

The choice I made for which things are sylinks and which things are in .gitignore is something @pstaabp may want to think about before approving.

@drgrice1 drgrice1 merged commit fcdcb2c into openwebwork:WeBWorK-2.16 Jul 7, 2021
Copy link
Member

@pstaabp pstaabp left a comment

Choose a reason for hiding this comment

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

This looks good to me now.

drgrice1 pushed a commit that referenced this pull request Jul 7, 2021
* remove references to math3

* configurable institution logo

* add theme images folder for logos

* don't use 'webwork2_files' directly

* copy paste error

* make WW logo link go directly to courses page

* git ignore theme image folders

* use symlinks to theme logo files

* only ignore the distribution theme image folders
@Alex-Jordan Alex-Jordan deleted the logo branch July 12, 2023 03:20
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.

4 participants