Last change
on this file since 31 was
31,
checked in by toemon, 16 years ago
|
クレジット表示用の関数を準備 #13
the_credit(); クレジットをreturn。
the_credit(true); クレジットをecho
|
File size:
815 bytes
|
Rev | Line | |
---|
[31] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | function the_credit($show = false)
|
---|
| 4 | {
|
---|
| 5 | global $xoopsModule,$wp_version;
|
---|
| 6 |
|
---|
| 7 | $ret = '<a href="http://www.toemon.com"'. " target='_blank'" . '>XPressME Ver.' . sprintf('%.2f %s',$xoopsModule->getInfo('version'),$xoopsModule->getInfo('codename')) .'</a>';
|
---|
| 8 | if (strstr($wp_version,'ME')){
|
---|
| 9 | $ret .= '(included <a href="http://wpme.sourceforge.jp/" title="Powered by WordPress"'." target='_blank'". '>WordPress ' . $wp_version . '</a>)';
|
---|
| 10 | } else {
|
---|
| 11 | $ret .= '(included <a href="http://ja.wordpress.org/" title="Powered by WordPress"'." target='_blank'". '>WordPress ' . $wp_version . '</a>)';
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | if (empty($show))
|
---|
| 15 | return $ret;
|
---|
| 16 | else
|
---|
| 17 | echo $ret;
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | function html_convert_time($show = false)
|
---|
| 21 | {
|
---|
| 22 | $ret = timer_stop(0) .'sec. ';
|
---|
| 23 | if (empty($show))
|
---|
| 24 | return $ret;
|
---|
| 25 | else
|
---|
| 26 | echo $ret;
|
---|
| 27 | }
|
---|
| 28 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.