Changeset 3098357
- Timestamp:
- 06/06/2024 06:59:49 AM (2 months ago)
- Location:
- billy
- Files:
-
- 732 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
billy/trunk/billy.php
r3086547 r3098357 4 4 * Plugin URI: https://wordpress.org/plugins/billy 5 5 * Description: A business-oriented billing suite powered by WordPress. 6 * Version: 1.8. 16 * Version: 1.8. 7 7 * Author: them.es 8 8 * Author URI: https://them.es/plugins/billy -
billy/trunk/inc/class-billy.php
r3085971 r3098357 258 258 $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>'; 259 259 } 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 260 275 261 276 return '<table class="widefat"> … … 271 286 <tr> 272 287 <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 ? ' 275 291 <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>' : '' ) . ' 279 300 <tr> 280 301 <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> … … 294 315 <tbody> 295 316 <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> 297 318 <td> </td> 298 319 <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 167 167 setup_postdata( $post ); 168 168 169 $footer_id = 0; 170 171 $footer_reusable_blocks = get_posts( 169 $footer_ids = get_posts( 172 170 array( 173 171 'post_type' => 'wp_block', 174 172 'title' => 'Billy Footer', 175 173 'post_status' => array( 'publish', 'private' ), 174 176 175 ) 177 176 ); 178 if ( $footer_reusable_blocks ) {179 $footer_id = $footer_reusable_blocks[0]->ID;180 }181 177 182 178 $blocks = parse_blocks( get_the_content() ); 183 179 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'] && ) ) { 186 182 $content .= render_block( $block ); 187 183 } … … 223 219 224 220 // PDF footer. 225 if ( $footer_ reusable_blocks ) {226 $footer_content = $footer_reusable_blocks[0]->post_content;221 if ( $footer_s ) { 222 $footer_content = ; 227 223 228 224 $footer_placeholders = array( -
billy/trunk/languages/billy.pot
r3085925 r3098357 168 168 169 169 #: 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."170 msgid "Premium add-on with WooCommerce integration, Contacts, Address Book, QR code payments, Stats & Charts, Share links, and more." 171 171 msgstr "" 172 172 -
billy/trunk/readme.txt
r3086684 r3098357 4 4 Tags: accounting, billing, invoices, quotes 5 5 Requires at least: 5.6 6 Tested up to: 6. 57 Stable tag: 1.8. 16 Tested up to: 6. 7 Stable tag: 1.8. 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 145 145 == Changelog == 146 146 147 148 149 150 151 152 147 153 = 1.8.1 = 148 154 * Improve theme compatibility with Export tables
Note: See TracChangeset
for help on using the changeset viewer.