diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common.php | 5 | ||||
-rw-r--r-- | lib/util.php | 22 |
2 files changed, 18 insertions, 9 deletions
diff --git a/lib/common.php b/lib/common.php index e16d8d078..fbbcce5c3 100644 --- a/lib/common.php +++ b/lib/common.php @@ -40,7 +40,10 @@ $config = 'server' => 'localhost', 'theme' => 'default', 'path' => '/', - 'fancy' => false), + 'fancy' => false, + 'email' => $_SERVER['SERVER_ADMIN'], + 'broughtby' => NULL, + 'broughtbyurl' => NULL), 'syslog' => array('appname' => 'laconica', # for syslog 'priority' => 'debug'), # XXX: currently ignored diff --git a/lib/util.php b/lib/util.php index 8bd99c816..f9abb6d90 100644 --- a/lib/util.php +++ b/lib/util.php @@ -218,14 +218,18 @@ function common_show_footer() { common_foot_menu(); common_element_start('div', array('id' => 'footer')); common_element_start('p', 'laconica'); - common_text(_t('This site is running the ')); - common_element('a', array('class' => 'software', - href => 'http://laconi.ca/'), - 'Laconica'); - common_text(_t('microblogging tool, version ' . LACONICA_VERSION . ', available under the ')); - common_element('a', array(href => 'http://www.fsf.org/licensing/licenses/agpl-3.0.html'), - 'GNU Affero General Public License'); - common_text(_t('.')); + if (common_config('site', 'broughtby')) { + $instr = _t('**%%site.name%%** is a microblogging service brought to you by [%%site.broughtby%%](%%site.broughtbyurl%%). '); + } else { + $instr = _t('**%%site.name%%** is a microblogging service. '); + } + $instr .= _t('It runs the [Laconica](http://laconi.ca/) ' . + 'microblogging software, version ' . LACONICA_VERSION . ', ' . + 'available under the ' . + '[GNU Affero General Public License]' . + '(http://www.fsf.org/licensing/licenses/agpl-3.0.html).'); + $output = common_markup_to_html($instr); + common_raw($output); common_element_end('p'); common_element('img', array('id' => 'cc', 'src' => $config['license']['image'], @@ -288,6 +292,8 @@ function common_foot_menu() { _t('Privacy')); common_menu_item(common_local_url('doc', array('title' => 'source')), _t('Source')); + common_menu_item(common_local_url('doc', array('title' => 'contact')), + _t('Contact')); common_element_end('ul'); } |