1

Topic: liniajelesniasucha.pl

It's time to show my last site running with wolf. Unfortunately I could not add information in footer about WolfCMS - Customer decision.
What do you think. Mobile version is available too.
http://liniajelesniasucha.pl/

"Everyone knows something cannot be done. Then along comes a man who does not know that it cannot be done and does it."
Albert Einstein

2

Re: liniajelesniasucha.pl

This was all made with WolfCMS? It's really good!

Can I ask how you made the drop down menus on your navigation bar? smile

And how did you make the buttons 1 & 2 on the bottom of your FAQ?

I assume you don't plan on sharing the HTML and CSS?

Thumbs up

3

Re: liniajelesniasucha.pl

You can see in his source code. Main navigation has javascript but pagination buttons are css only.

Btw Michael, nice site.

Tutorials at Project 79 | Wolf CMS Docs

4

Re: liniajelesniasucha.pl

@jackie - Thank You
@JayG77 - Menu generated is by my own function menuTree, You can download plugin contain this one - djg_core WolfCMS plugin (https://github.com/djgprv/djg_core)
example use:

<nav class="djg_menu_header">
<ul class="djg_menu">
<?php $ids=array(4,9,15); echo Djgcore::menuTree(Page::find('/'),2,8,$ids); ?>
</ul>
</nav>

- buttons 1 & 2 is created by pager helper:https://www.wolfcms.org/wiki/helpers:pager
my code:

<?php use_helper('Pager'); ?>
<?php $last_articles = $this->children(array('order'=>'page.created_on DESC')); ?>
<?php $pager = new Pager(array('style' => 'punbb','items_per_page' => 5,'total_items' => count($last_articles ))); ?>
<?php $last_articles2 = $this->children(array('limit' => $pager->items_per_page, 'offset' => $pager->sql_offset)); ?>
<?php foreach ($last_articles2 as $article): ?>
<div class="entry">
<p class="article"><?php echo $article->link($article->title); ?> <span>(<?php echo $article->date('%Y-%m-%d'); ?>)</span></p>
<?php $myarticles = Djgcore::truncate($article->content(), 100, "... ".$article->link("more")); ?>  
<?php echo "$myarticles"; ?>
</div>
<?php endforeach; ?>
<?php echo ($pager->total_items > 2) ? $pager : null; ?>
</div>

- html & css
I use http://getskeleton.com/

Hope it help, enjoy!

Last edited by djgprv (2015-08-13 10:16)

"Everyone knows something cannot be done. Then along comes a man who does not know that it cannot be done and does it."
Albert Einstein