- Timestamp:
- Jul 6, 2009, 7:51:42 PM (15 years ago)
- Location:
- trunk/xpressme_integration_kit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/xpress_render.php
r278 r317 36 36 37 37 $head_str = preg_replace("/^(\s)*(\r|\n|\r\n)/m", "", $head_str); 38 $head_str = $head_str . "\n<!-- " . xpress_credit('echo=0&no_link=1') . " -->\n"; 38 39 return $head_str; 39 40 } -
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php
r276 r317 152 152 153 153 $defaults = array( 154 'echo' => 1 154 'echo' => 1, 155 'no_link' => 0 155 156 ); 156 157 $r = wp_parse_args( $args, $defaults ); … … 160 161 $xpress_version = $xoops_config->module_version; 161 162 $xpress_codename = $xoops_config->module_codename; 162 $output = '<a href="http://ja.xpressme.info"'. " target='_blank'" . '>XPressME Ver.' . sprintf('%.2f %s',$xpress_version,$xpress_codename) .'</a>'; 163 if ($xoops_config->is_wpmu) { 164 $output .= '(included <a href="http://mu.wordpress.org/" title="Powered by WordPress"'." target='_blank'". '>WordPress MU ' . $wpmu_version . '</a>)'; 165 } else { 166 if (strstr($wp_version,'ME')){ 167 $output .= '(included <a href="http://wpme.sourceforge.jp/" title="Powered by WordPress"'." target='_blank'". '>WordPress ' . $wp_version . '</a>)'; 163 if ($no_link){ 164 $output = 'XPressME Ver.' . sprintf('%.2f %s',$xpress_version,$xpress_codename); 165 if ($xoops_config->is_wpmu) { 166 $output .= '(included WordPress MU ' . $wpmu_version. ')'; 168 167 } else { 169 $output .= '(included <a href="http://wordpress.org/" title="Powered by WordPress"'." target='_blank'". '>WordPress ' . $wp_version . '</a>)'; 168 if (strstr($wp_version,'ME')){ 169 $output .= '(included WordPress ' . $wp_version . ')'; 170 } else { 171 $output .= '(included WordPress ' . $wp_version . ')'; 172 } 170 173 } 171 } 174 } else { 175 $output = '<a href="http://ja.xpressme.info"'. " target='_blank'" . '>XPressME Ver.' . sprintf('%.2f %s',$xpress_version,$xpress_codename) .'</a>'; 176 if ($xoops_config->is_wpmu) { 177 $output .= '(included <a href="http://mu.wordpress.org/" title="Powered by WordPress"'." target='_blank'". '>WordPress MU ' . $wpmu_version . '</a>)'; 178 } else { 179 if (strstr($wp_version,'ME')){ 180 $output .= '(included <a href="http://wpme.sourceforge.jp/" title="Powered by WordPress"'." target='_blank'". '>WordPress ' . $wp_version . '</a>)'; 181 } else { 182 $output .= '(included <a href="http://wordpress.org/" title="Powered by WordPress"'." target='_blank'". '>WordPress ' . $wp_version . '</a>)'; 183 } 184 } 185 } 172 186 if ($echo) 173 187 echo $output;
Note: See TracChangeset
for help on using the changeset viewer.