Plugin Directory

Changeset 3329395


Ignore:
Timestamp:
07/17/2025 06:28:14 AM (9 months ago)
Author:
wedok
Message:

Update trunk to version 1.6.0: added swipe gesture support, improved popup mode settings, multilingual updates, and bug fixes.

Location:
wepop/trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • wepop/trunk/css/popup.css

    r3319334 r3329395  
     1/*!
     2 * WePOP - Lightweight Image Popup Plugin for WordPress
     3 * Version: 1.6.0
     4 * Author: WeDOK (https://wedok.jp)
     5 * License: GPLv2 or later
     6 * Description: CSS styling for WePOP popup window and animations.
     7 */
     8
     9
    110.wepop-overlay {
    211  position: fixed;
     
    1928  opacity: 1;
    2029}
     30
     31body.wepop-noscroll {
     32  overflow: hidden;
     33  touch-action: none;
     34  overscroll-behavior: none;
     35}
     36
    2137
    2238.wepop-content {
  • wepop/trunk/includes/config.php

    r3322620 r3329395  
    8787                <!-- ② グループ化モードの設定 -->
    8888                <tr>
    89                     <th scope="row"><?php esc_html_e('Image Grouping Mode', 'wepop'); ?></th>
     89                    <th scope="row"><?php esc_html_e('Popup Mode', 'wepop'); ?></th>
    9090                    <td>
    9191                        <label>
    9292                            <input type="radio" name="group_mode" value="gallery" <?php checked($options['group_mode'], 'gallery'); ?>>
    93                             <strong><?php _e('Group only gallery images (recommended)', 'wepop'); ?></strong><br>
    94                             <small><?php _e('Only images inside WordPress gallery blocks will be grouped into slideshows. Each gallery will be grouped separately.', 'wepop'); ?></small>
     93                            <strong><?php _e('Gallery Blocks Grouping Mode', 'wepop'); ?></strong><br>
     94                            <small><?php _e('Images added using the WordPress Gallery block will be grouped into a popup viewer with navigation arrows. Other images open individually.', 'wepop'); ?></small>
    9595                        </label><br><br>
    9696
    9797                        <label>
    9898                            <input type="radio" name="group_mode" value="all" <?php checked($options['group_mode'], 'all'); ?>>
    99                             <strong><?php _e('Group all images in the post', 'wepop'); ?></strong><br>
    100                             <small><?php _e('All images (both standalone and gallery) in the post will be grouped into one slideshow.', 'wepop'); ?></small>
     99                            <strong><?php _e('All Images Grouping Mode', 'wepop'); ?></strong><br>
     100                            <small><?php _e('All image links in the post will be grouped together into a single popup viewer with navigation arrows.', 'wepop'); ?></small>
    101101                        </label><br><br>
    102102
    103103                        <label>
    104104                            <input type="radio" name="group_mode" value="none" <?php checked($options['group_mode'], 'none'); ?>>
    105                             <strong><?php _e('No grouping', 'wepop'); ?></strong><br>
    106                             <small><?php _e('Disables all image grouping in the post. Each image opens individually.', 'wepop'); ?></small>
     105                            <strong><?php _e('No Grouping Mode', 'wepop'); ?></strong><br>
     106                            <small><?php _e('Each image opens in its own popup window with no grouping or navigation arrows.', 'wepop'); ?></small>
    107107                        </label>
    108108                    </td>
    109109                </tr>
    110110
    111                 <!-- ③ 言語設定 -->
    112                 <tr>
    113                     <th scope="row"><?php esc_html_e('Language', 'wepop'); ?></th>
    114                     <td>
    115                         <select name="language">
    116                             <option value="ja" <?php selected($options['language'], 'ja'); ?>><?php esc_html_e('Japanese', 'wepop'); ?></option>
    117                             <option value="en" <?php selected($options['language'], 'en'); ?>><?php echo esc_html__('English', 'wepop'); ?></option>
    118                             <option value="es" <?php selected($options['language'], 'es'); ?>><?php echo esc_html__('Spanish', 'wepop'); ?></option>
    119                             <option value="fr" <?php selected($options['language'], 'fr'); ?>><?php echo esc_html__('French', 'wepop'); ?></option>
    120                             <option value="de" <?php selected($options['language'], 'de'); ?>><?php echo esc_html__('German', 'wepop'); ?></option>
    121                             <option value="zh_CN" <?php selected($options['language'], 'zh_CN'); ?>><?php esc_html_e('Chinese (Simplified)', 'wepop'); ?></option>
    122                         </select>
    123                     </td>
    124                 </tr>
     111<!-- ③ 言語設定 -->
     112<tr>
     113    <th scope="row"><?php esc_html_e('Language', 'wepop'); ?></th>
     114    <td>
     115        <select name="language">
     116            <option value="ja" <?php selected($options['language'], 'ja'); ?>><?php esc_html_e('Japanese', 'wepop'); ?></option>
     117            <option value="en" <?php selected($options['language'], 'en'); ?>><?php esc_html_e('English', 'wepop'); ?></option>
     118            <option value="fr" <?php selected($options['language'], 'fr'); ?>><?php esc_html_e('French', 'wepop'); ?></option>
     119            <option value="de" <?php selected($options['language'], 'de'); ?>><?php esc_html_e('German', 'wepop'); ?></option>
     120            <option value="it_IT" <?php selected($options['language'], 'it_IT'); ?>><?php esc_html_e('Italian', 'wepop'); ?></option>
     121            <option value="es" <?php selected($options['language'], 'es'); ?>><?php esc_html_e('Spanish', 'wepop'); ?></option>
     122            <option value="zh_CN" <?php selected($options['language'], 'zh_CN'); ?>><?php esc_html_e('Chinese (Simplified)', 'wepop'); ?></option>
     123            <option value="ko_KR" <?php selected($options['language'], 'ko_KR'); ?>><?php esc_html_e('Korean', 'wepop'); ?></option>
     124            <option value="pt_BR" <?php selected($options['language'], 'pt_BR'); ?>><?php esc_html_e('Portuguese (Brazil)', 'wepop'); ?></option>
     125        </select>
     126    </td>
     127</tr>
    125128
    126129            </table>
  • wepop/trunk/js/popup.js

    r3321653 r3329395  
     1/*!
     2 * WePOP - Lightweight Image Popup Plugin for WordPress
     3 * Version: 1.6.0
     4 * Author: WeDOK (https://wedok.jp)
     5 * License: GPLv2 or later
     6 * Description: JavaScript handling popup behavior and swipe gestures.
     7 */
     8
    19document.addEventListener('DOMContentLoaded', function () {
    210  const images = document.querySelectorAll('a[data-wepop]');
     
    1624  if (groupMode === 'none') {
    1725    imageUrls = [clickedImage.href];
    18 
    1926  } else if (groupMode === 'all') {
    2027    const allImages = document.querySelectorAll('a[data-wepop]');
    2128    imageUrls = Array.from(allImages).map(img => img.href);
    2229    currentIndex = imageUrls.indexOf(clickedImage.href);
    23 
    2430  } else if (groupMode === 'gallery') {
    2531    const galleryFigure = clickedImage.closest('.wp-block-gallery');
     
    3945  const overlay = document.createElement('div');
    4046  overlay.className = 'wepop-overlay';
     47  document.body.classList.add('wepop-noscroll');
    4148
    4249  const content = document.createElement('div');
     
    98105      document.body.removeChild(overlay);
    99106    }, 300);
     107    document.body.classList.remove('wepop-noscroll'); // ✅ スクロール禁止解除
    100108    document.removeEventListener('keydown', handleKeyPress);
    101109  }
     
    158166    }
    159167  }
     168
     169  // --- Touch Swipe Support ---
     170  let touchStartX = 0;
     171  let touchEndX = 0;
     172
     173  imgContainer.addEventListener('touchstart', function(e) {
     174    touchStartX = e.changedTouches[0].screenX;
     175  }, { passive: true });
     176
     177  imgContainer.addEventListener('touchend', function(e) {
     178    touchEndX = e.changedTouches[0].screenX;
     179    handleSwipeGesture();
     180  }, { passive: true });
     181
     182  function handleSwipeGesture() {
     183    const diffX = touchEndX - touchStartX;
     184    if (Math.abs(diffX) > 30) {
     185      if (diffX < 0) {
     186        changeImage(1); // 左スワイプ → 次の画像
     187      } else {
     188        changeImage(-1); // 右スワイプ → 前の画像
     189      }
     190    }
     191  }
    160192}
  • wepop/trunk/languages/de.po

    r3322620 r3329395  
    55"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wepop\n"
    66"POT-Creation-Date: 2025-07-03 16:25+0900\n"
    7 "PO-Revision-Date: 2025-07-05 17:08+0900\n"
     7"PO-Revision-Date: 2025-07-05 23:16+0900\n"
    88"Last-Translator: \n"
    99"Language-Team: \n"
     
    4242msgstr "Ungültige Anfrage."
    4343
    44 msgid "Image Grouping Mode"
    45 msgstr "Bildgruppierungsmodus"
     44msgid "Popup Mode"
     45msgstr "Modus für Bild-Popups"
    4646
    47 msgid "Group only gallery images (recommended)"
    48 msgstr "Nur Galerie-Bilder gruppieren (empfohlen)"
     47msgid "Gallery Blocks Grouping Mode"
     48msgstr "Modus: Galerieblöcke gruppieren"
    4949
    5050msgid ""
    51 "Only images inside WordPress gallery blocks will be grouped into slideshows. "
    52 "Each gallery will be grouped separately."
     51"Images added using the WordPress Gallery block will be grouped into a popup "
     52"viewer with navigation arrows. Other images open individually."
    5353msgstr ""
    54 "Nur Bilder innerhalb von WordPress-Galerieblöcken werden zu Diashows "
    55 "gruppiert. Jede Galerie wird separat gruppiert."
     54"Bilder, die mit dem WordPress-Galerie-Block hinzugefügt wurden, werden in "
     55"einem Popup-Viewer mit Navigation gruppiert. Andere Bilder werden einzeln "
     56"geöffnet."
    5657
    57 msgid "Group all images in the post"
    58 msgstr "Alle Bilder im Beitrag gruppieren"
     58msgid "All Images Grouping Mode"
     59msgstr "Modus: Alle Bilder gruppieren"
    5960
    6061msgid ""
    61 "All images (both standalone and gallery) in the post will be grouped into "
    62 "one slideshow."
     62"All image links in the post will be grouped together into a single popup "
     63"viewer with navigation arrows."
    6364msgstr ""
    64 "Alle Bilder (einzeln und in Galerien) im Beitrag werden zu einer einzigen "
    65 "Diashow gruppiert."
     65"Alle Bild-Links im Beitrag werden in einem einzigen Popup-Viewer mit "
     66"Navigation gruppiert."
    6667
    67 msgid "No grouping"
    68 msgstr "Keine Gruppierung"
     68msgid "No Grouping Mode"
     69msgstr "Modus: Keine Gruppierung"
    6970
    70 msgid "Disables all image grouping in the post. Each image opens individually."
     71msgid ""
     72"Each image opens in its own popup window with no grouping or navigation "
     73"arrows."
    7174msgstr ""
    72 "Deaktiviert alle Bildgruppierungen im Beitrag. Jedes Bild wird einzeln "
    73 "geöffnet."
     75"Jedes Bild wird einzeln in einem eigenen Popup ohne Gruppierung oder "
     76"Navigation geöffnet."
     77
     78#~ msgid "Group only gallery images (recommended)"
     79#~ msgstr "Nur Galerie-Bilder gruppieren (empfohlen)"
     80
     81#~ msgid "Group all images in the post"
     82#~ msgstr "Alle Bilder im Beitrag gruppieren"
     83
     84#~ msgid ""
     85#~ "All images (both standalone and gallery) in the post will be grouped into "
     86#~ "one slideshow."
     87#~ msgstr ""
     88#~ "Alle Bilder (einzeln und in Galerien) im Beitrag werden zu einer einzigen "
     89#~ "Diashow gruppiert."
     90
     91#~ msgid "No grouping"
     92#~ msgstr "Keine Gruppierung"
     93
     94#~ msgid ""
     95#~ "Disables all image grouping in the post. Each image opens individually."
     96#~ msgstr ""
     97#~ "Deaktiviert alle Bildgruppierungen im Beitrag. Jedes Bild wird einzeln "
     98#~ "geöffnet."
  • wepop/trunk/languages/es.po

    r3322620 r3329395  
    55"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wepop\n"
    66"POT-Creation-Date: 2025-07-03 16:25+0900\n"
    7 "PO-Revision-Date: 2025-07-05 17:08+0900\n"
     7"PO-Revision-Date: 2025-07-05 23:17+0900\n"
    88"Last-Translator: \n"
    99"Language-Team: \n"
     
    4242msgstr "Solicitud no válida."
    4343
    44 msgid "Image Grouping Mode"
    45 msgstr "Modo de agrupación de imágenes"
     44msgid "Popup Mode"
     45msgstr "Modo de ventana emergente"
    4646
    47 msgid "Group only gallery images (recommended)"
    48 msgstr "Agrupar solo imágenes de la galería (recomendado)"
     47msgid "Gallery Blocks Grouping Mode"
     48msgstr "Agrupar por bloques de galería"
    4949
    5050msgid ""
    51 "Only images inside WordPress gallery blocks will be grouped into slideshows. "
    52 "Each gallery will be grouped separately."
     51"Images added using the WordPress Gallery block will be grouped into a popup "
     52"viewer with navigation arrows. Other images open individually."
    5353msgstr ""
    54 "Solo las imágenes dentro de bloques de galería de WordPress se agruparán en "
    55 "presentaciones. Cada galería se agrupará por separado."
     54"Las imágenes añadidas con el bloque de galería de WordPress se agruparán en "
     55"un visor emergente con flechas de navegación. Las demás se abrirán "
     56"individualmente."
    5657
    57 msgid "Group all images in the post"
    58 msgstr "Agrupar todas las imágenes en la entrada"
     58msgid "All Images Grouping Mode"
     59msgstr "Agrupar todas las imágenes"
    5960
    6061msgid ""
    61 "All images (both standalone and gallery) in the post will be grouped into "
    62 "one slideshow."
     62"All image links in the post will be grouped together into a single popup "
     63"viewer with navigation arrows."
    6364msgstr ""
    64 "Todas las imágenes (independientes y en galerías) en la entrada se agruparán "
    65 "en una sola presentación."
     65"Todos los enlaces de imágenes del contenido se agruparán en un solo visor "
     66"emergente con flechas de navegación."
    6667
    67 msgid "No grouping"
     68msgid "No Grouping Mode"
    6869msgstr "Sin agrupación"
    6970
    70 msgid "Disables all image grouping in the post. Each image opens individually."
     71msgid ""
     72"Each image opens in its own popup window with no grouping or navigation "
     73"arrows."
    7174msgstr ""
    72 "Desactiva toda la agrupación de imágenes en la entrada. Cada imagen se "
    73 "abrirá individualmente."
     75"Cada imagen se abre en su propia ventana emergente, sin agrupación ni "
     76"flechas de navegación."
     77
     78#~ msgid "Group only gallery images (recommended)"
     79#~ msgstr "Agrupar solo imágenes de la galería (recomendado)"
     80
     81#~ msgid "Group all images in the post"
     82#~ msgstr "Agrupar todas las imágenes en la entrada"
     83
     84#~ msgid ""
     85#~ "All images (both standalone and gallery) in the post will be grouped into "
     86#~ "one slideshow."
     87#~ msgstr ""
     88#~ "Todas las imágenes (independientes y en galerías) en la entrada se "
     89#~ "agruparán en una sola presentación."
     90
     91#~ msgid "No grouping"
     92#~ msgstr "Sin agrupación"
     93
     94#~ msgid ""
     95#~ "Disables all image grouping in the post. Each image opens individually."
     96#~ msgstr ""
     97#~ "Desactiva toda la agrupación de imágenes en la entrada. Cada imagen se "
     98#~ "abrirá individualmente."
  • wepop/trunk/languages/fr.po

    r3322620 r3329395  
    55"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wepop\n"
    66"POT-Creation-Date: 2025-07-03 16:25+0900\n"
    7 "PO-Revision-Date: 2025-07-05 17:08+0900\n"
     7"PO-Revision-Date: 2025-07-05 23:18+0900\n"
    88"Last-Translator: \n"
    99"Language-Team: \n"
     
    4242msgstr "Requête invalide."
    4343
    44 msgid "Image Grouping Mode"
    45 msgstr "Mode de regroupement des images"
     44msgid "Popup Mode"
     45msgstr "Mode d'affichage des popups"
    4646
    47 msgid "Group only gallery images (recommended)"
    48 msgstr "Regrouper uniquement les images des galeries (recommandé)"
     47msgid "Gallery Blocks Grouping Mode"
     48msgstr "Regrouper par blocs de galerie"
    4949
    5050msgid ""
    51 "Only images inside WordPress gallery blocks will be grouped into slideshows. "
    52 "Each gallery will be grouped separately."
     51"Images added using the WordPress Gallery block will be grouped into a popup "
     52"viewer with navigation arrows. Other images open individually."
    5353msgstr ""
    54 "Seules les images dans les blocs de galerie WordPress seront regroupées en "
    55 "diaporamas. Chaque galerie sera regroupée séparément."
     54"Les images ajoutées via le bloc Galerie de WordPress seront regroupées dans "
     55"une fenêtre popup avec des flèches de navigation. Les autres images "
     56"s'ouvriront individuellement."
    5657
    57 msgid "Group all images in the post"
    58 msgstr "Regrouper toutes les images de l’article"
     58msgid "All Images Grouping Mode"
     59msgstr "Regrouper toutes les images"
    5960
    6061msgid ""
    61 "All images (both standalone and gallery) in the post will be grouped into "
    62 "one slideshow."
     62"All image links in the post will be grouped together into a single popup "
     63"viewer with navigation arrows."
    6364msgstr ""
    64 "Toutes les images (indépendantes et en galerie) de l’article seront "
    65 "regroupées en un seul diaporama."
     65"Tous les liens d’images dans l’article seront regroupés dans une seule "
     66"fenêtre popup avec des flèches de navigation."
    6667
    67 msgid "No grouping"
    68 msgstr "Aucun regroupement"
     68msgid "No Grouping Mode"
     69msgstr "Sans regroupement"
    6970
    70 msgid "Disables all image grouping in the post. Each image opens individually."
     71msgid ""
     72"Each image opens in its own popup window with no grouping or navigation "
     73"arrows."
    7174msgstr ""
    72 "Désactive tout regroupement d’images dans l’article. Chaque image s’ouvrira "
    73 "individuellement."
     75"Chaque image s’ouvre dans sa propre fenêtre popup, sans regroupement ni "
     76"flèches de navigation."
     77
     78#~ msgid "Group only gallery images (recommended)"
     79#~ msgstr "Regrouper uniquement les images des galeries (recommandé)"
     80
     81#~ msgid "Group all images in the post"
     82#~ msgstr "Regrouper toutes les images de l’article"
     83
     84#~ msgid ""
     85#~ "All images (both standalone and gallery) in the post will be grouped into "
     86#~ "one slideshow."
     87#~ msgstr ""
     88#~ "Toutes les images (indépendantes et en galerie) de l’article seront "
     89#~ "regroupées en un seul diaporama."
     90
     91#~ msgid "No grouping"
     92#~ msgstr "Aucun regroupement"
     93
     94#~ msgid ""
     95#~ "Disables all image grouping in the post. Each image opens individually."
     96#~ msgstr ""
     97#~ "Désactive tout regroupement d’images dans l’article. Chaque image "
     98#~ "s’ouvrira individuellement."
  • wepop/trunk/languages/template.pot

    r3321653 r3329395  
    4141msgstr ""
    4242
    43 msgid "Image Grouping Mode"
     43msgid "Popup Mode"
    4444msgstr ""
    4545
    46 msgid "Group only gallery images (recommended)"
     46msgid "Gallery Blocks Grouping Mode"
    4747msgstr ""
    4848
    49 msgid "Only images inside WordPress gallery blocks will be grouped into slideshows. Each gallery will be grouped separately."
     49msgid "Images added using the WordPress Gallery block will be grouped into a popup viewer with navigation arrows. Other images open individually."
    5050msgstr ""
    5151
    52 msgid "Group all images in the post"
     52msgid "All Images Grouping Mode"
    5353msgstr ""
    5454
    55 msgid "All images (both standalone and gallery) in the post will be grouped into one slideshow."
     55msgid "All image links in the post will be grouped together into a single popup viewer with navigation arrows."
    5656msgstr ""
    5757
    58 msgid "No grouping"
     58msgid "No Grouping Mode"
    5959msgstr ""
    6060
    61 msgid "Disables all image grouping in the post. Each image opens individually."
     61msgid "Each image opens in its own popup window with no grouping or navigation arrows."
    6262msgstr ""
  • wepop/trunk/languages/zh_CN.po

    r3322620 r3329395  
    55"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wepop\n"
    66"POT-Creation-Date: 2025-07-03 16:25+0900\n"
    7 "PO-Revision-Date: 2025-07-05 17:08+0900\n"
     7"PO-Revision-Date: 2025-07-05 23:18+0900\n"
    88"Last-Translator: \n"
    99"Language-Team: \n"
     
    2222
    2323msgid "Show Alt Text"
    24 msgstr "显示替代文本"
     24msgstr "显示替代文本(Alt)"
    2525
    2626msgid "Display alt text below images"
    27 msgstr "在图片下方显示替代文本"
     27msgstr "在图片下方显示替代文本(Alt)"
    2828
    2929msgid "Language"
     
    4242msgstr "无效的请求。"
    4343
    44 msgid "Image Grouping Mode"
    45 msgstr "图片分组模式"
     44msgid "Popup Mode"
     45msgstr "弹出模式"
    4646
    47 msgid "Group only gallery images (recommended)"
    48 msgstr "仅分组图库中的图片(推荐)"
     47msgid "Gallery Blocks Grouping Mode"
     48msgstr "仅对图库块中的图片进行分组"
    4949
    5050msgid ""
    51 "Only images inside WordPress gallery blocks will be grouped into slideshows. "
    52 "Each gallery will be grouped separately."
    53 msgstr "只有 WordPress 图库模块中的图片会被分组为幻灯片。每个图库将分别分组。"
     51"Images added using the WordPress Gallery block will be grouped into a popup "
     52"viewer with navigation arrows. Other images open individually."
     53msgstr ""
     54"使用 WordPress 图库块添加的图片将被分组为带有导航箭头的弹出视图。其他图片将单"
     55"独显示。"
    5456
    55 msgid "Group all images in the post"
    56 msgstr "分组文章中的所有图片"
     57msgid "All Images Grouping Mode"
     58msgstr "将所有图片分组"
    5759
    5860msgid ""
    59 "All images (both standalone and gallery) in the post will be grouped into "
    60 "one slideshow."
    61 msgstr "文章中的所有图片(包括单独图片和图库)将被分组为一个幻灯片。"
     61"All image links in the post will be grouped together into a single popup "
     62"viewer with navigation arrows."
     63msgstr "文章中所有图片链接将组合到一个带导航箭头的弹出视图中。"
    6264
    63 msgid "No grouping"
    64 msgstr "不分组"
     65msgid "No Grouping Mode"
     66msgstr "不分组模式"
    6567
    66 msgid "Disables all image grouping in the post. Each image opens individually."
    67 msgstr "禁用文章中的所有图片分组。每张图片将单独打开。"
     68msgid ""
     69"Each image opens in its own popup window with no grouping or navigation "
     70"arrows."
     71msgstr "每张图片将在自己的弹出窗口中打开,不进行分组或导航。"
     72
     73#~ msgid "Group only gallery images (recommended)"
     74#~ msgstr "仅分组图库中的图片(推荐)"
     75
     76#~ msgid "Group all images in the post"
     77#~ msgstr "分组文章中的所有图片"
     78
     79#~ msgid ""
     80#~ "All images (both standalone and gallery) in the post will be grouped into "
     81#~ "one slideshow."
     82#~ msgstr "文章中的所有图片(包括单独图片和图库)将被分组为一个幻灯片。"
     83
     84#~ msgid "No grouping"
     85#~ msgstr "不分组"
     86
     87#~ msgid ""
     88#~ "Disables all image grouping in the post. Each image opens individually."
     89#~ msgstr "禁用文章中的所有图片分组。每张图片将单独打开。"
  • wepop/trunk/readme.txt

    r3322620 r3329395  
    33Tags: image popup, lightbox, responsive, lightweight, multilingual
    44Requires at least: 5.0
    5 Tested up to: 6.8.1
    6 Requires PHP: 7.0
    7 Stable tag: 1.5.4
     5Tested up to: 6.8.2
     6Requires PHP: 7.4
     7Stable tag: 1.6.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1313== Description ==
    1414
    15 **WePOP** is a lightweight, jQuery-free image popup plugin for WordPress, built with pure JavaScript for speed and simplicity. 
    16 It enables clean, responsive image popups and gallery navigation across all themes.
     15**WePOP** is a lightweight, jQuery-free image popup plugin for WordPress. 
     16It is designed for long-term stability, simplicity, and compatibility — even as WordPress or jQuery evolves. 
     17Built entirely with pure JavaScript, it works across all modern themes and requires no shortcodes or external libraries. 
     18Now supports mobile swipe gestures for navigating popup images.
    1719
    18 You can easily turn any image link into a popup-enabled element by adding data-wepop, and optionally data-group for grouping
    19 Gutenberg Gallery blocks are automatically supported, and you can configure advanced behaviors from the admin settings.
     20Unlike complex popup plugins with unnecessary features, WePOP was developed by a seasoned creator at **WeDOK**, a web studio with years of real-world client work
     21WePOP focuses on **just the essential features** needed for modern websites — fast, clean image popups with easy configuration.
    2022
    21 The plugin is multilingual and supports Japanese, English, Spanish, French, German, and Simplified Chinese. 
    22 Users can select their preferred admin interface language from the plugin settings screen.
     23### ⚙️ Show Alt Text
    2324
    24 ---
     25Display the image’s **alt attribute** below the popup image as a caption. 
     26This improves accessibility and allows for simple descriptions without needing custom fields or captions.
    2527
    26 ### 🆕 Image Grouping Modes
     28### ⚙️ Popup Mode
    2729
    28 You can now choose how images are grouped using the **Image Grouping Mode** setting in the plugin options:
     30You can choose how image links are grouped into popup viewers using the **Popup Mode** setting:
    2931
    30 - **No grouping (none)**: 
    31   Each image opens in a popup individually with no slideshow or navigation.
     32- **Gallery Blocks Grouping Mode** 
     33  Only images inside **WordPress Gallery blocks** are grouped into popup slideshows. 
     34  If your post includes **multiple Gallery blocks**, each one will be treated as a separate group. 
     35  Other images open individually without navigation.
    3236
    33 - **Group all images (all)**: 
    34   All images in the post or page are grouped into a single slideshow, regardless of how they are inserted.
     37- **All Images Grouping Mode** 
     38  All image links in the post are grouped into a single popup viewer with navigation arrows, 
     39  regardless of whether they are in gallery blocks or standalone.
    3540
    36 - **Group only gallery images (gallery)** – *recommended*: 
    37   Only images within Gutenberg Gallery blocks (or [gallery] shortcodes) are grouped. 
    38   Other standalone images are still popup-enabled, but displayed independently.
     41- **No Grouping Mode** 
     42  All images open in their own individual popup windows with no grouping or navigation arrows.
    3943
    40 This gives you more control when mixing gallery and non-gallery images in the same post.
     44### ⚙️ Language
    4145
    42 This plugin is multilingual. The interface has been fully translated into the following languages:
     46WePOP supports a multilingual interface. You can select your preferred admin language from the plugin settings.
    4347
    4448- 🇯🇵 Japanese (ja_JP) 
     
    4751- 🇫🇷 French (fr) 
    4852- 🇩🇪 German (de) 
    49 - 🇨🇳 Simplified Chinese (zh_CN)
     53- 🇨🇳 Simplified Chinese (zh_CN) 
     54- 🇮🇹 Italian 
     55- 🇰🇷 Korean 
     56- 🇧🇷 Portuguese (Brazil)
    5057
    51 The language can be selected from the plugin settings screen.
     58---
     59
     60WePOP is ideal for developers, bloggers, and creators who need a fast and reliable image popup tool — 
     61without the bloat or complexity of traditional lightbox plugins.
    5262
    5363== Installation ==
     
    104114== Changelog ==
    105115
     116= 1.6.0 =
     117* 設定画面に「Popup Mode(画像グループ化モード)」の選択肢を追加し、より分かりやすい表記に見直しました(旧称:Image Grouping Mode)
     118* オプション「WordPressギャラリーの画像のみをグループ化」における単一画像のポップアップ不具合を修正しました
     119* スマートフォンでのスワイプ操作による画像切り替えに対応しました(バニラJSによる軽量実装)
     120* ポップアップ表示中の背景スクロールを無効化し、スマホ操作時のユーザー体験を改善しました
     121* 以下の3言語を新たに翻訳ファイルとして追加しました:
     122  - イタリア語
     123  - 韓国語
     124  - ポルトガル語(ブラジル)
     125* 設定項目の英語表記を改善し、それに伴い全翻訳ファイルを更新しました
     126* 翻訳テンプレート(.potファイル)を最新化し、すべてのテキストを翻訳対象に対応しました
     127
    106128= 1.5.4 =
    107 Updated wording for "No grouping" option in settings
    108 Added missing gettext wrapper for translatability
     129Updated wording for "No grouping" option in settings 
     130Added missing gettext wrapper for translatability 
    109131Updated translation template (.pot) and ja_JP translation files (.po/.mo)
    110132
    111133= 1.5.3 =
    112 Added setting for image grouping mode (none / all / gallery only)
    113 In gallery mode, standalone images now popup individually
    114 Optimized language loading: supports both Poedit-style (fr.mo, de.mo) and WordPress-style (ja_JP.mo)
     134Added setting for image grouping mode (none / all / gallery only) 
     135In gallery mode, standalone images now popup individually 
     136Optimized language loading: supports both Poedit-style (fr.mo, de.mo) and WordPress-style (ja_JP.mo) 
    115137Updated and verified translations for all supported languages
    116138
    117139= 1.5.2 =
    118 Fix: Corrected attribute naming to data-wepop
     140Fix: Corrected attribute naming to data-wepop 
    119141Improved documentation and translations
    120142
    121143= 1.5.1 =
    122 Improved multilingual interface support and gallery grouping behavior
     144Improved multilingual interface support and gallery grouping behavior 
    123145Updated admin settings for better usability
    124146
     
    128150== Upgrade Notice ==
    129151
    130 = 1.5.3 =
    131 Added grouping mode settings and improved multilingual handling.
    132 Recommended for all users who use multiple images or internationalization.
     152= 1.6.0 =
     153New features: swipe gesture support, popup mode selection, improved multilingual files. 
     154Recommended for all users.
  • wepop/trunk/wepop.php

    r3322620 r3329395  
    44Plugin URI: https://wedok.jp/tools/wepop/
    55Description: Simple image popup and gallery plugin for WordPress, built with pure JavaScript and no dependencies.
    6 Version: 1.5.4
     6Version: 1.6.0
    77Author: WeDOK Konta
    88Author URI: https://wedok.jp
     
    2424    $language = isset($options['language']) ? $options['language'] : 'ja';
    2525
    26     // ファイル名マッピング(ja → ja_JP、それ以外はそのまま
     26    // ファイル名マッピング(ロケールコードへ変換
    2727    $map = array(
    2828        'ja'     => 'ja_JP',
     
    3232        'es'     => 'es',
    3333        'zh_CN'  => 'zh_CN',
     34        'it_IT'  => 'it_IT',
     35        'ko_KR'  => 'ko_KR',
     36        'pt_BR'  => 'pt_BR',
    3437    );
    3538
     
    3942}
    4043add_action('init', 'wedok_pop_load_textdomain');
     44
    4145
    4246// デフォルトオプション登録
Note: See TracChangeset for help on using the changeset viewer.