Skip to content

Commit

Permalink
Merge pull request #210 from YCloudYUSA/small_y
Browse files Browse the repository at this point in the history
feat: Small Y init
  • Loading branch information
podarok authored Dec 9, 2024
2 parents e0d1c67 + 102bbb1 commit 1cb6144
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 10 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"drupal/simple_sitemap": "^3.7 || ^4.1",
"drupal/slick": "^2",
"drupal/slick_views": "^2",
"drupal/ws_small_y": "^1.0.48",
"drupal/social_feed_fetcher": "^3.0.2 || 3.0.x-dev@dev",
"drupal/token": "^1.11",
"drupal/token_filter": "^1 || ^2.0",
Expand Down
16 changes: 16 additions & 0 deletions openy.installation_types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,19 @@ complete:
- y_layout_builder
- home_branch
- activity_finder

small_y:
name: "Small Y"
packages:
- alerts
- analytics
- editorial
- locations
- locations_ext
- scheduler
- search
- seo
- small_y
- translation
- webform
- y_layout_builder
25 changes: 25 additions & 0 deletions openy.packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ demo:
- openy_demo_tnews
- openy_demo_webform
- y_lb_demo_content
- small_y_demo_content

integration:
name: 'Continuous Integration'
Expand Down Expand Up @@ -406,3 +407,27 @@ home_branch:
help: 'Allows end user to choose favorite branch in order to get personalized experience across the site'
modules:
- ws_home_branch

small_y:
name: 'Small Y'
description: 'Small Y customization package'
help: 'Modules to customize the appearance and functionality of the distribution for small Ys.'
modules:
- ws_small_y
- small_y_accordions
- small_y_alerts
- small_y_articles
- small_y_branch
- small_y_cards
- small_y_carousels
- small_y_donate
- small_y_editor
- small_y_events
- small_y_hero
- small_y_icon_grid
- small_y_ping_pongs
- small_y_search
- small_y_tabs
- ws_small_y_staff
- ws_small_y_statistics
- ws_small_y_testimonials
4 changes: 4 additions & 0 deletions openy.profile
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ function openy_demo_content_configs_map($key = NULL) {
'openy_demo_taxonomy',
'y_lb_demo_content',
],
'small_y' => [
'small_y_demo_content',
],

];

Expand Down Expand Up @@ -346,6 +349,7 @@ function openy_import_content(array &$install_state) {
'standard' => 'openy_standard_installation',
'extended' => 'openy_extended_installation',
'complete' => 'openy_complete_installation',
'small_y' => 'openy_small_y_installation',
];
$migration_tag = $preset_tags[$preset];
// Add core demo content.
Expand Down
20 changes: 10 additions & 10 deletions src/Form/UploadFontMessageForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Drupal\Core\Form\FormStateInterface;

/**
* Defines a form for setting Google Maps API Key during install.
* Defines a form for informing the user about Cachet licensing during install.
*/
class UploadFontMessageForm extends FormBase {

Expand All @@ -26,16 +26,16 @@ public function buildForm(array $form, FormStateInterface $form_state, array &$i

$form['updatefont']['markup'] = [
'#type' => 'markup',
'#markup' => $this->t('By default free Verdana fonts are used. <br/>
Y-USA is now licensing the web font version of Cachet for all YMCAs via the <a href=\'@brand_resource\'>Brand Resource Guide</a>. <br/>
To use Cachet fonts on the Website Services website, download from the Brand Resource Guide then go to the <a href=\'@config_url\'>Website Services Font Settings page</a> and upload the font files there. <br/>
View <a href=\'@font_instructions\'>tutorial for how to do this</a>. <br/>
'#markup' => $this->t('<p>By default free Verdana fonts are used.</p>
<p>Y-USA is now licensing the web font version of Cachet for all YMCAs via the <a target="_blank" href=\'@brand_resource\'>Brand Resource Guide</a>.</p>
<p>To use Cachet fonts on the Website Services website, download from the Brand Resource Guide then go to the <a target="_blank" href=\'@config_url\'>Website Services Font Settings page</a> and upload the font files there.</p>
<p>View <a target="_blank" href=\'@font_instructions\'>tutorial for how to do this</a>.</p>
<img src="../profiles/contrib/yusaopeny/src/Form/uploadfont.png">',
[
'@config_url' => "$base_url/admin/appearance/font/local_font_config_entity",
'@brand_resource' => "https://theybrand.org/wordpress/cachet",
'@font_instructions' => "https://youtu.be/Kl1lwYSg3ww",
]
[
'@config_url' => "$base_url/admin/appearance/font/local_font_config_entity",
'@brand_resource' => "https://theybrand.org/wordpress/cachet",
'@font_instructions' => "https://ds-docs.y.org/docs/howto/install-cachet/",
]
),
];

Expand Down

0 comments on commit 1cb6144

Please sign in to comment.