e107inc / bootstrap4

Bootstrap4 Theme folder working repo
1 stars 0 forks source link

menus in sidebar - discussion, recapitulation #4

Closed Jimmi08 closed 5 years ago

Jimmi08 commented 5 years ago

Bootstrap4 famous cards and sidebar

Overview of options:

1. you use for menu nav version for ul/list. Example:

$NEWS_MENU_TEMPLATE['category']['start']       = '<ul class="nav flex-column news-menu-category">';
$NEWS_MENU_TEMPLATE['category']['end']         = '</ul>';
$NEWS_MENU_TEMPLATE['category']['item']        = '
    <li class="nav-item"><a class="nav-link" href="{NEWS_CATEGORY_URL}">{NEWS_CATEGORY_TITLE} {NEWS_CATEGORY_NEWS_COUNT}</a></li>
';

image

image

Tablestyle:

  if($style == 'menu')
    {  
    echo '<div class=" mb-4">';
        if(!empty($caption))
        {
          echo '<h5 >'.$caption.'</h5>';
        }
    echo $text; 
    echo '</div>';
    return;
  } 

There is no problem in this case.

  1. you can "fake" cards with this solution too image

There is no problem in this case.

  1. problem starts when you want to use this look for lists: (recommended by bootstrap)

image

Then you need to change style inside tablestyle function (different styles for lists and other content)

Different areas are only part solution (first text menus, second lists).

This has to be decided by theme author but they need information that menu is list.