Skip to content

Commit

Permalink
Finish off the rest of the code
Browse files Browse the repository at this point in the history
  • Loading branch information
ingeniumed committed Jul 3, 2024
1 parent ba79de2 commit d10a669
Show file tree
Hide file tree
Showing 13 changed files with 296 additions and 666 deletions.
26 changes: 13 additions & 13 deletions common/php/class-module.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function is_analytics_enabled() {

// filter to disable it.
// ToDo: Update the ef prefix.
$is_analytics_enabled = apply_filters( 'ef_should_analytics_be_enabled', $is_analytics_enabled );
$is_analytics_enabled = apply_filters( 'vw_should_analytics_be_enabled', $is_analytics_enabled );

return $is_analytics_enabled;
}
Expand Down Expand Up @@ -111,7 +111,7 @@ public function get_all_post_types() {
* If add_post_type_support() has been used anywhere (legacy support), inherit the state
*
* @param array $module_post_types Current state of post type options for the module
* @param string $post_type_support What the feature is called for post_type_support (e.g. 'ef_calendar')
* @param string $post_type_support What the feature is called for post_type_support (e.g. 'vw_calendar')
* @return array $normalized_post_type_options The setting for each post type, normalized based on rules
*
* @since 0.7
Expand Down Expand Up @@ -144,7 +144,7 @@ public function get_supported_post_types_for_module( $module = null ) {
'public' => true,
);
// ToDo: Update the ef prefix.
$pt_args = apply_filters( 'edit_flow_supported_module_post_types_args', $pt_args, $module );
$pt_args = apply_filters( 'vip_workflow_supported_module_post_types_args', $pt_args, $module );
return get_post_types( $pt_args, 'objects' );
}

Expand Down Expand Up @@ -291,7 +291,7 @@ public function get_user_meta( $user_id, $key, $string = true ) {

$response = null;
// ToDo: Update the ef prefix.
$response = apply_filters( 'ef_get_user_meta', $response, $user_id, $key, $string );
$response = apply_filters( 'vw_get_user_meta', $response, $user_id, $key, $string );
if ( ! is_null( $response ) ) {
return $response;
}
Expand All @@ -314,7 +314,7 @@ public function update_user_meta( $user_id, $key, $value, $previous = null ) {

$response = null;
// ToDo: Update the ef prefix.
$response = apply_filters( 'ef_update_user_meta', $response, $user_id, $key, $value, $previous );
$response = apply_filters( 'vw_update_user_meta', $response, $user_id, $key, $value, $previous );
if ( ! is_null( $response ) ) {
return $response;
}
Expand Down Expand Up @@ -448,8 +448,8 @@ public function users_select_form( $selected = null, $args = null ) {
// ToDo: Update the ef prefix.
// Set up arguments
$defaults = array(
'list_class' => 'ef-users-select-form',
'input_id' => 'ef-selected-users',
'list_class' => 'vw-users-select-form',
'input_id' => 'vw-selected-users',
);
$parsed_args = wp_parse_args( $args, $defaults );
extract( $parsed_args, EXTR_SKIP );
Expand All @@ -463,7 +463,7 @@ public function users_select_form( $selected = null, $args = null ) {
),
'orderby' => 'display_name',
);
$args = apply_filters( 'ef_users_select_form_get_users_args', $args );
$args = apply_filters( 'vw_users_select_form_get_users_args', $args );

$users = get_users( $args );

Expand All @@ -482,8 +482,8 @@ public function users_select_form( $selected = null, $args = null ) {
?>
<li>
<label for="<?php echo esc_attr( $input_id . '-' . $user->ID ); ?>">
<div class="ef-user-subscribe-actions">
<?php do_action( 'ef_user_subscribe_actions', $user->ID, $checked ); ?>
<div class="vw-user-subscribe-actions">
<?php do_action( 'vw_user_subscribe_actions', $user->ID, $checked ); ?>
<input type="checkbox" id="<?php echo esc_attr( $input_id . '-' . $user->ID ); ?>" name="<?php echo esc_attr( $input_id ); ?>[]" value="<?php echo esc_attr( $user->ID ); ?>"
<?php
echo esc_attr( $checked );
Expand All @@ -492,8 +492,8 @@ public function users_select_form( $selected = null, $args = null ) {
/>
</div>

<span class="ef-user_displayname"><?php echo esc_html( $user->display_name ); ?></span>
<span class="ef-user_useremail"><?php echo esc_html( $user->user_email ); ?></span>
<span class="vw-user_displayname"><?php echo esc_html( $user->display_name ); ?></span>
<span class="vw-user_useremail"><?php echo esc_html( $user->user_email ); ?></span>
</label>
</li>
<?php endforeach; ?>
Expand All @@ -513,7 +513,7 @@ public function users_select_form( $selected = null, $args = null ) {
public function add_caps_to_role( $role, $caps ) {
// ToDo: Update the ef prefix.
// In some contexts, we don't want to add caps to roles
if ( apply_filters( 'ef_kill_add_caps_to_role', false, $role, $caps ) ) {
if ( apply_filters( 'vw_kill_add_caps_to_role', false, $role, $caps ) ) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/custom-status.build.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/custom-status.editor.build.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/custom-status.style.build.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d10a669

Please sign in to comment.