X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Futil.php;h=b78edc93cc4ef4158fbc999e8e43a98f881cd9ac;hb=0299b6f2caa5b3b956c9e00a17d6cf3c72966396;hp=a630646d7cf0ae1e3c448b0779f703412b6801c1;hpb=8ba7e8cb76a67468f8eaf36e7dcd64cebfed396d;p=quix0rs-gnu-social.git diff --git a/lib/util.php b/lib/util.php index a630646d7c..b78edc93cc 100644 --- a/lib/util.php +++ b/lib/util.php @@ -166,6 +166,11 @@ function common_show_header($pagetitle, $callable=NULL, $data=NULL, $headercall= 'href="'.theme_path('ie'.$ver.'.css').' /> 'text/javascript', + 'src' => common_path('js/jquery.min.js')), + ' '); + if ($callable) { if ($data) { call_user_func($callable, $data); @@ -205,6 +210,16 @@ function common_show_footer() { common_element_end('div'); # content div 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('.')); + common_element_end('p'); common_element('img', array('id' => 'cc', 'src' => $config['license']['image'], 'alt' => $config['license']['title'])); @@ -499,7 +514,11 @@ function common_local_url($action, $args=NULL) { function common_fancy_url($action, $args=NULL) { switch (strtolower($action)) { case 'public': - return common_path(''); + if ($args && $args['page']) { + return common_path('?page=' . $args['page']); + } else { + return common_path(''); + } case 'publicrss': return common_path('rss'); case 'doc': @@ -519,18 +538,27 @@ function common_fancy_url($action, $args=NULL) { return common_path('notice/new'); case 'shownotice': return common_path('notice/'.$args['notice']); - case 'subscriptions': - case 'subscribed': case 'xrds': - case 'all': case 'foaf': return common_path($args['nickname'].'/'.$action); + case 'subscriptions': + case 'subscribed': + case 'all': + if ($args && $args['page']) { + return common_path($args['nickname'].'/'.$action.'?page=' . $args['page']); + } else { + return common_path($args['nickname'].'/'.$action); + } case 'allrss': return common_path($args['nickname'].'/all/rss'); case 'userrss': return common_path($args['nickname'].'/rss'); case 'showstream': - return common_path($args['nickname']); + if ($args && $args['page']) { + return common_path($args['nickname'].'?page=' . $args['page']); + } else { + return common_path($args['nickname']); + } default: return common_simple_url($action, $args); } @@ -737,7 +765,7 @@ function common_pagination($have_before, $have_after, $page, $action, $args=NULL common_element_start('li', 'before'); common_element('a', array('href' => common_local_url($action, $newargs)), - _t('« Before')); + _t('« After')); common_element_end('li'); } @@ -746,7 +774,7 @@ function common_pagination($have_before, $have_after, $page, $action, $args=NULL $newargs = ($args) ? array_merge($args,$pargs) : $pargs; common_element_start('li', 'after'); common_element('a', array('href' => common_local_url($action, $newargs)), - _t('After »')); + _t('Before »')); common_element_end('li'); }