News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

single picture navbar location

Started by Davis, December 05, 2007, 03:53:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Davis

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,

Davis


Nibbler

Add the following code to your custom theme's theme.php, just before the closing ?>


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.

Davis

Many thanks my good man!!!  It was driving me crazy trying to figure it out!!!

Davis