-
-
Save shardiwal/1515e29983031629e8394afceab406a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* kensium_bootstrap bootstrap sub-theme. | |
* | |
* Place your custom PHP code in this file. | |
*/ | |
function kensium_bootstrap_preprocess_page(&$variables) { | |
global $base_url; | |
// Added base path for. | |
$variables['base_path'] = $base_url; | |
$site_config = \Drupal::config('system.site'); | |
$variables['site_name'] = $site_config->get('name'); | |
$variables['site_slogan'] = $site_config->get('slogan'); | |
// logo needs to be placed within specified folder | |
$variables['logopath'] = $base_url.file_create_url(theme_get_setting('logo.url')); | |
$variables['sm_site_logo'] = $base_url.'/'.$variables['directory'].'/assets/images/footer-logo.png'; | |
} | |
function kensium_bootstrap_preprocess_block(&$variables) { | |
global $base_url; | |
$variables['sm_site_logo'] = $base_url.'/'.$variables['directory'].'/assets/images/footer-logo.png'; | |
} | |
/** | |
* @file | |
* kensium_bootstrap bootstrap sub-theme. | |
* | |
* Place your custom PHP code in this file. | |
*/ | |
function kensium_bootstrap_preprocess_node(&$variables) { | |
global $base_url; | |
// Added base path for. | |
$variables['base_path'] = $base_url; | |
$site_config = \Drupal::config('system.site'); | |
$variables['site_name'] = $site_config->get('name'); | |
$variables['site_slogan'] = $site_config->get('slogan'); | |
// logo needs to be placed within specified folder | |
$variables['logopath'] = $base_url.file_create_url(theme_get_setting('logo.url')); | |
$variables['sm_site_logo'] = $base_url.'/'.$variables['directory'].'/assets/images/footer-logo.png'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment