Changeset 850
- Timestamp:
- 01/15/2009 11:18:29 PM (16 years ago)
- Location:
- trunk/bp-xprofile
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-admin.php
r732 r850 74 74 <th scope="col" colspan="<?php if ( $groups[$i]->can_delete ) { ?>3<?php } else { ?>5<?php } ?>"><?php echo $groups[$i]->name; ?></th> 75 75 <?php if ( $groups[$i]->can_delete ) { ?> 76 <th scope="col" width="5%"><a class="edit" href="admin.php?page=xprofile_settings&mode=edit_group&group_id=<?php echo $groups[$i]->id; ?>"> Edit</a></th>77 <th scope="col" width="5%"><a class="delete" href="admin.php?page=xprofile_settings&mode=delete_group&group_id=<?php echo $groups[$i]->id; ?>"> Delete</a></th>76 <th scope="col" width="5%"><a class="edit" href="admin.php?page=xprofile_settings&mode=edit_group&group_id=<?php echo $groups[$i]->id; ?>"><?php _e( 'Edit', 'buddypress' ) ?></a></th> 77 <th scope="col" width="5%"><a class="delete" href="admin.php?page=xprofile_settings&mode=delete_group&group_id=<?php echo $groups[$i]->id; ?>"><?php _e( 'Delete', 'buddypress' ) ?></a></th> 78 78 <?php } ?> 79 79 </tr> … … 81 81 <tbody id="the-list"> 82 82 <tr class="header nodrag"> 83 <td> Field Name</td>84 <td width="14%"> Field Type</td>85 <td width="6%"> Required?</td>86 <td colspan="2" width="10%" style="text-align:center;"> Action</td>83 <td><?php _e( 'Field Name', 'buddypress' ) ?></td> 84 <td width="14%"><?php _e( 'Field Type', 'buddypress' ) ?></td> 85 <td width="6%"><?php _e( 'Required?', 'buddypress' ) ?></td> 86 <td colspan="2" width="10%" style="text-align:center;"><?php _e( 'Action', 'buddypress' ) ?></td> 87 87 </tr> 88 88 … … 97 97 <td><?php echo $field->type; ?></td> 98 98 <td style="text-align:center;"><?php if ( $field->is_required ) { echo '<img src="' . $bp['profile']['image_base'] . '/tick.gif" alt="Yes" />'; } else { ?>--<?php } ?></td> 99 <td style="text-align:center;"><?php if ( !$field->can_delete ) { ?><strike> Edit</strike><?php } else { ?><a class="edit" href="admin.php?page=xprofile_settings&group_id=<?php echo $groups[$i]->id; ?>&field_id=<?php echo $field->id; ?>&mode=edit_field">Edit</a><?php } ?></td>100 <td style="text-align:center;"><?php if ( !$field->can_delete ) { ?><strike> Delete</strike><?php } else { ?><a class="delete" href="admin.php?page=xprofile_settings&field_id=<?php echo $field->id; ?>&mode=delete_field">Delete</a><?php } ?></td>99 <td style="text-align:center;"><?php if ( !$field->can_delete ) { ?><strike><?php _e( 'Edit', 'buddypress' ) ?></strike><?php } else { ?><a class="edit" href="admin.php?page=xprofile_settings&group_id=<?php echo $groups[$i]->id; ?>&field_id=<?php echo $field->id; ?>&mode=edit_field"><?php _e( 'Edit', 'buddypress' ) ?></a><?php } ?></td> 100 <td style="text-align:center;"><?php if ( !$field->can_delete ) { ?><strike><?php _e( 'Delete', 'buddypress' ) ?></strike><?php } else { ?><a class="delete" href="admin.php?page=xprofile_settings&field_id=<?php echo $field->id; ?>&mode=delete_field"><?php _e( 'Delete', 'buddypress' ) ?></a><?php } ?></td> 101 101 </tr> 102 102 … … 104 104 <?php } else { ?> 105 105 <tr class="nodrag"> 106 <td colspan="6"> There are no fields in this group.</td>106 <td colspan="6"><?php _e( 'There are no fields in this group.', 'buddypress' ) ?></td> 107 107 </tr> 108 108 <?php } ?> 109 109 <tr class="nodrag"> 110 <td colspan="6"><a href="admin.php?page=xprofile_settings&group_id=<?php echo $groups[$i]->id; ?>&mode=add_field"> Add New Field</a></td>110 <td colspan="6"><a href="admin.php?page=xprofile_settings&group_id=<?php echo $groups[$i]->id; ?>&mode=add_field"><?php _e( 'Add New Field', 'buddypress' ) ?></a></td> 111 111 </tr> 112 112 </tbody> … … 117 117 118 118 <p> 119 <a href="admin.php?page=xprofile_settings&mode=add_group"> Add New Group</a>119 <a href="admin.php?page=xprofile_settings&mode=add_group"><?php _e( 'Add New Group', 'buddypress' ) ?></a> 120 120 </p> 121 121 122 122 <?php } else { ?> 123 123 <div id="message" class="error"><p>You have no groups.</p></div> 124 <p><a href="admin.php?page=xprofile_settings&mode=add_group"> Add a Group</a></p>124 <p><a href="admin.php?page=xprofile_settings&mode=add_group"><?php _e( 'Add New Group', 'buddypress' ) ?></a></p> 125 125 <?php } ?> 126 126 </div> -
trunk/bp-xprofile/bp-xprofile-classes.php
r825 r850 630 630 631 631 <select name="sort_order_<?php echo $type ?>" id="sort_order_<?php echo $type ?>" > 632 <option value="default" <?php if ( $this->order_by == 'default' ) {?> selected="selected"<?php } ?> > Order Entered</option>633 <option value="asc" <?php if ( $this->order_by == 'asc' ) {?> selected="selected"<?php } ?>> Name - Ascending</option>634 <option value="desc" <?php if ( $this->order_by == 'desc' ) {?> selected="selected"<?php } ?>> Name - Descending</option>632 <option value="default" <?php if ( $this->order_by == 'default' ) {?> selected="selected"<?php } ?> ><?php _e( 'Order Entered', 'buddypress' ) ?></option> 633 <option value="asc" <?php if ( $this->order_by == 'asc' ) {?> selected="selected"<?php } ?>><?php _e( 'Name - Ascending', 'buddypress' ) ?></option> 634 <option value="desc" <?php if ( $this->order_by == 'desc' ) {?> selected="selected"<?php } ?>><?php _e( 'Name - Descending', 'buddypress' ) ?></option> 635 635 </select> 636 636 … … 647 647 <p><?php _e('Option', 'buddypress') ?> <?php echo $j ?>: 648 648 <input type="text" name="<?php echo $type ?>_option[<?php echo $j ?>]" id="<?php echo $type ?>_option<?php echo $j ?>" value="<?php echo $options[$i]->name ?>" /> 649 <input type="<?php echo $default_input ?>" name="isDefault_<?php echo $type ?>_option<?php echo $default_name; ?>" <?php if ( $options[$i]->sort_order == 'CHECKED' ) {?> checked="checked"<?php } ?> " /> Default Value649 <input type="<?php echo $default_input ?>" name="isDefault_<?php echo $type ?>_option<?php echo $default_name; ?>" <?php if ( $options[$i]->sort_order == 'CHECKED' ) {?> checked="checked"<?php } ?> " /> <?php _e( 'Default Value', 'buddypress' ) ?> 650 650 <a href="admin.php?page=xprofile_settings&mode=delete_option&option_id=<?php echo $options[$i]->id ?>" class="ajax-option-delete" id="delete-<?php echo $options[$i]->id ?>">[x]</a></p> 651 651 </p> … … 660 660 661 661 <p><?php _e('Option', 'buddypress') ?> 1: <input type="text" name="<?php echo $type ?>_option[1]" id="<?php echo $type ?>_option1" /> 662 <input type="<?php echo $default_input ?>" name="isDefault_<?php echo $type ?>_option<?php echo $default_name; ?>" id="isDefault_<?php echo $type ?>_option" <?php if ( $options[$i]->sort_order == 'CHECKED' ) {?> checked="checked"<?php } ?>" value="1" /> Default Value662 <input type="<?php echo $default_input ?>" name="isDefault_<?php echo $type ?>_option<?php echo $default_name; ?>" id="isDefault_<?php echo $type ?>_option" <?php if ( $options[$i]->sort_order == 'CHECKED' ) {?> checked="checked"<?php } ?>" value="1" /> <?php _e( 'Default Value', 'buddypress' ) ?> 663 663 <input type="hidden" name="<?php echo $type ?>_option_number" id="<?php echo $type ?>_option_number" value="2" /> 664 664 … … 716 716 <h3><label for="required"><?php _e("Is This Field Required?", 'buddypress') ?> *</label></h3> 717 717 <select name="required" id="required" style="width: 30%"> 718 <option value="0"<?php if ( $this->is_required == '0' ) { ?> selected="selected"<?php } ?>> Not Required</option>719 <option value="1"<?php if ( $this->is_required == '1' ) { ?> selected="selected"<?php } ?>> Required</option>718 <option value="0"<?php if ( $this->is_required == '0' ) { ?> selected="selected"<?php } ?>><?php _e( 'Not Required', 'buddypress' ) ?></option> 719 <option value="1"<?php if ( $this->is_required == '1' ) { ?> selected="selected"<?php } ?>><?php _e( 'Required', 'buddypress' ) ?></option> 720 720 </select> 721 721 </div> … … 724 724 <h3><label for="fieldtype"><?php _e("Field Type", 'buddypress') ?> *</label></h3> 725 725 <select name="fieldtype" id="fieldtype" onchange="show_options(this.value)" style="width: 30%"> 726 <option value="textbox"<?php if ( $this->type == 'textbox' ) {?> selected="selected"<?php } ?>> Text Box</option>727 <option value="textarea"<?php if ( $this->type == 'textarea' ) {?> selected="selected"<?php } ?>> Multi-line Text Box</option>728 <option value="datebox"<?php if ( $this->type == 'datebox' ) {?> selected="selected"<?php } ?>> Date Selector</option>729 <option value="radio"<?php if ( $this->type == 'radio' ) {?> selected="selected"<?php } ?>> Radio Buttons</option>730 <option value="selectbox"<?php if ( $this->type == 'selectbox' ) {?> selected="selected"<?php } ?>> Drop-down Select Box</option>731 <option value="multiselectbox"<?php if ( $this->type == 'multiselectbox' ) {?> selected="selected"<?php } ?>> Multi Select Box</option>732 <option value="checkbox"<?php if ( $this->type == 'checkbox' ) {?> selected="selected"<?php } ?>> Checkboxes</option>726 <option value="textbox"<?php if ( $this->type == 'textbox' ) {?> selected="selected"<?php } ?>><?php _e( 'Text Box', 'buddypress' ) ?></option> 727 <option value="textarea"<?php if ( $this->type == 'textarea' ) {?> selected="selected"<?php } ?>><?php _e( 'Multi-line Text Box', 'buddypress' ) ?></option> 728 <option value="datebox"<?php if ( $this->type == 'datebox' ) {?> selected="selected"<?php } ?>><?php _e( 'Date Selector', 'buddypress' ) ?></option> 729 <option value="radio"<?php if ( $this->type == 'radio' ) {?> selected="selected"<?php } ?>><?php _e( 'Radio Buttons', 'buddypress' ) ?></option> 730 <option value="selectbox"<?php if ( $this->type == 'selectbox' ) {?> selected="selected"<?php } ?>><?php _e( 'Drop Down Select Box', 'buddypress' ) ?></option> 731 <option value="multiselectbox"<?php if ( $this->type == 'multiselectbox' ) {?> selected="selected"<?php } ?>><?php _e( 'Multi Select Box', 'buddypress' ) ?></option> 732 <option value="checkbox"<?php if ( $this->type == 'checkbox' ) {?> selected="selected"<?php } ?>><?php _e( 'Checkboxes', 'buddypress' ) ?></option> 733 733 </select> 734 734 </div> … … 802 802 <div> 803 803 <select name="required" id="required"> 804 <option value="0"<?php if ( $this->is_required == '0' ) { ?> selected="selected"<?php } ?>> Not Required</option>805 <option value="1"<?php if ( $this->is_required == '1' ) { ?> selected="selected"<?php } ?>> Required</option>804 <option value="0"<?php if ( $this->is_required == '0' ) { ?> selected="selected"<?php } ?>><?php _e( 'Not Required', 'buddypress' ) ?></option> 805 <option value="1"<?php if ( $this->is_required == '1' ) { ?> selected="selected"<?php } ?>><?php _e( 'Required', 'buddypress' ) ?></option> 806 806 </select> 807 807 </div> … … 811 811 <select name="fieldtype" id="fieldtype" onchange="show_options(this.value)"> 812 812 <?php if (in_array('textbox', $field_data['Types'])) { ?> 813 <option value="textbox"<?php if ( $this->type == 'textbox' ) {?> selected="selected"<?php } ?>> Text Box</option>813 <option value="textbox"<?php if ( $this->type == 'textbox' ) {?> selected="selected"<?php } ?>><?php _e( 'Text Box', 'buddypress' ) ?></option> 814 814 <?php } if (in_array('textarea', $field_data['Types'])) { ?> 815 <option value="textarea"<?php if ( $this->type == 'textarea' ) {?> selected="selected"<?php } ?>> Multi-line Text Box</option>815 <option value="textarea"<?php if ( $this->type == 'textarea' ) {?> selected="selected"<?php } ?>><?php _e( 'Multi-line Text Box', 'buddypress' ) ?></option> 816 816 <?php } if (in_array('datebox', $field_data['Types'])) { ?> 817 <option value="datebox"<?php if ( $this->type == 'datebox' ) {?> selected="selected"<?php } ?>> Date Selector</option>817 <option value="datebox"<?php if ( $this->type == 'datebox' ) {?> selected="selected"<?php } ?>><?php _e( 'Date Selector', 'buddypress' ) ?></option> 818 818 <?php } if (in_array('radio', $field_data['Types'])) { ?> 819 <option value="radio"<?php if ( $this->type == 'radio' ) {?> selected="selected"<?php } ?>> Radio Buttons</option>819 <option value="radio"<?php if ( $this->type == 'radio' ) {?> selected="selected"<?php } ?>><?php _e( 'Radio Buttons', 'buddypress' ) ?></option> 820 820 <?php } if (in_array('selectbox', $field_data['Types'])) { ?> 821 <option value="selectbox"<?php if ( $this->type == 'selectbox' ) {?> selected="selected"<?php } ?>> Drop-down Select Box</option>821 <option value="selectbox"<?php if ( $this->type == 'selectbox' ) {?> selected="selected"<?php } ?>><?php _e( 'Drop Down Select Box', 'buddypress' ) ?></option> 822 822 <?php } if (in_array('multiselectbox', $field_data['Types'])) { ?> 823 <option value="multiselectbox"<?php if ( $this->type == 'multiselectbox' ) {?> selected="selected"<?php } ?>> Multi Select Box</option>823 <option value="multiselectbox"<?php if ( $this->type == 'multiselectbox' ) {?> selected="selected"<?php } ?>><?php _e( 'Multi Select Box', 'buddypress' ) ?></option> 824 824 <?php } ?> 825 825 </select> -
trunk/bp-xprofile/bp-xprofile-filters.php
r813 r850 45 45 $new_values[] = $value; 46 46 else 47 $new_values[] = '<a href="' . site_url( ) . '/' . MEMBERS_SLUG. '/?s=' . $value . '">' . $value . '</a>';47 $new_values[] = '<a href="' . site_url(MEMBERS_SLUG) . '/?s=' . $value . '">' . $value . '</a>'; 48 48 } 49 49
Note: See TracChangeset
for help on using the changeset viewer.