$server_config ) : if ( $server_config['result'] ) { $background = '#68de7c'; // green $color = 'black'; } elseif ( isset( $server_config['fallback'] ) ) { $background = '#f2d675'; // yellow $color = 'black'; } else { $background = '#ffabaf'; // red $color = 'black'; } ?>
 
%s. %s', esc_html__( 'No', 'woocommerce-pdf-invoices-packing-slips' ), esc_html( $server_config['fallback'] ) ); } elseif ( isset( $server_config['failure'] ) ) { printf( '
%s
', wp_kses_post( $server_config['failure'] ) ); } else { printf( '
%s
', esc_html__( 'No', 'woocommerce-pdf-invoices-packing-slips' ) ); } } ?>
documents->get_documents( 'all' ) as $document ) : $is_reset_enabled = isset( $document->settings['reset_number_yearly'] ) ? true : false; $is_enabled = $document->is_enabled() ? true : false; ?> settings->maybe_schedule_yearly_reset_numbers() ) : if ( function_exists( 'as_get_scheduled_actions' ) ) { $scheduled_actions = as_get_scheduled_actions( array( 'hook' => 'wpo_wcpdf_schedule_yearly_reset_numbers', 'status' => \ActionScheduler_Store::STATUS_PENDING, ) ); $yearly_reset = array( 'required' => __( 'Required to reset documents numeration', 'woocommerce-pdf-invoices-packing-slips' ), 'fallback' => __( 'Yearly reset action not found', 'woocommerce-pdf-invoices-packing-slips' ), ); if ( ! empty( $scheduled_actions ) ) { $total_actions = count( $scheduled_actions ); if ( $total_actions === 1 ) { $action = reset( $scheduled_actions ); $action_date = is_callable( array( $action->get_schedule(), 'get_date' ) ) ? $action->get_schedule()->get_date() : $action->get_schedule()->get_next( as_get_datetime_object() ); /* translators: action date */ $yearly_reset['value'] = sprintf( __( 'Scheduled to: %s' ), date( wcpdf_date_format( null, 'yearly_reset_schedule' ), $action_date->getTimeStamp() ) ); $yearly_reset['result'] = true; } else { /* translators: total actions */ $yearly_reset['value'] = sprintf( /* translators: total scheduled actions */ __( 'Only 1 scheduled action should exist, but %s were found', 'woocommerce-pdf-invoices-packing-slips' ), $total_actions ); $yearly_reset['result'] = false; } } else { $yearly_reset['value'] = sprintf( /* translators: 1. open anchor tag, 2. close anchor tag */ __( 'Scheduled action not found. Please reschedule it %1$shere%2$s.', 'woocommerce-pdf-invoices-packing-slips' ), '', '' ); $yearly_reset['result'] = false; } } $label = __( 'Yearly reset', 'woocommerce-pdf-invoices-packing-slips' ); if ( $yearly_reset['result'] ) { $background = '#68de7c'; // green $color = 'black'; } else { $background = '#ffabaf'; // red $color = 'black'; } ?>
 
get_title() ); ?>
__( 'Writable', 'woocommerce-pdf-invoices-packing-slips' ), 'failed' => __( 'Not writable', 'woocommerce-pdf-invoices-packing-slips' ), ); $permissions = apply_filters( 'wpo_wcpdf_plugin_directories', array( 'WCPDF_TEMP_DIR' => array ( 'description' => __( 'Central temporary plugin folder', 'woocommerce-pdf-invoices-packing-slips' ), 'value' => WPO_WCPDF()->main->get_tmp_path(), 'status' => is_writable( WPO_WCPDF()->main->get_tmp_path() ) ? 'ok' : 'failed', 'status_message' => is_writable( WPO_WCPDF()->main->get_tmp_path() ) ? $status['ok'] : $status['failed'], ), 'WCPDF_ATTACHMENT_DIR' => array ( 'description' => __( 'Temporary attachments folder', 'woocommerce-pdf-invoices-packing-slips' ), 'value' => trailingslashit( WPO_WCPDF()->main->get_tmp_path( 'attachments' ) ), 'status' => is_writable( WPO_WCPDF()->main->get_tmp_path( 'attachments' ) ) ? 'ok' : 'failed', 'status_message' => is_writable( WPO_WCPDF()->main->get_tmp_path( 'attachments' ) ) ? $status['ok'] : $status['failed'], ), 'DOMPDF_TEMP_DIR' => array ( 'description' => __( 'Temporary DOMPDF folder', 'woocommerce-pdf-invoices-packing-slips' ), 'value' => trailingslashit(WPO_WCPDF()->main->get_tmp_path( 'dompdf' )), 'status' => is_writable(WPO_WCPDF()->main->get_tmp_path( 'dompdf' )) ? 'ok' : 'failed', 'status_message' => is_writable(WPO_WCPDF()->main->get_tmp_path( 'dompdf' )) ? $status['ok'] : $status['failed'], ), 'DOMPDF_FONT_DIR' => array ( 'description' => __( 'DOMPDF fonts folder (needs to be writable for custom/remote fonts)', 'woocommerce-pdf-invoices-packing-slips' ), 'value' => trailingslashit(WPO_WCPDF()->main->get_tmp_path( 'fonts' )), 'status' => is_writable(WPO_WCPDF()->main->get_tmp_path( 'fonts' )) ? 'ok' : 'failed', 'status_message' => is_writable(WPO_WCPDF()->main->get_tmp_path( 'fonts' )) ? $status['ok'] : $status['failed'], ), ), $status ); $upload_dir = wp_upload_dir(); $upload_base = trailingslashit( $upload_dir['basedir'] ); ?>
 
','\\' ), wp_kses_post( $permission['value'] ) ) : ''; ?>
'.WPO_WCPDF()->main->get_tmp_path().'', ''.$upload_base.'', 'UPLOADS', 'wpo_wcpdf_tmp_path', 'attachments', 'dompdf', 'fonts' ); ?>
'.WPO_WCPDF()->plugin_path() . "/vendor/dompdf/dompdf/lib/fonts/".'' ); ?>