Setup h2 for title in the content
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 20 Sep 2016 18:19:37 +0000 (14:19 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 20 Sep 2016 18:19:37 +0000 (14:19 -0400)
h1 will be for the page title
h2 for page content titles

controllers/ToolboxImport.php

index 9a7b984..54a11c7 100644 (file)
                 $iterator = 1;
                 if ($this->_options['toolbox_page_table'] == 'bus_category') {
                     if ( $this->_options['navigation_name_in_content'] ) {
-                        $page['pageContent'] .= '<h1>'.$page['category'].'</h1>';
+                        $page['pageContent'] .= '<h2>'.$page['category'].'</h2>';
                     } else {
                         $page['title'] .= $page['category'];
                     }
                     case 1:
                         if (isset($paragraph['title']) && $paragraph['title']) {
                             if ( $this->_options['navigation_name_in_content'] ) {
-                                $page['pageContent'] .= '<h1>'.$paragraph['title'].'</h1>';
+                                $page['pageContent'] .= '<h2>'.$paragraph['title'].'</h2>';
                             } else {
                                 $page['title'] = $paragraph['title'];
                             }
                         break;
                     case 2:
                         if (isset($paragraph['name']) && $paragraph['name']) {
-                            $page['pageContent'] .= '<h2>'.$paragraph['name'].'</h2>';
+                            $page['pageContent'] .= '<h3>'.$paragraph['name'].'</h3>';
                         }
                         if (isset($paragraph['title']) && $paragraph['title']) {
-                            $page['pageContent'] .= '<h2>'.$paragraph['title'].'</h2>';
+                            $page['pageContent'] .= '<h3>'.$paragraph['title'].'</h3>';
                         }
                         if (isset($paragraph['image']) && $paragraph['image']) {
                             $page['pageContent'] .= $this->_displayImage($paragraph, $secondaryAlign);
                         break;
                     default:
                         if (isset($paragraph['name']) && $paragraph['name']) {
-                            $page['pageContent'] .= '<h2>'.$paragraph['name'].'</h2>';
+                            $page['pageContent'] .= '<h3>'.$paragraph['name'].'</h3>';
                         }
                         if (isset($paragraph['title']) && $paragraph['title']) {
-                            $page['pageContent'] .= '<h2>'.$paragraph['title'].'</h2>';
+                            $page['pageContent'] .= '<h3>'.$paragraph['title'].'</h3>';
                         }
                         if (isset($paragraph['template']) && $alternateImg && $page['template'] == 2) {
                             $align = ($iterator%2 == 0) ? 'left' : 'right';