Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
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
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 2/3 test site
Offline