add_filter( 'wpsl_info_window_template', 'custom_info_window_template' ); function custom_info_window_template() { global $wpsl_settings, $wpsl; $info_window_template = '
' . "\r\n"; $info_window_template .= "\t\t\t" . wpsl_store_header_template() . "\r\n"; $info_window_template .= "\t\t\t" . '<%= address %>' . "\r\n"; $info_window_template .= "\t\t\t" . '<% if ( address2 ) { %>' . "\r\n"; $info_window_template .= "\t\t\t" . '<%= address2 %>' . "\r\n"; $info_window_template .= "\t\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t\t" . '' . wpsl_address_format_placeholders() . '' . "\r\n"; $info_window_template .= "\t\t" . '
' . "\r\n"; $info_window_template .= "\t\t" . '<% if ( phone ) { %>' . "\r\n"; $info_window_template .= "\t\t" . '' . esc_html( $wpsl->i18n->get_translation( 'phone_label', __( 'Phone', 'wpsl' ) ) ) . ': <%= formatPhoneNumber( phone ) %>' . "\r\n"; $info_window_template .= "\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t" . '<% if ( fax ) { %>' . "\r\n"; $info_window_template .= "\t\t" . '' . esc_html( $wpsl->i18n->get_translation( 'fax_label', __( 'Fax', 'wpsl' ) ) ) . ': <%= fax %>' . "\r\n"; $info_window_template .= "\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t" . '<% if ( email ) { %>' . "\r\n"; $info_window_template .= "\t\t" . '' . esc_html( $wpsl->i18n->get_translation( 'email_label', __( 'Email', 'wpsl' ) ) ) . ': <%= formatEmail( email ) %>' . "\r\n"; $info_window_template .= "\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t" . '<% if ( my_textinput ) { %>' . "\r\n"; $info_window_template .= "\t\t" . '<%= my_textinput %>
' . "\r\n"; $info_window_template .= "\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t" . '<%= createInfoWindowActions( id ) %>' . "\r\n"; $info_window_template .= "\t" . '