Plugin Directory

Changeset 3483852


Ignore:
Timestamp:
03/16/2026 12:31:03 PM (12 days ago)
Author:
wpclever
Message:

Update 4.3.5

Location:
wpc-variation-swatches
Files:
47 added
7 edited

Legend:

Unmodified
Added
Removed
  • wpc-variation-swatches/trunk/includes/dashboard/css/dashboard.css

    r3415981 r3483852  
    287287}
    288288
     289.wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpclever_submit {
     290  display: flex;
     291  align-items: center;
     292}
     293
     294.wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpc-last-saved {
     295  font-weight: 400;
     296  font-size: 12px;
     297  color: #999;
     298  margin-left: 10px;
     299  display: flex;
     300  align-items: center;
     301}
     302
     303.wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpc-last-saved .dashicons {
     304  font-size: 15px;
     305  width: 15px;
     306  height: 15px;
     307  margin-right: 5px;
     308  color: #22c55e;
     309}
     310
    289311.wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpclever_export {
    290312  position: absolute;
     
    293315  transform: translateY(-50%);
    294316  font-weight: 400;
     317}
     318
     319#wpclever_export .wpclever_export_data {
     320  width: 100%;
     321  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
     322  font-size: 12.5px;
     323  line-height: 20px;
     324  padding: 0 12px;
     325  background-image: repeating-linear-gradient(to bottom, #ffffff 0px, #ffffff 20px, #fafafa 20px, #fafafa 40px);
     326  background-attachment: local;
     327  resize: vertical;
     328  box-sizing: border-box;
     329  outline: none;
    295330}
    296331
     
    462497  border-left: none;
    463498  border-right: 4px solid #23282d;
     499}
     500
     501body.rtl .wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpclever_export {
     502  left: 20px;
     503  right: auto;
    464504}
    465505
  • wpc-variation-swatches/trunk/includes/dashboard/css/dashboard.css.map

    r3415981 r3483852  
    1 {"version":3,"sourceRoot":"","sources":["dashboard.scss"],"names":[],"mappings":";AAAA;EACE;IACE;;;AAIJ;EACE;IACE;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AAEA;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;AAEA;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;AAEA;EACE;IACE;IACA;IACA;IACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAIJ;EACE;EACA;EACA;EACA;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;IACE;;;AAIJ;EACE;IACE;;;AAIJ;EACE;IACE;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;AAEA;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;AAEA;EACE;;;AAGF;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA","file":"dashboard.css"}
     1{"version":3,"sourceRoot":"","sources":["dashboard.scss"],"names":[],"mappings":";AAAA;EACE;IACE;;;AAIJ;EACE;IACE;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AAEA;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;AAEA;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;AAEA;EACE;IACE;IACA;IACA;IACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAIJ;EACE;EACA;EACA;EACA;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EAOA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;IACE;;;AAIJ;EACE;IACE;;;AAIJ;EACE;IACE;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;AAEA;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;AAEA;EACE;;;AAGF;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA","file":"dashboard.css"}
  • wpc-variation-swatches/trunk/includes/dashboard/css/dashboard.scss

    r3415981 r3483852  
    299299}
    300300
     301.wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpclever_submit {
     302  display: flex;
     303  align-items: center;
     304}
     305
     306.wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpc-last-saved {
     307  font-weight: 400;
     308  font-size: 12px;
     309  color: #999;
     310  margin-left: 10px;
     311  display: flex;
     312  align-items: center;
     313}
     314
     315.wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpc-last-saved .dashicons {
     316  font-size: 15px;
     317  width: 15px;
     318  height: 15px;
     319  margin-right: 5px;
     320  color: #22c55e;
     321}
     322
    301323.wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpclever_export {
    302324  position: absolute;
     
    305327  transform: translateY(-50%);
    306328  font-weight: 400;
     329}
     330
     331#wpclever_export .wpclever_export_data {
     332  width: 100%;
     333  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
     334  font-size: 12.5px;
     335  line-height: 20px;
     336  padding: 0 12px;
     337  background-image: repeating-linear-gradient(
     338                  to bottom,
     339                  #ffffff 0px,
     340                  #ffffff 20px,
     341                  #fafafa 20px,
     342                  #fafafa 40px
     343  );
     344  background-attachment: local;
     345  resize: vertical;
     346  box-sizing: border-box;
     347  outline: none;
    307348}
    308349
     
    478519  border-left: none;
    479520  border-right: 4px solid #23282d;
     521}
     522
     523body.rtl .wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpclever_export {
     524  left: 20px;
     525  right: auto;
    480526}
    481527
  • wpc-variation-swatches/trunk/includes/dashboard/wpc-dashboard.php

    r3415981 r3483852  
    11<?php
    22defined( 'ABSPATH' ) || exit;
    3 
    4 if ( ! class_exists( 'WPCleverMenu' ) ) {
    5     class WPCleverMenu {
    6         function __construct() {
    7             // do nothing, moved to WPCleverDashboard
    8         }
    9     }
    10 
    11     new WPCleverMenu();
    12 }
    133
    144if ( ! class_exists( 'WPCleverDashboard' ) ) {
     
    232222
    233223            if ( ! empty( $key ) && ( $settings = get_option( $key ) ) ) {
     224                unset( $settings['_last_saved'] );
     225                unset( $settings['_last_saved_by'] );
     226
    234227                echo '<textarea class="wpclever_export_data" id="wpclever_export_data" style="width: 100%; height: 200px; margin-bottom: 10px;" data-key="' . esc_attr( $key ) . '">' . esc_textarea( wp_json_encode( $settings, JSON_PRETTY_PRINT ) ) . '</textarea>';
    235228                echo '<div style="display: flex; align-items: center"><button class="button button-primary wpclever_import" data-key="' . esc_attr( $key ) . '">Update</button>';
     
    265258    new WPCleverDashboard();
    266259}
     260
     261if ( ! function_exists( 'wpc_last_saved' ) ) {
     262    function wpc_last_saved( $settings ) {
     263        $last_saved = isset( $settings['_last_saved'] ) ? (int) $settings['_last_saved'] : 0;
     264
     265        if ( $last_saved ) {
     266            $time_diff = human_time_diff( $last_saved, current_time( 'timestamp' ) );
     267            $time_full = date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $last_saved );
     268
     269            // Who saved it
     270            $saved_by_id   = isset( $settings['_last_saved_by'] ) ? (int) $settings['_last_saved_by'] : 0;
     271            $saved_by_name = '';
     272
     273            if ( $saved_by_id ) {
     274                $user = get_userdata( $saved_by_id );
     275
     276                if ( $user ) {
     277                    $saved_by_name = $user->display_name;
     278                }
     279            }
     280
     281            $by_text = $saved_by_name ? ' ' . sprintf( 'by %s', esc_html( $saved_by_name ) ) : '';
     282
     283            echo '<span class="wpc-last-saved" title="' . esc_attr( $time_full ) . '"><span class="dashicons dashicons-saved"></span> '
     284                 . sprintf(
     285                         'Saved %1$s ago',
     286                         esc_html( $time_diff )
     287                 )
     288                 . $by_text
     289                 . '</span>';
     290        }
     291    }
     292}
  • wpc-variation-swatches/trunk/languages/wpc-variation-swatches.pot

    r3415981 r3483852  
    1 # Copyright (C) 2025 WPClever
     1# Copyright (C) 2026 WPClever
    22# This file is distributed under the GPLv2 or later.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WPC Variation Swatches for WooCommerce 4.3.4\n"
     5"Project-Id-Version: WPC Variation Swatches for WooCommerce 4.3.5\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpc-variation-swatches\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-12-10T04:49:00+00:00\n"
     12"POT-Creation-Date: 2026-03-16T12:29:28+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    4040msgstr ""
    4141
    42 #: wpc-variation-swatches.php:224
    43 #: wpc-variation-swatches.php:382
    44 #: wpc-variation-swatches.php:396
     42#: wpc-variation-swatches.php:226
     43#: wpc-variation-swatches.php:393
     44#: wpc-variation-swatches.php:407
    4545msgid "WPC Variation Swatches"
    4646msgstr ""
    4747
    48 #: wpc-variation-swatches.php:229
     48#: wpc-variation-swatches.php:231
    4949msgid "Custom name"
    5050msgstr ""
    5151
    52 #: wpc-variation-swatches.php:348
    53 #: wpc-variation-swatches.php:776
    54 #: wpc-variation-swatches.php:782
     52#: wpc-variation-swatches.php:350
     53#: wpc-variation-swatches.php:796
     54#: wpc-variation-swatches.php:802
    5555msgid "Add to cart"
    5656msgstr ""
    5757
    58 #: wpc-variation-swatches.php:349
    59 #: wpc-variation-swatches.php:787
    60 #: wpc-variation-swatches.php:793
     58#: wpc-variation-swatches.php:351
     59#: wpc-variation-swatches.php:807
     60#: wpc-variation-swatches.php:813
    6161msgid "Select options"
    6262msgstr ""
    6363
    64 #: wpc-variation-swatches.php:350
    65 #: wpc-variation-swatches.php:798
    66 #: wpc-variation-swatches.php:804
     64#: wpc-variation-swatches.php:352
     65#: wpc-variation-swatches.php:818
     66#: wpc-variation-swatches.php:824
    6767msgid "View cart"
    6868msgstr ""
    6969
    70 #: wpc-variation-swatches.php:382
     70#: wpc-variation-swatches.php:393
    7171msgid "Variation Swatches"
    7272msgstr ""
    7373
    7474#. translators: stars
    75 #: wpc-variation-swatches.php:399
     75#: wpc-variation-swatches.php:410
    7676#, php-format
    7777msgid "Thank you for using our plugin! If you are satisfied, please reward it a full five-star %s rating."
    7878msgstr ""
    7979
    80 #: wpc-variation-swatches.php:402
     80#: wpc-variation-swatches.php:413
    8181msgid "Reviews"
    8282msgstr ""
    8383
    84 #: wpc-variation-swatches.php:405
     84#: wpc-variation-swatches.php:416
    8585msgid "Changelog"
    8686msgstr ""
    8787
    88 #: wpc-variation-swatches.php:408
     88#: wpc-variation-swatches.php:419
    8989msgid "Discussion"
    9090msgstr ""
    9191
    92 #: wpc-variation-swatches.php:416
     92#: wpc-variation-swatches.php:427
    9393msgid "Settings updated."
    9494msgstr ""
    9595
    96 #: wpc-variation-swatches.php:423
    97 #: wpc-variation-swatches.php:877
     96#: wpc-variation-swatches.php:434
     97#: wpc-variation-swatches.php:906
    9898msgid "Settings"
    9999msgstr ""
    100100
    101 #: wpc-variation-swatches.php:427
     101#: wpc-variation-swatches.php:438
    102102msgid "Localization"
    103103msgstr ""
    104104
    105 #: wpc-variation-swatches.php:431
     105#: wpc-variation-swatches.php:442
    106106msgid "Essential Kit"
    107107msgstr ""
    108108
    109 #: wpc-variation-swatches.php:457
    110 #: wpc-variation-swatches.php:770
     109#: wpc-variation-swatches.php:468
     110#: wpc-variation-swatches.php:790
    111111msgid "General"
    112112msgstr ""
    113113
    114 #: wpc-variation-swatches.php:461
     114#: wpc-variation-swatches.php:472
    115115msgid "Button swatch by default"
    116116msgstr ""
    117117
    118 #: wpc-variation-swatches.php:464
    119118#: wpc-variation-swatches.php:475
    120 #: wpc-variation-swatches.php:521
    121 #: wpc-variation-swatches.php:531
    122 #: wpc-variation-swatches.php:541
    123 #: wpc-variation-swatches.php:566
    124 #: wpc-variation-swatches.php:638
    125 #: wpc-variation-swatches.php:672
    126 #: wpc-variation-swatches.php:936
    127 msgid "Yes"
    128 msgstr ""
    129 
    130 #: wpc-variation-swatches.php:465
    131 #: wpc-variation-swatches.php:476
    132 #: wpc-variation-swatches.php:522
     119#: wpc-variation-swatches.php:486
    133120#: wpc-variation-swatches.php:532
    134121#: wpc-variation-swatches.php:542
     122#: wpc-variation-swatches.php:552
     123#: wpc-variation-swatches.php:577
     124#: wpc-variation-swatches.php:649
     125#: wpc-variation-swatches.php:683
     126#: wpc-variation-swatches.php:965
     127msgid "Yes"
     128msgstr ""
     129
     130#: wpc-variation-swatches.php:476
     131#: wpc-variation-swatches.php:487
     132#: wpc-variation-swatches.php:533
     133#: wpc-variation-swatches.php:543
     134#: wpc-variation-swatches.php:553
     135#: wpc-variation-swatches.php:578
     136#: wpc-variation-swatches.php:650
     137#: wpc-variation-swatches.php:684
     138#: wpc-variation-swatches.php:964
     139msgid "No"
     140msgstr ""
     141
     142#: wpc-variation-swatches.php:478
     143msgid "Turn the default type to button type."
     144msgstr ""
     145
     146#: wpc-variation-swatches.php:483
     147msgid "Enable second click to undo?"
     148msgstr ""
     149
     150#: wpc-variation-swatches.php:489
     151msgid "Enable/disable click again to undo the selection on current attribute."
     152msgstr ""
     153
     154#: wpc-variation-swatches.php:494
     155msgid "Tooltip library"
     156msgstr ""
     157
     158#: wpc-variation-swatches.php:497
     159msgid "Hint.css"
     160msgstr ""
     161
     162#: wpc-variation-swatches.php:498
     163msgid "Tippy.js"
     164msgstr ""
     165
     166#: wpc-variation-swatches.php:499
     167msgid "None (Disable)"
     168msgstr ""
     169
     170#: wpc-variation-swatches.php:508
     171msgid "Tooltip position"
     172msgstr ""
     173
     174#: wpc-variation-swatches.php:511
     175msgid "Top"
     176msgstr ""
     177
     178#: wpc-variation-swatches.php:512
     179msgid "Right"
     180msgstr ""
     181
     182#: wpc-variation-swatches.php:513
     183msgid "Bottom"
     184msgstr ""
     185
     186#: wpc-variation-swatches.php:514
     187msgid "Left"
     188msgstr ""
     189
     190#: wpc-variation-swatches.php:516
     191msgid "For Hint.css only."
     192msgstr ""
     193
     194#: wpc-variation-swatches.php:520
     195msgid "Style"
     196msgstr ""
     197
     198#: wpc-variation-swatches.php:523
     199msgid "Square"
     200msgstr ""
     201
     202#: wpc-variation-swatches.php:524
     203msgid "Rounded"
     204msgstr ""
     205
     206#: wpc-variation-swatches.php:529
     207#: wpc-variation-swatches.php:970
     208msgid "Term groups"
     209msgstr ""
     210
     211#: wpc-variation-swatches.php:535
     212msgid "Enable/disable using group for attribute terms."
     213msgstr ""
     214
     215#: wpc-variation-swatches.php:539
     216msgid "Select default attributes"
     217msgstr ""
     218
     219#: wpc-variation-swatches.php:545
     220msgid "Select default attributes automatically if they were not set."
     221msgstr ""
     222
     223#: wpc-variation-swatches.php:549
     224msgid "Swatches for non-variable products"
     225msgstr ""
     226
     227#: wpc-variation-swatches.php:555
     228msgid "Display visible attributes as swatches for non-variable products."
     229msgstr ""
     230
     231#: wpc-variation-swatches.php:560
     232msgid "Single Product"
     233msgstr ""
     234
     235#: wpc-variation-swatches.php:564
     236msgid "Layout"
     237msgstr ""
     238
    135239#: wpc-variation-swatches.php:567
    136 #: wpc-variation-swatches.php:639
    137 #: wpc-variation-swatches.php:673
    138 #: wpc-variation-swatches.php:935
    139 msgid "No"
    140 msgstr ""
    141 
    142 #: wpc-variation-swatches.php:467
    143 msgid "Turn the default type to button type."
    144 msgstr ""
    145 
    146 #: wpc-variation-swatches.php:472
    147 msgid "Enable second click to undo?"
    148 msgstr ""
    149 
    150 #: wpc-variation-swatches.php:478
    151 msgid "Enable/disable click again to undo the selection on current attribute."
    152 msgstr ""
    153 
    154 #: wpc-variation-swatches.php:483
    155 msgid "Tooltip library"
    156 msgstr ""
    157 
    158 #: wpc-variation-swatches.php:486
    159 msgid "Hint.css"
    160 msgstr ""
    161 
    162 #: wpc-variation-swatches.php:487
    163 msgid "Tippy.js"
    164 msgstr ""
    165 
    166 #: wpc-variation-swatches.php:488
    167 msgid "None (Disable)"
    168 msgstr ""
    169 
    170 #: wpc-variation-swatches.php:497
    171 msgid "Tooltip position"
    172 msgstr ""
    173 
    174 #: wpc-variation-swatches.php:500
    175 msgid "Top"
    176 msgstr ""
    177 
    178 #: wpc-variation-swatches.php:501
    179 msgid "Right"
    180 msgstr ""
    181 
    182 #: wpc-variation-swatches.php:502
    183 msgid "Bottom"
    184 msgstr ""
    185 
    186 #: wpc-variation-swatches.php:503
    187 msgid "Left"
    188 msgstr ""
    189 
    190 #: wpc-variation-swatches.php:505
    191 msgid "For Hint.css only."
    192 msgstr ""
    193 
    194 #: wpc-variation-swatches.php:509
    195 msgid "Style"
    196 msgstr ""
    197 
    198 #: wpc-variation-swatches.php:512
    199 msgid "Square"
    200 msgstr ""
    201 
    202 #: wpc-variation-swatches.php:513
    203 msgid "Rounded"
    204 msgstr ""
    205 
    206 #: wpc-variation-swatches.php:518
     240msgid "Table (default)"
     241msgstr ""
     242
     243#: wpc-variation-swatches.php:568
     244msgid "Stacked"
     245msgstr ""
     246
     247#: wpc-variation-swatches.php:570
     248msgid "Choose the layout for swatches on the single product page."
     249msgstr ""
     250
     251#: wpc-variation-swatches.php:574
     252msgid "Change URL"
     253msgstr ""
     254
     255#: wpc-variation-swatches.php:580
     256msgid "Change the URL on address bar when choosing attribute term."
     257msgstr ""
     258
     259#: wpc-variation-swatches.php:584
     260msgid "Replacement"
     261msgstr ""
     262
     263#: wpc-variation-swatches.php:587
     264#: wpc-variation-swatches.php:646
     265msgid "Enable"
     266msgstr ""
     267
     268#: wpc-variation-swatches.php:588
     269msgid "Disable"
     270msgstr ""
     271
     272#: wpc-variation-swatches.php:590
     273msgid "Enable it to replace the product name/price/description when choosing variations."
     274msgstr ""
     275
     276#: wpc-variation-swatches.php:594
     277#: wpc-variation-swatches.php:690
     278msgid "Selector"
     279msgstr ""
     280
     281#. translators: selector
     282#: wpc-variation-swatches.php:598
     283#: wpc-variation-swatches.php:694
     284#, php-format
     285msgid "Product wrapper selector. Default: %s"
     286msgstr ""
     287
     288#. translators: selector
     289#: wpc-variation-swatches.php:608
     290#: wpc-variation-swatches.php:724
     291#, php-format
     292msgid "Product name selector. Default: %s"
     293msgstr ""
     294
     295#. translators: selector
     296#: wpc-variation-swatches.php:618
     297#: wpc-variation-swatches.php:734
     298#, php-format
     299msgid "Product price selector. Default: %s"
     300msgstr ""
     301
     302#. translators: selector
     303#: wpc-variation-swatches.php:628
     304#, php-format
     305msgid "Product short description selector. Default: %s"
     306msgstr ""
     307
     308#: wpc-variation-swatches.php:642
     309msgid "Product Archive"
     310msgstr ""
     311
     312#: wpc-variation-swatches.php:652
     313msgid "Enable swatches for product archive page."
     314msgstr ""
     315
     316#: wpc-variation-swatches.php:656
     317msgid "Position"
     318msgstr ""
     319
     320#: wpc-variation-swatches.php:659
     321msgid "Before add to cart button"
     322msgstr ""
     323
     324#: wpc-variation-swatches.php:660
     325msgid "After add to cart button"
     326msgstr ""
     327
     328#: wpc-variation-swatches.php:661
     329msgid "None"
     330msgstr ""
     331
     332#. translators: shortcode
     333#: wpc-variation-swatches.php:663
     334#, php-format
     335msgid "Swatches position on product archive page. You also can use the shortcode: %s"
     336msgstr ""
     337
     338#: wpc-variation-swatches.php:668
     339msgid "Limit"
     340msgstr ""
     341
     342#: wpc-variation-swatches.php:675
     343msgid "Maximum terms of each attribute will be shown on product archive page."
     344msgstr ""
     345
     346#: wpc-variation-swatches.php:680
     347msgid "Change link"
     348msgstr ""
     349
     350#: wpc-variation-swatches.php:686
     351msgid "Change the product link when choosing attribute term."
     352msgstr ""
     353
     354#. translators: selector
     355#: wpc-variation-swatches.php:704
     356#, php-format
     357msgid "Product link selector. Default: %s"
     358msgstr ""
     359
     360#. translators: selector
     361#: wpc-variation-swatches.php:714
     362#, php-format
     363msgid "Product image selector. Default: %s"
     364msgstr ""
     365
     366#. translators: selector
     367#: wpc-variation-swatches.php:744
     368#, php-format
     369msgid "Add to cart button selector. Default: %s"
     370msgstr ""
     371
     372#. translators: selector
     373#: wpc-variation-swatches.php:754
     374#, php-format
     375msgid "Add to cart button text selector. Default: %s"
     376msgstr ""
     377
     378#: wpc-variation-swatches.php:781
     379#: wpc-variation-swatches.php:867
     380msgid "import / export"
     381msgstr ""
     382
     383#: wpc-variation-swatches.php:792
     384msgid "Leave blank to use the default text and its equivalent translation in multiple languages."
     385msgstr ""
     386
     387#: wpc-variation-swatches.php:829
     388msgid "More"
     389msgstr ""
     390
     391#. translators: count
     392#: wpc-variation-swatches.php:836
     393#: wpc-variation-swatches.php:1301
     394#: wpc-variation-swatches.php:1336
     395#, php-format
     396msgid "+%d More"
     397msgstr ""
     398
     399#: wpc-variation-swatches.php:841
     400msgid "Option none"
     401msgstr ""
     402
     403#. translators: attribute name
     404#: wpc-variation-swatches.php:848
     405#: wpc-variation-swatches.php:1711
     406#, php-format
     407msgid "Choose %s"
     408msgstr ""
     409
     410#: wpc-variation-swatches.php:922
     411msgid "Community support"
     412msgstr ""
     413
     414#: wpc-variation-swatches.php:937
     415msgid "Select"
     416msgstr ""
     417
     418#: wpc-variation-swatches.php:938
     419#: wpc-variation-swatches.php:1040
     420msgid "Button"
     421msgstr ""
     422
     423#: wpc-variation-swatches.php:939
     424#: wpc-variation-swatches.php:1046
     425msgid "Color"
     426msgstr ""
     427
     428#: wpc-variation-swatches.php:940
     429#: wpc-variation-swatches.php:1060
     430msgid "Image"
     431msgstr ""
     432
    207433#: wpc-variation-swatches.php:941
    208 msgid "Term groups"
    209 msgstr ""
    210 
    211 #: wpc-variation-swatches.php:524
    212 msgid "Enable/disable using group for attribute terms."
    213 msgstr ""
    214 
    215 #: wpc-variation-swatches.php:528
    216 msgid "Select default attributes"
    217 msgstr ""
    218 
    219 #: wpc-variation-swatches.php:534
    220 msgid "Select default attributes automatically if they were not set."
    221 msgstr ""
    222 
    223 #: wpc-variation-swatches.php:538
    224 msgid "Swatches for non-variable products"
    225 msgstr ""
    226 
    227 #: wpc-variation-swatches.php:544
    228 msgid "Display visible attributes as swatches for non-variable products."
    229 msgstr ""
    230 
    231 #: wpc-variation-swatches.php:549
    232 msgid "Single Product"
    233 msgstr ""
    234 
    235 #: wpc-variation-swatches.php:553
    236 msgid "Layout"
    237 msgstr ""
    238 
    239 #: wpc-variation-swatches.php:556
    240 msgid "Table (default)"
    241 msgstr ""
    242 
    243 #: wpc-variation-swatches.php:557
    244 msgid "Stacked"
    245 msgstr ""
    246 
    247 #: wpc-variation-swatches.php:559
    248 msgid "Choose the layout for swatches on the single product page."
    249 msgstr ""
    250 
    251 #: wpc-variation-swatches.php:563
    252 msgid "Change URL"
    253 msgstr ""
    254 
    255 #: wpc-variation-swatches.php:569
    256 msgid "Change the URL on address bar when choosing attribute term."
    257 msgstr ""
    258 
    259 #: wpc-variation-swatches.php:573
    260 msgid "Replacement"
    261 msgstr ""
    262 
    263 #: wpc-variation-swatches.php:576
    264 #: wpc-variation-swatches.php:635
    265 msgid "Enable"
    266 msgstr ""
    267 
    268 #: wpc-variation-swatches.php:577
    269 msgid "Disable"
    270 msgstr ""
    271 
    272 #: wpc-variation-swatches.php:579
    273 msgid "Enable it to replace the product name/price/description when choosing variations."
    274 msgstr ""
    275 
    276 #: wpc-variation-swatches.php:583
    277 #: wpc-variation-swatches.php:679
    278 msgid "Selector"
    279 msgstr ""
    280 
    281 #. translators: selector
    282 #: wpc-variation-swatches.php:587
    283 #: wpc-variation-swatches.php:683
    284 #, php-format
    285 msgid "Product wrapper selector. Default: %s"
    286 msgstr ""
    287 
    288 #. translators: selector
    289 #: wpc-variation-swatches.php:597
    290 #: wpc-variation-swatches.php:713
    291 #, php-format
    292 msgid "Product name selector. Default: %s"
    293 msgstr ""
    294 
    295 #. translators: selector
    296 #: wpc-variation-swatches.php:607
    297 #: wpc-variation-swatches.php:723
    298 #, php-format
    299 msgid "Product price selector. Default: %s"
    300 msgstr ""
    301 
    302 #. translators: selector
    303 #: wpc-variation-swatches.php:617
    304 #, php-format
    305 msgid "Product short description selector. Default: %s"
    306 msgstr ""
    307 
    308 #: wpc-variation-swatches.php:631
    309 msgid "Product Archive"
    310 msgstr ""
    311 
    312 #: wpc-variation-swatches.php:641
    313 msgid "Enable swatches for product archive page."
    314 msgstr ""
    315 
    316 #: wpc-variation-swatches.php:645
    317 msgid "Position"
    318 msgstr ""
    319 
    320 #: wpc-variation-swatches.php:648
    321 msgid "Before add to cart button"
    322 msgstr ""
    323 
    324 #: wpc-variation-swatches.php:649
    325 msgid "After add to cart button"
    326 msgstr ""
    327 
    328 #: wpc-variation-swatches.php:650
    329 msgid "None"
    330 msgstr ""
    331 
    332 #. translators: shortcode
    333 #: wpc-variation-swatches.php:652
    334 #, php-format
    335 msgid "Swatches position on product archive page. You also can use the shortcode: %s"
    336 msgstr ""
    337 
    338 #: wpc-variation-swatches.php:657
    339 msgid "Limit"
    340 msgstr ""
    341 
    342 #: wpc-variation-swatches.php:664
    343 msgid "Maximum terms of each attribute will be shown on product archive page."
    344 msgstr ""
    345 
    346 #: wpc-variation-swatches.php:669
    347 msgid "Change link"
    348 msgstr ""
    349 
    350 #: wpc-variation-swatches.php:675
    351 msgid "Change the product link when choosing attribute term."
    352 msgstr ""
    353 
    354 #. translators: selector
    355 #: wpc-variation-swatches.php:693
    356 #, php-format
    357 msgid "Product link selector. Default: %s"
    358 msgstr ""
    359 
    360 #. translators: selector
    361 #: wpc-variation-swatches.php:703
    362 #, php-format
    363 msgid "Product image selector. Default: %s"
    364 msgstr ""
    365 
    366 #. translators: selector
    367 #: wpc-variation-swatches.php:733
    368 #, php-format
    369 msgid "Add to cart button selector. Default: %s"
    370 msgstr ""
    371 
    372 #. translators: selector
    373 #: wpc-variation-swatches.php:743
    374 #, php-format
    375 msgid "Add to cart button text selector. Default: %s"
    376 msgstr ""
    377 
    378 #: wpc-variation-swatches.php:761
    379 #: wpc-variation-swatches.php:838
    380 msgid "import / export"
    381 msgstr ""
    382 
    383 #: wpc-variation-swatches.php:772
    384 msgid "Leave blank to use the default text and its equivalent translation in multiple languages."
    385 msgstr ""
    386 
    387 #: wpc-variation-swatches.php:809
    388 msgid "More"
    389 msgstr ""
    390 
    391 #. translators: count
    392 #: wpc-variation-swatches.php:816
    393 #: wpc-variation-swatches.php:1272
    394 #: wpc-variation-swatches.php:1307
    395 #, php-format
    396 msgid "+%d More"
    397 msgstr ""
    398 
    399 #: wpc-variation-swatches.php:821
    400 msgid "Option none"
    401 msgstr ""
    402 
    403 #. translators: attribute name
    404 #: wpc-variation-swatches.php:828
    405 #: wpc-variation-swatches.php:1682
    406 #, php-format
    407 msgid "Choose %s"
    408 msgstr ""
    409 
    410 #: wpc-variation-swatches.php:893
    411 msgid "Community support"
    412 msgstr ""
    413 
    414 #: wpc-variation-swatches.php:908
    415 msgid "Select"
    416 msgstr ""
    417 
    418 #: wpc-variation-swatches.php:909
    419 #: wpc-variation-swatches.php:1011
    420 msgid "Button"
    421 msgstr ""
    422 
    423 #: wpc-variation-swatches.php:910
    424 #: wpc-variation-swatches.php:1017
    425 msgid "Color"
    426 msgstr ""
    427 
    428 #: wpc-variation-swatches.php:911
    429 #: wpc-variation-swatches.php:1031
    430 msgid "Image"
    431 msgstr ""
    432 
    433 #: wpc-variation-swatches.php:912
    434434msgid "Radio"
    435435msgstr ""
    436436
    437 #: wpc-variation-swatches.php:932
     437#: wpc-variation-swatches.php:961
    438438msgid "Show label"
    439439msgstr ""
    440440
    441 #: wpc-variation-swatches.php:938
     441#: wpc-variation-swatches.php:967
    442442msgid "When using color/image type, do you want to show the term label together with swatches?"
    443443msgstr ""
    444444
    445 #: wpc-variation-swatches.php:952
     445#: wpc-variation-swatches.php:981
    446446msgid "Fill in group labels then press Enter or select from the dropdown."
    447447msgstr ""
    448448
    449 #: wpc-variation-swatches.php:989
    450 #: wpc-variation-swatches.php:1595
     449#: wpc-variation-swatches.php:1018
     450#: wpc-variation-swatches.php:1624
    451451msgid "Group"
    452452msgstr ""
    453453
    454 #: wpc-variation-swatches.php:993
     454#: wpc-variation-swatches.php:1022
    455455msgid "Select a group"
    456456msgstr ""
    457457
    458458#. translators: attribute
    459 #: wpc-variation-swatches.php:1001
     459#: wpc-variation-swatches.php:1030
    460460#, php-format
    461461msgid "Please add a group for attribute %s first, then you can select it here."
    462462msgstr ""
    463463
    464 #: wpc-variation-swatches.php:1012
    465 #: wpc-variation-swatches.php:1018
    466 #: wpc-variation-swatches.php:1046
    467 #: wpc-variation-swatches.php:1052
    468 #: wpc-variation-swatches.php:1597
     464#: wpc-variation-swatches.php:1041
     465#: wpc-variation-swatches.php:1047
     466#: wpc-variation-swatches.php:1075
     467#: wpc-variation-swatches.php:1081
     468#: wpc-variation-swatches.php:1626
    469469msgid "Tooltip"
    470470msgstr ""
    471471
    472 #: wpc-variation-swatches.php:1038
     472#: wpc-variation-swatches.php:1067
    473473msgid "Choose image"
    474474msgstr ""
    475475
    476 #: wpc-variation-swatches.php:1041
     476#: wpc-variation-swatches.php:1070
    477477msgid "Remove image"
    478478msgstr ""
    479479
    480 #: wpc-variation-swatches.php:1051
     480#: wpc-variation-swatches.php:1080
    481481msgid "Label"
    482482msgstr ""
    483483
    484 #: wpc-variation-swatches.php:1596
     484#: wpc-variation-swatches.php:1625
    485485msgid "Value"
    486486msgstr ""
    487487
    488 #: wpc-variation-swatches.php:1689
     488#: wpc-variation-swatches.php:1718
    489489msgid "Clear"
    490490msgstr ""
    491491
    492 #: wpc-variation-swatches.php:1722
     492#: wpc-variation-swatches.php:1751
    493493msgid "Above terms container"
    494494msgstr ""
    495495
    496 #: wpc-variation-swatches.php:1723
     496#: wpc-variation-swatches.php:1752
    497497msgid "Below terms container"
    498498msgstr ""
    499499
    500 #: wpc-variation-swatches.php:1724
     500#: wpc-variation-swatches.php:1753
    501501msgid "Before terms container"
    502502msgstr ""
    503503
    504 #: wpc-variation-swatches.php:1725
     504#: wpc-variation-swatches.php:1754
    505505msgid "After terms container"
    506506msgstr ""
    507507
    508 #: wpc-variation-swatches.php:1726
     508#: wpc-variation-swatches.php:1755
    509509msgid "Before term"
    510510msgstr ""
    511511
    512 #: wpc-variation-swatches.php:1727
     512#: wpc-variation-swatches.php:1756
    513513msgid "After term"
    514514msgstr ""
  • wpc-variation-swatches/trunk/readme.txt

    r3415981 r3483852  
    55Requires at least: 4.0
    66Tested up to: 6.9
    7 Version: 4.3.4
    8 Stable tag: 4.3.4
     7Version: 4.3.5
     8Stable tag: 4.3.5
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7979== Changelog ==
    8080
     81= 4.3.5 =
     82* Fixed: Minor CSS/JS issues in the backend
     83* Updated: Compatible with WP 6.9 & Woo 10.6
     84
    8185= 4.3.4 =
    8286* Updated: Optimized the code
  • wpc-variation-swatches/trunk/wpc-variation-swatches.php

    r3415981 r3483852  
    44Plugin URI: https://wpclever.net/
    55Description: WPC Variation Swatches is a beautiful color, image, radio and buttons variation swatches for WooCommerce product attributes.
    6 Version: 4.3.4
     6Version: 4.3.5
    77Author: WPClever
    88Author URI: https://wpclever.net
     
    1313Tested up to: 6.9
    1414WC requires at least: 3.0
    15 WC tested up to: 10.3
     15WC tested up to: 10.6
    1616License: GPLv2 or later
    1717License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2020defined( 'ABSPATH' ) || exit;
    2121
    22 ! defined( 'WPCVS_VERSION' ) && define( 'WPCVS_VERSION', '4.3.4' );
     22! defined( 'WPCVS_VERSION' ) && define( 'WPCVS_VERSION', '4.3.5' );
    2323! defined( 'WPCVS_LITE' ) && define( 'WPCVS_LITE', __FILE__ );
    2424! defined( 'WPCVS_FILE' ) && define( 'WPCVS_FILE', __FILE__ );
     
    3030! defined( 'WPC_URI' ) && define( 'WPC_URI', WPCVS_URI );
    3131
     32include 'includes/log/wpc-log.php';
    3233include 'includes/dashboard/wpc-dashboard.php';
    3334include 'includes/kit/wpc-kit.php';
     
    115116                    // settings page
    116117                    add_action( 'admin_init', [ $this, 'register_settings' ] );
     118                    add_filter( 'pre_update_option', [ $this, 'last_saved' ], 10, 2 );
    117119                    add_action( 'admin_menu', [ $this, 'admin_menu' ] );
    118120
     
    377379                            'sanitize_callback' => [ $this, 'sanitize_array' ],
    378380                    ] );
     381                }
     382
     383                function last_saved( $value, $option ) {
     384                    if ( $option == 'wpcvs_settings' || $option == 'wpcvs_localization' ) {
     385                        $value['_last_saved']    = current_time( 'timestamp' );
     386                        $value['_last_saved_by'] = get_current_user_id();
     387                    }
     388
     389                    return $value;
    379390                }
    380391
     
    755766                                        <tr class="submit">
    756767                                            <th colspan="2">
    757                                                 <?php settings_fields( 'wpcvs_settings' ); ?><?php submit_button(); ?>
     768                                                <div class="wpclever_submit">
     769                                                    <?php
     770                                                    settings_fields( 'wpcvs_settings' );
     771                                                    submit_button( '', 'primary', 'submit', false );
     772
     773                                                    if ( function_exists( 'wpc_last_saved' ) ) {
     774                                                        wpc_last_saved( self::get_settings() );
     775                                                    }
     776                                                    ?>
     777                                                </div>
    758778                                                <a style="display: none;" class="wpclever_export"
    759779                                                   data-key="wpcvs_settings"
     
    832852                                        <tr class="submit">
    833853                                            <th colspan="2">
    834                                                 <?php settings_fields( 'wpcvs_localization' ); ?><?php submit_button(); ?>
     854                                                <div class="wpclever_submit">
     855                                                    <?php
     856                                                    settings_fields( 'wpcvs_localization' );
     857                                                    submit_button( '', 'primary', 'submit', false );
     858
     859                                                    if ( function_exists( 'wpc_last_saved' ) ) {
     860                                                        wpc_last_saved( get_option( 'wpcvs_localization', [] ) );;
     861                                                    }
     862                                                    ?>
     863                                                </div>
    835864                                                <a style="display: none;" class="wpclever_export"
    836865                                                   data-key="wpcvs_localization"
Note: See TracChangeset for help on using the changeset viewer.