' . t('About') . ''; $output .= '
' . t('The module will populate a new block named "Language switcher dropdown" under Block layout page.', [':blocks' => Url::fromRoute('block.admin_display')->toString()]) . '
'; $output .= '' . t('For more information on blocks, please see Block module help page.', [':blocks_help' => Url::fromRoute('help.page', ['name' => 'block'])->toString()]) . '
'; $output .= '' . t('The module Provides same functionality as the core language switcher block but with a better look&feel.') . '
'; $output .= '' . t('For more information on multilingual sites, please see Language module help page.', [':language_help' => Url::fromRoute('help.page', ['name' => 'language'])->toString()]) . '
'; $output .= '' . t('To create custom skins for Marghoob Suleman output follow these steps:') . '
'; $output .= '' . t('The name of the custom skin does not necessary has to be ldsCustom but if you use other name you must change the name of the corresponding CSS file and the name of the class on all CSS rules on that file. For example if you want "myskin" as the name of your custom skin then you must rename the sample CSS file to "myskin.css" and edit the CSS so all the rules start with .myskin instead of .ldsCustom.') . '
'; $output .= '' . t('To create custom skins for ddSlick output follow these steps:') . '
'; $output .= '' . t('The name of the custom skin does not necessary has to be ddsCustom but if you use other name you must change the name of the corresponding CSS file and the name of the class on all CSS rules on that file. For example if you want "myskin" as the name of your custom skin then you must rename the sample CSS file to "myskin.css" and edit the CSS so all the rules start with .myskin instead of .ddsCustom.') . '
'; break; } return $output; } /** * Helper function to handle msdropdown skins data. */ function _lang_dropdown_get_msdropdown_skins() { $module_path = \Drupal::service('extension.list.module')->getPath('lang_dropdown'); return [ 'ldsSkin' => [ 'text' => t('Default skin'), 'file' => $module_path . '/css/msdropdown/ldsSkin.css', 'mainCSS' => 'ldsSkin', ], 'ldsSkinAfter' => [ 'text' => t('Default skin, icon right'), 'file' => $module_path . '/css/msdropdown/ldsSkin.css', 'mainCSS' => 'ldsSkinAfter', ], 'ldsSkinNoIcon' => [ 'text' => t('Default skin, no icon'), 'file' => $module_path . '/css/msdropdown/ldsSkin.css', 'mainCSS' => 'ldsSkinNoIcon', ], 'ldsSkinNoLabel' => [ 'text' => t('Default skin, no label'), 'file' => $module_path . '/css/msdropdown/ldsSkin.css', 'mainCSS' => 'ldsSkinNoLabel', ], 'ldsDark' => [ 'text' => t('Dark skin'), 'file' => $module_path . '/css/msdropdown/ldsDark.css', 'mainCSS' => 'ldsDark', ], 'ldsDarkAfter' => [ 'text' => t('Dark skin, icon right'), 'file' => $module_path . '/css/msdropdown/ldsDark.css', 'mainCSS' => 'ldsDarkAfter', ], 'ldsDarkNoIcon' => [ 'text' => t('Dark skin, no icon'), 'file' => $module_path . '/css/msdropdown/ldsDark.css', 'mainCSS' => 'ldsDarkNoIcon', ], 'ldsDarkNoLabel' => [ 'text' => t('Dark skin, no label'), 'file' => $module_path . '/css/msdropdown/ldsDark.css', 'mainCSS' => 'ldsDarkNoLabel', ], 'ldsBlue' => [ 'text' => t('Blue skin'), 'file' => $module_path . '/css/msdropdown/ldsBlue.css', 'mainCSS' => 'ldsBlue', ], 'ldsBlueAfter' => [ 'text' => t('Blue skin, icon right'), 'file' => $module_path . '/css/msdropdown/ldsBlue.css', 'mainCSS' => 'ldsBlueAfter', ], 'ldsBlueNoIcon' => [ 'text' => t('Blue skin, no icon'), 'file' => $module_path . '/css/msdropdown/ldsBlue.css', 'mainCSS' => 'ldsBlueNoIcon', ], 'ldsBlueNoLabel' => [ 'text' => t('Blue skin, no label'), 'file' => $module_path . '/css/msdropdown/ldsBlue.css', 'mainCSS' => 'ldsBlueNoLabel', ], 'custom' => [ 'text' => t('Custom skin'), 'file' => '', 'mainCSS' => '', ], ]; } /** * Helper function to handle ddSlick skins data. */ function _lang_dropdown_get_ddslick_skins() { $module_path = \Drupal::service('extension.list.module')->getPath('lang_dropdown'); return [ 'ddsDefault' => [ 'text' => t('Default skin'), 'file' => $module_path . '/css/ddslick/ddsDefault.css', ], 'ddsDark' => [ 'text' => t('Dark skin'), 'file' => $module_path . '/css/ddslick/ddsDark.css', ], 'ddsBlue' => [ 'text' => t('Blue skin'), 'file' => $module_path . '/css/ddslick/ddsBlue.css', ], 'custom' => [ 'text' => t('Custom skin'), 'file' => '', ], ]; }