@@ -227,7 +227,7 @@ |
||
227 | 227 | |
228 | 228 | if($args['type']=='image'){ |
229 | 229 | $output .= "<img src='https://maps.googleapis.com/maps/api/staticmap?center=".esc_attr($args['location'])."&maptype=".esc_attr($args['maptype'])."&zoom=".esc_attr($args['zoom'])."&size=".esc_attr($args['static_width'])."x".esc_attr($args['static_height'])."&key=".esc_attr($args['api_key'])."' />"; |
230 | - }else{ |
|
230 | + } else{ |
|
231 | 231 | $output .= "<iframe width='".esc_attr($args['width'])."' height='".esc_attr($args['height'])."' frameborder='0' allowfullscreen style='border:0;' src='https://www.google.com/maps/embed/v1/".esc_attr($args['type'])."?q=".esc_attr($args['location'])."&maptype=".esc_attr($args['maptype'])."&zoom=".esc_attr($args['zoom'])."&key=".esc_attr($args['api_key'])."' ></iframe> "; |
232 | 232 | } |
233 | 233 |
@@ -1,7 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | // don't load directly |
3 | -if ( !defined('ABSPATH') ) |
|
3 | +if ( !defined('ABSPATH') ) { |
|
4 | 4 | die('-1'); |
5 | +} |
|
5 | 6 | |
6 | 7 | do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); |
7 | 8 |
@@ -660,7 +660,7 @@ discard block |
||
660 | 660 | <?php |
661 | 661 | if(! empty( $insert_shortcode_function )){ |
662 | 662 | echo $insert_shortcode_function; |
663 | - }else{ |
|
663 | + } else{ |
|
664 | 664 | |
665 | 665 | /** |
666 | 666 | * Function for super duper insert shortcode. |
@@ -1871,7 +1871,7 @@ discard block |
||
1871 | 1871 | $panel_count ++; |
1872 | 1872 | |
1873 | 1873 | } |
1874 | - }else { |
|
1874 | + } else { |
|
1875 | 1875 | ?> |
1876 | 1876 | el(wp.components.PanelBody, { |
1877 | 1877 | title: '<?php esc_attr_e( "Settings" ); ?>', |
@@ -1895,7 +1895,7 @@ discard block |
||
1895 | 1895 | // If the user sets block-output array then build it |
1896 | 1896 | if ( ! empty( $this->options['block-output'] ) ) { |
1897 | 1897 | $this->block_element( $this->options['block-output'] ); |
1898 | - }else{ |
|
1898 | + } else{ |
|
1899 | 1899 | // if no block-output is set then we try and get the shortcode html output via ajax. |
1900 | 1900 | ?> |
1901 | 1901 | el('div', { |
@@ -1965,7 +1965,7 @@ discard block |
||
1965 | 1965 | ?> |
1966 | 1966 | return content; |
1967 | 1967 | <?php |
1968 | - }else{ |
|
1968 | + } else{ |
|
1969 | 1969 | ?> |
1970 | 1970 | var block_wrap = 'div'; |
1971 | 1971 | if (attr.hasOwnProperty("block_wrap")) { |