Basic theme (clean to apply your own styles - start theme) Basic theme (clean to apply your own styles - start theme)
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Basic theme (clean to apply your own styles - start theme)

Started by allvip, November 09, 2019, 05:51:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

allvip

Is a starter theme so users can style the theme the way they like it.

This way users don't have to work at starting a theme or spent time to clean unnecessary code from some theme.
When cleaning a theme like the curve theme, unneccesary code takes time to remove and may even remain some of it.
Not responsive. Basic cpg theme.

allvip

Previews attached.


ron4mac

You should try to use the global $THEME_DIR in your theme.php file instead of hard coded theme directory (themes/basic/). That way the theme folder could be renamed without issue.

allvip

Quote from: ron4mac on November 09, 2019, 05:22:38 PM
You should try to use the global $THEME_DIR in your theme.php file instead of hard coded theme directory (themes/basic/). That way the theme folder could be renamed without issue.

I know that but is not working in that function.
I don't want to use the curve theme code for the admin menu that is really long.
The code for the menu is from theme Theme Pinmine by Jeff Bailey
https://forum.coppermine-gallery.net/index.php/topic,75270.0.html

If I can add another small function or code to be able to use $THEME_DIR, I will.
If not, is better this way.

allvip

Quote from: allvip on November 09, 2019, 05:34:55 PM
If I can add another small function or code to be able to use $THEME_DIR, I will.
If not, is better this way.

No. I don't know how.

allvip

Reuploaded the zip with a nice menu (was to basic) and a fix for thumbnails error.

ron4mac

Quote from: allvip on November 09, 2019, 07:00:06 PM
No. I don't know how.

Your theme.php file is trying to use a variable ($current_id) that doesn't exist.

But here is the theme.php that uses $THEME_DIR to make it folder agnostic.

allvip

Quote from: ron4mac on November 09, 2019, 09:25:39 PM
Your theme.php file is trying to use a variable ($current_id) that doesn't exist.

But here is the theme.php that uses $THEME_DIR to make it folder agnostic.

Thanks and both issues fixed and reuploaded.
Nobody downloaded the zip so was ok to reuplod not make a new version.