Is there a simple way to display content elsewhere - <?= $theme->credits() ?>
|
hebhansen
![]()
Joined: 2009-02-10
Posts: 572 |
Posted: Thu, 2010-03-18 17:15
|
|
If I wish to display content elsewhere can I use this: <?= $theme->credits() ?> fx: If using this: <?= $theme->credits() ?> all the best |
|


Posts: 2138
it just gives you back list of <li> elements
Posts: 572
So what you say is that I have to port entire modules to the theme?? and have code x 2
all the best
HB - http://www.image.agentura.dk
Posts: 2138
it is part of the theme.
you can move this line anywhere in the page along with <ul> wrapper
Posts: 572
I have no idea what your saying serge. No offence but could you try to be specific. One answer every 24 hours is not getting me far if it's shady:
There is no doc on Kohana and how things work. Language flag is an example ... I want a number of blocks in front and nothing works in the G3 structure, for me at least. So what's the story?
all the best
HB - http://www.image.agentura.dk
Posts: 2138
I am not on support team, so I can provide some help when I have some free time only.
your question was technical and specific so I gave you technical and specific answer.
I do not know what customizations you made to default theme, so I will give you an example based on Wind theme...
Under /themes/wind/views/ there is a file page.html.php
In it search for <?= $theme->credits() ?> you were asking about.
you would find it in the footer of the page under <div id="g-footer"
it is optional so it can be controlled from theme settings and the full thing look like this
<? if (module::get_var("gallery", "show_credits")): ?> <ul id="g-credits" class="g-inline"> <?= $theme->credits() ?> </ul> <? endif ?>Theme credits are nothing to do with "The block language flags" you've mentioned.
If you want to move credits displayed, just cut and paste it in appropriate place in the file.
Posts: 572
No forget about credits....
This is what I want
1) display language flags (block) inside a view in my theme
Q: what is the code to drop the html there
2) Display Tag Cloud Block same
Q what is the code
3) Display Image Block in view
???
How do I call a sidebar block to my view but leave the block code in it's module?
Again this is not about credits - I assumed the code I need is similar
all the best
HB - http://www.image.agentura.dk
Posts: 2138
From Theme_View.php the following methods are supported
case "album_blocks": case "album_bottom": case "album_top": case "body_attributes": case "credits"; case "dynamic_bottom": case "dynamic_top": case "footer": case "head": case "header_bottom": case "header_top": case "page_bottom": case "page_top": case "photo_blocks": case "photo_bottom": case "photo_top": case "resize_bottom": case "resize_top": case "sidebar_bottom": case "sidebar_top": case "thumb_bottom": case "thumb_info": case "thumb_top":look for sample implementations in the modules I mentioned earlier.
functions produce content which is then inserted when needed.
Some are implemented in main gallery module.
I hope it will give you an ide where to start.