Plugin Directory

Changeset 3098357

Timestamp:
06/06/2024 06:59:49 AM (2 months ago)
Author:
them.es
Message:

updated trunk

Location:
billy
Files:
732 added
5 edited

Legend:

Unmodified
Added
Removed
  • billy/trunk/billy.php

    r3086547 r3098357  
    44 * Plugin URI: https://wordpress.org/plugins/billy
    55 * Description: A business-oriented billing suite powered by WordPress.
    6  * Version: 1.8.1
     6 * Version: 1.8.
    77 * Author: them.es
    88 * Author URI: https://them.es/plugins/billy
  • billy/trunk/inc/class-billy.php

    r3085971 r3098357  
    258258            $output_script = '<script>console.error( "The following [Billy] Invoices are missing required meta data: ' . implode( ', ', $debug ) . '", "\n", "Would you like to fix it? Please make sure that the latest invoice number is correct. Invoice numbers will be regenerated and updated in descending order. It is strongly advised to backup the database before clicking this link. ' . esc_url( admin_url( 'index.php?fix_invoices=true' ) ) . '" )</script>';
    259259        }
     260
     261
     262
     263
     264
     265
     266
     267
     268
     269
     270
     271
     272
     273
     274
    260275
    261276        return '<table class="widefat">
     
    271286                <tr>
    272287                    <td><strong>' . esc_html__( 'Taxes', 'billy' ) . '</strong></td>
    273                     <td>' . nl2br( get_theme_mod( 'taxrates' ) ) . '</td>
    274                 </tr>
     288                    <td>' . ( get_theme_mod( 'taxrates' ) ? nl2br( get_theme_mod( 'taxrates' ) ) : '-' ) . '</td>
     289                </tr>' .
     290                ( $latest_quotes ? '
    275291                <tr>
    276                     <td><strong>' . esc_html__( 'Current invoice number', 'billy' ) . '</strong></td>
    277                     <td><a href="' . esc_url( admin_url( 'edit.php?post_type=billy-invoice' ) ) . '">' . sprintf( esc_html__( '%1$s%2$03s', 'billy' ), get_theme_mod( 'invoice_number_prefix', '' ), get_theme_mod( 'invoice_number', '0' ) ) . '</a></td>
    278                 </tr>
     292                    <td><strong>' . esc_html__( 'Current invoice', 'billy' ) . '</strong></td>
     293                    <td><a href="' . esc_url( admin_url( 'edit.php?post_type=billy-invoice' ) ) . '">' . esc_html( self::get_invoicenumber( $latest_invoices[0]->ID ) ) . '</a></td>
     294                </tr>' : '' ) .
     295                ( $latest_invoices ?
     296                '<tr>
     297                    <td><strong>' . esc_html__( 'Current quote', 'billy' ) . '</strong></td>
     298                    <td><a href="' . esc_url( admin_url( 'edit.php?post_type=billy-quote' ) ) . '">' . esc_html( self::get_quotenumber( $latest_quotes[0]->ID ) ) . '</a></td>
     299                </tr>' : '' ) . '
    279300                <tr>
    280301                    <td>' . ( ! empty( $output_script ) ? '<span class="dashicons dashicons-warning" aria-hidden="true" title="' . esc_attr__( 'Problems detected. Please open the Web Console for more information!', 'billy' ) . '" style="color: red;"></span>' : '' ) . '</td>
     
    294315            <tbody>
    295316                <tr>
    296                     <td><p>' . ( class_exists( 'Billy_Pro' ) ? '<small>' . sprintf( __( 'Thank you for purchasing %s!', 'billy' ), '<strong>Billy Pro</strong> <span class="dashicons dashicons-smiley" aria-hidden="true"></span>' ) . '</small>' : '<strong><a href="' . esc_url( self::$billy_url ) . '">' . sprintf( __( '%1$s %2$s', 'billy' ), __( 'Get the <u>Pro</u> version', 'billy' ), '<span class="dashicons dashicons-external" aria-hidden="true"></span>' ) . '</a></strong><br><small>' . __( 'Premium add-on with WooCommerce integration, Contacts, Address Book, QR code payments, Stats & Charts, Share links, and more.', 'billy' ) . '</small></p>' ) . '<hr><p><strong><a href="' . esc_url( 'https://wordpress.org/support/plugin/' . self::$plugin_slug . '/reviews/?rate=5#new-post' ) . '">' . sprintf( __( '%1$s %2$s', 'billy' ), __( 'Please rate this Plugin', 'billy' ), ' <span class="dashicons dashicons-external" aria-hidden="true"></span>' ) . '</a></strong><br><span class="dashicons dashicons-star-filled" aria-hidden="true"></span><span class="dashicons dashicons-star-filled" aria-hidden="true"></span><span class="dashicons dashicons-star-filled" aria-hidden="true"></span><span class="dashicons dashicons-star-filled" aria-hidden="true"></span><span class="dashicons dashicons-star-filled" aria-hidden="true"></span></p></td>
     317                    <td><p>' . ( class_exists( 'Billy_Pro' ) ? '<small>' . sprintf( __( 'Thank you for purchasing %s!', 'billy' ), '<strong>Billy Pro</strong> <span class="dashicons dashicons-smiley" aria-hidden="true"></span>' ) . '</small>' : '<strong><a href="' . esc_url( self::$billy_url ) . '">' . sprintf( __( '%1$s %2$s', 'billy' ), __( 'Get the <u>Pro</u> version', 'billy' ), '<span class="dashicons dashicons-external" aria-hidden="true"></span>' ) . '</a></strong><br><small>' . __( 'Premium add-on with WooCommerce integration, Contacts, Address Book, QR code payments, Stats & Charts, Share links, and more.', 'billy' ) . '</small></p>' ) . '<hr><p><strong><a href="' . esc_url( 'https://wordpress.org/support/plugin/' . self::$plugin_slug . '/reviews/?rate=5#new-post' ) . '">' . sprintf( __( '%1$s %2$s', 'billy' ), __( 'Please rate this Plugin', 'billy' ), ' <span class="dashicons dashicons-external" aria-hidden="true"></span>' ) . '</a></strong><br><span class="dashicons dashicons-star-filled" aria-hidden="true"></span><span class="dashicons dashicons-star-filled" aria-hidden="true"></span><span class="dashicons dashicons-star-filled" aria-hidden="true"></span><span class="dashicons dashicons-star-filled" aria-hidden="true"></span><span class="dashicons dashicons-star-filled" aria-hidden="true"></span></p></td>
    297318                    <td> </td>
    298319                    <td><a href="' . esc_url( self::$billy_url ) . '"><img src="' . esc_url( self::$plugin_url ) . 'assets/img/logo.png" class="logo" alt="Billy" /></a></td>
  • billy/trunk/inc/class-pdfexport.php

    r3086547 r3098357  
    167167            setup_postdata( $post );
    168168
    169             $footer_id = 0;
    170 
    171             $footer_reusable_blocks = get_posts(
     169            $footer_ids = get_posts(
    172170                array(
    173171                    'post_type'   => 'wp_block',
    174172                    'title'       => 'Billy Footer',
    175173                    'post_status' => array( 'publish', 'private' ),
     174
    176175                )
    177176            );
    178             if ( $footer_reusable_blocks ) {
    179                 $footer_id = $footer_reusable_blocks[0]->ID;
    180             }
    181177
    182178            $blocks = parse_blocks( get_the_content() );
    183179            foreach ( $blocks as $block ) {
    184                 // Exclude reusable Footer block.
    185                 if ( 'core/block' !== $block['blockName'] || ( 'core/block' === $block['blockName'] && $footer_id !== $block['attrs']['ref'] ) ) {
     180                // Exclude reusable Footer block.
     181                if ( 'core/block' !== $block['blockName'] || ( 'core/block' === $block['blockName'] && ) ) {
    186182                    $content .= render_block( $block );
    187183                }
     
    223219
    224220            // PDF footer.
    225             if ( $footer_reusable_blocks ) {
    226                 $footer_content = $footer_reusable_blocks[0]->post_content;
     221            if ( $footer_s ) {
     222                $footer_content = ;
    227223
    228224                $footer_placeholders       = array(
  • billy/trunk/languages/billy.pot

    r3085925 r3098357  
    168168
    169169#: inc/class-billy.php:296
    170 msgid "Premium add-on with WooCommerce integration, Contacts, Address Book, QR code payments, Stats & Charts, Share links, and more."
     170msgid "Premium add-on with WooCommerce integration, Contacts, Address Book, QR code payments, Stats & Charts, Share links, and more."
    171171msgstr ""
    172172
  • billy/trunk/readme.txt

    r3086684 r3098357  
    44Tags: accounting, billing, invoices, quotes
    55Requires at least: 5.6
    6 Tested up to: 6.5
    7 Stable tag: 1.8.1
     6Tested up to: 6.
     7Stable tag: 1.8.
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    145145== Changelog ==
    146146
     147
     148
     149
     150
     151
     152
    147153= 1.8.1 =
    148154* Improve theme compatibility with Export tables
Note: See TracChangeset for help on using the changeset viewer.