News:

CPG Release 1.6.31
Minor maintenance release
Clean up remaining remnants of the .net CPG website
Improved installer_stub compatibility with various server configurations

Main Menu

Different style for album list on main page

Started by Αndré, January 13, 2014, 05:14:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Αndré

Due to the site outage we lost an already solved thread which could be useful for other people, that's why I post it again.

It's currently still available in Google's cache: http://webcache.googleusercontent.com/search?q=cache:kDjatP42uzIJ:coppermine-gallery.com/forum/index.php%3Ftopic%3D77006.0+&cd=2&hl=de&ct=clnk&gl=de&client=firefox-a


Question:
Quote from: allvipCan I wrapp the album list in a div only on index.php?


Answer:
Quote from: ΑndréCopy the function theme_display_album_list from themes/sample/theme.php to your theme's theme.php file, if it doesn't exist.

Find
starttable('100%');
and above, add
    global $CPG_PHP_SELF;
    if (!$cat) {
        echo '<div class="your_class_here">';
    }


find
endtable();
and below, add
    if (!$cat) {
        echo '</div>';
    }