- Timestamp:
- Aug 17, 2010, 1:04:25 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php
r606 r630 259 259 $ret = ''; 260 260 261 $link_str = '« %link'; 262 261 263 if($xpress_config->is_left_postnavi_old){ 262 264 $link_title = $xpress_config->old_post_link_text; 263 265 ob_start(); 264 266 if ($xpress_config->is_postnavi_title_disp) 265 previous_post_link( '« %link');267 previous_post_link($link_str); 266 268 else 267 previous_post_link( '« %link',$link_title);269 previous_post_link($link_str,$link_title); 268 270 $ret = ob_get_contents(); 269 271 ob_end_clean(); … … 277 279 ob_start(); 278 280 if ($xpress_config->is_postnavi_title_disp) 279 next_post_link( '« %link');281 next_post_link($link_str); 280 282 else 281 next_post_link( '« %link',$link_title);283 next_post_link($link_str,$link_title); 282 284 $ret = ob_get_contents(); 283 285 ob_end_clean(); … … 309 311 $output = str_replace('">','" title="'.$on_mouse_show . '">' , $ret); 310 312 313 if (!empty($xpress_config->post_left_arrow_image_link) && ($fp = fopen($xpress_config->post_left_arrow_image_link, "r"))){ 314 $img_link = str_replace($link_title,"<img src=\"$xpress_config->post_left_arrow_image_link\" align=\"absmiddle\"/>",$GLOBALS['left_arrow_post_link']); 315 $img_link = str_replace('rel=','title="'.$on_mouse_show.'" rel=',$img_link); 316 $output = str_replace('«',$img_link , $output); 317 } 318 311 319 if ($echo) 312 320 echo $output; … … 325 333 extract( $r ); 326 334 327 $ret = ''; 335 $ret = ''; 336 337 $link_str = '%link »'; 328 338 329 339 if($xpress_config->is_left_postnavi_old){ … … 331 341 ob_start(); 332 342 if ($xpress_config->is_postnavi_title_disp) 333 next_post_link( '%link »');343 next_post_link($link_str); 334 344 else 335 next_post_link( '%link »',$link_title);345 next_post_link($link_str,$link_title); 336 346 $ret = ob_get_contents(); 337 347 ob_end_clean(); … … 345 355 ob_start(); 346 356 if ($xpress_config->is_postnavi_title_disp) 347 previous_post_link( '%link »');357 previous_post_link($link_str); 348 358 else 349 previous_post_link( '%link »',$link_title);359 previous_post_link($link_str,$link_title); 350 360 $ret = ob_get_contents(); 351 361 ob_end_clean(); … … 377 387 $output = str_replace('">','" title="'.$on_mouse_show . '">' , $ret); 378 388 389 390 if (!empty($xpress_config->post_right_arrow_image_link) && ($fp = fopen($xpress_config->post_right_arrow_image_link, "r"))){ 391 $img_link = str_replace($link_title,"<img src=\"$xpress_config->post_right_arrow_image_link\" align=\"absmiddle\"/>",$GLOBALS['right_arrow_post_link']); 392 $img_link = str_replace('rel=','title="'.$on_mouse_show.'" rel=',$img_link); 393 $output = str_replace('»',$img_link , $output); 394 } 395 379 396 if ($echo) 380 397 echo $output; … … 408 425 ob_end_clean(); 409 426 } 427 428 if (!empty($xpress_config->page_left_arrow_image_link) && ($fp = fopen($xpress_config->page_left_arrow_image_link, "r"))){ 429 $output = $img_link . str_replace('«','' , $output); 430 $img_link = str_replace($link_title,"<img src=\"$xpress_config->page_left_arrow_image_link\" align=\"absmiddle\"/>",$output); 431 $output = $img_link . $output; 432 } 410 433 411 434 if ($echo) … … 440 463 ob_end_clean(); 441 464 } 442 465 466 if (!empty($xpress_config->page_right_arrow_image_link) && ($fp = fopen($xpress_config->page_right_arrow_image_link, "r"))){ 467 $output = $img_link . str_replace('»','' , $output); 468 $img_link = str_replace($link_title,"<img src=\"$xpress_config->page_right_arrow_image_link\" align=\"absmiddle\"/>",$output); 469 $output = $output . $img_link; 470 } 443 471 if ($echo) 444 472 echo $output;
Note: See TracChangeset
for help on using the changeset viewer.