Loading includes/navigation.themedeleted 100644 → 0 +0 −24 Original line number Diff line number Diff line <?php /** * @file * navigation.theme */ use Drupal\gin\GinSettings; /** * Implements hook_navigation(). */ function gin_preprocess_navigation(&$variables) { // Get theme configs. /** @var \Drupal\gin\GinSettings $settings */ $settings = \Drupal::classResolver(GinSettings::class); $logo_path = $settings->getDefault('logo.path'); $logo_default = $settings->getDefault('logo.use_default'); $variables['icon_default'] = $logo_default; if (!$logo_default) { $variables['icon_path'] = $logo_path; } } includes/theme.theme +18 −0 Original line number Diff line number Diff line <?php /** * @file * theme.theme */ use Drupal\gin\GinSettings; /** * Implements hook_theme(). */ function gin_theme() { // Get theme configs. /** @var \Drupal\gin\GinSettings $settings */ $settings = \Drupal::classResolver(GinSettings::class); $logo_default = $settings->getDefault('logo.use_default'); $icon_path = ''; if (!$logo_default) { $icon_path = $settings->getDefault('logo.path'); } $items['navigation'] = [ 'variables' => [ 'icon_path' => $icon_path, 'path' => \Drupal::service('extension.list.theme')->getPath('gin'), 'menu_middle' => [], 'menu_top' => [], Loading Loading
includes/navigation.themedeleted 100644 → 0 +0 −24 Original line number Diff line number Diff line <?php /** * @file * navigation.theme */ use Drupal\gin\GinSettings; /** * Implements hook_navigation(). */ function gin_preprocess_navigation(&$variables) { // Get theme configs. /** @var \Drupal\gin\GinSettings $settings */ $settings = \Drupal::classResolver(GinSettings::class); $logo_path = $settings->getDefault('logo.path'); $logo_default = $settings->getDefault('logo.use_default'); $variables['icon_default'] = $logo_default; if (!$logo_default) { $variables['icon_path'] = $logo_path; } }
includes/theme.theme +18 −0 Original line number Diff line number Diff line <?php /** * @file * theme.theme */ use Drupal\gin\GinSettings; /** * Implements hook_theme(). */ function gin_theme() { // Get theme configs. /** @var \Drupal\gin\GinSettings $settings */ $settings = \Drupal::classResolver(GinSettings::class); $logo_default = $settings->getDefault('logo.use_default'); $icon_path = ''; if (!$logo_default) { $icon_path = $settings->getDefault('logo.path'); } $items['navigation'] = [ 'variables' => [ 'icon_path' => $icon_path, 'path' => \Drupal::service('extension.list.theme')->getPath('gin'), 'menu_middle' => [], 'menu_top' => [], Loading