Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $numero = get_post_meta( $post->ID, 'function_ospiti', true );
- $pianoapp = get_post_meta( $post->ID, 'piano', true );
- $pianoapp_str = empty( $pianoapp ) ? '' : "$pianoapp ";
- $mq = get_post_meta( $post->ID, 'function_mq', true );
- $mq_str = empty( $mq ) ? '' : "$mq m2, ";
- //variante
- $output_distanze = array();
- $sea = get_post_meta( $post->ID, 'function_number', true );
- if ( ! empty( $sea )) { $content[] = __( 'distance from the sea: ','sacconicase' ). "$sea m., ";}
- $beach = get_post_meta( $post->ID, 'function_spiaggia', true );
- if ( ! empty( $beach )) { $content[] = __( 'distance from the beach: ','sacconicase' ). "$beach m., ";}
- $center = get_post_meta( $post->ID, 'function_centro', true );
- if ( ! empty( $center )) { $content[] = __( 'distance from the center: ','sacconicase' ). "$center m., ";}
- $shops = get_post_meta( $post->ID, 'function_negozi', true );
- if ( ! empty( $shops )) { $content[] = __( 'distance from the shops: ','sacconicase' ). "$shops m., ";}
- $content = get_post_meta( $post->ID, 'description_'.$lang, true );
- $post_tags = get_the_tags();
- $separator = ', ';
- $output = '';
- if ( ! empty( $post_tags ) ) {
- foreach ( $post_tags as $tag ) {
- if ('animali permessi su richiesta' == $tag->name ) continue;
- $output .= $tag->name . $separator;
- }
- }
- if (!has_tag ('animali permessi su richiesta', $post)) {
- $output2 = "__( 'Pets not allowed', 'sacconicase' )" . '. ';
- }
- return '<span class="incipit_description">'. $category . ' '. $terms . '</span>' . ' ' . __( 'for','sacconicase' ) .' '. $numero .' '. __( 'persons, ','sacconicase' ). ' ' . $mq_str . $pianoapp_str . implode( $output_distanze, ', ').'.' . $output2 . __( 'Facilities','sacconicase' ) . ': ' . trim( $output, $separator ) . $content ;
- }
Advertisement
Add Comment
Please, Sign In to add comment