Loading boldy.info.yml +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ base theme: classy description: A conversion of the Site 5 wordpress theme. package: Themes core: 8.x core_version_requirement: ^8 || ^9 core_version_requirement: ^8 || ^9 || ^10 stylesheets-remove: - core/assets/vendor/normalize-css/normalize.css Loading boldy.theme +6 −6 Original line number Diff line number Diff line Loading @@ -78,7 +78,7 @@ function boldy_preprocess_maintenance_page(&$variables) { ), ); \Drupal::service('renderer')->render($libraries); + \Drupal::service('renderer')->render($libraries); // Set the options that apply to both page and maintenance page. _boldy_process_page($variables); } Loading Loading @@ -249,14 +249,14 @@ function boldy_preprocess_field(&$variables) { function _boldy_process_page(&$variables) { $site_config = \Drupal::config('system.site'); $variables['boldy_linkedin_link'] = Html::escape(theme_get_setting('boldy_linkedin_link')); $variables['linkedin_logo'] = base_path() . drupal_get_path('theme', 'boldy') . '/images/ico_linkedin.png'; $variables['linkedin_logo'] = base_path() . \Drupal::service('extension.list.theme')->getPath('boldy') . '/images/ico_linkedin.png'; $variables['boldy_twitter_user'] = Html::escape(theme_get_setting('boldy_twitter_user')); $variables['twitter_logo'] = base_path() . drupal_get_path('theme', 'boldy') . '/images/ico_twitter.png'; $variables['twitter_logo'] = base_path() . \Drupal::service('extension.list.theme')->getPath('boldy') . '/images/ico_twitter.png'; $variables['boldy_facebook_link'] = Html::escape(theme_get_setting('boldy_facebook_link')); $variables['facebook_logo'] = base_path() . drupal_get_path('theme', 'boldy') . '/images/ico_facebook.png'; $variables['rss_logo'] = base_path() . drupal_get_path('theme', 'boldy') . '/images/ico_rss.png'; $variables['facebook_logo'] = base_path() . \Drupal::service('extension.list.theme')->getPath('boldy') . '/images/ico_facebook.png'; $variables['rss_logo'] = base_path() . \Drupal::service('extension.list.theme')->getPath('boldy') . '/images/ico_rss.png'; $variables['boldy_blurb_link'] = Xss::filterAdmin(theme_get_setting('boldy_blurb_link')); $variables['boldy_blurb_button'] = base_path() . drupal_get_path('theme', 'boldy') . '/images/but_blurb.png'; $variables['boldy_blurb_button'] = base_path() . \Drupal::service('extension.list.theme')->getPath('boldy') . '/images/but_blurb.png'; $variables['boldy_footer_actions'] = theme_get_setting('boldy_footer_actions'); $variables['boldy_actions_hide'] = theme_get_setting('boldy_actions_hide'); $variables['boldy_contact_email'] = theme_get_setting('boldy_contact_email'); Loading Loading
boldy.info.yml +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ base theme: classy description: A conversion of the Site 5 wordpress theme. package: Themes core: 8.x core_version_requirement: ^8 || ^9 core_version_requirement: ^8 || ^9 || ^10 stylesheets-remove: - core/assets/vendor/normalize-css/normalize.css Loading
boldy.theme +6 −6 Original line number Diff line number Diff line Loading @@ -78,7 +78,7 @@ function boldy_preprocess_maintenance_page(&$variables) { ), ); \Drupal::service('renderer')->render($libraries); + \Drupal::service('renderer')->render($libraries); // Set the options that apply to both page and maintenance page. _boldy_process_page($variables); } Loading Loading @@ -249,14 +249,14 @@ function boldy_preprocess_field(&$variables) { function _boldy_process_page(&$variables) { $site_config = \Drupal::config('system.site'); $variables['boldy_linkedin_link'] = Html::escape(theme_get_setting('boldy_linkedin_link')); $variables['linkedin_logo'] = base_path() . drupal_get_path('theme', 'boldy') . '/images/ico_linkedin.png'; $variables['linkedin_logo'] = base_path() . \Drupal::service('extension.list.theme')->getPath('boldy') . '/images/ico_linkedin.png'; $variables['boldy_twitter_user'] = Html::escape(theme_get_setting('boldy_twitter_user')); $variables['twitter_logo'] = base_path() . drupal_get_path('theme', 'boldy') . '/images/ico_twitter.png'; $variables['twitter_logo'] = base_path() . \Drupal::service('extension.list.theme')->getPath('boldy') . '/images/ico_twitter.png'; $variables['boldy_facebook_link'] = Html::escape(theme_get_setting('boldy_facebook_link')); $variables['facebook_logo'] = base_path() . drupal_get_path('theme', 'boldy') . '/images/ico_facebook.png'; $variables['rss_logo'] = base_path() . drupal_get_path('theme', 'boldy') . '/images/ico_rss.png'; $variables['facebook_logo'] = base_path() . \Drupal::service('extension.list.theme')->getPath('boldy') . '/images/ico_facebook.png'; $variables['rss_logo'] = base_path() . \Drupal::service('extension.list.theme')->getPath('boldy') . '/images/ico_rss.png'; $variables['boldy_blurb_link'] = Xss::filterAdmin(theme_get_setting('boldy_blurb_link')); $variables['boldy_blurb_button'] = base_path() . drupal_get_path('theme', 'boldy') . '/images/but_blurb.png'; $variables['boldy_blurb_button'] = base_path() . \Drupal::service('extension.list.theme')->getPath('boldy') . '/images/but_blurb.png'; $variables['boldy_footer_actions'] = theme_get_setting('boldy_footer_actions'); $variables['boldy_actions_hide'] = theme_get_setting('boldy_actions_hide'); $variables['boldy_contact_email'] = theme_get_setting('boldy_contact_email'); Loading