Skip to content

Commit

Permalink
D8CORE-7564: removed decanter link and replaced with identity guide i…
Browse files Browse the repository at this point in the history
…nfo.
  • Loading branch information
buttonwillowsix committed Oct 16, 2024
1 parent 17abf11 commit 12f80ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ default_value:
default_value_callback: ''
settings:
markup:
value: "<div><p><img alt=\"\" src=\"https://su-sws.github.io/stanford_basic/src/assets/img/lockup-example.png\" /></p>\r\n\r\n<p><a href=\"https://decanter.stanford.edu/component/identity-lockup/\">Decanter Lockup Component</a></p>\r\n\r\n<p>This lockup will appear in the top left corner of the website's main header.</p>\r\n</div>"
value: "<div><p><img alt=\"\" src=\"https://su-sws.github.io/stanford_basic/src/assets/img/lockup-example.png\" /></p>\r\n\r\n<p>These lockup options are only available on Stanford Basic. Users of the Minimally Branded or Faculty themes should use the default lockup. To determine which lockup is right for your official unity, consult the <a href=\"https://identity.stanford.edu/component/identity-lockup/\">Stanford Identity Guide.</a></p>\r\n\r\n<p>This lockup will appear in the top left corner of the website's main header. Separate settings for the lockup at the bottom of your site can be found in the Local Footer settings and will not be affected by changes you make here.</p>\r\n</div>"
format: stanford_html
field_type: markup
4 changes: 2 additions & 2 deletions themes/stanford_basic/theme-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ function stanford_basic_form_system_theme_settings_alter(array &$form, FormState

$img = '<img src="' . base_path() . \Drupal::service('extension.list.theme')
->getPath('stanford_basic') . '/dist/assets/img/lockup-example.png" />';
$decanter = Link::fromTextAndUrl('Decanter Lockup Component', Url::fromUri('https://decanter.stanford.edu/component/identity-lockup/'))
$identityguide = Link::fromTextAndUrl('Stanford Identity Guide', Url::fromUri('https://identity.stanford.edu/'))
->toString();

$form['options_settings']['stanford_basic_lockup'] = [
'#type' => 'fieldset',
'#title' => t('Lockup Settings'),
'#field_prefix' => "<p>$img</p><p>More examples can be found at: $decanter</p>",
'#field_prefix' => "<p>$img</p><p>Guidance can be found at: $identityguide</p>",
];

$form['options_settings']['stanford_basic_lockup']['lockup']['#tree'] = TRUE;
Expand Down

0 comments on commit 12f80ea

Please sign in to comment.