Skip to content
Permalink
Browse files

prevent direct access to some PHP files

  • Loading branch information...
Spreeuw committed Feb 13, 2019
1 parent 6c99da0 commit 983793f870740c164687baad2e11b8ccac45a23f
@@ -1,4 +1,6 @@
<?php
defined( 'ABSPATH' ) or exit;
/**
* mb_string compatibility - something's better than nothing!
* Taken from dompdf 0.6
@@ -1,6 +1,8 @@
<?php
use WPO\WC\PDF_Invoices\Compatibility\WC_Core as WCX;
defined( 'ABSPATH' ) or exit;
// load date/time functions for older WC versions
if ( WCX::is_wc_version_lt_3_0() ) {
if ( !function_exists( 'wc_timezone_offset' ) ) {
@@ -1,3 +1,4 @@
<?php defined( 'ABSPATH' ) or exit; ?>
<?php
$invoice_settings_url = add_query_arg( array(
'tab' => 'documents',
@@ -1,3 +1,4 @@
<?php defined( 'ABSPATH' ) or exit; ?>
<div class="wpo-step-description">
<h2><?php _e( 'Attach too...', 'woocommerce-pdf-invoices-packing-slips' ); ?></h2>
<p><?php _e( 'Select to which emails you would like to attach your invoice.', 'woocommerce-pdf-invoices-packing-slips' ); ?></p>
@@ -1,3 +1,4 @@
<?php defined( 'ABSPATH' ) or exit; ?>
<div class="wpo-step-description">
<h2><?php _e( 'Display options', 'woocommerce-pdf-invoices-packing-slips' ); ?></h2>
<p><?php _e( 'Select some additional display options for your invoice.', 'woocommerce-pdf-invoices-packing-slips' ); ?></p>
@@ -1,3 +1,4 @@
<?php defined( 'ABSPATH' ) or exit; ?>
<div class="wpo-step-description wpo-final">
<h1><?php _e( 'You are good to go!' , 'woocommerce-pdf-invoices-packing-slips' ); ?></h1>
<p><?php _e( 'If you have any questions please have a look at our documentation:', 'woocommerce-pdf-invoices-packing-slips' ); ?><br>
@@ -1,3 +1,4 @@
<?php defined( 'ABSPATH' ) or exit; ?>
<div class="wpo-step-description">
<h2><?php _e( 'Your logo' , 'woocommerce-pdf-invoices-packing-slips' ); ?></h2>
<p><?php _e( 'Set the header image that will display on your invoice.' , 'woocommerce-pdf-invoices-packing-slips' ); ?></p>
@@ -1,3 +1,4 @@
<?php defined( 'ABSPATH' ) or exit; ?>
<div class="wpo-step-description">
<h2><?php _e( 'Paper format', 'woocommerce-pdf-invoices-packing-slips' ); ?></h2>
<p><?php _e( 'Select the paper format for your invoice.', 'woocommerce-pdf-invoices-packing-slips' ); ?></p>
@@ -1,3 +1,4 @@
<?php defined( 'ABSPATH' ) or exit; ?>
<div class="wpo-step-description">
<h2><?php _e( 'Enter your shop name', 'woocommerce-pdf-invoices-packing-slips' ); ?></h2>
<p><?php _e( 'Lets quickly setup your invoice. Please enter the name and address of your shop in the fields on the right.', 'woocommerce-pdf-invoices-packing-slips' ); ?></p>
@@ -1,3 +1,4 @@
<?php defined( 'ABSPATH' ) or exit; ?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('.extensions .more').hide();
@@ -1,3 +1,4 @@
<?php defined( 'ABSPATH' ) or exit; ?>
<script type="text/javascript">
jQuery( function( $ ) {
$("#footer-thankyou").html("If you like <strong>WooCommerce PDF Invoices & Packing Slips</strong> please leave us a <a href='https://wordpress.org/support/view/plugin-reviews/woocommerce-pdf-invoices-packing-slips?rate=5#postform'>★★★★★</a> rating. A huge thank you in advance!");
@@ -1,3 +1,4 @@
<?php defined( 'ABSPATH' ) or exit; ?>
<style type="text/css">
.wpo-wcpdf-work-at-wpovernight {
background-color: #f6f6f6;

0 comments on commit 983793f

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.