mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- private content compatibility added;
This commit is contained in:
@@ -246,4 +246,9 @@ th.column-email.column-primary {
|
||||
|
||||
.email_template_wrapper.in_theme .reset_email_template {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.um_setting_ajax_button_response.complete {
|
||||
color:darkgreen;
|
||||
font-style: italic;
|
||||
}
|
||||
@@ -941,5 +941,39 @@ if ( ! class_exists( 'Admin_Forms' ) ) {
|
||||
return $html;
|
||||
}
|
||||
|
||||
|
||||
function render_ajax_button( $field_data ) {
|
||||
|
||||
if ( empty( $field_data['id'] ) )
|
||||
return false;
|
||||
|
||||
$id = ( ! empty( $this->form_data['prefix_id'] ) ? $this->form_data['prefix_id'] : '' ) . '_' . $field_data['id'];
|
||||
$id_attr = ' id="' . $id . '" ';
|
||||
|
||||
$class = ! empty( $field_data['class'] ) ? $field_data['class'] : '';
|
||||
$class_attr = ' class="um-forms-field button ' . $class . '" ';
|
||||
|
||||
$data = array(
|
||||
'field_id' => $field_data['id']
|
||||
);
|
||||
|
||||
$data_attr = '';
|
||||
foreach ( $data as $key => $value ) {
|
||||
$data_attr .= " data-{$key}=\"{$value}\" ";
|
||||
}
|
||||
|
||||
$name = $field_data['id'];
|
||||
$name = ! empty( $this->form_data['prefix_id'] ) ? $this->form_data['prefix_id'] . '[' . $name . ']' : $name;
|
||||
$name_attr = ' name="' . $name . '" ';
|
||||
|
||||
$default = isset( $field_data['default'] ) ? $field_data['default'] : '';
|
||||
$value = isset( $field_data['value'] ) ? $field_data['value'] : $default;
|
||||
$value_attr = ' value="' . $value . '" ';
|
||||
|
||||
$html = "<input type=\"button\" $id_attr $class_attr $name_attr $data_attr $value_attr /><div class='clear'></div><div class='um_setting_ajax_button_response'></div>";
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -113,6 +113,13 @@
|
||||
'desc' => 'Add a notifications system to your site so users can receive real-time notifications',
|
||||
);
|
||||
|
||||
$premium['private-content'] = array(
|
||||
'url' => 'https://ultimatemember.com/extensions/private-content/',
|
||||
'image' => 'https://ultimatemember.com/wp-content/uploads/bb-plugin/cache/private-content-page-circle.png',
|
||||
'name' => 'Private Content',
|
||||
'desc' => 'With the private content extension you can provide logged in users with content that only they can access and view',
|
||||
);
|
||||
|
||||
|
||||
$free['online-users'] = array(
|
||||
'url' => 'https://ultimatemember.com/extensions/online-users/',
|
||||
|
||||
Reference in New Issue
Block a user