Plugin Directory

Changeset 1927900


Ignore:
Timestamp:
08/21/2018 10:18:04 AM (7 years ago)
Author:
rotativahq
Message:

Update to 1.2.2

Location:
rotativa
Files:
4 added
6 edited
3 copied

Legend:

Unmodified
Added
Removed
  • rotativa/tags/1.2.2/README.txt

    r1927865 r1927900  
    55Requires at least: 4.7
    66Tested up to: 4.9.8
    7 Stable tag: 1.2.1
     7Stable tag: 1.2.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5959== Changelog ==
    6060
     61= 1.2.2 =
     62* Fixed a bug where sweetalert2 wasn't loading on frontend.
     63
    6164= 1.2.1 =
    6265* Fixed a bug where shortcode wouldn't accept the ID attribute.
  • rotativa/tags/1.2.2/public/class-rotativa-public.php

    r1923278 r1927900  
    102102            'button_label' => esc_html__( 'Download PDF', 'rotativa' )
    103103        ] );
     104        $pdf_error = apply_filters( 'rotativa_pdf_error_fe', [
     105            'title' => esc_html__( 'Error!', 'rotativa' )
     106        ] );
    104107
    105108        wp_enqueue_script( $this->plugin_name . '-sweetalert2', plugin_dir_url( __FILE__ ) . 'js/sweetalert2.min.js', array( 'jquery' ), '7.26.11', true );
     
    112115                'generate_pdf'   => esc_html__( 'Generate PDF', 'rotativa' ),
    113116                'generating_pdf' => esc_html__( 'Generating...', 'rotativa' ),
    114                 'pdf_success' => $pdf_success
     117                'pdf_success'    => $pdf_success,
     118                'pdf_error'      => $pdf_error
    115119            ]
    116120        );
  • rotativa/tags/1.2.2/public/js/rotativa-public.js

    r1885915 r1927900  
    2424          var data = JSON.parse( response.data );
    2525
    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          }
    3244        }
    3345      },
  • rotativa/tags/1.2.2/rotativa.php

    r1927865 r1927900  
    1717 * Plugin URI:        https://wordpress.org/plugins/search/rotativa/
    1818 * Description:       Convert HTML to PDF in the cloud in a extremely easy and fast way.
    19  * Version:           1.2.1
     19 * Version:           1.2.2
    2020 * Author:            RotativaHQ
    2121 * Author URI:        https://rotativahq.com/
     
    3131}
    3232
    33 define( 'ROTATIVA_VERSION', '1.2.1' );
     33define( 'ROTATIVA_VERSION', '1.2.2' );
    3434
    3535/**
  • rotativa/trunk/README.txt

    r1927865 r1927900  
    55Requires at least: 4.7
    66Tested up to: 4.9.8
    7 Stable tag: 1.2.1
     7Stable tag: 1.2.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5959== Changelog ==
    6060
     61= 1.2.2 =
     62* Fixed a bug where sweetalert2 wasn't loading on frontend.
     63
    6164= 1.2.1 =
    6265* Fixed a bug where shortcode wouldn't accept the ID attribute.
  • rotativa/trunk/public/class-rotativa-public.php

    r1923278 r1927900  
    102102            'button_label' => esc_html__( 'Download PDF', 'rotativa' )
    103103        ] );
     104        $pdf_error = apply_filters( 'rotativa_pdf_error_fe', [
     105            'title' => esc_html__( 'Error!', 'rotativa' )
     106        ] );
    104107
    105108        wp_enqueue_script( $this->plugin_name . '-sweetalert2', plugin_dir_url( __FILE__ ) . 'js/sweetalert2.min.js', array( 'jquery' ), '7.26.11', true );
     
    112115                'generate_pdf'   => esc_html__( 'Generate PDF', 'rotativa' ),
    113116                'generating_pdf' => esc_html__( 'Generating...', 'rotativa' ),
    114                 'pdf_success' => $pdf_success
     117                'pdf_success'    => $pdf_success,
     118                'pdf_error'      => $pdf_error
    115119            ]
    116120        );
  • rotativa/trunk/public/js/rotativa-public.js

    r1885915 r1927900  
    2424          var data = JSON.parse( response.data );
    2525
    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          }
    3244        }
    3345      },
  • rotativa/trunk/rotativa.php

    r1927865 r1927900  
    1717 * Plugin URI:        https://wordpress.org/plugins/search/rotativa/
    1818 * Description:       Convert HTML to PDF in the cloud in a extremely easy and fast way.
    19  * Version:           1.2.1
     19 * Version:           1.2.2
    2020 * Author:            RotativaHQ
    2121 * Author URI:        https://rotativahq.com/
     
    3131}
    3232
    33 define( 'ROTATIVA_VERSION', '1.2.1' );
     33define( 'ROTATIVA_VERSION', '1.2.2' );
    3434
    3535/**
Note: See TracChangeset for help on using the changeset viewer.