+ |
---|
diff --git a/.github/workflows/generate-translations.yml b/.github/workflows/generate-translations.yml
new file mode 100644
index 0000000..58e965d
--- /dev/null
+++ b/.github/workflows/generate-translations.yml
@@ -0,0 +1,18 @@
+name: Generate Translations
+on: workflow_dispatch
+jobs:
+ generate-translations:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: WordPress POT/PO/MO Generator
+ uses: strangerstudios/action-wp-pot-po-mo-generator@main
+ with:
+ generate_pot: 1
+ generate_po: 1
+ generate_mo: 1
+ generate_lang_packs: 1
+ merge_changes: 1
+ headers: '{"Report-Msgid-Bugs-To":"info@strangerstudios.com","Last-Translator":"Stranger Studios Paid Memberships Pro, WooCommerce, and Easy Digital Downloads.', 'sitewide-sales' ), $allowed_html ), 'https://www.paidmembershipspro.com/?utm_source=sitewide-sales&utm_medium=about&utm_campaign=homepage', 'https://woocommerce.com', 'https://easydigitaldownloads.com' ); ?> Paid Memberships Pro, WooCommerce, and Easy Digital Downloads.', 'sitewide-sales' ), $allowed_html ), 'https://sitewidesales.com/modules/paid-memberships-pro/?utm_source=sitewide-sales&utm_medium=about&utm_campaign=module-pmpro', 'https://sitewidesales.com/modules/woocommerce/?utm_source=sitewide-sales&utm_medium=about&utm_campaign=module-wc', 'https://sitewidesales.com/modules/easy-digital-downloads/?utm_source=sitewide-sales&utm_medium=about&utm_campaign=module-edd' ); ?> custom module you can use to track performance with any other platforms you choose.', 'sitewide-sales' ), $allowed_html ), 'https://sitewidesales.com/modules/custom-module/?utm_source=sitewide-sales&utm_medium=about&utm_campaign=module-custom' ); ?>
\n";
+ echo 'Please open a support case and paste in the warnings/errors you see above this text to\n ';
+ echo 'Sitewide Sales support
\n';
+ echo str_repeat( "=", 75 ) . "
\n";
+ echo file_get_contents( $filename );
+ echo str_repeat( "=", 75 ) . "
\n";
+ }
+
+ //transmission
+ if ( ! empty( $headers ) ) {
+ //set the download size
+ $headers[] = "Content-Length: " . filesize( $filename );
+
+ //set headers
+ foreach ( $headers as $header ) {
+ header( $header . "\r\n" );
+ }
+
+ // disable compression for the duration of file download
+ if ( ini_get( 'zlib.output_compression' ) ) {
+ ini_set( 'zlib.output_compression', 'Off' );
+ }
+
+ if( function_exists( 'fpassthru' ) ) {
+ // use fpassthru to output the csv
+ $csv_fh = fopen( $filename, 'rb' );
+ fpassthru( $csv_fh );
+ fclose( $csv_fh );
+ } else {
+ // use readfile() if fpassthru() is disabled (like on Flywheel Hosted)
+ readfile( $filename );
+ }
+
+ // remove the temp file
+ unlink( $filename );
+ }
+
+ exit;
+}
diff --git a/classes/class-swsales-about.php b/classes/class-swsales-about.php
index 1116031..b1519e7 100644
--- a/classes/class-swsales-about.php
+++ b/classes/class-swsales-about.php
@@ -38,25 +38,12 @@ public static function show_about_page() { ?>
'strong' => array(),
'em' => array(), );
?>
-
-
-
-
-
-
-
-
-
-
-
- ' . wp_kses( __( 'Check out the Sitewide Sales documentation site for additional setup instructions, sample landing page and banner content, as well as developer documentation to further extend the templates, reporting, and integration options.', 'sitewide-sales' ), $allowed_html ) . '
+ |
---|