Code Duplication    Length = 35-35 lines in 2 locations

class.FlipPage.php 1 location

@@ 591-625 (lines=35) @@
588
    /**
589
     * Draw the header for the page
590
     */
591
    protected function addHeader()
592
    {
593
        $sites = $this->getSiteLinksForHeader();
594
        $links = $this->getLinksMenus();
595
        $header = '<nav class="navbar navbar-default navbar-fixed-top">
596
                      <div class="container-fluid">
597
                          <!-- Brand and toggle get grouped for better mobile display -->
598
                          <div class="navbar-header">
599
                          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false">
600
                              <span class="sr-only">Toggle navigation</span>
601
                              <span class="icon-bar"></span>
602
                              <span class="icon-bar"></span>
603
                              <span class="icon-bar"></span>
604
                          </button>
605
                          <a class="navbar-brand" href="#">
606
                              <picture>
607
                                  <source srcset="/img/common/logo.svg" style="width: 30px; height:30px"/>
608
                                  <img alt="Burning Flipside" src="/img/common/logo.png" style="width: 30px; height:30px"/>
609
                              </picture>
610
                          </a>
611
                          </div>
612
                          <!-- Collect the nav links, forms, and other content for toggling -->
613
                          <div class="collapse navbar-collapse" id="navbar-collapse">
614
                              <ul id="site_nav" class="nav navbar-nav">
615
                              '.$sites.'
616
                              </ul>
617
                              <ul class="nav navbar-nav navbar-right">
618
                              '.$links.'
619
                              </ul>
620
                          </div>
621
                      </div>
622
                  </nav>';
623
        $this->body = $header.$this->body;
624
        $this->body_tags .= 'style="padding-top: 60px;"';
625
    }
626
627
    /** Notification that is green for success */
628
    const NOTIFICATION_SUCCESS = 'alert-success';

Http/Html/class.FlipPage.php 1 location

@@ 577-611 (lines=35) @@
574
    /**
575
     * Draw the header for the page
576
     */
577
    protected function addHeader()
578
    {
579
        $sites = $this->getSiteLinksForHeader();
580
        $links = $this->getLinksMenus();
581
        $header = '<nav class="navbar navbar-default navbar-fixed-top">
582
                      <div class="container-fluid">
583
                          <!-- Brand and toggle get grouped for better mobile display -->
584
                          <div class="navbar-header">
585
                          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false">
586
                              <span class="sr-only">Toggle navigation</span>
587
                              <span class="icon-bar"></span>
588
                              <span class="icon-bar"></span>
589
                              <span class="icon-bar"></span>
590
                          </button>
591
                          <a class="navbar-brand" href="#">
592
                              <picture>
593
                                  <source srcset="/img/common/logo.svg" style="width: 30px; height:30px"/>
594
                                  <img alt="Burning Flipside" src="/img/common/logo.png" style="width: 30px; height:30px"/>
595
                              </picture>
596
                          </a>
597
                          </div>
598
                          <!-- Collect the nav links, forms, and other content for toggling -->
599
                          <div class="collapse navbar-collapse" id="navbar-collapse">
600
                              <ul id="site_nav" class="nav navbar-nav">
601
                              '.$sites.'
602
                              </ul>
603
                              <ul class="nav navbar-nav navbar-right">
604
                              '.$links.'
605
                              </ul>
606
                          </div>
607
                      </div>
608
                  </nav>';
609
        $this->body = $header.$this->body;
610
        $this->body_tags .= 'style="padding-top: 60px;"';
611
    }
612
613
    /** Notification that is green for success */
614
    const NOTIFICATION_SUCCESS = 'alert-success';