Skip to content

Commit

Permalink
added aplpa theme
Browse files Browse the repository at this point in the history
  • Loading branch information
brycebenton committed Jan 19, 2024
1 parent 12db210 commit 4ced9b1
Show file tree
Hide file tree
Showing 2,968 changed files with 51,113 additions and 6 deletions.
15 changes: 9 additions & 6 deletions scripts/drupal95.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,6 @@ mkdir -p $DRUPAL_MODULES_PATH/custom
# Copy custom modules
cp -r $REPO_MODULES_PATH/* $DRUPAL_MODULES_PATH/custom/

CONFIG_FILES_PATH="$(cd "${PROJECT_ROOT}/scripts/config" && pwd)"
SYNC_DIR="$PROJECT_DIR/sites/default/files/sync/"

cp -r $CONFIG_FILES_PATH/* $SYNC_DIR


ddev drush en hi_how_are_you
ddev drush hhay-cn

Expand Down Expand Up @@ -155,7 +149,16 @@ ddev drush migrate:import apl_dev_rooms
# export the current config
ddev drush cex -y

CONFIG_FILES_PATH="$(cd "${PROJECT_ROOT}/scripts/config" && pwd)"
SYNC_DIR="$PROJECT_DIR/sites/default/files/sync/"

cp -r $CONFIG_FILES_PATH/* $SYNC_DIR
ddev drush cim -y

THEMES_PATH="$(cd "${PROJECT_ROOT}/scripts/themes" && pwd)"
NEW_THEMES_DIR="$PROJECT_DIR/themes/"

cp -r $THEMES_PATH/* $NEW_THEMES_DIR

# Provide information about accessing the site
ddev describe
Expand Down
31 changes: 31 additions & 0 deletions scripts/themes/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Themes allow you to change the look and feel of your Drupal site. You can use
themes contributed by others or create your own.

WHAT TO PLACE IN THIS DIRECTORY?
--------------------------------

Placing downloaded and custom themes in this directory separates downloaded and
custom themes from Drupal core's themes. This allows Drupal core to be updated
without overwriting these files.

DOWNLOAD ADDITIONAL THEMES
--------------------------

Contributed themes from the Drupal community may be downloaded at
https://www.drupal.org/project/project_theme.

MULTISITE CONFIGURATION
-----------------------

In multisite configurations, themes found in this directory are available to
all sites. You may also put themes in the sites/all/themes directory, and the
versions in sites/all/themes will take precedence over versions of the same
themes that are here. Alternatively, the sites/your_site_name/themes directory
pattern may be used to restrict themes to a specific site instance.

MORE INFORMATION
-----------------

Refer to the "Appearance" section of the README.txt in the Drupal root directory
for further information on customizing the appearance of Drupal with custom
themes.
25 changes: 25 additions & 0 deletions scripts/themes/aplpa/aplpa.info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'APL subtheme'
type: theme
description: 'A child theme of the USWDS base theme'
core_version_requirement: ^9
base theme: uswds_base

libraries:
- aplpa/assets
- aplpa/global-styling

regions:
header_top: 'Above Header'
header: 'Header'
primary_menu: 'Primary Menu'
secondary_menu: 'Secondary Menu'
sidebar_first: 'First sidebar'
sidebar_second: 'Second sidebar'
breadcrumb: 'Breadcrumb'
highlighted: 'Highlighted'
help: 'Help'
hero: 'Hero'
content: 'Content'
footer_menu: 'Footer Menu'
footer: 'Primary Footer'
footer_secondary: 'Secondary Footer'
13 changes: 13 additions & 0 deletions scripts/themes/aplpa/aplpa.libraries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
assets:
version: VERSION
css:
theme:
assets/css/uswds.css: {}
js:
assets/js/uswds.min.js: {}

global-styling:
css:
theme:
css/styles.css: {}

Loading

0 comments on commit 4ced9b1

Please sign in to comment.