- 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/xpressme_class.php
r593 r630 38 38 var $is_block_error_display; 39 39 var $admin_set_all_blog_admin; 40 var $post_left_arrow_image_link; 41 var $post_right_arrow_image_link; 42 var $page_left_arrow_image_link; 43 var $page_right_arrow_image_link; 44 40 45 //constructor 41 46 function XPressME_Class() … … 87 92 $this->is_block_error_display = true; 88 93 $this->admin_set_all_blog_admin = false; 94 $this->post_left_arrow_image_link = ''; 95 $this->post_right_arrow_image_link = ''; 96 $this->page_left_arrow_image_link = ''; 97 $this->page_right_arrow_image_link = ''; 89 98 } 90 99 … … 145 154 'theme_select' => $this->theme_select, 146 155 'is_block_error_display' => $this->is_block_error_display, 147 'admin_set_all_blog_admin' => $this->admin_set_all_blog_admin 156 'admin_set_all_blog_admin' => $this->admin_set_all_blog_admin, 157 'post_left_arrow_image_link' => $this->post_left_arrow_image_link, 158 'post_right_arrow_image_link' => $this->post_right_arrow_image_link, 159 'page_left_arrow_image_link' => $this->page_left_arrow_image_link, 160 'page_right_arrow_image_link' => $this->page_right_arrow_image_link 148 161 ); 149 162 if ($mode == 'add_new') { … … 488 501 489 502 490 function text_option($option_name,$option_desc ){503 function text_option($option_name,$option_desc,$size = 25,$maxlength = 50){ 491 504 $value = $this->{$option_name}; 492 505 $ans_name = 'ch_' . $option_name; … … 495 508 $form .= '<th><label for="images_to_link">' . $option_desc . "</label></th>\n"; 496 509 $form .= "<td>\n"; 497 $form .= $this->text_option_sub($option_name );510 $form .= $this->text_option_sub($option_name,$size,$maxlength); 498 511 $form .= "</td>\n"; 499 512 $form .= "</tr>\n"; … … 503 516 } 504 517 505 function text_option_sub($option_name ){518 function text_option_sub($option_name,$size = 25,$maxlength = 50){ 506 519 $value = $this->{$option_name}; 507 520 $ans_name = 'ch_' . $option_name; 508 521 509 $form = '<label> <input name="'. $ans_name . '" type="text" size=" 25" maxlength="50" value="' . $value . '" /></label>'."\n";522 $form = '<label> <input name="'. $ans_name . '" type="text" size="'.$size.'" maxlength="'.$maxlength.'" value="' . $value . '" /></label>'."\n"; 510 523 return $form; 511 524 … … 553 566 $form .= "</tr>\n"; 554 567 568 $form .= "<tr>\n"; 569 $form .= "<td>" . __('Left arrow image URL','xpressme') . "</td>\n"; 570 $form .= "<td>\n"; 571 $form .= $this->text_option_sub('post_left_arrow_image_link',60,120); 572 $form .= "</td>\n"; 573 $form .= "</tr>\n"; 574 575 $form .= "<tr>\n"; 576 $form .= "<td>" . __('Right arrow image URL','xpressme') . "</td>\n"; 577 $form .= "<td>\n"; 578 $form .= $this->text_option_sub('post_right_arrow_image_link',60,120); 579 $form .= "</td>\n"; 580 $form .= "</tr>\n"; 581 555 582 $form .= "</table></td></tr>\n"; 556 583 return $form; … … 588 615 $form .= "</tr>\n"; 589 616 617 $form .= "<tr>\n"; 618 $form .= "<td>" . __('Left arrow image URL','xpressme') . "</td>\n"; 619 $form .= "<td>\n"; 620 $form .= $this->text_option_sub('page_left_arrow_image_link',60,120); 621 $form .= "</td>\n"; 622 $form .= "</tr>\n"; 623 624 $form .= "<tr>\n"; 625 $form .= "<td>" . __('Right arrow image URL','xpressme') . "</td>\n"; 626 $form .= "<td>\n"; 627 $form .= $this->text_option_sub('page_right_arrow_image_link',60,120); 628 $form .= "</td>\n"; 629 $form .= "</tr>\n"; 630 590 631 $form .= "</table></td></tr>\n"; 591 632 return $form;
Note: See TracChangeset
for help on using the changeset viewer.