1 ) ? $current_page - 1 : 0; $next_page = $current_page + 1; $licenses = get_catalog_licenses(); $available_licenses = get_available_licenses( $catalog_data ); $subjects = ( defined( 'PB_PLUGIN_VERSION' ) ) ? \Pressbooks\Metadata\get_thema_subjects() : []; $available_subjects = get_available_subjects( $catalog_data ); ?>

>
$val ) : if ( array_key_exists( $key, $available_subjects ) ) : ?>

$v ) : if ( in_array( $k, $available_subjects[ $key ], true ) ) : ?> >

> $value ) : if ( in_array( $key, $available_licenses, true ) ) : ?> >

__( 'Title', 'pressbooks-aldine' ), 'subject' => __( 'Subject', 'pressbooks-aldine' ), 'latest' => __( 'Latest', 'pressbooks-aldine' ), ]; foreach ( $sorts as $key => $value ) { ?> >
1 ) : ?>