|
|
true );
if ( isset( $settings['exclude_from_search'] ) ) {
$args = array( 'public' => true, 'exclude_from_search' => false );
}
$posts = get_post_types( $args );
if ( ! empty( $posts ) ){
foreach ( $posts as $key => $post_type ) {
$checked = isset( $includes['post_type'][ esc_attr( $key )] ) ? $includes['post_type'][ esc_attr( $key )] : 0;
echo ' ';
echo ' ';
}
$checked = ( isset( $includes['search_title'] ) && $includes['search_title'] ) ? 1 : 0;
echo '
';
echo ' ';
$checked = ( isset( $includes['search_content'] ) && $includes['search_content'] ) ? 1 : 0;
echo '';
echo ' ';
$checked = ( isset( $includes['search_excerpt'] ) && $includes['search_excerpt'] ) ? 1 : 0;
echo '';
echo ' ';
echo ' ';
} else {
_e( 'No post types registered on your site.', 'ivory-search' );
}
?>
|
' . __( 'Select post types that you want to make searchable.', 'ivory-search' ) . '';
IS_Help::help_tooltip( $title, $content );
?>
|
|
|
$tax_obj ) {
$terms = get_terms( array(
'taxonomy' => $key,
'hide_empty' => false,
) );
if ( ! empty( $terms ) ){
echo '' . ucwords( str_replace( '-', ' ', str_replace( '_', ' ', esc_html( $key ) ) ) ) . ' ';
echo ' ';
echo ' ';
}
}
echo ' ';
$checked = ( isset( $includes['tax_rel'] ) && "OR" == $includes['tax_rel'] ) ? "OR" : "AND";
echo '
';
echo ' ';
echo '';
echo ' ';
$checked = ( isset( $includes['search_tax_title'] ) && $includes['search_tax_title'] ) ? 1 : 0;
echo '
';
echo ' ';
$checked = ( isset( $includes['search_tax_desp'] ) && $includes['search_tax_desp'] ) ? 1 : 0;
echo '';
echo ' ';
} else {
_e( 'No taxonomies registered for slected post types.', 'ivory-search' );
}
?>
|
' . __( 'The non empty terms created in the registered taxonomies of above selected post types display here.', 'ivory-search' ) . '';
$content .= ' ' . __( 'Select terms here to restrict search to the posts having selected terms.', 'ivory-search' ) . ' ';
IS_Help::help_tooltip( $title, $content );
?>
|
|
|
is_meta_keys( $args );
if ( ! empty( $meta_keys ) ) {
echo '';
echo '
';
}
?>
|
' . __( 'Select custom fields to make their values searchable.', 'ivory-search' ) . '';
IS_Help::help_tooltip( $title, $content );
?>
|
|
|
is_plan( 'pro_plus' ) ? '' : ' disabled ';
$checked = ( isset( $includes['woo']['sku'] ) && $includes['woo']['sku'] ) ? 1 : 0;
echo ' ';
echo '';
echo IS_Admin::pro_link( 'pro_plus' ) . ' ';
} else {
_e( 'WooCommerce product post type is not included in search.', 'ivory-search' );
}
?>
|
' . __( 'Configure WooCommerce products search options here.', 'ivory-search' ) . '';
IS_Help::help_tooltip( $title, $content );
?>
|
|
|
is_plan( 'pro' ) ? '' : ' disabled ';
$authors = get_users( array(
'fields' => array( 'ID', 'display_name' ),
'orderby' => 'post_count',
'order' => 'DESC',
'who' => 'authors',
) );
if ( ! empty( $authors ) ) {
if ( '' !== $author_disable ) {
echo ' ' . IS_Admin::pro_link() . ' ';
}
foreach ( $authors as $author ) {
$post_count = count_user_posts( $author->ID );
// Move on if user has not published a post (yet).
if ( ! $post_count ) {
continue;
}
$checked = isset( $includes['author'][ esc_attr( $author->ID )] ) ? $includes['author'][ esc_attr( $author->ID )] : 0;
echo 'ID, $checked, false ) . '/>';
echo ' ';
}
}
} else {
echo '';
}
$checked = ( isset( $includes['search_author'] ) && $includes['search_author'] ) ? 1 : 0;
echo '
';
echo '';
?>
|
' . __( 'Make specific author posts searchable.', 'ivory-search' ) . '';
IS_Help::help_tooltip( $title, $content );
?>
|
|
|
is_plan( 'pro' ) ? '' : ' disabled ';
if ( ! empty( $post_statuses ) ) {
if ( '' !== $post_status_disable ) {
echo ' ' . IS_Admin::pro_link() . ' ';
}
foreach ( $post_statuses as $key => $post_status ) {
$checked = isset( $includes['post_status'][ esc_attr( $key )] ) ? $includes['post_status'][ esc_attr( $key )] : 0;
echo '';
echo ' ';
}
}
} else {
echo '';
}
?>
|
' . __( 'Configure options to search posts having specific post statuses.', 'ivory-search' ) . '';
IS_Help::help_tooltip( $title, $content );
?>
|
|
|
is_plan( 'pro' ) ? '' : ' disabled ';
echo '';
echo IS_Admin::pro_link() . '';
echo ' ';
echo IS_Admin::pro_link() . '';
$checked = ( isset( $includes['search_comment'] ) && $includes['search_comment'] ) ? 1 : 0;
echo '
';
echo '';
?>
|
' . __( 'Make posts searchable having specific comments count.', 'ivory-search' ) . '';
IS_Help::help_tooltip( $title, $content );
?>
|
|
|
' . ucfirst( $value ) . ' ';
echo '';
echo '';
echo '';
}
?>
|
' . __( 'Make posts searchable created in the specific date range.', 'ivory-search' ) . '';
IS_Help::help_tooltip( $title, $content );
?>
|
|
|
';
echo '';
echo ' ';
echo ' ';
echo '';
echo ' ';
?>
|
' . __( 'Configure options to search posts with or without password.', 'ivory-search' ) . '';
IS_Help::help_tooltip( $title, $content );
?>
|
|
|
is_plan( 'pro_plus' ) ? '' : ' disabled ';
ksort($file_types);
echo '';
echo IS_Admin::pro_link( 'pro_plus' );
echo '
';
}
} else {
echo '';
}
?>
|
' . __( 'Configure options to search posts having specific MIME or file types specially media attachment posts.', 'ivory-search' ) . '';
IS_Help::help_tooltip( $title, $content );
?>
|