- private content compatibility added;

This commit is contained in:
nikitozzzzzzz
2017-09-14 17:12:08 +03:00
parent c9c68361b7
commit 2c56b9c1f4
5 changed files with 48 additions and 0 deletions
@@ -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;
}
+34
View File
@@ -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;
}
}
}
+7
View File
@@ -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/',
+1
View File
@@ -32,6 +32,7 @@ if ( ! class_exists( 'um\Dependencies' ) ) {
'notices' => '2.0-beta1',
'notifications' => '2.0-beta1',
'online' => '2.0-beta1',
'private-content' => '2.0-beta1',
'profile-completeness' => '2.0-beta1',
'recaptcha' => '2.0-beta1',
'reviews' => '2.0-beta1',
+1
View File
@@ -29,6 +29,7 @@ if ( ! class_exists( 'UM' ) ) {
* @method UM_Verified_Users_API Verified_Users_API()
* @method UM_WooCommerce_API WooCommerce_API()
* @method UM_Terms_Conditions_API Terms_Conditions_API()
* @method UM_Private_Content_API Private_Content_API()
*
*/
final class UM extends UM_Functions {