Code Duplication    Length = 18-19 lines in 2 locations

application/elements/footer.php 1 location

@@ 4-22 (lines=19) @@
1
<?php defined('C5_EXECUTE') or defined('BASEPATH') or die("Access Denied."); ?>
2
3
            <footer>
4
                <?php if (isset($is_codeigniter)) { ?>
5
6
                    <p>Canterbury College was established in 1947 and is now one of the largest Further and Higher Education Colleges in the South East.</p>
7
                    <p>New Dover Road, Canterbury, Kent CT1 3AJ. Tel: +44 (0)1227 811111 | Copyright &copy; <?= date("Y"); ?> Canterbury College.</p>
8
9
                <?php /* END Codeigniter */ } else { /* IF Concrete5 */ ?>
10
                
11
                    <?php
12
                        $a = new GlobalArea('Global Footer'); $a->display($c);
13
14
                        $v = View::getInstance();
15
                        if ($v->getThemeHandle() == 'ccintranet') {
16
                            $a = new GlobalArea('CC Footer'); $a->display($c);
17
                        } elseif ($v->getThemeHandle() == 'ekcintranet') {
18
                            $a = new GlobalArea('EKC Footer'); $a->display($c);
19
                        }
20
                    ?>
21
                
22
                <?php /* END Concrete5*/ } ?>
23
24
            </footer>
25
        </div> <!-- END page-wrapper -->

application/elements/navigation.php 1 location

@@ 172-189 (lines=18) @@
169
    <?php /* END Concrete5*/ } ?>
170
</div>
171
172
<?php if (isset($is_codeigniter)) { ?>
173
    
174
<?php /* END Codeigniter */ } else { /* IF Concrete5 */ ?>
175
    
176
    <div class="global-notification">
177
        <?php
178
            $a = new GlobalArea('Global Notification'); $a->display($c);
179
180
            $v = View::getInstance();
181
            if ($v->getThemeHandle() == 'ccintranet') {
182
                $a = new GlobalArea('CC Global Notification'); $a->display($c);
183
            } elseif ($v->getThemeHandle() == 'ekcintranet') {
184
                $a = new GlobalArea('EKC Global Notification'); $a->display($c);
185
            }
186
        ?>
187
    </div> <!-- END global-notification -->
188
        
189
<?php /* END Concrete5*/ }
190
 
191