Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D8CORE-7564: removed decanter link and replaced with identity guide #822

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <a href=\"/admin/config/system/local-footer\">Local Footer settings</a> 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
Loading