Plugin Directory

Changeset 3327790


Ignore:
Timestamp:
07/14/2025 07:44:28 PM (7 months ago)
Author:
wbcomdesigns
Message:

version update

Location:
woo-document-preview
Files:
93 added
7 edited

Legend:

Unmodified
Added
Removed
  • woo-document-preview/trunk/admin/class-wc-document-preview-admin.php

    r3311902 r3327790  
    140140        // Only load on product pages and plugin settings pages
    141141        if ( $screen && ( 'product' === $screen->post_type || strpos( $screen->id, 'woo-document-preview' ) !== false ) ) {
    142             wp_enqueue_style(
    143                 $this->plugin_name,
    144                 plugin_dir_url( __FILE__ ) . 'css/wc-document-preview-admin.css',
    145                 array(),
    146                 $this->version,
    147                 'all'
    148             );
     142
     143            $css_file = $this->get_asset_filename('css', 'wc-document-preview-admin');
     144            if ($css_file) {
     145                wp_enqueue_style(
     146                    $this->plugin_name,
     147                    plugin_dir_url(__FILE__) . $css_file,
     148                    array(),
     149                    $this->version,
     150                    'all'
     151                );
     152            }
    149153        }
    150154    }
     
    160164        // Only load on product edit pages and faq section
    161165        if ( ( $screen && ( 'product' === $screen->post_type ) || ( isset( $_GET['tab'] ) && ( 'woo-document-preview-faq' === $_GET['tab'] ) ) ) ) { //phpcs:ignore
    162             wp_enqueue_script(
    163                 $this->plugin_name,
    164                 plugin_dir_url( __FILE__ ) . 'js/wc-document-preview-admin.js',
    165                 array( 'jquery', 'media-upload' ),
    166                 $this->version,
    167                 false
    168             );
    169            
    170             // Enhanced localize script with embeddable URL support
    171             wp_localize_script(
    172                 $this->plugin_name,
    173                 'wcdp_ajax_object',
    174                 array(
    175                     'ajax_url' => admin_url( 'admin-ajax.php' ),
    176                     'nonce'    => wp_create_nonce( 'ajax-nonce' ),
    177                     'allowed_types' => $this->allowed_file_types,
    178                     'embeddable_patterns' => $this->get_embeddable_patterns_for_js(),
    179                     'error_messages' => array(
    180                         'invalid_file_type' => __( 'Invalid file type. Supported formats: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, TXT, or direct links from Google Docs/Sheets, OneDrive, Dropbox.', 'wc-document-preview' ),
    181                         'file_required' => __( 'Please select a file or enter a file URL.', 'wc-document-preview' ),
    182                         'name_required' => __( 'Document name is required.', 'wc-document-preview' ),
    183                         'url_invalid' => __( 'Please enter a valid URL.', 'wc-document-preview' ),
    184                         'file_too_large' => __( 'File size is too large. Maximum allowed size is 50MB.', 'wc-document-preview' ),
    185                         'embeddable_detected' => __( 'Embeddable link detected! This will work great for preview.', 'wc-document-preview' ),
    186                     ),
    187                     'supported_services' => $this->get_supported_services_info(),
    188                 )
    189             );
     166
     167            $js_file = $this->get_asset_filename('js', 'wc-document-preview-admin');
     168            if ($js_file) {
     169                wp_enqueue_script(
     170                    $this->plugin_name,
     171                    plugin_dir_url(__FILE__) . $js_file,
     172                    array('jquery', 'media-upload'),
     173                    $this->version,
     174                    false
     175                );
     176                // Enhanced localize script with embeddable URL support
     177                wp_localize_script(
     178                    $this->plugin_name,
     179                    'wcdp_ajax_object',
     180                    array(
     181                        'ajax_url' => admin_url( 'admin-ajax.php' ),
     182                        'nonce'    => wp_create_nonce( 'ajax-nonce' ),
     183                        'allowed_types' => $this->allowed_file_types,
     184                        'embeddable_patterns' => $this->get_embeddable_patterns_for_js(),
     185                        'error_messages' => array(
     186                            'invalid_file_type' => __( 'Invalid file type. Supported formats: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, TXT, or direct links from Google Docs/Sheets, OneDrive, Dropbox.', 'wc-document-preview' ),
     187                            'file_required' => __( 'Please select a file or enter a file URL.', 'wc-document-preview' ),
     188                            'name_required' => __( 'Document name is required.', 'wc-document-preview' ),
     189                            'url_invalid' => __( 'Please enter a valid URL.', 'wc-document-preview' ),
     190                            'file_too_large' => __( 'File size is too large. Maximum allowed size is 50MB.', 'wc-document-preview' ),
     191                            'embeddable_detected' => __( 'Embeddable link detected! This will work great for preview.', 'wc-document-preview' ),
     192                        ),
     193                        'supported_services' => $this->get_supported_services_info(),
     194                    )
     195                );
     196            }
    190197        }
    191198    }
     
    496503                                       name="wcdp_documents[wcdp_file_names][]"
    497504                                       value="<?php echo esc_attr( isset( $wcdp_documents['wcdp_file_names'][ $key ] ) ? $wcdp_documents['wcdp_file_names'][ $key ] : '' ); ?>"
    498                                        type="text"
    499                                        required>
     505                                       type="text">
    500506                            </td>
    501507                            <td class="file_url" data-label="<?php esc_attr_e( 'File URL', 'wc-document-preview' ); ?>">
     
    534540                                   name="wcdp_documents[wcdp_file_names][]"
    535541                                   value=""
    536                                    type="text"
    537                                    required>
     542                                   type="text">
    538543                        </td>
    539544                        <td class="file_url" data-label="<?php esc_attr_e( 'File URL', 'wc-document-preview' ); ?>">
     
    843848        wp_die( esc_html__( 'Document reference deleted successfully.', 'wc-document-preview' ) );
    844849    }
     850
     851    /**
     852     * Get asset filename with intelligent fallback
     853     *
     854     * @since    1.6.0
     855     * @param    string $type     Asset type ('css' or 'js')
     856     * @param    string $filename Base filename without extension
     857     * @return   string|false     Full filename with path or false if not found
     858     */
     859    private function get_asset_filename($type, $filename) {
     860        // Determine if we should use minified files
     861        $use_minified = !(defined('SCRIPT_DEBUG') && SCRIPT_DEBUG);
     862       
     863        // Determine if RTL is needed (only for CSS)
     864        $is_rtl = ($type === 'css') ? is_rtl() : false;
     865       
     866        // Build the base directory path
     867        $base_dir = plugin_dir_path(__FILE__) . $type . '/';
     868        $actual_type = $type;
     869        $actual_base_dir = $base_dir;
     870       
     871       
     872        // Array of file variants to try in order of preference
     873        $variants = array();
     874       
     875        if ($type === 'css') {
     876            if ($is_rtl && $use_minified) {
     877                $variants[] = $filename . '.min.css';      // 1st preference: RTL minified
     878                $variants[] = $filename . '.css';          // 2nd preference: RTL non-minified
     879            } elseif ($is_rtl && !$use_minified) {
     880                $variants[] = $filename . '.css';          // 1st preference: RTL non-minified
     881            } elseif (!$is_rtl && $use_minified) {
     882                $variants[] = $filename . '.min.css';          // 1st preference: LTR minified
     883                $variants[] = $filename . '.css';              // 2nd preference: LTR non-minified
     884            } else {
     885                $variants[] = $filename . '.css';              // 1st preference: LTR non-minified
     886            }
     887        } else { // JavaScript
     888            if ($use_minified) {
     889                $variants[] = $filename . '.min.js';           // 1st preference: minified
     890                $variants[] = $filename . '.js';               // 2nd preference: non-minified
     891            } else {
     892                $variants[] = $filename . '.js';               // 1st preference: non-minified
     893            }
     894        }
     895        if ($type === 'css' &&  $is_rtl ) {
     896            $actual_type = 'css-rtl';
     897            $actual_base_dir = plugin_dir_path(__FILE__) . 'css-rtl/';
     898        }
     899       
     900        // Check each variant in order
     901        foreach ($variants as $variant) {
     902            if (file_exists($actual_base_dir . $variant)) {
     903               
     904                // Log which file is being used in debug mode
     905                if (defined('WP_DEBUG') && WP_DEBUG && defined('WP_DEBUG_LOG') && WP_DEBUG_LOG) {
     906                    error_log(sprintf(
     907                        'WCAP Asset: Loading %s file: %s (RTL: %s, Debug: %s)',
     908                        $actual_type,
     909                        $variant,
     910                        $is_rtl ? 'yes' : 'no',
     911                        !$use_minified ? 'yes' : 'no'
     912                    ));
     913                }
     914               
     915                return $actual_type . '/' . $variant;
     916            }
     917        }
     918       
     919        // No valid file found - log error
     920        if (defined('WP_DEBUG') && WP_DEBUG) {
     921            error_log(sprintf(
     922                'WCAP Asset Error: No %s file found for %s (tried: %s)',
     923                $actual_type,
     924                $filename,
     925                implode(', ', $variants)
     926            ));
     927        }
     928       
     929        return false;
     930    }
    845931}
  • woo-document-preview/trunk/admin/js/wc-document-preview-admin.js

    r3311902 r3327790  
    270270                   name="wcdp_documents[wcdp_file_names][]"
    271271                   value=""
    272                    type="text"
    273                    required>
     272                   type="text">
    274273          </td>
    275274          <td class="file_url" data-label="File URL">
  • woo-document-preview/trunk/admin/wbcom/wbcom-admin-settings.php

    r3311902 r3327790  
    177177                wp_enqueue_style( 'font-awesome', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css' );
    178178            }
     179            if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
     180            $js_extension = '.js';
     181            } else {
     182                $js_extension = '.min.js';
     183            }
    179184            if ( ! wp_script_is( 'wbcom_admin_setting_js', 'enqueued' ) ) {
    180185
    181186                wp_register_script(
    182187                    'wbcom_admin_setting_js',
    183                     WOO_DOCUMENT_PREVIEW_URL . 'admin/wbcom/assets/js/wbcom-admin-setting.js',
     188                    WOO_DOCUMENT_PREVIEW_URL . 'admin/wbcom/assets/js/wbcom-admin-setting'.$js_extension,
    184189                    array( 'jquery' ),
    185190                    time(),
     
    200205            }
    201206
     207            $rtl_css = is_rtl() ? '-rtl' : '';
     208
     209            if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
     210                $css_extension = '.css';
     211            } else {
     212                $css_extension = '.min.css';
     213            }
     214            if(is_rtl()){
     215            $css_extension = '.css';
     216            }
     217
    202218            if ( ! wp_style_is( 'wbcom-admin-setting-css', 'enqueued' ) ) {
    203                 wp_enqueue_style( 'wbcom-admin-setting-css', WOO_DOCUMENT_PREVIEW_URL . 'admin/wbcom/assets/css/wbcom-admin-setting.css' );
     219                wp_enqueue_style( 'wbcom-admin-setting-css', WOO_DOCUMENT_PREVIEW_URL . 'admin/wbcom/assets/css'.$rtl_css.'/wbcom-admin-setting'.$css_extension);
    204220            }
    205221        }
  • woo-document-preview/trunk/languages/wc-document-preview.pot

    r3311902 r3327790  
    1 # Copyright (C) 2025
    2 # This file is distributed under the same license as the  package.
     1# Copyright (C) 2025 Wbcom Designs <[email protected]>
     2# This file is distributed under the GPL-2.0+.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: \n"
    6 "Report-Msgid-Bugs-To: \n"
    7 "POT-Creation-Date: 2025-06-13 07:30:37+00:00\n"
     5"Project-Id-Version: Document Preview For WooCommerce 1.5.0\n"
     6"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-document-preview\n"
     7"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     8"Language-Team: LANGUAGE <[email protected]>\n"
    89"MIME-Version: 1.0\n"
    9 "Content-Type: text/plain; charset=utf-8\n"
     10"Content-Type: text/plain; charset=UTF-8\n"
    1011"Content-Transfer-Encoding: 8bit\n"
    11 "PO-Revision-Date: 2025-MO-DA HO:MI+ZONE\n"
    12 "Last-Translator: Varun Dubey\n"
    13 "Language-Team: Wbcom Designs\n"
    14 "Language: en\n"
    15 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
    16 "X-Poedit-Country: United States\n"
    17 "X-Poedit-SourceCharset: UTF-8\n"
    18 "X-Poedit-KeywordsList: "
    19 "__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
    20 "attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
    21 "X-Poedit-Basepath: ../\n"
    22 "X-Poedit-SearchPath-0: .\n"
    23 "X-Poedit-Bookmarks: \n"
    24 "X-Textdomain-Support: yes\n"
    25 "X-Generator: grunt-wp-i18n 1.0.3\n"
     12"POT-Creation-Date: 2025-06-18T18:51:17+05:30\n"
     13"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
     14"X-Generator: WP-CLI 2.12.0\n"
     15"X-Domain: wc-document-preview\n"
     16
     17#. Plugin Name of the plugin
     18#: woo-product-document-preview.php
     19msgid "Document Preview For WooCommerce"
     20msgstr ""
     21
     22#. Plugin URI of the plugin
     23#. Author URI of the plugin
     24#: woo-product-document-preview.php
     25msgid "http://wbcomdesigns.com"
     26msgstr ""
     27
     28#. Description of the plugin
     29#: woo-product-document-preview.php
     30msgid "Woo Document Preview lets you display a document preview on the single product page, helping customers better understand your offerings when selling eBooks, PDFs, or other digital documents."
     31msgstr ""
     32
     33#. Author of the plugin
     34#: woo-product-document-preview.php
     35msgid "Wbcom Designs <[email protected]>"
     36msgstr ""
    2637
    2738#: admin/class-wc-document-preview-admin-feedback.php:84
     
    2940msgstr ""
    3041
     42#. translators: Number of years
    3143#: admin/class-wc-document-preview-admin-feedback.php:93
    32 #. translators: Number of years
     44#, php-format
    3345msgid "%s years"
    3446msgstr ""
     
    3850msgstr ""
    3951
     52#. translators: Number of weeks
    4053#: admin/class-wc-document-preview-admin-feedback.php:102
    41 #. translators: Number of weeks
     54#, php-format
    4255msgid "%s weeks"
    4356msgstr ""
     
    4760msgstr ""
    4861
     62#. translators: Number of days
    4963#: admin/class-wc-document-preview-admin-feedback.php:111
    50 #. translators: Number of days
     64#, php-format
    5165msgid "%s days"
    5266msgstr ""
     
    5670msgstr ""
    5771
     72#. translators: Number of hours
    5873#: admin/class-wc-document-preview-admin-feedback.php:120
    59 #. translators: Number of hours
     74#, php-format
    6075msgid "%s hours"
    6176msgstr ""
     
    6580msgstr ""
    6681
     82#. translators: Number of minutes
    6783#: admin/class-wc-document-preview-admin-feedback.php:129
    68 #. translators: Number of minutes
     84#, php-format
    6985msgid "%s minutes"
    7086msgstr ""
     
    7490msgstr ""
    7591
     92#. translators: Number of seconds
    7693#: admin/class-wc-document-preview-admin-feedback.php:138
    77 #. translators: Number of seconds
     94#, php-format
    7895msgid "%s seconds"
    7996msgstr ""
     
    88105
    89106#: admin/class-wc-document-preview-admin-feedback.php:194
    90 #: admin/class-wc-document-preview-admin.php:288
    91 #: admin/class-wc-document-preview-admin.php:400
    92 #: admin/class-wc-document-preview-admin.php:401
     107#: admin/class-wc-document-preview-admin.php:295
     108#: admin/class-wc-document-preview-admin.php:407
     109#: admin/class-wc-document-preview-admin.php:408
    93110#: admin/wbcom/templates/wbcom-license-page.php:9
    94111#: woo-product-document-preview.php:101
     
    100117msgstr ""
    101118
     119#. translators: 1. Plugin name, 2. Time elapsed
    102120#: admin/class-wc-document-preview-admin-feedback.php:210
    103 #. translators: 1. Plugin name, 2. Time elapsed
    104 msgid ""
    105 "You've been using %1$s for %2$s now! Could you please do us a big favor and "
    106 "give it a 5-star rating on WordPress? This helps us spread the word and "
    107 "boost our motivation to keep improving the plugin."
     121#, php-format
     122msgid "You've been using %1$s for %2$s now! Could you please do us a big favor and give it a 5-star rating on WordPress? This helps us spread the word and boost our motivation to keep improving the plugin."
    108123msgstr ""
    109124
     
    128143msgstr ""
    129144
    130 #: admin/class-wc-document-preview-admin.php:180
    131 msgid ""
    132 "Invalid file type. Supported formats: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, "
    133 "TXT, or direct links from Google Docs/Sheets, OneDrive, Dropbox."
    134 msgstr ""
    135 
    136 #: admin/class-wc-document-preview-admin.php:181
     145#: admin/class-wc-document-preview-admin.php:186
     146msgid "Invalid file type. Supported formats: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, TXT, or direct links from Google Docs/Sheets, OneDrive, Dropbox."
     147msgstr ""
     148
     149#: admin/class-wc-document-preview-admin.php:187
    137150msgid "Please select a file or enter a file URL."
    138151msgstr ""
    139152
    140 #: admin/class-wc-document-preview-admin.php:182
     153#: admin/class-wc-document-preview-admin.php:188
    141154msgid "Document name is required."
    142155msgstr ""
    143156
    144 #: admin/class-wc-document-preview-admin.php:183
    145 #: admin/class-wc-document-preview-admin.php:617
     157#: admin/class-wc-document-preview-admin.php:189
     158#: admin/class-wc-document-preview-admin.php:624
    146159msgid "Please enter a valid URL."
    147160msgstr ""
    148161
    149 #: admin/class-wc-document-preview-admin.php:184
     162#: admin/class-wc-document-preview-admin.php:190
    150163msgid "File size is too large. Maximum allowed size is 50MB."
    151164msgstr ""
    152165
    153 #: admin/class-wc-document-preview-admin.php:185
     166#: admin/class-wc-document-preview-admin.php:191
    154167msgid "Embeddable link detected! This will work great for preview."
    155168msgstr ""
    156169
    157 #: admin/class-wc-document-preview-admin.php:289
     170#: admin/class-wc-document-preview-admin.php:296
    158171#: admin/wbcom/templates/wbcom-license-page.php:10
     172#, php-format
    159173msgid "Version %s"
    160174msgstr ""
    161175
    162 #: admin/class-wc-document-preview-admin.php:315
    163 #: admin/class-wc-document-preview-admin.php:392
    164 #: admin/class-wc-document-preview-admin.php:393
     176#: admin/class-wc-document-preview-admin.php:322
     177#: admin/class-wc-document-preview-admin.php:399
     178#: admin/class-wc-document-preview-admin.php:400
    165179msgid "Welcome"
    166180msgstr ""
    167181
    168 #: admin/class-wc-document-preview-admin.php:319
     182#: admin/class-wc-document-preview-admin.php:326
    169183msgid "General (PRO)"
    170184msgstr ""
    171185
    172 #: admin/class-wc-document-preview-admin.php:322
     186#: admin/class-wc-document-preview-admin.php:329
    173187msgid "FAQ"
    174188msgstr ""
    175189
    176 #: admin/class-wc-document-preview-admin.php:382
    177 #: admin/class-wc-document-preview-admin.php:383
     190#: admin/class-wc-document-preview-admin.php:389
     191#: admin/class-wc-document-preview-admin.php:390
    178192msgid "WB Plugins"
    179193msgstr ""
    180194
    181 #: admin/class-wc-document-preview-admin.php:425
    182 msgid ""
    183 "Preview Documents <span class=\"wcdp-required-span\">(Supports: PDF, DOC, "
    184 "DOCX, XLS, XLSX, PPT, PPTX, TXT files, or direct links from Google Docs, "
    185 "Sheets, OneDrive, Dropbox)</span>"
    186 msgstr ""
    187 
    188 #: admin/class-wc-document-preview-admin.php:472
    189 #: admin/class-wc-document-preview-admin.php:495
    190 #: admin/class-wc-document-preview-admin.php:533
     195#: admin/class-wc-document-preview-admin.php:432
     196msgid "Preview Documents <span class=\"wcdp-required-span\">(Supports: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, TXT files, or direct links from Google Docs, Sheets, OneDrive, Dropbox)</span>"
     197msgstr ""
     198
     199#: admin/class-wc-document-preview-admin.php:479
     200#: admin/class-wc-document-preview-admin.php:502
     201#: admin/class-wc-document-preview-admin.php:540
    191202msgid "Document Name"
    192203msgstr ""
    193204
    194 #: admin/class-wc-document-preview-admin.php:473
     205#: admin/class-wc-document-preview-admin.php:480
    195206msgid "Enter a descriptive name for the document"
    196207msgstr ""
    197208
    198 #: admin/class-wc-document-preview-admin.php:476
     209#: admin/class-wc-document-preview-admin.php:483
    199210msgid "File URL or Sharing Link"
    200211msgstr ""
    201212
    202 #: admin/class-wc-document-preview-admin.php:477
    203 msgid ""
    204 "Upload a file, enter a file URL, or paste a sharing link from Google Docs, "
    205 "OneDrive, or Dropbox"
    206 msgstr ""
    207 
    208 #: admin/class-wc-document-preview-admin.php:479
     213#: admin/class-wc-document-preview-admin.php:484
     214msgid "Upload a file, enter a file URL, or paste a sharing link from Google Docs, OneDrive, or Dropbox"
     215msgstr ""
     216
     217#: admin/class-wc-document-preview-admin.php:486
    209218msgid "Upload File"
    210219msgstr ""
    211220
    212 #: admin/class-wc-document-preview-admin.php:492
    213 #: admin/class-wc-document-preview-admin.php:530
     221#: admin/class-wc-document-preview-admin.php:499
     222#: admin/class-wc-document-preview-admin.php:537
    214223msgid "Sort"
    215224msgstr ""
    216225
    217 #: admin/class-wc-document-preview-admin.php:493
    218 #: admin/class-wc-document-preview-admin.php:531
     226#: admin/class-wc-document-preview-admin.php:500
     227#: admin/class-wc-document-preview-admin.php:538
    219228msgid "Name"
    220229msgstr ""
    221230
    222 #: admin/class-wc-document-preview-admin.php:501
    223 #: admin/class-wc-document-preview-admin.php:539
     231#: admin/class-wc-document-preview-admin.php:508
     232#: admin/class-wc-document-preview-admin.php:546
    224233msgid "File URL"
    225234msgstr ""
    226235
    227 #: admin/class-wc-document-preview-admin.php:503
    228 #: admin/class-wc-document-preview-admin.php:541
     236#: admin/class-wc-document-preview-admin.php:510
     237#: admin/class-wc-document-preview-admin.php:548
    229238msgid "Upload file, enter URL, or paste sharing link"
    230 msgstr ""
    231 
    232 #: admin/class-wc-document-preview-admin.php:513
    233 #: admin/class-wc-document-preview-admin.php:546
    234 msgid "Upload"
    235 msgstr ""
    236 
    237 #: admin/class-wc-document-preview-admin.php:514
    238 #: admin/class-wc-document-preview-admin.php:547
    239 msgid "Choose File"
    240 msgstr ""
    241 
    242 #: admin/class-wc-document-preview-admin.php:516
    243 #: admin/class-wc-document-preview-admin.php:549
    244 msgid "Actions"
    245 msgstr ""
    246 
    247 #: admin/class-wc-document-preview-admin.php:517
    248 #: admin/class-wc-document-preview-admin.php:550
    249 msgid "Add a new document"
    250 msgstr ""
    251 
    252 #: admin/class-wc-document-preview-admin.php:518
    253 #: admin/class-wc-document-preview-admin.php:551
    254 msgid "Add"
    255239msgstr ""
    256240
    257241#: admin/class-wc-document-preview-admin.php:520
    258242#: admin/class-wc-document-preview-admin.php:553
    259 msgid "Remove this document"
     243msgid "Upload"
    260244msgstr ""
    261245
    262246#: admin/class-wc-document-preview-admin.php:521
    263247#: admin/class-wc-document-preview-admin.php:554
     248msgid "Choose File"
     249msgstr ""
     250
     251#: admin/class-wc-document-preview-admin.php:523
     252#: admin/class-wc-document-preview-admin.php:556
     253msgid "Actions"
     254msgstr ""
     255
     256#: admin/class-wc-document-preview-admin.php:524
     257#: admin/class-wc-document-preview-admin.php:557
     258msgid "Add a new document"
     259msgstr ""
     260
     261#: admin/class-wc-document-preview-admin.php:525
     262#: admin/class-wc-document-preview-admin.php:558
     263msgid "Add"
     264msgstr ""
     265
     266#: admin/class-wc-document-preview-admin.php:527
     267#: admin/class-wc-document-preview-admin.php:560
     268msgid "Remove this document"
     269msgstr ""
     270
     271#: admin/class-wc-document-preview-admin.php:528
     272#: admin/class-wc-document-preview-admin.php:561
    264273msgid "Remove"
    265274msgstr ""
    266275
    267 #: admin/class-wc-document-preview-admin.php:571
    268 msgid ""
    269 "Add document previews for your product. Customers will be able to preview "
    270 "these documents before purchasing. Supports traditional file uploads and "
    271 "direct embedding from popular cloud services."
    272 msgstr ""
    273 
    274 #: admin/class-wc-document-preview-admin.php:611
     276#: admin/class-wc-document-preview-admin.php:578
     277msgid "Add document previews for your product. Customers will be able to preview these documents before purchasing. Supports traditional file uploads and direct embedding from popular cloud services."
     278msgstr ""
     279
     280#: admin/class-wc-document-preview-admin.php:618
    275281msgid "File URL cannot be empty."
    276282msgstr ""
    277283
    278 #: admin/class-wc-document-preview-admin.php:628
     284#: admin/class-wc-document-preview-admin.php:635
     285#, php-format
    279286msgid "Embeddable %s link detected and validated."
    280287msgstr ""
    281288
    282 #: admin/class-wc-document-preview-admin.php:638
    283 msgid ""
    284 "Invalid file type. Supported formats: %s, or direct links from Google "
    285 "Docs/Sheets, OneDrive, Dropbox."
    286 msgstr ""
    287 
    288 #: admin/class-wc-document-preview-admin.php:649
     289#: admin/class-wc-document-preview-admin.php:645
     290#, php-format
     291msgid "Invalid file type. Supported formats: %s, or direct links from Google Docs/Sheets, OneDrive, Dropbox."
     292msgstr ""
     293
     294#: admin/class-wc-document-preview-admin.php:656
    289295msgid "Invalid MIME type. Please upload a valid document file."
    290296msgstr ""
    291297
    292 #: admin/class-wc-document-preview-admin.php:731
     298#: admin/class-wc-document-preview-admin.php:738
    293299msgid "Document name is required for all files."
    294300msgstr ""
    295301
    296 #: admin/class-wc-document-preview-admin.php:737
     302#: admin/class-wc-document-preview-admin.php:744
     303#, php-format
    297304msgid "File URL is required for document: %s"
    298305msgstr ""
    299306
    300 #: admin/class-wc-document-preview-admin.php:744
     307#: admin/class-wc-document-preview-admin.php:751
     308#, php-format
    301309msgid "Error with document \"%s\": %s"
    302310msgstr ""
    303311
    304 #: admin/class-wc-document-preview-admin.php:756
     312#: admin/class-wc-document-preview-admin.php:763
     313#, php-format
    305314msgid "Successfully added %s document: %s"
    306315msgstr ""
    307316
    308 #: admin/class-wc-document-preview-admin.php:782
     317#: admin/class-wc-document-preview-admin.php:789
    309318msgid "Document previews saved successfully."
    310319msgstr ""
    311320
    312 #: admin/class-wc-document-preview-admin.php:787
     321#: admin/class-wc-document-preview-admin.php:794
    313322msgid "No valid documents found. Document previews have been removed."
    314323msgstr ""
    315324
    316 #: admin/class-wc-document-preview-admin.php:801
     325#: admin/class-wc-document-preview-admin.php:808
    317326msgid "Security check failed."
    318327msgstr ""
    319328
    320 #: admin/class-wc-document-preview-admin.php:806
     329#: admin/class-wc-document-preview-admin.php:813
    321330msgid "You do not have permission to perform this action."
    322331msgstr ""
    323332
    324 #: admin/class-wc-document-preview-admin.php:813
     333#: admin/class-wc-document-preview-admin.php:820
    325334msgid "Invalid request parameters."
    326335msgstr ""
    327336
    328 #: admin/class-wc-document-preview-admin.php:818
     337#: admin/class-wc-document-preview-admin.php:825
    329338msgid "You do not have permission to edit this product."
    330339msgstr ""
    331340
    332 #: admin/class-wc-document-preview-admin.php:832
     341#: admin/class-wc-document-preview-admin.php:839
    333342msgid "Failed to delete file."
    334343msgstr ""
    335344
    336 #: admin/class-wc-document-preview-admin.php:843
     345#: admin/class-wc-document-preview-admin.php:850
    337346msgid "Document reference deleted successfully."
    338347msgstr ""
     
    343352
    344353#: admin/partials/woo-document-preview-faq.php:24
    345 msgid ""
    346 "Find answers to the most common questions about the Woo Document Preview "
    347 "plugin."
     354msgid "Find answers to the most common questions about the Woo Document Preview plugin."
    348355msgstr ""
    349356
     
    353360
    354361#: admin/partials/woo-document-preview-faq.php:39
    355 msgid ""
    356 "Yes, this plugin requires WooCommerce to be installed and activated. The "
    357 "plugin adds document preview functionality specifically to WooCommerce "
    358 "product pages."
     362msgid "Yes, this plugin requires WooCommerce to be installed and activated. The plugin adds document preview functionality specifically to WooCommerce product pages."
    359363msgstr ""
    360364
     
    408412
    409413#: admin/partials/woo-document-preview-faq.php:67
    410 msgid ""
    411 "The preview button will automatically appear on your product page for "
    412 "customers to use."
     414msgid "The preview button will automatically appear on your product page for customers to use."
    413415msgstr ""
    414416
     
    438440
    439441#: admin/partials/woo-document-preview-faq.php:95
    440 msgid ""
    441 "Files are displayed using Google Docs Viewer (for PDF, Word) and Microsoft "
    442 "Office Online (for Excel files)."
     442msgid "Files are displayed using Google Docs Viewer (for PDF, Word) and Microsoft Office Online (for Excel files)."
    443443msgstr ""
    444444
     
    448448
    449449#: admin/partials/woo-document-preview-faq.php:108
    450 msgid ""
    451 "The preview functionality is designed to show documents without allowing "
    452 "direct downloads. However, the behavior depends on the viewer service used:"
     450msgid "The preview functionality is designed to show documents without allowing direct downloads. However, the behavior depends on the viewer service used:"
    453451msgstr ""
    454452
     
    470468
    471469#: admin/partials/woo-document-preview-faq.php:113
    472 msgid ""
    473 "For better download control, consider using a separate download management "
    474 "plugin alongside this preview plugin."
     470msgid "For better download control, consider using a separate download management plugin alongside this preview plugin."
    475471msgstr ""
    476472
     
    600596
    601597#: admin/partials/woo-document-preview-faq.php:187
    602 msgid ""
    603 "Still having issues? Contact our support team with specific details about "
    604 "the problem."
     598msgid "Still having issues? Contact our support team with specific details about the problem."
    605599msgstr ""
    606600
     
    610604
    611605#: admin/partials/woo-document-preview-faq.php:200
    612 msgid ""
    613 "The free version provides core document preview functionality. For advanced "
    614 "features, consider our Pro version or custom development:"
     606msgid "The free version provides core document preview functionality. For advanced features, consider our Pro version or custom development:"
    615607msgstr ""
    616608
     
    644636
    645637#: admin/partials/woo-document-preview-faq.php:214
    646 msgid ""
    647 "Need specific functionality? Our development team can create custom "
    648 "solutions tailored to your business needs."
     638msgid "Need specific functionality? Our development team can create custom solutions tailored to your business needs."
    649639msgstr ""
    650640
     
    716706
    717707#: admin/partials/woo-document-preview-welcome-page.php:16
    718 msgid ""
    719 "Woo Document Preview enables you to add a document preview directly to a "
    720 "single product page, making it ideal for showcasing eBooks, PDFs, or other "
    721 "documents."
     708msgid "Woo Document Preview enables you to add a document preview directly to a single product page, making it ideal for showcasing eBooks, PDFs, or other documents."
    722709msgstr ""
    723710
     
    727714
    728715#: admin/partials/woo-document-preview-welcome-page.php:22
    729 msgid ""
    730 "If you need assistance, here are some helpful resources. Our documentation "
    731 "is a great place to start, and our support team is available if you require "
    732 "further help."
     716msgid "If you need assistance, here are some helpful resources. Our documentation is a great place to start, and our support team is available if you require further help."
    733717msgstr ""
    734718
    735719#: admin/partials/woo-document-preview-welcome-page.php:27
    736 msgid ""
    737 "Explore our detailed guide on Woo Document Preview to understand all the "
    738 "features and how to make the most of them."
     720msgid "Explore our detailed guide on Woo Document Preview to understand all the features and how to make the most of them."
    739721msgstr ""
    740722
     
    748730
    749731#: admin/partials/woo-document-preview-welcome-page.php:35
    750 msgid ""
    751 "Our support team is here to assist you with any questions or issues. Feel "
    752 "free to contact us anytime through our support center."
     732msgid "Our support team is here to assist you with any questions or issues. Feel free to contact us anytime through our support center."
    753733msgstr ""
    754734
     
    762742
    763743#: admin/partials/woo-document-preview-welcome-page.php:42
    764 msgid ""
    765 "We’d love to hear about your experience with the plugin. Your feedback and "
    766 "suggestions help us improve future updates."
     744msgid "We’d love to hear about your experience with the plugin. Your feedback and suggestions help us improve future updates."
    767745msgstr ""
    768746
     
    815793#: admin/wbcom/templates/wbcom-plugins-page.php:20
    816794#: admin/wbcom/templates/wbcom-plugins-page.php:366
    817 #: admin/wbcom/wbcom-admin-settings.php:224
    818 #: admin/wbcom/wbcom-admin-settings.php:225
     795#: admin/wbcom/wbcom-admin-settings.php:240
     796#: admin/wbcom/wbcom-admin-settings.php:241
    819797msgid "Our Themes"
    820798msgstr ""
     
    831809
    832810#: admin/wbcom/templates/wbcom-plugins-page.php:32
    833 msgid ""
    834 "Allow users to change their usernames directly from their profile settings. "
    835 "Enhance flexibility for members while keeping admin-level approval and "
    836 "control over username updates."
     811msgid "Allow users to change their usernames directly from their profile settings. Enhance flexibility for members while keeping admin-level approval and control over username updates."
    837812msgstr ""
    838813
     
    960935
    961936#: admin/wbcom/templates/wbcom-plugins-page.php:42
    962 msgid ""
    963 "Empower users to create personalized lists of friends, follow curated "
    964 "streams, and organize their connections for a better social experience "
    965 "within your community."
     937msgid "Empower users to create personalized lists of friends, follow curated streams, and organize their connections for a better social experience within your community."
    966938msgstr ""
    967939
     
    971943
    972944#: admin/wbcom/templates/wbcom-plugins-page.php:52
    973 msgid ""
    974 "Plan posts and activities in advance with easy scheduling tools. Keep your "
    975 "community active even during off-hours and automate important updates."
     945msgid "Plan posts and activities in advance with easy scheduling tools. Keep your community active even during off-hours and automate important updates."
    976946msgstr ""
    977947
     
    981951
    982952#: admin/wbcom/templates/wbcom-plugins-page.php:62
    983 msgid ""
    984 "Enable members to share updates anonymously without revealing their "
    985 "identity, encouraging more honest, open, and candid conversations across "
    986 "your platform."
     953msgid "Enable members to share updates anonymously without revealing their identity, encouraging more honest, open, and candid conversations across your platform."
    987954msgstr ""
    988955
     
    992959
    993960#: admin/wbcom/templates/wbcom-plugins-page.php:72
    994 msgid ""
    995 "Let users edit their posted activities anytime. Help members fix mistakes "
    996 "or update their posts, keeping conversations fresh and accurate."
     961msgid "Let users edit their posted activities anytime. Help members fix mistakes or update their posts, keeping conversations fresh and accurate."
    997962msgstr ""
    998963
     
    1002967
    1003968#: admin/wbcom/templates/wbcom-plugins-page.php:82
    1004 msgid ""
    1005 "Introduce Instagram-style stories where users can share photos and videos. "
    1006 "Boost community engagement through visual storytelling and real-time "
    1007 "content sharing."
     969msgid "Introduce Instagram-style stories where users can share photos and videos. Boost community engagement through visual storytelling and real-time content sharing."
    1008970msgstr ""
    1009971
     
    1013975
    1014976#: admin/wbcom/templates/wbcom-plugins-page.php:92
    1015 msgid ""
    1016 "Allow businesses to set up profile pages, showcase their services, and "
    1017 "directly connect with potential customers through your social network."
     977msgid "Allow businesses to set up profile pages, showcase their services, and directly connect with potential customers through your social network."
    1018978msgstr ""
    1019979
     
    1023983
    1024984#: admin/wbcom/templates/wbcom-plugins-page.php:102
    1025 msgid ""
    1026 "Allow members to flag inappropriate content and maintain a safe, "
    1027 "respectful, and welcoming community environment."
     985msgid "Allow members to flag inappropriate content and maintain a safe, respectful, and welcoming community environment."
    1028986msgstr ""
    1029987
     
    1033991
    1034992#: admin/wbcom/templates/wbcom-plugins-page.php:112
    1035 msgid ""
    1036 "Let users upload and display professional resumes right on their profiles. "
    1037 "Ideal for building career-focused communities."
     993msgid "Let users upload and display professional resumes right on their profiles. Ideal for building career-focused communities."
    1038994msgstr ""
    1039995
     
    1043999
    10441000#: admin/wbcom/templates/wbcom-plugins-page.php:122
    1045 msgid ""
    1046 "Let members create polls and surveys directly inside activity streams to "
    1047 "collect opinions, boost participation, and spark discussions easily."
     1001msgid "Let members create polls and surveys directly inside activity streams to collect opinions, boost participation, and spark discussions easily."
    10481002msgstr ""
    10491003
     
    10531007
    10541008#: admin/wbcom/templates/wbcom-plugins-page.php:132
    1055 msgid ""
    1056 "Restrict access to BuddyPress areas. Protect member profiles and create a "
    1057 "fully private, members-only experience."
     1009msgid "Restrict access to BuddyPress areas. Protect member profiles and create a fully private, members-only experience."
    10581010msgstr ""
    10591011
     
    10631015
    10641016#: admin/wbcom/templates/wbcom-plugins-page.php:142
    1065 msgid ""
    1066 "Add custom repeater fields and groups to member profiles. Collect richer "
    1067 "information and enhance profile personalization."
     1017msgid "Add custom repeater fields and groups to member profiles. Collect richer information and enhance profile personalization."
    10681018msgstr ""
    10691019
     
    10731023
    10741024#: admin/wbcom/templates/wbcom-plugins-page.php:152
    1075 msgid ""
    1076 "Allow users to check in at places like restaurants or events. Encourage "
    1077 "social interactions and real-world meetups through your platform."
     1025msgid "Allow users to check in at places like restaurants or events. Encourage social interactions and real-world meetups through your platform."
    10781026msgstr ""
    10791027
     
    10831031
    10841032#: admin/wbcom/templates/wbcom-plugins-page.php:162
    1085 msgid ""
    1086 "Streamline idea management. Let members submit ideas, provide feedback, and "
    1087 "spark innovation directly within their profiles."
     1033msgid "Streamline idea management. Let members submit ideas, provide feedback, and spark innovation directly within their profiles."
    10881034msgstr ""
    10891035
     
    10931039
    10941040#: admin/wbcom/templates/wbcom-plugins-page.php:172
    1095 msgid ""
    1096 "Add easy-to-use contact forms on member profiles. Enable seamless "
    1097 "communication between visitors and users without sharing personal "
    1098 "information."
     1041msgid "Add easy-to-use contact forms on member profiles. Enable seamless communication between visitors and users without sharing personal information."
    10991042msgstr ""
    11001043
     
    11041047
    11051048#: admin/wbcom/templates/wbcom-plugins-page.php:182
    1106 msgid ""
    1107 "Offer personal blogging spaces for members. Let users share articles, "
    1108 "stories, and updates, turning your community into a vibrant content hub."
     1049msgid "Offer personal blogging spaces for members. Let users share articles, stories, and updates, turning your community into a vibrant content hub."
    11091050msgstr ""
    11101051
     
    11141055
    11151056#: admin/wbcom/templates/wbcom-plugins-page.php:192
    1116 msgid ""
    1117 "Combine e-commerce with social networking. Allow users to buy, sell, and "
    1118 "interact on a community-driven multi-vendor marketplace."
     1057msgid "Combine e-commerce with social networking. Allow users to buy, sell, and interact on a community-driven multi-vendor marketplace."
    11191058msgstr ""
    11201059
     
    11241063
    11251064#: admin/wbcom/templates/wbcom-plugins-page.php:202
    1126 msgid ""
    1127 "Get detailed community analytics. Monitor activities, understand engagement "
    1128 "patterns, and make smarter decisions to grow your site."
     1065msgid "Get detailed community analytics. Monitor activities, understand engagement patterns, and make smarter decisions to grow your site."
    11291066msgstr ""
    11301067
     
    11341071
    11351072#: admin/wbcom/templates/wbcom-plugins-page.php:212
    1136 msgid ""
    1137 "Give users visibility into who has visited their profile. Build curiosity, "
    1138 "drive more profile views, and increase member engagement."
     1073msgid "Give users visibility into who has visited their profile. Build curiosity, drive more profile views, and increase member engagement."
    11391074msgstr ""
    11401075
     
    11441079
    11451080#: admin/wbcom/templates/wbcom-plugins-page.php:222
    1146 msgid ""
    1147 "Provide personalized friend and follow suggestions based on profile data, "
    1148 "boosting connections and community interactions."
     1081msgid "Provide personalized friend and follow suggestions based on profile data, boosting connections and community interactions."
    11491082msgstr ""
    11501083
     
    11541087
    11551088#: admin/wbcom/templates/wbcom-plugins-page.php:232
    1156 msgid ""
    1157 "Enable GIF sharing in activities, comments, and private messages. Make "
    1158 "conversations more fun, expressive, and visually engaging."
     1089msgid "Enable GIF sharing in activities, comments, and private messages. Make conversations more fun, expressive, and visually engaging."
    11591090msgstr ""
    11601091
     
    11641095
    11651096#: admin/wbcom/templates/wbcom-plugins-page.php:242
    1166 msgid ""
    1167 "Add BuddyPress components anywhere on your site with shortcodes and "
    1168 "Elementor widgets. Enjoy full design freedom and flexibility."
     1097msgid "Add BuddyPress components anywhere on your site with shortcodes and Elementor widgets. Enjoy full design freedom and flexibility."
    11691098msgstr ""
    11701099
     
    11741103
    11751104#: admin/wbcom/templates/wbcom-plugins-page.php:252
    1176 msgid ""
    1177 "Highlight important updates by pinning posts to the top of activity "
    1178 "streams. Ensure key messages are always seen by members."
     1105msgid "Highlight important updates by pinning posts to the top of activity streams. Ensure key messages are always seen by members."
    11791106msgstr ""
    11801107
     
    11841111
    11851112#: admin/wbcom/templates/wbcom-plugins-page.php:262
    1186 msgid ""
    1187 "Let users decorate their posts with vibrant backgrounds and images, making "
    1188 "activity updates more expressive and attention-grabbing."
     1113msgid "Let users decorate their posts with vibrant backgrounds and images, making activity updates more expressive and attention-grabbing."
    11891114msgstr ""
    11901115
     
    11941119
    11951120#: admin/wbcom/templates/wbcom-plugins-page.php:272
    1196 msgid ""
    1197 "Automatically add specific users as friends to new members, helping them "
    1198 "build their network and feel connected from day one."
     1121msgid "Automatically add specific users as friends to new members, helping them build their network and feel connected from day one."
    11991122msgstr ""
    12001123
     
    12041127
    12051128#: admin/wbcom/templates/wbcom-plugins-page.php:282
    1206 msgid ""
    1207 "Organize activity updates into a familiar Facebook-style newsfeed, helping "
    1208 "members find new content quickly and engage more."
     1129msgid "Organize activity updates into a familiar Facebook-style newsfeed, helping members find new content quickly and engage more."
    12091130msgstr ""
    12101131
     
    12141135
    12151136#: admin/wbcom/templates/wbcom-plugins-page.php:292
    1216 msgid ""
    1217 "Allow members to post quick status updates and react to activities, making "
    1218 "your community more dynamic and lively."
     1137msgid "Allow members to post quick status updates and react to activities, making your community more dynamic and lively."
    12191138msgstr ""
    12201139
     
    12241143
    12251144#: admin/wbcom/templates/wbcom-plugins-page.php:302
    1226 msgid ""
    1227 "Boost discoverability and organize discussions by adding hashtag "
    1228 "functionality across activities, posts, and comments."
     1145msgid "Boost discoverability and organize discussions by adding hashtag functionality across activities, posts, and comments."
    12291146msgstr ""
    12301147
     
    12341151
    12351152#: admin/wbcom/templates/wbcom-plugins-page.php:312
    1236 msgid ""
    1237 "Block unwanted words and keep your community safe, family-friendly, and "
    1238 "free from offensive language."
     1153msgid "Block unwanted words and keep your community safe, family-friendly, and free from offensive language."
    12391154msgstr ""
    12401155
     
    12481163
    12491164#: admin/wbcom/templates/wbcom-plugins-page.php:333
    1250 msgid ""
    1251 "LMS Notes will extend the LMS functionality to create Notes for courses, "
    1252 "lessons and topics."
     1165msgid "LMS Notes will extend the LMS functionality to create Notes for courses, lessons and topics."
    12531166msgstr ""
    12541167
     
    12581171
    12591172#: admin/wbcom/templates/wbcom-plugins-page.php:343
    1260 msgid ""
    1261 "The LearnDash wpForo integration allows you to create dedicated discussion "
    1262 "channels for your learners and link your courses to multiple forums."
     1173msgid "The LearnDash wpForo integration allows you to create dedicated discussion channels for your learners and link your courses to multiple forums."
    12631174msgstr ""
    12641175
     
    12681179
    12691180#: admin/wbcom/templates/wbcom-plugins-page.php:353
    1270 msgid ""
    1271 "The LearnDash Dashboard provides admins, instructors, group leaders, and "
    1272 "students with personalized dashboards, allowing them to easily manage their "
    1273 "courses, lessons, and communication."
     1181msgid "The LearnDash Dashboard provides admins, instructors, group leaders, and students with personalized dashboards, allowing them to easily manage their courses, lessons, and communication."
    12741182msgstr ""
    12751183
     
    12831191
    12841192#: admin/wbcom/templates/wbcom-plugins-page.php:373
    1285 msgid ""
    1286 "Create your social network website for the company, school, sports team, or "
    1287 "any niche community using a highly customizable WordPress, Community theme."
     1193msgid "Create your social network website for the company, school, sports team, or any niche community using a highly customizable WordPress, Community theme."
    12881194msgstr ""
    12891195
     
    12931199
    12941200#: admin/wbcom/templates/wbcom-plugins-page.php:383
    1295 msgid ""
    1296 "Build a flexible, code-free online community website with full control. "
    1297 "Enjoy unique layouts, clean code, and easy customization for "
    1298 "BuddyPress/BossBoss Platform."
     1201msgid "Build a flexible, code-free online community website with full control. Enjoy unique layouts, clean code, and easy customization for BuddyPress/BossBoss Platform."
    12991202msgstr ""
    13001203
     
    13041207
    13051208#: admin/wbcom/templates/wbcom-plugins-page.php:393
    1306 msgid ""
    1307 "BuddyX is a free, fast, and responsive WordPress theme for creating social "
    1308 "network sites like Facebook. Ideal for BuddyPress and BuddyBoss "
    1309 "communities, memberships, eLearning, and marketplaces."
     1209msgid "BuddyX is a free, fast, and responsive WordPress theme for creating social network sites like Facebook. Ideal for BuddyPress and BuddyBoss communities, memberships, eLearning, and marketplaces."
    13101210msgstr ""
    13111211
     
    13151215
    13161216#: admin/wbcom/templates/wbcom-plugins-page.php:403
    1317 msgid ""
    1318 "A Free WordPress Knowledge base Theme. KnowX helps you set up a Knowledge "
    1319 "Base in WordPress in less time than it takes to brew a coffee."
     1217msgid "A Free WordPress Knowledge base Theme. KnowX helps you set up a Knowledge Base in WordPress in less time than it takes to brew a coffee."
    13201218msgstr ""
    13211219
     
    13291227
    13301228#: admin/wbcom/templates/wbcom-plugins-page.php:423
    1331 msgid ""
    1332 "Get dozens of stylish widgets packed inside Wbcom Essential. Enhance your "
    1333 "BuddyPress site's design with advanced customizations without needing any "
    1334 "technical skills."
     1229msgid "Get dozens of stylish widgets packed inside Wbcom Essential. Enhance your BuddyPress site's design with advanced customizations without needing any technical skills."
    13351230msgstr ""
    13361231
     
    13401235
    13411236#: admin/wbcom/templates/wbcom-plugins-page.php:433
    1342 msgid ""
    1343 "Effortlessly create and manage multiple member types. Personalize user "
    1344 "experiences and organize your community more effectively based on user "
    1345 "profiles."
     1237msgid "Effortlessly create and manage multiple member types. Personalize user experiences and organize your community more effectively based on user profiles."
    13461238msgstr ""
    13471239
     
    13511243
    13521244#: admin/wbcom/templates/wbcom-plugins-page.php:443
    1353 msgid ""
    1354 "Add advertisement placements across your BuddyPress community. Increase "
    1355 "engagement and generate extra revenue with seamless ad integration."
     1245msgid "Add advertisement placements across your BuddyPress community. Increase engagement and generate extra revenue with seamless ad integration."
    13561246msgstr ""
    13571247
     
    13611251
    13621252#: admin/wbcom/templates/wbcom-plugins-page.php:453
    1363 msgid ""
    1364 "Secure your BuddyPress, WordPress, and WooCommerce sites by adding powerful "
    1365 "Google reCaptcha protection against bots and spam activities."
     1253msgid "Secure your BuddyPress, WordPress, and WooCommerce sites by adding powerful Google reCaptcha protection against bots and spam activities."
    13661254msgstr ""
    13671255
     
    13711259
    13721260#: admin/wbcom/templates/wbcom-plugins-page.php:463
    1373 msgid ""
    1374 "Allow community members to create and manage their blog posts directly from "
    1375 "their BuddyPress profiles, boosting engagement and user-generated content."
     1261msgid "Allow community members to create and manage their blog posts directly from their BuddyPress profiles, boosting engagement and user-generated content."
    13761262msgstr ""
    13771263
     
    13811267
    13821268#: admin/wbcom/templates/wbcom-plugins-page.php:473
    1383 msgid ""
    1384 "Easily integrate WooCommerce with BuddyPress. Showcase WooCommerce "
    1385 "activities inside profiles and create a seamless social shopping experience."
     1269msgid "Easily integrate WooCommerce with BuddyPress. Showcase WooCommerce activities inside profiles and create a seamless social shopping experience."
    13861270msgstr ""
    13871271
     
    13911275
    13921276#: admin/wbcom/templates/wbcom-plugins-page.php:483
    1393 msgid ""
    1394 "Automatically generate rich link previews inside the activity feed, "
    1395 "displaying title, description, and image to make posts more engaging."
     1277msgid "Automatically generate rich link previews inside the activity feed, displaying title, description, and image to make posts more engaging."
    13961278msgstr ""
    13971279
     
    14011283
    14021284#: admin/wbcom/templates/wbcom-plugins-page.php:493
    1403 msgid ""
    1404 "Celebrate community members' birthdays by displaying upcoming birthdays in "
    1405 "a sidebar widget, fostering deeper social interactions."
     1285msgid "Celebrate community members' birthdays by displaying upcoming birthdays in a sidebar widget, fostering deeper social interactions."
    14061286msgstr ""
    14071287
     
    14111291
    14121292#: admin/wbcom/templates/wbcom-plugins-page.php:503
    1413 msgid ""
    1414 "Redirect users to custom pages after login or logout, based on their user "
    1415 "roles, creating a more personalized navigation experience."
     1293msgid "Redirect users to custom pages after login or logout, based on their user roles, creating a more personalized navigation experience."
    14161294msgstr ""
    14171295
     
    14211299
    14221300#: admin/wbcom/templates/wbcom-plugins-page.php:513
    1423 msgid ""
    1424 "Move the most recent interactions to the top of the activity feed "
    1425 "automatically, keeping your BuddyPress newsfeed lively and active."
     1301msgid "Move the most recent interactions to the top of the activity feed automatically, keeping your BuddyPress newsfeed lively and active."
    14261302msgstr ""
    14271303
     
    14311307
    14321308#: admin/wbcom/templates/wbcom-plugins-page.php:523
    1433 msgid ""
    1434 "Lock down selected BuddyPress components to create a private, members-only "
    1435 "community and protect your site's content from the public."
     1309msgid "Lock down selected BuddyPress components to create a private, members-only community and protect your site's content from the public."
    14361310msgstr ""
    14371311
     
    14411315
    14421316#: admin/wbcom/templates/wbcom-plugins-page.php:533
    1443 msgid ""
    1444 "Use simple shortcodes to embed BuddyPress components like activity streams, "
    1445 "member lists, or groups on any page or post."
     1317msgid "Use simple shortcodes to embed BuddyPress components like activity streams, member lists, or groups on any page or post."
    14461318msgstr ""
    14471319
     
    14511323
    14521324#: admin/wbcom/templates/wbcom-plugins-page.php:543
    1453 msgid ""
    1454 "Allow users to create, organize, and manage personal to-do lists with "
    1455 "categories directly from their BuddyPress profiles."
     1325msgid "Allow users to create, organize, and manage personal to-do lists with categories directly from their BuddyPress profiles."
    14561326msgstr ""
    14571327
     
    14611331
    14621332#: admin/wbcom/templates/wbcom-plugins-page.php:553
    1463 msgid ""
    1464 "Create dedicated job tabs for employers and candidates inside their "
    1465 "BuddyPress profiles, enhancing your site's job board functionality."
     1333msgid "Create dedicated job tabs for employers and candidates inside their BuddyPress profiles, enhancing your site's job board functionality."
    14661334msgstr ""
    14671335
     
    14711339
    14721340#: admin/wbcom/templates/wbcom-plugins-page.php:563
    1473 msgid ""
    1474 "Enable members to rate and review BuddyPress groups based on multiple "
    1475 "criteria, improving group quality and encouraging community feedback."
     1341msgid "Enable members to rate and review BuddyPress groups based on multiple criteria, improving group quality and encouraging community feedback."
    14761342msgstr ""
    14771343
     
    14811347
    14821348#: admin/wbcom/templates/wbcom-plugins-page.php:573
    1483 msgid ""
    1484 "Allow users to rate and review other member profiles based on customizable "
    1485 "criteria, helping build trust and credibility within your community."
     1349msgid "Allow users to rate and review other member profiles based on customizable criteria, helping build trust and credibility within your community."
    14861350msgstr ""
    14871351
     
    14911355
    14921356#: admin/wbcom/templates/wbcom-plugins-page.php:583
    1493 msgid ""
    1494 "Allow community members to post activity updates along with their current "
    1495 "location, encouraging real-world interactions and meetups."
     1357msgid "Allow community members to post activity updates along with their current location, encouraging real-world interactions and meetups."
    14961358msgstr ""
    14971359
     
    15011363
    15021364#: admin/wbcom/templates/wbcom-plugins-page.php:593
    1503 msgid ""
    1504 "Display customized activity feeds by applying filters to show specific "
    1505 "content types based on your community's needs."
     1365msgid "Display customized activity feeds by applying filters to show specific content types based on your community's needs."
    15061366msgstr ""
    15071367
     
    15111371
    15121372#: admin/wbcom/templates/wbcom-plugins-page.php:603
    1513 msgid ""
    1514 "Send real-time notifications to members when someone favorites their "
    1515 "content, boosting engagement and interaction across your community."
     1373msgid "Send real-time notifications to members when someone favorites their content, boosting engagement and interaction across your community."
    15161374msgstr ""
    15171375
     
    15211379
    15221380#: admin/wbcom/templates/wbcom-plugins-page.php:613
    1523 msgid ""
    1524 "Allow users to share their BuddyPress activity updates easily to external "
    1525 "social media platforms, extending their reach. "
     1381msgid "Allow users to share their BuddyPress activity updates easily to external social media platforms, extending their reach. "
    15261382msgstr ""
    15271383
    15281384#: admin/wbcom/templates/wbcom-support-page.php:9
    1529 #: admin/wbcom/wbcom-admin-settings.php:311
     1385#: admin/wbcom/wbcom-admin-settings.php:327
    15301386msgid "Help & Support"
    15311387msgstr ""
     
    15361392
    15371393#: admin/wbcom/templates/wbcom-support-page.php:15
    1538 msgid ""
    1539 "Our team is here to help you out at anytime. If you have any idea about how "
    1540 "we could improve. You can share access to your site on our helpdesk if it "
    1541 "can help getting faster."
     1394msgid "Our team is here to help you out at anytime. If you have any idea about how we could improve. You can share access to your site on our helpdesk if it can help getting faster."
    15421395msgstr ""
    15431396
     
    15471400
    15481401#: admin/wbcom/templates/wbcom-support-page.php:25
    1549 msgid ""
    1550 "Open a ticket on our helpdesk. We aim to respond within a week, but if "
    1551 "you’ve purchased one of our products, you’ll receive a reply within 24 "
    1552 "hours."
     1402msgid "Open a ticket on our helpdesk. We aim to respond within a week, but if you’ve purchased one of our products, you’ll receive a reply within 24 hours."
    15531403msgstr ""
    15541404
     
    15631413
    15641414#: admin/wbcom/templates/wbcom-support-page.php:42
    1565 msgid ""
    1566 "Create a new thread on our plugin page, participation is open to anyone "
    1567 "from all around the world. We'll be there to help as well but can't "
    1568 "guarantee any delay."
    1569 msgstr ""
    1570 
    1571 #: admin/wbcom/wbcom-admin-settings.php:193
     1415msgid "Create a new thread on our plugin page, participation is open to anyone from all around the world. We'll be there to help as well but can't guarantee any delay."
     1416msgstr ""
     1417
     1418#: admin/wbcom/wbcom-admin-settings.php:198
    15721419msgid "Activate"
    15731420msgstr ""
    15741421
    1575 #: admin/wbcom/wbcom-admin-settings.php:194
     1422#: admin/wbcom/wbcom-admin-settings.php:199
    15761423msgid "Deactivate"
    1577 msgstr ""
    1578 
    1579 #: admin/wbcom/wbcom-admin-settings.php:216
    1580 #: admin/wbcom/wbcom-admin-settings.php:217
    1581 msgid "Our Plugins"
    15821424msgstr ""
    15831425
    15841426#: admin/wbcom/wbcom-admin-settings.php:232
    15851427#: admin/wbcom/wbcom-admin-settings.php:233
     1428msgid "Our Plugins"
     1429msgstr ""
     1430
     1431#: admin/wbcom/wbcom-admin-settings.php:248
     1432#: admin/wbcom/wbcom-admin-settings.php:249
    15861433msgid "Support"
    15871434msgstr ""
    15881435
    1589 #: admin/wbcom/wbcom-admin-settings.php:299
     1436#: admin/wbcom/wbcom-admin-settings.php:315
    15901437msgid "Settings"
    15911438msgstr ""
    15921439
    1593 #: admin/wbcom/wbcom-admin-settings.php:305
     1440#: admin/wbcom/wbcom-admin-settings.php:321
    15941441msgid "Themes & Extension"
    15951442msgstr ""
    15961443
    1597 #: public/class-wc-document-preview-public.php:500
     1444#: public/class-wc-document-preview-public.php:507
    15981445msgid "File URL is empty."
    15991446msgstr ""
    16001447
    1601 #: public/class-wc-document-preview-public.php:505
     1448#: public/class-wc-document-preview-public.php:512
    16021449msgid "Invalid file URL."
    16031450msgstr ""
    16041451
    1605 #: public/class-wc-document-preview-public.php:524
    1606 msgid ""
    1607 "Unsupported file type: %s. Supported formats: %s, or direct links from "
    1608 "Google Docs, Google Sheets, OneDrive, and Dropbox."
    1609 msgstr ""
    1610 
    1611 #: public/class-wc-document-preview-public.php:601
     1452#: public/class-wc-document-preview-public.php:531
     1453#, php-format
     1454msgid "Unsupported file type: %s. Supported formats: %s, or direct links from Google Docs, Google Sheets, OneDrive, and Dropbox."
     1455msgstr ""
     1456
     1457#: public/class-wc-document-preview-public.php:608
     1458#, php-format
    16121459msgid "Preview %s Document"
    16131460msgstr ""
    16141461
    1615 #: public/class-wc-document-preview-public.php:667
     1462#: public/class-wc-document-preview-public.php:674
     1463#, php-format
    16161464msgid "Preview %s"
    16171465msgstr ""
    16181466
    1619 #: public/class-wc-document-preview-public.php:813
     1467#: public/class-wc-document-preview-public.php:820
    16201468msgid "Preview Documents:"
    16211469msgstr ""
    16221470
    1623 #: public/class-wc-document-preview-public.php:815
    1624 #: public/class-wc-document-preview-public.php:851
     1471#: public/class-wc-document-preview-public.php:822
     1472#: public/class-wc-document-preview-public.php:858
    16251473msgid "Preview Document:"
    16261474msgstr ""
  • woo-document-preview/trunk/public/class-wc-document-preview-public.php

    r3311902 r3327790  
    133133    public function enqueue_styles() {
    134134        if ( $this->is_woocommerce_product_page() ) {
    135             wp_enqueue_style(
    136                 $this->plugin_name,
    137                 plugin_dir_url( __FILE__ ) . 'css/wc-document-preview-public.css',
    138                 array(),
    139                 $this->version,
    140                 'all'
    141             );
     135            $css_file = $this->get_asset_filename('css', 'wc-document-preview-public');
     136            if ($css_file) {
     137                wp_enqueue_style(
     138                    $this->plugin_name,
     139                    plugin_dir_url(__FILE__) . $css_file,
     140                    array(),
     141                    $this->version,
     142                    'all'
     143                );
     144            }
    142145        }
    143146    }
     
    150153    public function enqueue_scripts() {
    151154        if ( $this->is_woocommerce_product_page() ) {
    152             wp_enqueue_script(
     155            $js_file = $this->get_asset_filename('js', 'wc-document-preview-public');
     156
     157        if ($js_file) {
     158            wp_enqueue_script(
    153159                $this->plugin_name,
    154                 plugin_dir_url( __FILE__ ) . 'js/wc-document-preview-public.js',
    155                 array( 'jquery' ),
     160                plugin_dir_url(__FILE__) . $js_file,
     161                array('jquery'),
    156162                $this->version,
    157                 false 
     163                false
    158164            );
     165        }
    159166        }
    160167    }
     
    14031410        );
    14041411    }
     1412
     1413    /**
     1414     * Get asset filename with intelligent fallback
     1415     *
     1416     * @since    1.6.0
     1417     * @param    string $type     Asset type ('css' or 'js')
     1418     * @param    string $filename Base filename without extension
     1419     * @return   string|false     Full filename with path or false if not found
     1420     */
     1421    private function get_asset_filename($type, $filename) {
     1422        // Determine if we should use minified files
     1423        $use_minified = !(defined('SCRIPT_DEBUG') && SCRIPT_DEBUG);
     1424       
     1425        // Determine if RTL is needed (only for CSS)
     1426        $is_rtl = ($type === 'css') ? is_rtl() : false;
     1427       
     1428        // Build the base directory path
     1429        $base_dir = plugin_dir_path(__FILE__) . $type . '/';
     1430        $actual_type = $type;
     1431        $actual_base_dir = $base_dir;
     1432       
     1433        // Array of file variants to try in order of preference
     1434        $variants = array();
     1435       
     1436        if ($type === 'css') {
     1437            if ($is_rtl && $use_minified) {
     1438                $variants[] = $filename . '.min.css';      // 1st preference: RTL minified
     1439                $variants[] = $filename . '.css';          // 2nd preference: RTL non-minified
     1440            } elseif ($is_rtl && !$use_minified) {
     1441                $variants[] = $filename . '.css';          // 1st preference: RTL non-minified
     1442            } elseif (!$is_rtl && $use_minified) {
     1443                $variants[] = $filename . '.min.css';          // 1st preference: LTR minified
     1444                $variants[] = $filename . '.css';              // 2nd preference: LTR non-minified
     1445            } else {
     1446                $variants[] = $filename . '.css';              // 1st preference: LTR non-minified
     1447            }
     1448        } else { // JavaScript
     1449            if ($use_minified) {
     1450                $variants[] = $filename . '.min.js';           // 1st preference: minified
     1451                $variants[] = $filename . '.js';               // 2nd preference: non-minified
     1452            } else {
     1453                $variants[] = $filename . '.js';               // 1st preference: non-minified
     1454            }
     1455        }
     1456
     1457        if ($type === 'css' &&  $is_rtl ) {
     1458            $actual_type = 'css-rtl';
     1459            $actual_base_dir = plugin_dir_path(__FILE__) . 'css-rtl/';
     1460        }
     1461       
     1462        // Check each variant in order
     1463        foreach ($variants as $variant) {
     1464            if (file_exists($actual_base_dir . $variant)) {
     1465                // Log which file is being used in debug mode
     1466                if (defined('WP_DEBUG') && WP_DEBUG && defined('WP_DEBUG_LOG') && WP_DEBUG_LOG) {
     1467                    error_log(sprintf(
     1468                        'WCAP Asset: Loading %s file: %s (RTL: %s, Debug: %s)',
     1469                        $actual_type,
     1470                        $variant,
     1471                        $is_rtl ? 'yes' : 'no',
     1472                        !$use_minified ? 'yes' : 'no'
     1473                    ));
     1474                }
     1475               
     1476                return $actual_type . '/' . $variant;
     1477            }
     1478        }
     1479       
     1480        // No valid file found - log error
     1481        if (defined('WP_DEBUG') && WP_DEBUG) {
     1482            error_log(sprintf(
     1483                'WCAP Asset Error: No %s file found for %s (tried: %s)',
     1484                $actual_type,
     1485                $filename,
     1486                implode(', ', $variants)
     1487            ));
     1488        }
     1489       
     1490        return false;
     1491    }
    14051492}
  • woo-document-preview/trunk/readme.txt

    r3311902 r3327790  
    4747
    4848== Changelog ==
     49= 1.6.0 =
     50* Fixed: Issue preventing product publishing when no document is added.
     51* Improved: Validation logic to allow product save without requiring document upload.
     52* Improved: Error handling for smoother product management.
     53* Note: Preparing ground for future support of minified assets and RTL styles.
     54
    4955= 1.5.0 =
    5056* Added: Default file icon for unsupported formats.
  • woo-document-preview/trunk/woo-product-document-preview.php

    r3311902 r3327790  
    1515 * Plugin URI:        http://wbcomdesigns.com
    1616 * Description:       Woo Document Preview lets you display a document preview on the single product page, helping customers better understand your offerings when selling eBooks, PDFs, or other digital documents.
    17  * Version:           1.5.0
     17 * Version:           1.6.0
    1818 * Author:            Wbcom Designs <[email protected]>
    1919 * Author URI:        http://wbcomdesigns.com
     
    3434 * Rename this for your plugin and update it as you release new versions.
    3535 */
    36 define( 'WC_DOCUMENT_PREVIEW_VERSION', '1.5.0' );
     36define( 'WC_DOCUMENT_PREVIEW_VERSION', '1.6.0' );
    3737
    3838/**
Note: See TracChangeset for help on using the changeset viewer.