diff options
author | Sarven Capadisli <csarven@status.net> | 2009-10-04 21:37:05 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2009-10-04 21:37:05 +0000 |
commit | d001c5f4b1ebfd2a28baba3138eae4902598618c (patch) | |
tree | c8c24194a4543e1060b1e6e8c4f16f285d41307e | |
parent | 5087a24c487891f4c5bc9fe2ff65be12fa74b930 (diff) |
Init showLogo
-rw-r--r-- | plugins/MobileProfile/MobileProfilePlugin.php | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php index 90ec8129d..4e9bfd6c8 100644 --- a/plugins/MobileProfile/MobileProfilePlugin.php +++ b/plugins/MobileProfile/MobileProfilePlugin.php @@ -214,7 +214,7 @@ class MobileProfilePlugin extends WAP20Plugin } $action->elementStart('div', array('id' => 'header')); - $action->showLogo(); + $this->_showLogo($action); $action->showPrimaryNav(); $action->showSiteNotice(); if (common_logged_in()) { @@ -226,6 +226,26 @@ class MobileProfilePlugin extends WAP20Plugin } + function _showLogo($action) + { + $action->elementStart('address', 'vcard'); + $action->elementStart('a', array('class' => 'url home bookmark', + 'href' => common_local_url('public'))); + if (common_config('site', 'mobilelogo') || + file_exists(theme_file('logo.png')) || + file_exists(theme_file('mobilelogo.gif'))) { + + $action->element('img', array('class' => 'photo', + 'src' => (common_config('site', 'mobilelogo')) ? common_config('site', 'mobilelogo') : + ((file_exists(theme_file('mobilelogo.gif'))) ? (theme_path('mobilelogo.gif')): theme_path('logo.png')), + 'alt' => common_config('site', 'name'))); + } + $action->element('span', array('class' => 'fn org'), common_config('site', 'name')); + $action->elementEnd('a'); + $action->elementEnd('address'); + } + + function onStartShowAside($action) { if ($this->serveMobile) { |