xoops forums

edipinho

Not too shy to talk
Posted on: 4/3 3:27
edipinho
edipinho (Show more)
Not too shy to talk
Posts: 103
Since: 2003/10/15
#1

Error in the themes, xbootstrap and xswatch?

In the themes, xbootstrap and xswatch, it is happening that the contents of the modules are appearing on the top wall of the blocks, in the old themes it continues to work perfectly, they appear in the center of the blocks, between the upper blocks and the lower blocks.

I'm having trouble figuring out the fault, please any help is welcome

Resized Image

alain01

Just can't stay away
Posted on: 4/4 18:17
alain01
alain01 (Show more)
Just can't stay away
Posts: 481
Since: 2003/6/20
#2

Re: Error in the themes, xbootstrap and xswatch?

Hi,
Right,
I didn't notice but yes !!!
Content is on top in these themes but you can modify it.

See theme.tpl (xswatch)
<div class="row">
    <{
includeq file="$theme_name/tpl/leftBlock.tpl"}>
    <{
includeq file="$theme_name/tpl/content-zone.tpl"}>
    <{
includeq file="$theme_name/tpl/rightBlock.tpl"}>
</
div>

So then see /tpl/content-zone.tp
<{includeq file="$theme_name/tpl/contents.tpl"}>

                <
div class="row">
                    <{
includeq file="$theme_name/tpl/centerBlock.tpl"}>
                    <{
includeq file="$theme_name/tpl/centerLeft.tpl"}>
                    <{
includeq file="$theme_name/tpl/centerRight.tpl"}>
                </
div>

So, content is located BEFORE center blocs
So you can modify like that :
<div class="row">
                    <{
includeq file="$theme_name/tpl/centerBlock.tpl"}>
                    <{
includeq file="$theme_name/tpl/centerLeft.tpl"}>
                    <{
includeq file="$theme_name/tpl/centerRight.tpl"}>
                </
div>
                <{
includeq file="$theme_name/tpl/contents.tpl"}>

geekwright

Quite a regular
Posted on: 4/8 1:16
geekwright
geekwright (Show more)
Quite a regular
Posts: 315
Since: 2010/10/15
#3

Re: Error in the themes, xbootstrap and xswatch?

This inconsistency was first introduced by xBootstrap in XOOPS 2.5.7

While it seems wrong in some ways, the focus was moving away from the big desktop, to the little mobile screen. Along with that, xbootstrap introduced a jumbotron and a slider, both taking over room and function at the top of the page. To keep the contents somewhere within a short distance of the top of the page (especially for mobile devices) something had to give.

While I can see why is seems wrong in a sense, it is also something we've been applying productively since 2014. I'm relatively sure more could break than would be fixed if it changed. It really is quite functional as is.

edipinho

Not too shy to talk
Posted on: 4/8 14:26
edipinho
edipinho (Show more)
Not too shy to talk
Posts: 103
Since: 2003/10/15
#4

Re: Error in the themes, xbootstrap and xswatch?

geekwright, not wanting to disagree and already disagreeing, this problem should be dealt with directly on the topic (it is cell phone so do so) and not in the choices made by the site admin, sorry I am not an expert I am just a user of this excellent CMS.

edipinho

Not too shy to talk
Posted on: 4/8 14:37
edipinho
edipinho (Show more)
Not too shy to talk
Posts: 103
Since: 2003/10/15
#5

Re: Error in the themes, xbootstrap and xswatch?

alain01, it worked perfect, thank you very much.