Skip to content

Commit

Permalink
Add support for cache buster in logos.
Browse files Browse the repository at this point in the history
  • Loading branch information
hussainweb committed Jul 18, 2015
1 parent f24ea8e commit 760d016
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ function drupalcamp_preprocess_page(&$variables) {
// to the theme function or template file.
$logo = $variables['is_front'] ? 'banner-logo.png' : 'banner-logo-small.png';
$variables['logo'] = file_create_url(drupal_get_path('theme', 'drupalcamp') . '/images/' . $logo);

// Cache buster for logo.
$variables['logo'] .= '?c=' . variable_get('drupalcamp_cache_buster', '1.0');

if (current_path() == 'node/23' && !user_access('administer conferences')) {
unset($variables['tabs']);
}
Expand Down

0 comments on commit 760d016

Please sign in to comment.