/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/application/views/examplesMenu.php

  • Committer: b11johgu
  • Date: 2013-05-14 12:30:38 UTC
  • mto: This revision was merged to the branch mainline in revision 65.
  • Revision ID: b11johgu@student.his.se-20130514123038-rthxj3f34o32gpxy
ExamplesController:
- Added expand/collapse arrows for categories/subcategories.
- Added category positioning (incomplete).

more general changes made.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
                                        <li class="menuHeader">Quick links</li>
7
7
                                        <!-- Loads menu items from array -->
8
8
                                <?php 
 
9
                                $counter=1;
9
10
                                $list = array_keys($titles);
10
 
                                foreach ($list as $item):?>
11
 
        <li class="menuLink" data-name="<?php echo $item;?>"><?php echo $item;?></li></a>
12
 
                                <?php endforeach;?>                     
 
11
                                foreach ($list as $item){
 
12
                                        $counter++;
 
13
                                        if($counter % 2){
 
14
                                                echo '<li class="menuLink" data-name="'.$item.'">'.$item.'</li></a>';
 
15
                                        }
 
16
                                }
 
17
                                ?>
13
18
                        </ul>
14
19
                </div>
15
20
        </div>