Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#26 2016-01-29 00:05:02

theomolenaar
Member
Registered: 2012-12-11
Posts: 119

Re: Header text in Mobile outside headers

Ah get it.

But is still means duplicates. The gallery sets the  in a different directory for one (with the template). And I then have to implement. And how am I going to implement the different images for the different screen sizes then. Because they have to replace the identyplate. In fact these two issues (screensize and album headers) seem to come together in one package nicely.

However it is good thing to know how to implement separate css files. Is there any description of where the css file(s) reside in TTG CE4? When I do a search I find dozens of them.

If I replace the 'return true' with a copy of the code above it that changes the header (But then filled with a Literal) I think I got what I need. Or am I wrong.

function ttg_header_masthead( $style, $path) {
    if ((G_STYLE == 'CE4-GALLERY' || G_STYLE == 'CE4-AUTOINDEX' || G_STYLE == 'CE4-MOBILE')AND (G_PATH != 'GALLERIES'))
{
        echo '
            <div id="masthead" class="block-id masthead clearfix">
                <div class="mantle clearfix">
                    <div class="core clearfix">
               
            <div id="profile-image" class="profile-image clearfix">
                <div id="profile-icon" class="profile-icon">
            <a href="/"></a>
                </div>
                <div id="profile-labels" class="profile-labels clearfix">
                                             
                                 <h1><span><a href="#">' . ALBUMTITLE . '</a></span></h1>
                        <h2><span>a visual travel blog</span></h2>
                                       
                </div>
                </div><!-- #profile-image -->
                    </div>
                </div>
            </div> <!-- #masthead -->
            ';
            return false;  // replaces normal mastead for CE4 Gallery pages
    }
    return true;  //Pages not CE4-Gallery or autoindex use normal masthead
} //END

Offline

#27 2016-01-29 00:41:00

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 12,902
Website

Re: Header text in Mobile outside headers

However it is good thing to know how to implement separate css files. Is there any description of where the css file(s) reside in TTG CE4? When I do a search I find dozens of them.

All the TTG generated CSS files can be found in the exported lib/css/ folder

If I replace the 'return true' with a copy of the code above it that changes the header (But then filled with a Literal) I think I got what I need. Or am I wrong.

Give it a try. You'll probably need

else {
echo '

In front of the code

See this for an example: http://ce4.theturninggate.net/docs/doku … a_function


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 1.1.1 test site, Pangolin test site

Offline

Board footer

Powered by FluxBB