forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Davis on December 05, 2007, 03:53:24 am

Title: single picture navbar location
Post by: Davis on December 05, 2007, 03:53:24 am
I am trying to move the navbar that appears above a single picture (the one with the icons) to the bottom of it just above the filmstrip.  Any help is appreciated.

Thanks,
Title: Re: single picture navbar location
Post by: Davis on December 07, 2007, 04:26:30 pm
Anyone???
Title: Re: single picture navbar location
Post by: Nibbler on December 07, 2007, 04:31:28 pm
Add the following code to your custom theme's theme.php, just before the closing ?>

Code: [Select]
function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
    global $CONFIG;

    $width = $CONFIG['picture_table_width'];

    starttable();
    echo $picture;
    endtable();

    starttable();
    echo $nav_menu;
    endtable();

    if ($CONFIG['display_film_strip'] == 1) {
        echo $film_strip;
    }

    echo $votes;

    $picinfo = isset($_COOKIE['picinfo']) ? $_COOKIE['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
    echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
    starttable();
    echo $pic_info;
    endtable();
    echo "</div>\n";

    echo "<div id=\"comments\">\n";
    echo $comments;
    echo "</div>\n";
}

Re-arranging the blocks here has been described before; remember to search before posting.
Title: Re: single picture navbar location
Post by: Davis on December 11, 2007, 03:15:28 am
Many thanks my good man!!!  It was driving me crazy trying to figure it out!!!

Davis