Autorijschool Ans stopt met het geven van autorijlessen.
Ik wil iedereen bedanken die rijlessen heeft gevolgd bij Autorijschool Ans.
Ans – Rijinstructeur
WHERE meta_key = '_us_in_content_ids' AND ({$meta_value_like}) "; // Iterate queries us_iterate_queries( $query, function ( $items ) use ( &$used_in, $ids, $posts_types ) { foreach ( $items as $item ) { if ( ! $post_id = $item->post_id ) { continue; } $meta_value_ids = explode( ',', $item->meta_value ); foreach ( $ids as $id ) { if ( in_array( $id, $meta_value_ids ) AND us_is_post_visible_for_curr_lang( $post_id, $id ) ) { $used_in[ $id ]['singulars_content'][ $post_id ] = array( 'url' => us_get_edit_post_link( $post_id ), 'edit_url' => us_get_edit_post_link( $post_id, $item->post_type ), 'title' => empty( $item->post_title ) ? us_translate( '(no title)' ) : $item->post_title, 'post_type' => ! empty( $posts_types[ $id ] ) ? $posts_types[ $id ] : NULL, ); } } } } ); // Append locations to result string foreach ( $ids as $id ) { if ( ! empty( $used_in[ $id ] ) AND ! empty( $used_in[ $id ]['singulars_content'] ) ) { foreach ( $used_in[ $id ]['singulars_content'] as $location ) { switch ( $location['post_type'] ) { case 'us_page_block': $url = $location['edit_url']; $title = __( 'Edit Reusable Block', 'us' ); break; case 'us_content_template': $url = $location['edit_url']; $title = __( 'Edit Page Template', 'us' ); break; default: $url = $location['url']; $title = us_translate( 'View Page' ); break; } $link_atts = array( 'href' => $url, 'target' => '_blank', 'title' => $title, ); $results[ $id ] .= '
'; } } } // Widgets (for Grid Layouts only) $regexp_layouts = array(); foreach ( $ids as $id ) { $regexp_layouts[] = strlen( $id ) . ':"' . $id; } $regexp_layouts = implode( '|', $regexp_layouts ); $query = " SELECT `option_name`, `option_value` FROM {$wpdb->options} WHERE option_name LIKE 'widget%' AND option_value REGEXP '\"layout\";s:({$regexp_layouts})\"' LIMIT 0, 100"; if ( $widget_options = $wpdb->get_results( $query ) ) { global $wp_registered_sidebars, $wp_registered_widgets; $_widget_titles = $_sidebars_widgets = array(); // Get widget_id => Sidebar name foreach ( wp_get_sidebars_widgets() as $sidebar_id => $widget_ids ) { if ( $sidebar_id === 'wp_inactive_widgets' OR ! isset( $wp_registered_sidebars[ $sidebar_id ] ) ) { continue; } $_sidebars_widgets = array_merge( $_sidebars_widgets, array_fill_keys( array_values( $widget_ids ), $wp_registered_sidebars[ $sidebar_id ]['name'] ) ); } // Get widget name foreach ( $wp_registered_widgets as $base_id => $widget ) { foreach ( $widget['callback'] as $callback ) { if ( isset( $callback->option_name, $_sidebars_widgets[ $base_id ] ) ) { $number = substr( $base_id, mb_strlen( $callback->id_base . '-' ) ); $_widget_titles[ $callback->option_name ][ $number ] = [ 'sidebar_name' => $_sidebars_widgets[ $base_id ], 'name' => $callback->name, ]; } } } unset( $_sidebars_widgets ); // Creating links for widgets foreach ( $widget_options as $usage_result ) { foreach ( $ids as $id ) { foreach ( unserialize( $usage_result->option_value ) as $number => $value ) { if ( ! is_array( $value ) OR ! isset( $value['layout'] ) OR $value['layout'] != $id ) { continue; } $_widget = isset( $_widget_titles[ $usage_result->option_name ][ $number ] ) ? $_widget_titles[ $usage_result->option_name ][ $number ] : []; $name = isset( $_widget['name'] ) ? $_widget['name'] : ''; if ( ! empty( $value['title'] ) ) { $name .= ': ' . $value['title']; } $sidebar_name = isset( $_widget['sidebar_name'] ) ? $_widget['sidebar_name'] . ' > ' : ''; // NOTE: The widget is in the config because it is not deleted, you can find it on // the widgets page in the "Inactive Sidebar (not used)" action, but we do not display this. if ( empty( $sidebar_name ) ) { continue; } $results[ $id ] .= 'Autorijschool Ans stopt met het geven van autorijlessen.
Ik wil iedereen bedanken die rijlessen heeft gevolgd bij Autorijschool Ans.
Ans – Rijinstructeur