1
+ <?php if ( ! defined ('BASEPATH ' )) exit ('No direct script access allowed ' );
2
+ /**
3
+ * $config file for CI3-Navigation-Library and Bootstrap 3.
4
+ * User: danielwaghorn
5
+ * Date: 11/06/15
6
+ * Time: 11:23
7
+ *
8
+ * @var navigation_open:
9
+ * Contains the open tag e.g. <ul class="nav">
10
+ * @var navigation_close:
11
+ * Contains the closing tag e.g. </ul>
12
+ * @var item_open:
13
+ * Contains the open tag for a nav item e.g. <li>
14
+ * @var item_open_active_class:
15
+ * Contains class to be added to an open tag which is active link.
16
+ * E.G. 'active'
17
+ * @var item_open_dropdown_class:
18
+ * Contains class to be added to a dropdown parent link open tag.
19
+ * E.G. 'dropdown'
20
+ * @var item_close:
21
+ * Contains the close tag for an item e.g. </li>
22
+ * @var anchor:
23
+ * Contains the template for an anchor in an item
24
+ * e.g. <a href="{$url}" {$extra}>{$text}</a>
25
+ * where $url is the link to the item,
26
+ * $extra is any additional attributes e.g. class="main"
27
+ * and $text is the text to be held in the anchor.
28
+ * @var dropdown_open:
29
+ * Contains the open tag for a dropdown e.g. <ul class="dropdown">
30
+ * @var dropdown_close:
31
+ * Contains the close tag for a dropdown e.g. </ul>
32
+ */
33
+
34
+
35
+ $ config ['navigation_open ' ] = '<ul class="nav navbar-nav"> ' ;
36
+
37
+ $ config ['navigation_close ' ] = '</ul> ' ;
38
+
39
+ $ config ['item_open ' ] = '<li> ' ;
40
+
41
+ $ config ['item_open_active_class ' ] = 'active ' ;
42
+
43
+ $ config ['item_open_dropdown_class ' ] = 'dropdown ' ;
44
+
45
+ $ config ['item_close ' ] = '</li> ' ;
46
+
47
+ $ config ['anchor ' ] = '<a href="{$url}" {$extra}>{$text}</a> ' ;
48
+
49
+ $ config ['anchor_dropdown ' ] = '<a href="{$url}" {$extra} class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{$text}</a> ' ;
50
+
51
+ $ config ['dropdown_open ' ] = '<ul class="dropdown-menu" role="menu"> ' ;
52
+
53
+ $ config ['dropdown_close ' ] = '</ul> ' ;
0 commit comments