All pastes #1643852 Raw Edit

Change StatusNet logo height

public php v1 · immutable
#1643852 ·published 2009-10-26 15:22 UTC
rendered paste body
// Change the values here$logo_width = 1000;$logo_height = 320;function MyLogoLayout($action){    global $logo_width, $logo_height;    $action->elementStart('a', array('class' => 'url home bookmark',                                   'href' => common_local_url('public')));    if (common_config('site', 'logo') || file_exists(theme_file('logo.png'))) {        $action->element('img', array('class' => 'logo photo',                                      'width' => $logo_width,                                      'height' => $logo_height,                                      'src' => (common_config('site', 'logo')) ? common_config('site', 'logo') : $                                      'alt' => common_config('site', 'name')));    }    $action->elementEnd('a');    Event::handle('EndAddressData', array($action));    return false;}Event::addHandler('StartAddressData', 'MyLogoLayout');