Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Commit

Permalink
update dependencies, version number, add filter
Browse files Browse the repository at this point in the history
  • Loading branch information
bdolor committed Apr 9, 2019
1 parent 0eb9721 commit d9e01d8
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 45 deletions.
7 changes: 5 additions & 2 deletions composer.json
Expand Up @@ -2,7 +2,7 @@
"name": "bccampus/pressbooks-mpdf",
"description": "Open source PDF generation for Pressbooks via the mPDF library.",
"type": "wordpress-plugin",
"version": "3.2.4",
"version": "3.2.5",
"homepage": "https://github.com/bccampus/pressbooks-mpdf",
"license": "GPL-2.0+",
"authors": [
Expand All @@ -22,7 +22,7 @@
},
"require": {
"php": ">=7.1",
"mpdf/mpdf": "^7.1.7"
"mpdf/mpdf": "^7.1.9"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
Expand All @@ -35,6 +35,9 @@
],
"standards": [
"vendor/bin/phpcs --standard=phpcs.ruleset.xml ."
],
"standards-beautify": [
"vendor/bin/phpcbf --standard=phpcs.ruleset.xml ."
]
}
}
84 changes: 44 additions & 40 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions hooks-admin.php
Expand Up @@ -59,3 +59,14 @@
return $scss;
}
);

add_filter(
'pb_export_module_classnames', function ( $formats ) {

if ( ! isset( $formats['\BCcampus\Modules\Export\Mpdf\Pdf'] ) ) {
$formats['\BCcampus\Modules\Export\Mpdf\Pdf'] = __( 'mPDF', 'pressbooks-mpdf' );
}

return $formats;
}
);
5 changes: 3 additions & 2 deletions pressbooks-mpdf.php
Expand Up @@ -6,7 +6,7 @@
*
* Plugin Name: mPDF for Pressbooks
* Description: Open source PDF generation for Pressbooks via the mPDF library.
* Version: 3.2.4
* Version: 3.2.5
* Author: Brad Payne
* Author URI: https://github.com/bdolor
* Original Author: BookOven Inc.
Expand All @@ -15,8 +15,9 @@
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Network: True
* Tags: pressbooks, OER, publishing, PDF, export
* Pressbooks tested up to: 5.6.3
* Pressbooks tested up to: 5.7.0
*/

/**
*
* This plugin is forked from Pressbooks mPDF
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Expand Up @@ -4,7 +4,7 @@ Donation link: https://github.com/BCcampus/pressbooks-mpdf
Tags: pressbooks, textbook, mPDF
Requires at least: 4.9.8
Tested up to: 5.0.2
Stable tag: 3.2.4
Stable tag: 3.2.5
Requires PHP: 7.1
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -61,6 +61,9 @@ It is based on FPDF and HTML2FPDF with a number of enhancements.

See: https://github.com/BCcampus/pressbooks-mpdf/commits/master for more detail

= 3.2.5 (2019/04/09) =
*

= 3.2.4 (2018/12/19) =
* update mPDF to v7.1.7
* compatibility with PB v5.6.3
Expand Down

0 comments on commit d9e01d8

Please sign in to comment.