enqueue_scripts(); } } if ( ! function_exists( 'twentyseventeen_panel_count' ) ) { return; } $panel_count = twentyseventeen_panel_count(); $post_assets_obj = uagb_get_front_post_assets(); $all_posts = array(); for ( $i = 1; $i <= $panel_count; $i++ ) { $mod_key = 'panel_' . $i; $post_id = get_theme_mod( $mod_key ); $post = get_post( $post_id ); array_push( $all_posts, $post ); } if ( ! is_object( $post_assets_obj ) ) { return; } foreach ( $all_posts as $post ) { $post_assets_obj->prepare_assets( $post ); } } } } UAGB_Twenty_Seventeen_Compatibility::get_instance();