739 |
739 |
|
740 |
740 |
<div id="<?php echo $type; ?>" class="options-box" style="<?php echo $class; ?> margin-left: 15px;">
|
741 |
741 |
<h4><?php _e( 'Please enter options for this Field:', 'buddypress' ); ?></h4>
|
742 |
|
<p><label for="sort_order_<?php echo $type; ?>"><?php _e( 'Order By:', 'buddypress' ); ?></label>
|
|
742 |
<p><label for="sort_order_<?php echo $type; ?>"><?php _e( 'Sort Order:', 'buddypress' ); ?></label>
|
743 |
743 |
<select name="sort_order_<?php echo $type; ?>" id="sort_order_<?php echo $type; ?>" >
|
744 |
|
<option value="default" <?php if ( 'default' == $this->order_by ) {?> selected="selected"<?php } ?> ><?php _e( 'Order Entered', 'buddypress' ); ?></option>
|
745 |
|
<option value="asc" <?php if ( 'asc' == $this->order_by ) {?> selected="selected"<?php } ?>><?php _e( 'Name - Ascending', 'buddypress' ); ?></option>
|
746 |
|
<option value="desc" <?php if ( 'desc' == $this->order_by ) {?> selected="selected"<?php } ?>><?php _e( 'Name - Descending', 'buddypress' ); ?></option>
|
|
744 |
<option value="default" <?php if ( 'default' == $this->order_by ) {?> selected="selected"<?php } ?> ><?php _e( 'Custom', 'buddypress' ); ?></option>
|
|
745 |
<option value="asc" <?php if ( 'asc' == $this->order_by ) {?> selected="selected"<?php } ?>><?php _e( 'Ascending', 'buddypress' ); ?></option>
|
|
746 |
<option value="desc" <?php if ( 'desc' == $this->order_by ) {?> selected="selected"<?php } ?>><?php _e( 'Descending', 'buddypress' ); ?></option>
|
747 |
747 |
</select>
|
748 |
748 |
|
749 |
749 |
<?php if ( !$options = $this->get_children( true ) ) {
|
... | ... | |
767 |
767 |
if ( 'multiselectbox' == $type || 'checkbox' == $type )
|
768 |
768 |
$default_name = '[' . $j . ']'; ?>
|
769 |
769 |
|
770 |
|
<p><?php _e( 'Option', 'buddypress' ); ?> <?php echo $j; ?>:
|
771 |
|
<input type="text" name="<?php echo $type; ?>_option[<?php echo $j; ?>]" id="<?php echo $type; ?>_option<?php echo $j; ?>" value="<?php echo stripslashes( esc_attr( $options[$i]->name ) ); ?>" />
|
772 |
|
<input type="<?php echo $default_input; ?>" name="isDefault_<?php echo $type; ?>_option<?php echo $default_name; ?>" <?php if ( (int) $options[$i]->is_default_option ) {?> checked="checked"<?php } ?> " value="<?php echo $j; ?>" /> <?php _e( 'Default Value', 'buddypress' ); ?>
|
|
770 |
<p class="sortable">
|
|
771 |
<span><?php _e( 'Option', 'buddypress' ); ?> <?php echo $j; ?>:</span>
|
|
772 |
<input type="text" name="<?php echo $type; ?>_option[<?php echo $j; ?>]" id="<?php echo $type; ?>_option<?php echo $j; ?>" value="<?php echo stripslashes( esc_attr( $options[$i]->name ) ); ?>" />
|
|
773 |
<input type="<?php echo $default_input; ?>" name="isDefault_<?php echo $type; ?>_option<?php echo $default_name; ?>" <?php if ( (int) $options[$i]->is_default_option ) {?> checked="checked"<?php } ?> " value="<?php echo $j; ?>" /> <?php _e( 'Default Value', 'buddypress' ); ?>
|
773 |
774 |
|
774 |
775 |
<?php if ( $j != 1 && $options[$i]->id != -1 ) : ?>
|
775 |
776 |
|