Changeset 488 for branches/XPressMU/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php
- Timestamp:
- Dec 15, 2009, 4:52:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/XPressMU/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php
r451 r488 95 95 96 96 $output = ''; 97 $author_cookie = get_xpress_dir_name() . "_select_author" ;97 $author_cookie = 'select_' . get_xpress_dir_name() . "_author" ; 98 98 if (!empty($_COOKIE[$author_cookie])){ 99 99 $uid = intval($_COOKIE[$author_cookie]); … … 115 115 extract( $r ); 116 116 $output = ''; 117 $author_cookie = get_xpress_dir_name() . "_select_author" ;117 $author_cookie = 'select_' . get_xpress_dir_name() . "_author" ; 118 118 if (!empty($_COOKIE[$author_cookie])){ 119 119 $output = intval($_COOKIE[$author_cookie]); … … 161 161 $xpress_codename = $xoops_config->module_codename; 162 162 if ($no_link){ 163 $output = 'XPressMU Ver.' . sprintf('%.2f %s',$xpress_version,$xpress_codename);164 163 if ($xoops_config->is_wpmu) { 164 $output = 'XPressMU Ver.' . sprintf('%.2f %s',$xpress_version,$xpress_codename); 165 165 $output .= '(included WordPress MU ' . $wpmu_version. ')'; 166 166 } else { 167 $output = 'XPressME Ver.' . sprintf('%.2f %s',$xpress_version,$xpress_codename); 167 168 if (strstr($wp_version,'ME')){ 168 169 $output .= '(included WordPress ' . $wp_version . ')'; … … 172 173 } 173 174 } else { 174 $output = '<a href="http://ja.xpressme.info"'. " target='_blank'" . '>XPressMU Ver.' . sprintf('%.2f %s',$xpress_version,$xpress_codename) .'</a>';175 175 if ($xoops_config->is_wpmu) { 176 $output = '<a href="http://ja.xpressme.info"'. " target='_blank'" . '>XPressMU Ver.' . sprintf('%.2f %s',$xpress_version,$xpress_codename) .'</a>'; 176 177 $output .= '(included <a href="http://mu.wordpress.org/" title="Powered by WordPress"'." target='_blank'". '>WordPress MU ' . $wpmu_version . '</a>)'; 177 178 } else { 179 $output = '<a href="http://ja.xpressme.info"'. " target='_blank'" . '>XPressME Ver.' . sprintf('%.2f %s',$xpress_version,$xpress_codename) .'</a>'; 178 180 if (strstr($wp_version,'ME')){ 179 181 $output .= '(included <a href="http://wpme.sourceforge.jp/" title="Powered by WordPress"'." target='_blank'". '>WordPress ' . $wp_version . '</a>)'; … … 467 469 } 468 470 469 function set_post_views_count( &$content) {471 function set_post_views_count($content) { 470 472 if ( empty($_GET["feed"]) && empty($GLOBALS["feed"]) && empty($GLOBALS["doing_trackback"]) && empty($GLOBALS["doing_rss"]) && empty($_POST) && is_single() ){ 471 473 post_views_counting();
Note: See TracChangeset
for help on using the changeset viewer.