' . 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('Uses') . '

'; $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('Marghoob Suleman Custom skin') . '

'; $output .= '

' . t('To create custom skins for Marghoob Suleman output follow these steps:') . '

'; $output .= '
    '; $output .= '
  1. ' . t('Copy the sample file "ldsCustom.css.sample" that you can find in the folder where you installed the module -normally "modules/contrib/lang_dropdown/msdropdown/css/msdropdown/ldsCustom.css.sample"- into the css folder of Marghoob Suleman library path -normally "libraries/ms-Dropdown/css/msdropdown/"-.') . '
  2. '; $output .= '
  3. ' . t('Rename the file to ldsCustom.css.') . '
  4. '; $output .= '
  5. ' . t('Edit the CSS file to your needs.') . '
  6. '; $output .= '
  7. ' . t('On the block Marghoob Suleman Settings select to use a custom skin with name ldsCustom.') . '
  8. '; $output .= '
'; $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('ddSlick Custom skin') . '

'; $output .= '

' . t('To create custom skins for ddSlick output follow these steps:') . '

'; $output .= '
    '; $output .= '
  1. ' . t('Copy the sample file "ddsCustom.css.sample" that you can find in the folder where you installed the module -normally "modules/contrib/lang_dropdown/ddslick/ddsCustom.css.sample"- into the css folder of ddSlick library path -normally "libraries/ddSlick/"-.') . '
  2. '; $output .= '
  3. ' . t('Rename the file to ddsCustom.css.') . '
  4. '; $output .= '
  5. ' . t('Edit the CSS file to your needs.') . '
  6. '; $output .= '
  7. ' . t('On the block ddSlick Settings select to use a custom skin with name ddsCustom.') . '
  8. '; $output .= '
'; $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' => '', ], ]; }