What kind of files does your Coppermine should have? Go Back

On this page, I will show you all the files that you MUST have in your WordPress theme. If you do not have at least one of them, your theme either will not work correctly or will not work at all. So, here, I explain what you need all these files and what sort of role they play. But remember that thanks to my lessons, you can learn how to make only simple themes.

  • 2. style.css — This file contains styles of all the blocks of your Coppermine theme. CSS code is much simpler than PHP or JS, and if you know what everything means, you can learn much about it very quickly.
  • 3. theme.php — This file usually contains all the functions of Coppermine theme and blocks of your gallery. You need to be very careful when changing something because it might break your gallery (it’s fixable if you know what you changed and can get the previous version of the file back)
  • 4. template.html — This file contains a ‘head’ block, in which there is a site title, a site desc, a site tags, a site logos, scripts, css styles, JS functions, and many other things.




  • STYLE.CSS

    This file contains styles of all the blocks of your Coppermine theme. CSS code is much simpler than PHP or JS, and if you know what everything means, you can learn much about it very quickly. The style sheet controls the colors and nearly all design aspects of the output of your gallery. That’s why it’s worth looking at it: with only some minor changes in the style you can change the overall design of your entire gallery. Of course, you can add your CSS code and change it as you want, but here are the standard classes of your Coppermine gallery (in the case if you change nothing in the file “theme.php“).



  • textinput
  • listbox
  • button
  • radio
  • checkbox
  • bblink
  • maintable
  • tableb_alternate
  • catrow
  • catrow_noalb
  • album_stat
  • thumb_filename
  • thumb_title
  • thumb_caption
  • thumb_num_comments
  • user_thumb_infobox
  • sortorder_options
  • navmenu
  • admin_menu
  • admin_float
  • admin_menu_wrapper
  • admin_menu_anim
  • icon
  • comment_date
  • image
  • imageborder
  • display_media
  • thumbnails
  • footer
  • statlink
  • alblink
  • catlink
  • topmenu
  • img_caption_table
  • clickable_option
  • listbox_lang
  • pic_title
  • pic_caption
  • cpg_main_block
  • important
  • cpgChooseThemeWrapper
  • filmstrip_background




  • THEME.PHP

    This file usually contains all the functions of Coppermine theme and blocks of your gallery. You need to be very careful when changing something because it might break your gallery (it’s fixable if you know what you changed and can get the previous version of the file back). Actually, when you install your Coppermine gallery, you should always get a theme called “sample”. You can access FTP/CPanel and go to the path of your gallery, go to the folder themes, find the folder “sample”, find the file “theme.php”, open it and copy all the content to the file with the same name that is placed in a folder with your theme. If you are not an experienced user, you can change nothing and just save the file. And remember, when making modifications to these templates, be careful that you do not alter the lines that start with and . These lines are often used to identify the start and end of specific code blocks that the script will use to display your gallery.





    TEMPLATE.HTML

    This file contains a ‘head‘ block, in which there is a site title, a site desc, a site tags, a site logos, scripts, css styles, JS functions, and many other things. It also has some tags that make your gallery work. Remember that it may contain only HTML, CSS and JavaScript codes – no PHP is allowed here.



    {SYS_MENU} — the first level menu the end user will see on your page (the one that contains the login/logout link)



    {SUB_MENU} — the second level menu the end user will see on your page (the one that contains the links "Album list" / "Last uploads" / "Last comments" / "Most viewed" / "Top rated" / "My Favorites" / "By Date" / "Search").



    {GALLERY} — shows your whole gallery (all the features are available in the file "theme.php").



    {CUSTOM_HEADER} — If the corresponding option has been set in config, this token will be replaced with the output that your custom header generates. If you do not use the custom header feature, you can remove this token from your template.



    {GAL_NAME} — Will be replaced with the gallery name you set up in config when the template is being parsed.



    {GAL_DESCRIPTION} — Will be replaced with the gallery description you set up in config when the template is being parsed.



    {CUSTOM_FOOTER} — If the corresponding option has been set in config, this token will be replaced with the output that your custom footer generates. If you don't use the custom footer feature, you can remove the this token from your template.



    {CREDITS} — Will display the "Powered by Coppermine" tag on your page.





    Welcome to Estrella Design, your source for a design for Wordpress and Coppermine, Twitter, and Facebook. Here, you can order a beautiful graphic for your sites based on Wordpress and Coppermine and fan accounts on such social networks like Twitter and Facebook. We try to complete your orders as soon as possible and do our best to make you happy with a result. We are currently accepting orders for absolutely free, but if we get many orders, we will probably make it paid. If you have some questions, send us an email at any time, and we will answer all your questions you care about. Hope you enjoy it and will visit us again. Lots of love, the Estrella Design Team.
    What kind of files does your Coppermine should have? Go Back

    On this page, I will show you all the files that you MUST have in your WordPress theme. If you do not have at least one of them, your theme either will not work correctly or will not work at all. So, here, I explain what you need all these files and what sort of role they play. But remember that thanks to my lessons, you can learn how to make only simple themes.

  • 2. style.css — This file contains styles of all the blocks of your Coppermine theme. CSS code is much simpler than PHP or JS, and if you know what everything means, you can learn much about it very quickly.
  • 3. theme.php — This file usually contains all the functions of Coppermine theme and blocks of your gallery. You need to be very careful when changing something because it might break your gallery (it’s fixable if you know what you changed and can get the previous version of the file back)
  • 4. template.html — This file contains a ‘head’ block, in which there is a site title, a site desc, a site tags, a site logos, scripts, css styles, JS functions, and many other things.




  • STYLE.CSS

    This file contains styles of all the blocks of your Coppermine theme. CSS code is much simpler than PHP or JS, and if you know what everything means, you can learn much about it very quickly. The style sheet controls the colors and nearly all design aspects of the output of your gallery. That’s why it’s worth looking at it: with only some minor changes in the style you can change the overall design of your entire gallery. Of course, you can add your CSS code and change it as you want, but here are the standard classes of your Coppermine gallery (in the case if you change nothing in the file “theme.php“).



  • textinput
  • listbox
  • button
  • radio
  • checkbox
  • bblink
  • maintable
  • tableb_alternate
  • catrow
  • catrow_noalb
  • album_stat
  • thumb_filename
  • thumb_title
  • thumb_caption
  • thumb_num_comments
  • user_thumb_infobox
  • sortorder_options
  • navmenu
  • admin_menu
  • admin_float
  • admin_menu_wrapper
  • admin_menu_anim
  • icon
  • comment_date
  • image
  • imageborder
  • display_media
  • thumbnails
  • footer
  • statlink
  • alblink
  • catlink
  • topmenu
  • img_caption_table
  • clickable_option
  • listbox_lang
  • pic_title
  • pic_caption
  • cpg_main_block
  • important
  • cpgChooseThemeWrapper
  • filmstrip_background




  • THEME.PHP

    This file usually contains all the functions of Coppermine theme and blocks of your gallery. You need to be very careful when changing something because it might break your gallery (it’s fixable if you know what you changed and can get the previous version of the file back). Actually, when you install your Coppermine gallery, you should always get a theme called “sample”. You can access FTP/CPanel and go to the path of your gallery, go to the folder themes, find the folder “sample”, find the file “theme.php”, open it and copy all the content to the file with the same name that is placed in a folder with your theme. If you are not an experienced user, you can change nothing and just save the file. And remember, when making modifications to these templates, be careful that you do not alter the lines that start with and . These lines are often used to identify the start and end of specific code blocks that the script will use to display your gallery.





    TEMPLATE.HTML

    This file contains a ‘head‘ block, in which there is a site title, a site desc, a site tags, a site logos, scripts, css styles, JS functions, and many other things. It also has some tags that make your gallery work. Remember that it may contain only HTML, CSS and JavaScript codes – no PHP is allowed here.



    {SYS_MENU} — the first level menu the end user will see on your page (the one that contains the login/logout link)



    {SUB_MENU} — the second level menu the end user will see on your page (the one that contains the links "Album list" / "Last uploads" / "Last comments" / "Most viewed" / "Top rated" / "My Favorites" / "By Date" / "Search").



    {GALLERY} — shows your whole gallery (all the features are available in the file "theme.php").



    {CUSTOM_HEADER} — If the corresponding option has been set in config, this token will be replaced with the output that your custom header generates. If you do not use the custom header feature, you can remove this token from your template.



    {GAL_NAME} — Will be replaced with the gallery name you set up in config when the template is being parsed.



    {GAL_DESCRIPTION} — Will be replaced with the gallery description you set up in config when the template is being parsed.



    {CUSTOM_FOOTER} — If the corresponding option has been set in config, this token will be replaced with the output that your custom footer generates. If you don't use the custom footer feature, you can remove the this token from your template.



    {CREDITS} — Will display the "Powered by Coppermine" tag on your page.