@@ -85,7 +85,7 @@ |
||
| 85 | 85 | if ( ! $result && $option) { |
| 86 | 86 | if( $option == 'color_primary' ){ |
| 87 | 87 | $result = AUI_PRIMARY_COLOR; |
| 88 | - }elseif( $option == 'color_secondary' ){ |
|
| 88 | + } elseif( $option == 'color_secondary' ){ |
|
| 89 | 89 | $result = AUI_SECONDARY_COLOR; |
| 90 | 90 | } |
| 91 | 91 | } |
@@ -126,8 +126,12 @@ discard block |
||
| 126 | 126 | public function constants(){ |
| 127 | 127 | define('AUI_PRIMARY_COLOR_ORIGINAL', "#1e73be"); |
| 128 | 128 | define('AUI_SECONDARY_COLOR_ORIGINAL', '#6c757d'); |
| 129 | - if (!defined('AUI_PRIMARY_COLOR')) define('AUI_PRIMARY_COLOR', AUI_PRIMARY_COLOR_ORIGINAL); |
|
| 130 | - if (!defined('AUI_SECONDARY_COLOR')) define('AUI_SECONDARY_COLOR', AUI_SECONDARY_COLOR_ORIGINAL); |
|
| 129 | + if (!defined('AUI_PRIMARY_COLOR')) { |
|
| 130 | + define('AUI_PRIMARY_COLOR', AUI_PRIMARY_COLOR_ORIGINAL); |
|
| 131 | + } |
|
| 132 | + if (!defined('AUI_SECONDARY_COLOR')) { |
|
| 133 | + define('AUI_SECONDARY_COLOR', AUI_SECONDARY_COLOR_ORIGINAL); |
|
| 134 | + } |
|
| 131 | 135 | } |
| 132 | 136 | |
| 133 | 137 | /** |
@@ -822,12 +826,12 @@ discard block |
||
| 822 | 826 | is_admin() ? wp_enqueue_script( 'bootstrap-js-bundle', '', null, null, true ) : wp_enqueue_script( 'bootstrap-js-bundle'); |
| 823 | 827 | $script = $this->inline_script(); |
| 824 | 828 | wp_add_inline_script( 'bootstrap-js-bundle', $script ); |
| 825 | - }elseif($this->settings[$js_setting]=='popper'){ |
|
| 829 | + } elseif($this->settings[$js_setting]=='popper'){ |
|
| 826 | 830 | $url = $this->url.'assets/js/popper.min.js'; |
| 827 | 831 | wp_register_script( 'bootstrap-js-popper', $url, array('select2','jquery'), $this->latest ); |
| 828 | 832 | wp_enqueue_script( 'bootstrap-js-popper' ); |
| 829 | 833 | $load_inline = true; |
| 830 | - }else{ |
|
| 834 | + } else{ |
|
| 831 | 835 | $load_inline = true; |
| 832 | 836 | } |
| 833 | 837 | |
@@ -80,10 +80,10 @@ discard block |
||
| 80 | 80 | if($type=='file' ){ |
| 81 | 81 | $label_after = true; // if type file we need the label after |
| 82 | 82 | $args['class'] .= ' custom-file-input '; |
| 83 | - }elseif($type=='checkbox'){ |
|
| 83 | + } elseif($type=='checkbox'){ |
|
| 84 | 84 | $label_after = true; // if type file we need the label after |
| 85 | 85 | $args['class'] .= ' custom-control-input '; |
| 86 | - }elseif($type=='datepicker' || $type=='timepicker'){ |
|
| 86 | + } elseif($type=='datepicker' || $type=='timepicker'){ |
|
| 87 | 87 | $type = 'text'; |
| 88 | 88 | //$args['class'] .= ' aui-flatpickr bg-initial '; |
| 89 | 89 | $args['class'] .= ' bg-initial '; |
@@ -167,8 +167,7 @@ discard block |
||
| 167 | 167 | |
| 168 | 168 | // label |
| 169 | 169 | if(!empty($args['label'])){ |
| 170 | - if($type == 'file'){$label_args['class'] .= 'custom-file-label';} |
|
| 171 | - elseif($type == 'checkbox'){$label_args['class'] .= 'custom-control-label';} |
|
| 170 | + if($type == 'file'){$label_args['class'] .= 'custom-file-label';} elseif($type == 'checkbox'){$label_args['class'] .= 'custom-control-label';} |
|
| 172 | 171 | $label = self::label( $label_args, $type ); |
| 173 | 172 | } |
| 174 | 173 | |
@@ -189,7 +188,7 @@ discard block |
||
| 189 | 188 | 'content' => $output, |
| 190 | 189 | 'class' => 'form-group custom-file' |
| 191 | 190 | ) ); |
| 192 | - }elseif($type == 'checkbox'){ |
|
| 191 | + } elseif($type == 'checkbox'){ |
|
| 193 | 192 | $wrap_class = $args['switch'] ? 'custom-switch' : 'custom-checkbox'; |
| 194 | 193 | $output = self::wrap( array( |
| 195 | 194 | 'content' => $output, |
@@ -199,7 +198,7 @@ discard block |
||
| 199 | 198 | if($args['label_type']=='horizontal'){ |
| 200 | 199 | $output = '<div class="col-sm-2 col-form-label"></div><div class="col-sm-10">' . $output . '</div>'; |
| 201 | 200 | } |
| 202 | - }elseif($type == 'password' && $args['password_toggle'] && !$args['input_group_right']){ |
|
| 201 | + } elseif($type == 'password' && $args['password_toggle'] && !$args['input_group_right']){ |
|
| 203 | 202 | |
| 204 | 203 | |
| 205 | 204 | // allow password field to toggle view |
@@ -325,7 +324,7 @@ discard block |
||
| 325 | 324 | |
| 326 | 325 | // label |
| 327 | 326 | if(!empty($args['label']) && is_array($args['label'])){ |
| 328 | - }elseif(!empty($args['label']) && !$label_after){ |
|
| 327 | + } elseif(!empty($args['label']) && !$label_after){ |
|
| 329 | 328 | $label_args = array( |
| 330 | 329 | 'title'=> $args['label'], |
| 331 | 330 | 'for'=> $args['id'], |
@@ -360,7 +359,7 @@ discard block |
||
| 360 | 359 | |
| 361 | 360 | wp_editor( $content, $editor_id, $settings ); |
| 362 | 361 | $output .= ob_get_clean(); |
| 363 | - }else{ |
|
| 362 | + } else{ |
|
| 364 | 363 | |
| 365 | 364 | // open |
| 366 | 365 | $output .= '<textarea '; |
@@ -483,7 +482,7 @@ discard block |
||
| 483 | 482 | // maybe hide labels //@todo set a global option for visibility class |
| 484 | 483 | if($type == 'file' || $type == 'checkbox' || $type == 'radio' || !empty($args['label_type']) ){ |
| 485 | 484 | $class = $args['class']; |
| 486 | - }else{ |
|
| 485 | + } else{ |
|
| 487 | 486 | $class = 'sr-only '.$args['class']; |
| 488 | 487 | } |
| 489 | 488 | |
@@ -594,7 +593,7 @@ discard block |
||
| 594 | 593 | $output .= '</'.sanitize_html_class($args['type']).'>'; |
| 595 | 594 | |
| 596 | 595 | |
| 597 | - }else{ |
|
| 596 | + } else{ |
|
| 598 | 597 | $output = $args['content']; |
| 599 | 598 | } |
| 600 | 599 | |
@@ -657,7 +656,7 @@ discard block |
||
| 657 | 656 | if(!empty($args['select2'])){ |
| 658 | 657 | $args['class'] .= ' aui-select2'; |
| 659 | 658 | $is_select2 = true; |
| 660 | - }elseif( strpos($args['class'], 'aui-select2') !== false){ |
|
| 659 | + } elseif( strpos($args['class'], 'aui-select2') !== false){ |
|
| 661 | 660 | $is_select2 = true; |
| 662 | 661 | } |
| 663 | 662 | |
@@ -676,7 +675,7 @@ discard block |
||
| 676 | 675 | |
| 677 | 676 | // label |
| 678 | 677 | if(!empty($args['label']) && is_array($args['label'])){ |
| 679 | - }elseif(!empty($args['label']) && !$label_after){ |
|
| 678 | + } elseif(!empty($args['label']) && !$label_after){ |
|
| 680 | 679 | $label_args = array( |
| 681 | 680 | 'title'=> $args['label'], |
| 682 | 681 | 'for'=> $args['id'], |
@@ -751,7 +750,7 @@ discard block |
||
| 751 | 750 | // placeholder |
| 752 | 751 | if(isset($args['placeholder']) && '' != $args['placeholder'] && !$is_select2){ |
| 753 | 752 | $output .= '<option value="" disabled selected hidden>'.esc_attr($args['placeholder']).'</option>'; |
| 754 | - }elseif($is_select2 && !empty($args['placeholder'])){ |
|
| 753 | + } elseif($is_select2 && !empty($args['placeholder'])){ |
|
| 755 | 754 | $output .= "<option></option>"; // select2 needs an empty select to fill the placeholder |
| 756 | 755 | } |
| 757 | 756 | |
@@ -760,7 +759,7 @@ discard block |
||
| 760 | 759 | |
| 761 | 760 | if(!is_array($args['options'])){ |
| 762 | 761 | $output .= $args['options']; // not the preferred way but an option |
| 763 | - }else{ |
|
| 762 | + } else{ |
|
| 764 | 763 | foreach($args['options'] as $val => $name){ |
| 765 | 764 | $selected = ''; |
| 766 | 765 | if(is_array($name)){ |
@@ -779,7 +778,7 @@ discard block |
||
| 779 | 778 | |
| 780 | 779 | $output .= '<option value="' . esc_attr($option_value) . '" ' . $selected . '>' . $option_label . '</option>'; |
| 781 | 780 | } |
| 782 | - }else{ |
|
| 781 | + } else{ |
|
| 783 | 782 | if(!empty($args['value'])){ |
| 784 | 783 | if(is_array($args['value'])){ |
| 785 | 784 | $selected = in_array($val,$args['value']) ? 'selected="selected"' : ''; |
@@ -1002,7 +1001,7 @@ discard block |
||
| 1002 | 1001 | |
| 1003 | 1002 | // label |
| 1004 | 1003 | if(!empty($args['label']) && is_array($args['label'])){ |
| 1005 | - }elseif(!empty($args['label'])){ |
|
| 1004 | + } elseif(!empty($args['label'])){ |
|
| 1006 | 1005 | $output .= self::label(array('title'=>$args['label'],'for'=>$args['id'].$count,'class'=>'form-check-label'),'radio'); |
| 1007 | 1006 | } |
| 1008 | 1007 | |
@@ -158,7 +158,7 @@ |
||
| 158 | 158 | $this->set_id( $invoice_id ); |
| 159 | 159 | } elseif ( is_string( $invoice ) && $invoice_id = self::get_invoice_id_by_field( $invoice, 'transaction_id' ) ) { |
| 160 | 160 | $this->set_id( $invoice_id ); |
| 161 | - }else { |
|
| 161 | + } else { |
|
| 162 | 162 | $this->set_object_read( true ); |
| 163 | 163 | } |
| 164 | 164 | |
@@ -179,8 +179,9 @@ discard block |
||
| 179 | 179 | |
| 180 | 180 | // Setup possible parts |
| 181 | 181 | $templates = array(); |
| 182 | - if ( isset( $name ) ) |
|
| 183 | - $templates[] = $slug . '-' . $name . '.php'; |
|
| 182 | + if ( isset( $name ) ) { |
|
| 183 | + $templates[] = $slug . '-' . $name . '.php'; |
|
| 184 | + } |
|
| 184 | 185 | $templates[] = $slug . '.php'; |
| 185 | 186 | |
| 186 | 187 | // Allow template parts to be filtered |
@@ -198,8 +199,9 @@ discard block |
||
| 198 | 199 | foreach ( (array)$template_names as $template_name ) { |
| 199 | 200 | |
| 200 | 201 | // Continue if template is empty |
| 201 | - if ( empty( $template_name ) ) |
|
| 202 | - continue; |
|
| 202 | + if ( empty( $template_name ) ) { |
|
| 203 | + continue; |
|
| 204 | + } |
|
| 203 | 205 | |
| 204 | 206 | // Trim off any slashes from the template name |
| 205 | 207 | $template_name = ltrim( $template_name, '/' ); |
@@ -218,8 +220,9 @@ discard block |
||
| 218 | 220 | } |
| 219 | 221 | } |
| 220 | 222 | |
| 221 | - if ( ( true == $load ) && ! empty( $located ) ) |
|
| 222 | - load_template( $located, $require_once ); |
|
| 223 | + if ( ( true == $load ) && ! empty( $located ) ) { |
|
| 224 | + load_template( $located, $require_once ); |
|
| 225 | + } |
|
| 223 | 226 | |
| 224 | 227 | return $located; |
| 225 | 228 | } |
@@ -256,8 +256,9 @@ |
||
| 256 | 256 | } |
| 257 | 257 | |
| 258 | 258 | function wpinv_cart_needs_tax_address_fields() { |
| 259 | - if( !wpinv_is_cart_taxed() ) |
|
| 260 | - return false; |
|
| 259 | + if( !wpinv_is_cart_taxed() ) { |
|
| 260 | + return false; |
|
| 261 | + } |
|
| 261 | 262 | |
| 262 | 263 | return ! did_action( 'wpinv_after_cc_fields', 'wpinv_default_cc_address_fields' ); |
| 263 | 264 | } |
@@ -661,7 +661,7 @@ discard block |
||
| 661 | 661 | <?php |
| 662 | 662 | if(! empty( $insert_shortcode_function )){ |
| 663 | 663 | echo $insert_shortcode_function; |
| 664 | - }else{ |
|
| 664 | + } else{ |
|
| 665 | 665 | |
| 666 | 666 | /** |
| 667 | 667 | * Function for super duper insert shortcode. |
@@ -1647,7 +1647,7 @@ discard block |
||
| 1647 | 1647 | var prev_attributes = []; |
| 1648 | 1648 | |
| 1649 | 1649 | var term_query_type = ''; |
| 1650 | - var post_type_rest_slugs = <?php if(! empty( $this->arguments ) && isset($this->arguments['post_type']['onchange_rest']['values'])){echo "[".json_encode($this->arguments['post_type']['onchange_rest']['values'])."]";}else{echo "[]";} ?>; |
|
| 1650 | + var post_type_rest_slugs = <?php if(! empty( $this->arguments ) && isset($this->arguments['post_type']['onchange_rest']['values'])){echo "[".json_encode($this->arguments['post_type']['onchange_rest']['values'])."]";} else{echo "[]";} ?>; |
|
| 1651 | 1651 | const taxonomies_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}]; |
| 1652 | 1652 | const sort_by_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}]; |
| 1653 | 1653 | |
@@ -1784,7 +1784,7 @@ discard block |
||
| 1784 | 1784 | |
| 1785 | 1785 | // taxonomies |
| 1786 | 1786 | if( $value && 'post_type' in prev_attributes[props.id] && 'category' in prev_attributes[props.id] && run ){ |
| 1787 | - wp.apiFetch({path: "<?php if(isset($this->arguments['post_type']['onchange_rest']['path'])){echo $this->arguments['post_type']['onchange_rest']['path'];}else{'/wp/v2/"+$value+"/categories';} ?>"}).then(terms => { |
|
| 1787 | + wp.apiFetch({path: "<?php if(isset($this->arguments['post_type']['onchange_rest']['path'])){echo $this->arguments['post_type']['onchange_rest']['path'];} else{'/wp/v2/"+$value+"/categories';} ?>"}).then(terms => { |
|
| 1788 | 1788 | while (taxonomies_<?php echo str_replace("-","_", $this->id);?>.length) { |
| 1789 | 1789 | taxonomies_<?php echo str_replace("-","_", $this->id);?>.pop(); |
| 1790 | 1790 | } |
@@ -1963,7 +1963,7 @@ discard block |
||
| 1963 | 1963 | $panel_count ++; |
| 1964 | 1964 | |
| 1965 | 1965 | } |
| 1966 | - }else { |
|
| 1966 | + } else { |
|
| 1967 | 1967 | ?> |
| 1968 | 1968 | el(wp.components.PanelBody, { |
| 1969 | 1969 | title: '<?php esc_attr_e( "Settings" ); ?>', |
@@ -1989,7 +1989,7 @@ discard block |
||
| 1989 | 1989 | // If the user sets block-output array then build it |
| 1990 | 1990 | if ( ! empty( $this->options['block-output'] ) ) { |
| 1991 | 1991 | $this->block_element( $this->options['block-output'] ); |
| 1992 | - }else{ |
|
| 1992 | + } else{ |
|
| 1993 | 1993 | // if no block-output is set then we try and get the shortcode html output via ajax. |
| 1994 | 1994 | ?> |
| 1995 | 1995 | el('div', { |
@@ -2059,7 +2059,7 @@ discard block |
||
| 2059 | 2059 | ?> |
| 2060 | 2060 | return content; |
| 2061 | 2061 | <?php |
| 2062 | - }else{ |
|
| 2062 | + } else{ |
|
| 2063 | 2063 | ?> |
| 2064 | 2064 | var block_wrap = 'div'; |
| 2065 | 2065 | if (attr.hasOwnProperty("block_wrap")) { |
@@ -2130,7 +2130,7 @@ discard block |
||
| 2130 | 2130 | |
| 2131 | 2131 | <?php |
| 2132 | 2132 | if(false){?></script><?php } |
| 2133 | - }elseif(!empty($args['row']['close'])){ |
|
| 2133 | + } elseif(!empty($args['row']['close'])){ |
|
| 2134 | 2134 | if(false){?><script><?php }?> |
| 2135 | 2135 | el( |
| 2136 | 2136 | 'div', |
@@ -2139,7 +2139,7 @@ discard block |
||
| 2139 | 2139 | }, |
| 2140 | 2140 | <?php |
| 2141 | 2141 | if(false){?></script><?php } |
| 2142 | - }else{ |
|
| 2142 | + } else{ |
|
| 2143 | 2143 | if(false){?><script><?php }?> |
| 2144 | 2144 | el( |
| 2145 | 2145 | 'div', |
@@ -2256,8 +2256,7 @@ discard block |
||
| 2256 | 2256 | $key: value |
| 2257 | 2257 | }); |
| 2258 | 2258 | },"; |
| 2259 | - } |
|
| 2260 | - elseif ( $args['type'] == 'checkbox' ) { |
|
| 2259 | + } elseif ( $args['type'] == 'checkbox' ) { |
|
| 2261 | 2260 | $type = 'CheckboxControl'; |
| 2262 | 2261 | $extra .= "checked: props.attributes.$key,"; |
| 2263 | 2262 | $onchange = "props.setAttributes({ $key: ! props.attributes.$key } )"; |
@@ -2268,9 +2267,9 @@ discard block |
||
| 2268 | 2267 | |
| 2269 | 2268 | if($args['name'] == 'category' && !empty($args['post_type_linked'])){ |
| 2270 | 2269 | $options .= "options: taxonomies_".str_replace("-","_", $this->id).","; |
| 2271 | - }elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){ |
|
| 2270 | + } elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){ |
|
| 2272 | 2271 | $options .= "options: sort_by_".str_replace("-","_", $this->id).","; |
| 2273 | - }else { |
|
| 2272 | + } else { |
|
| 2274 | 2273 | |
| 2275 | 2274 | if ( ! empty( $args['options'] ) ) { |
| 2276 | 2275 | $options .= "options: ["; |
@@ -2285,7 +2284,7 @@ discard block |
||
| 2285 | 2284 | } |
| 2286 | 2285 | } elseif ( $args['type'] == 'alignment' ) { |
| 2287 | 2286 | $type = 'AlignmentToolbar'; // @todo this does not seem to work but cant find a example |
| 2288 | - }elseif ( $args['type'] == 'margins' ) { |
|
| 2287 | + } elseif ( $args['type'] == 'margins' ) { |
|
| 2289 | 2288 | |
| 2290 | 2289 | } else { |
| 2291 | 2290 | return;// if we have not implemented the control then don't break the JS. |
@@ -2698,7 +2697,7 @@ discard block |
||
| 2698 | 2697 | |
| 2699 | 2698 | if(empty($instance['widget_title_tag'])){ |
| 2700 | 2699 | $output = $args['before_title'] . $title . $args['after_title']; |
| 2701 | - }else{ |
|
| 2700 | + } else{ |
|
| 2702 | 2701 | $title_tag = esc_attr( $instance['widget_title_tag'] ); |
| 2703 | 2702 | |
| 2704 | 2703 | // classes |
@@ -2803,9 +2802,9 @@ discard block |
||
| 2803 | 2802 | <div class='row <?php if(!empty($args['row']['class'])){ echo esc_attr($args['row']['class']);} ?>'> |
| 2804 | 2803 | <div class='col pr-2'> |
| 2805 | 2804 | <?php |
| 2806 | - }elseif(!empty($args['row']['close'])){ |
|
| 2805 | + } elseif(!empty($args['row']['close'])){ |
|
| 2807 | 2806 | echo "<div class='col pl-0'>"; |
| 2808 | - }else{ |
|
| 2807 | + } else{ |
|
| 2809 | 2808 | echo "<div class='col pl-0 pr-2'>"; |
| 2810 | 2809 | } |
| 2811 | 2810 | } |
@@ -3023,11 +3022,11 @@ discard block |
||
| 3023 | 3022 | public function get_widget_icon($icon = 'box-top', $title = ''){ |
| 3024 | 3023 | if($icon=='box-top'){ |
| 3025 | 3024 | return '<svg title="'.esc_attr($title).'" width="20px" height="20px" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" role="img" aria-hidden="true" focusable="false"><rect x="2.714" y="5.492" width="1.048" height="9.017" fill="#555D66"></rect><rect x="16.265" y="5.498" width="1.023" height="9.003" fill="#555D66"></rect><rect x="5.518" y="2.186" width="8.964" height="2.482" fill="#272B2F"></rect><rect x="5.487" y="16.261" width="9.026" height="1.037" fill="#555D66"></rect></svg>'; |
| 3026 | - }elseif($icon=='box-right'){ |
|
| 3025 | + } elseif($icon=='box-right'){ |
|
| 3027 | 3026 | return '<svg title="'.esc_attr($title).'" width="20px" height="20px" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" role="img" aria-hidden="true" focusable="false"><rect x="2.714" y="5.492" width="1.046" height="9.017" fill="#555D66"></rect><rect x="15.244" y="5.498" width="2.518" height="9.003" fill="#272B2F"></rect><rect x="5.518" y="2.719" width="8.964" height="0.954" fill="#555D66"></rect><rect x="5.487" y="16.308" width="9.026" height="0.99" fill="#555D66"></rect></svg>'; |
| 3028 | - }elseif($icon=='box-bottom'){ |
|
| 3027 | + } elseif($icon=='box-bottom'){ |
|
| 3029 | 3028 | return '<svg title="'.esc_attr($title).'" width="20px" height="20px" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" role="img" aria-hidden="true" focusable="false"><rect x="2.714" y="5.492" width="1" height="9.017" fill="#555D66"></rect><rect x="16.261" y="5.498" width="1.027" height="9.003" fill="#555D66"></rect><rect x="5.518" y="2.719" width="8.964" height="0.968" fill="#555D66"></rect><rect x="5.487" y="15.28" width="9.026" height="2.499" fill="#272B2F"></rect></svg>'; |
| 3030 | - }elseif($icon=='box-left'){ |
|
| 3029 | + } elseif($icon=='box-left'){ |
|
| 3031 | 3030 | return '<svg title="'.esc_attr($title).'" width="20px" height="20px" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" role="img" aria-hidden="true" focusable="false"><rect x="2.202" y="5.492" width="2.503" height="9.017" fill="#272B2F"></rect><rect x="16.276" y="5.498" width="1.012" height="9.003" fill="#555D66"></rect><rect x="5.518" y="2.719" width="8.964" height="0.966" fill="#555D66"></rect><rect x="5.487" y="16.303" width="9.026" height="0.995" fill="#555D66"></rect></svg>'; |
| 3032 | 3031 | } |
| 3033 | 3032 | } |
@@ -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 | $email_footer = apply_filters( 'wpinv_email_footer_text', wpinv_get_option( 'email_footer_text', get_bloginfo( 'name', 'display' ) . ' - ' . __( 'Powered by GetPaid', 'invoicing' ) ) ); |
| 7 | 8 | $email_footer = $email_footer ? wpautop( wp_kses_post( wptexturize( $email_footer ) ) ) : ''; |