This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
owl-carousel: | |
css: | |
theme: | |
components/owl-carousel/css/owl.carousel.css: {weight: -2} | |
components/owl-carousel/css/owl.theme.css: {weight: -1} | |
js: | |
components/owl-carousel/js/owl.carousel.min.js: {weight: -1} | |
dependencies: | |
- core/jquery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hello_world_theme_suggestions_page_alter(array &$suggestions, array $variables) { | |
$current_path = \Drupal::service('path.current')->getPath(); | |
$alias = \Drupal::service('path.alias_manager')->getAliasByPath($current_path); | |
$types = explode('/', $alias); | |
$type = str_replace('-', '_', $types[1]); | |
if ($node = \Drupal::routeMatch()->getParameter('node')) { | |
if(isset($types) && isset($types[2])) { | |
if($types[2] == 'about-us' || $types[2] == 'tentang-kami') { | |
$suggestions[] = 'page__about_us'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global-styling: | |
css: | |
theme: | |
components/bootstrap/css/bootstrap.min.css: {} | |
css/style.css: {} | |
global-js: | |
js: | |
js/script.js: {} | |
js/jquery.popupoverlay.js: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Hello World Theme | |
description: Theme for "Hello World". | |
package: Custom | |
Type: theme | |
Version: 8.x.1.0 | |
core: 8.x | |
libraries: | |
- hello_world/global-styling | |
- hello_world/global-js |