I would like to reproduce the same module of "News" template

Premium sports magazine Joomla template with clean, easy to customize and unique design.
GK User
Thu Nov 21, 2013 4:38 pm
Hi
Into League News template I would like to reproduce the same module of "News" template: is it possible?
Image

If yes how can I do it?

thanks
CHA
User avatar
Fresh Boarder

GK User
Sat Nov 23, 2013 11:05 am
Hello,

It will need few adjustments. First of all please configure your NSP instance as it is visible here:

http://www.gavick.com/documentation/wp- ... 5-tabs.png

Then please add in the css/gk.stuff.css file the following lines:

Code: Select all
/* Suffix nsphover */
.nsphover .content {
        margin: 0;
}

.nsphover .nspImageWrapper {
        position: relative;
}

.nsphover .nspImageWrapper .nspHeader {
        background: #4d90fe;
        background: rgba(77, 144, 254, 0.85);
        bottom: 0;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
        -o-box-sizing: border-box;
        box-sizing: border-box;
        font-size: 18px;
        font-weight: 300;
        margin: 0;
        padding: 20px;
        position: absolute;
}

.nsphover .nspImageWrapper .nspHeader a,
.nsphover .nspImageWrapper .nspHeader a:active,
.nsphover .nspImageWrapper .nspHeader a:focus,
.nsphover .nspImageWrapper .nspHeader a:hover {
        color: #fff;
}

.nsphover .nspArt .nspInfo2 {
        background: #fec64d;
        color: #fff;
        display: block;
        font-size: 12px;
        font-weight: 600;
        line-height: 12px;
        margin: 0 0 20px 0;       
        padding: 12px 22px;
        text-transform: uppercase;
}

.nsphover .nspInfo2 a {
        color: #fff!important;
        margin: 0!important;
        padding: 0!important;
}

.nsphover .nspInfo2 a:hover,
.nsphover .nspInfo2 a:focus,
.nsphover .nspInfo2 a:active {
        color: #fff!important;
}

.nsphover .nspArt {
        border: none!important;
        margin: 6px 0 0 0;
        overflow: hidden;
        position: relative;
}

.nsphover .nspText {
        bottom: -200px;
        position: absolute;
}

.nsphover .nspHoverOverlay {
        background: #4d90fe;
        -webkit-box-sizing: border-box;
           -moz-box-sizing: border-box;
            -ms-box-sizing: border-box;
             -o-box-sizing: border-box;
                box-sizing: border-box;
        height: 600px;
        margin: 0 3px 0 0;
        padding: 20px 20px 0 20px;
        position: absolute;
        top: 100%;
        -webkit-transition: top .3s ease-out;
           -moz-transition: top .3s ease-out;
            -ms-transition: top .3s ease-out;
             -o-transition: top .3s ease-out;
                transition: top .3s ease-out;
        z-index: 9;
}

.nsphover .nspHoverOverlay .nspText,
.nsphover .nspHoverOverlay .nspText a {
        color: #c7dcff;
        font-size: 14px;
        margin-top: 20px;
        position: static;
}

.nsphover .nspHoverOverlay .nspText a:active,
.nsphover .nspHoverOverlay .nspText a:focus,
.nsphover .nspHoverOverlay .nspText a:hover {
        color: #fff;
}

.nsphover .nspHoverOverlay .nspHeader,
.nsphover .nspHoverOverlay .nspHeader a {
        color: #fff;
        font-size: 18px;
        font-weight: 300;
}

.nsphover .nspHoverOverlay .nspHeader a:active,
.nsphover .nspHoverOverlay .nspHeader a:focus,
.nsphover .nspHoverOverlay .nspHeader a:hover {
        color: #c7dcff;
}

.nsphover .nspHoverOverlay.active {
        top: 0;
}

.nsphover .nspInfo1,
.nsphover .nspInfo1 a {
        color: #fff!important;
        font-size: 13px!important;
        font-weight: 400!important;
        margin-top: 30px!important;
}


and finally - in the js/gk.scripts.js please add the following code:

Code: Select all
//
window.addEvent('domready', function() {
        // NSP nsphover suffix
        document.getElements('.nsphover').each(function(elm, i) {
                if(elm.hasClass('box')) {
                        elm.getElements('.nspArt').each(function(art, i) {
                                var overlay = new Element('div', { 'class': 'nspHoverOverlay' });
                                var info = art.getElement('.nspInfo1');
                                var info2 = art.getElement('.nspInfo2');
                                overlay.inject(art, 'bottom');
                                art.getElement('.nspText').inject(overlay, 'bottom');
                                var copy = art.getElement('.nspHeader').clone();
                                copy.inject(overlay, 'top');
                                info.inject(overlay, 'bottom');
                                info2.inject(overlay, 'top');
                                art.getElement('.nspHeader').inject(art.getElement('.nspImageWrapper'), 'bottom');
                               
                                art.addEvent('mouseenter', function() {
                                        overlay.addClass('active');
                                });
                               
                                art.addEvent('mouseleave', function() {
                                        overlay.removeClass('active');
                                });
                        });
                }
        });
});
User avatar
Administrator


cron