Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dev:changes_in_2.10 [2019/02/15 14:03]
plg created
dev:changes_in_2.10 [2019/02/15 15:40] (current)
plg more details about nb_items in breadcrumbs
Line 12: Line 12:
  
 ====== New badges for number of photos ====== ====== New badges for number of photos ======
-To replace the aspect of badges (actually with bracket), you can add in LocalFiles Editor plugin this css code and customize your own Piwigo+ 
-<code php+In index.tpl, in the H2 (breadcrumbs) the number of photos of the current section is no longer in the $TITLE template variable, but provided separately in $NB_ITEMS. You need to update your index.tpl (if not using the default theme one). Replace: 
-.nb_items {+ 
 +<code html><h2>{$TITLE}</h2></code> 
 +by 
 +<code html> 
 +<h2>{$TITLE} {if $NB_ITEMS > 0}<span class="badge nb_items">{$NB_ITEMS}</span>{/if}</h2> 
 +</code> 
 + 
 +To replace the aspect of badges (actually between brackets), you can add in your theme.css: 
 + 
 +<code css
 +.badge {
   background-color: #808080;   background-color: #808080;
   color: black;   color: black;
Line 22: Line 32:
 } }
  
-.nb_items:before+.badge:before
 { {
-  content : '';+   content : '';
 } }
  
-.nb_items:after+.badge:after
 { {
   content : '';   content : '';
 } }
  
-dl#mbCategories .categories {+dl#mbCategories li {
   margin-top: 3px ;   margin-top: 3px ;
   margin-bottom: 3px;   margin-bottom: 3px;
 
Back to top
dev/changes_in_2.10.txt · Last modified: 2019/02/15 15:40 by plg
 
 
github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact