Changeset 1927900
- Timestamp:
- 08/21/2018 10:18:04 AM (7 years ago)
- Location:
- rotativa
- Files:
-
- 4 added
- 6 edited
- 3 copied
-
tags/1.2.2 (copied) (copied from rotativa/trunk)
-
tags/1.2.2/README.txt (copied) (copied from rotativa/trunk/README.txt) (2 diffs)
-
tags/1.2.2/public/class-rotativa-public.php (modified) (2 diffs)
-
tags/1.2.2/public/css/sweetalert2.min.css (added)
-
tags/1.2.2/public/js/rotativa-public.js (modified) (1 diff)
-
tags/1.2.2/public/js/sweetalert2.min.js (added)
-
tags/1.2.2/rotativa.php (copied) (copied from rotativa/trunk/rotativa.php) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/public/class-rotativa-public.php (modified) (2 diffs)
-
trunk/public/css/sweetalert2.min.css (added)
-
trunk/public/js/rotativa-public.js (modified) (1 diff)
-
trunk/public/js/sweetalert2.min.js (added)
-
trunk/rotativa.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rotativa/tags/1.2.2/README.txt
r1927865 r1927900 5 5 Requires at least: 4.7 6 6 Tested up to: 4.9.8 7 Stable tag: 1.2. 17 Stable tag: 1.2.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 59 59 == Changelog == 60 60 61 = 1.2.2 = 62 * Fixed a bug where sweetalert2 wasn't loading on frontend. 63 61 64 = 1.2.1 = 62 65 * Fixed a bug where shortcode wouldn't accept the ID attribute. -
rotativa/tags/1.2.2/public/class-rotativa-public.php
r1923278 r1927900 102 102 'button_label' => esc_html__( 'Download PDF', 'rotativa' ) 103 103 ] ); 104 $pdf_error = apply_filters( 'rotativa_pdf_error_fe', [ 105 'title' => esc_html__( 'Error!', 'rotativa' ) 106 ] ); 104 107 105 108 wp_enqueue_script( $this->plugin_name . '-sweetalert2', plugin_dir_url( __FILE__ ) . 'js/sweetalert2.min.js', array( 'jquery' ), '7.26.11', true ); … … 112 115 'generate_pdf' => esc_html__( 'Generate PDF', 'rotativa' ), 113 116 'generating_pdf' => esc_html__( 'Generating...', 'rotativa' ), 114 'pdf_success' => $pdf_success 117 'pdf_success' => $pdf_success, 118 'pdf_error' => $pdf_error 115 119 ] 116 120 ); -
rotativa/tags/1.2.2/public/js/rotativa-public.js
r1885915 r1927900 24 24 var data = JSON.parse( response.data ); 25 25 26 swal({ 27 title: rotativa.pdf_success.title, 28 type: 'success', 29 html: '<p>' + rotativa.pdf_success.description + '</p><p><a href="' + data.pdfUrl + '" class="button is-primary" download>' + rotativa.pdf_success.button_label + '</a></p>', 30 showConfirmButton: false 31 }); 26 if ( data.error ) { 27 28 swal({ 29 type: 'error', 30 title: rotativa.pdf_error.title, 31 text: data.error 32 }); 33 34 } else { 35 36 swal({ 37 title: rotativa.pdf_success.title, 38 type: 'success', 39 html: '<p>' + rotativa.pdf_success.description + '</p><p><a href="' + data.pdfUrl + '" class="button is-primary" download>' + rotativa.pdf_success.button_label + '</a></p>', 40 showConfirmButton: false 41 }); 42 43 } 32 44 } 33 45 }, -
rotativa/tags/1.2.2/rotativa.php
r1927865 r1927900 17 17 * Plugin URI: https://wordpress.org/plugins/search/rotativa/ 18 18 * Description: Convert HTML to PDF in the cloud in a extremely easy and fast way. 19 * Version: 1.2. 119 * Version: 1.2.2 20 20 * Author: RotativaHQ 21 21 * Author URI: https://rotativahq.com/ … … 31 31 } 32 32 33 define( 'ROTATIVA_VERSION', '1.2. 1' );33 define( 'ROTATIVA_VERSION', '1.2.2' ); 34 34 35 35 /** -
rotativa/trunk/README.txt
r1927865 r1927900 5 5 Requires at least: 4.7 6 6 Tested up to: 4.9.8 7 Stable tag: 1.2. 17 Stable tag: 1.2.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 59 59 == Changelog == 60 60 61 = 1.2.2 = 62 * Fixed a bug where sweetalert2 wasn't loading on frontend. 63 61 64 = 1.2.1 = 62 65 * Fixed a bug where shortcode wouldn't accept the ID attribute. -
rotativa/trunk/public/class-rotativa-public.php
r1923278 r1927900 102 102 'button_label' => esc_html__( 'Download PDF', 'rotativa' ) 103 103 ] ); 104 $pdf_error = apply_filters( 'rotativa_pdf_error_fe', [ 105 'title' => esc_html__( 'Error!', 'rotativa' ) 106 ] ); 104 107 105 108 wp_enqueue_script( $this->plugin_name . '-sweetalert2', plugin_dir_url( __FILE__ ) . 'js/sweetalert2.min.js', array( 'jquery' ), '7.26.11', true ); … … 112 115 'generate_pdf' => esc_html__( 'Generate PDF', 'rotativa' ), 113 116 'generating_pdf' => esc_html__( 'Generating...', 'rotativa' ), 114 'pdf_success' => $pdf_success 117 'pdf_success' => $pdf_success, 118 'pdf_error' => $pdf_error 115 119 ] 116 120 ); -
rotativa/trunk/public/js/rotativa-public.js
r1885915 r1927900 24 24 var data = JSON.parse( response.data ); 25 25 26 swal({ 27 title: rotativa.pdf_success.title, 28 type: 'success', 29 html: '<p>' + rotativa.pdf_success.description + '</p><p><a href="' + data.pdfUrl + '" class="button is-primary" download>' + rotativa.pdf_success.button_label + '</a></p>', 30 showConfirmButton: false 31 }); 26 if ( data.error ) { 27 28 swal({ 29 type: 'error', 30 title: rotativa.pdf_error.title, 31 text: data.error 32 }); 33 34 } else { 35 36 swal({ 37 title: rotativa.pdf_success.title, 38 type: 'success', 39 html: '<p>' + rotativa.pdf_success.description + '</p><p><a href="' + data.pdfUrl + '" class="button is-primary" download>' + rotativa.pdf_success.button_label + '</a></p>', 40 showConfirmButton: false 41 }); 42 43 } 32 44 } 33 45 }, -
rotativa/trunk/rotativa.php
r1927865 r1927900 17 17 * Plugin URI: https://wordpress.org/plugins/search/rotativa/ 18 18 * Description: Convert HTML to PDF in the cloud in a extremely easy and fast way. 19 * Version: 1.2. 119 * Version: 1.2.2 20 20 * Author: RotativaHQ 21 21 * Author URI: https://rotativahq.com/ … … 31 31 } 32 32 33 define( 'ROTATIVA_VERSION', '1.2. 1' );33 define( 'ROTATIVA_VERSION', '1.2.2' ); 34 34 35 35 /**
Note: See TracChangeset
for help on using the changeset viewer.