From: Andrew Engelbrecht Date: Tue, 25 Jun 2019 18:59:53 +0000 (-0400) Subject: use a static footer block instead of a dynamic one X-Git-Url: https://vcs.fsf.org/?p=ryf-theme.git;a=commitdiff_plain;h=31fd2207757495e4a40089582b6488c19f8ab92d use a static footer block instead of a dynamic one this will make updating its text by end users easier. for now, the nice looking footer template has been copied into a static block. if we need a dynamic footer in the future, we can bring these files back. --- diff --git a/modules/footer/css/footer.css b/modules/footer/css/footer.css deleted file mode 100644 index 5fd09fe..0000000 --- a/modules/footer/css/footer.css +++ /dev/null @@ -1,12 +0,0 @@ -/* Footer */ - -.footer { - color: #FFF; - border: none !important; -} -.footer a { color: #729fcf; } -.footer a:hover { color: #FFF; } -.footer h4 { font-weight: bold; } -.footer li { list-style: none; line-height: 1.5em; } -.footer .copyright { font-size: 0.9em; text-align: center; width: 80%; margin-top: 1em; border-top: 1px solid #111; padding: 1em; } - diff --git a/modules/footer/footer.info.yml b/modules/footer/footer.info.yml deleted file mode 100644 index 47d83d4..0000000 --- a/modules/footer/footer.info.yml +++ /dev/null @@ -1,8 +0,0 @@ -name: Footer -description: Footer -core: 8.x -package: RYF Custom Module -dependencies: -- node -- block -type: module diff --git a/modules/footer/footer.libraries.yml b/modules/footer/footer.libraries.yml deleted file mode 100644 index 02b8c58..0000000 --- a/modules/footer/footer.libraries.yml +++ /dev/null @@ -1,7 +0,0 @@ -footer: - css: - theme: - css/footer.css: {} - js: - js/footer.js: {} - diff --git a/modules/footer/footer.module b/modules/footer/footer.module deleted file mode 100644 index 7ad9ddb..0000000 --- a/modules/footer/footer.module +++ /dev/null @@ -1,18 +0,0 @@ - [ - 'variables' => ['menu_array' => NULL ] - ], - - ]; -} diff --git a/modules/footer/js/footer.js b/modules/footer/js/footer.js deleted file mode 100644 index 1143d61..0000000 --- a/modules/footer/js/footer.js +++ /dev/null @@ -1,5 +0,0 @@ -(function($){ - $(document).ready(function(){ - }); - -})(jQuery); diff --git a/modules/footer/src/Plugin/Block/FooterBlock.php b/modules/footer/src/Plugin/Block/FooterBlock.php deleted file mode 100644 index 426cd82..0000000 --- a/modules/footer/src/Plugin/Block/FooterBlock.php +++ /dev/null @@ -1,64 +0,0 @@ -load('footer', $menu_tree_parameters); - - $cc = 0; - foreach($tree as $menu){ - $title = $menu->link->getTitle(); - $urlObject = $menu->link->getUrlObject(); - $url = $urlObject->toString(); - $weight = $menu->link->getWeight(); - $enabled = $menu->link->isEnabled(); - - if($enabled) { - $menu_array[$cc]['title'] = $title; - $menu_array[$cc]['url'] = $url; - $menu_array[$cc]['weight'] = $weight; - $cc++; - } - - } - - usort($menu_array, function($a, $b) { - return $a['weight'] - $b['weight']; - }); - - return array( - '#theme' => 'footer', - '#menu_array' => $menu_array, - '#attached' => array( - 'library' => array( - 'footer/footer', - ), - ), - ); - - } -} diff --git a/modules/footer/templates/footer.html.twig b/modules/footer/templates/footer.html.twig deleted file mode 100644 index 18cc55f..0000000 --- a/modules/footer/templates/footer.html.twig +++ /dev/null @@ -1,49 +0,0 @@ -
-
- -
- - - -
-
-

Get Involved

- - -
-
-
- - -