Changeset 3329395
- Timestamp:
- 07/17/2025 06:28:14 AM (9 months ago)
- Location:
- wepop/trunk
- Files:
-
- 14 edited
-
css/popup.css (modified) (2 diffs)
-
includes/config.php (modified) (1 diff)
-
js/popup.js (modified) (5 diffs)
-
languages/de.mo (modified) (previous)
-
languages/de.po (modified) (2 diffs)
-
languages/es.mo (modified) (previous)
-
languages/es.po (modified) (2 diffs)
-
languages/fr.mo (modified) (previous)
-
languages/fr.po (modified) (2 diffs)
-
languages/template.pot (modified) (1 diff)
-
languages/zh_CN.mo (modified) (previous)
-
languages/zh_CN.po (modified) (3 diffs)
-
readme.txt (modified) (5 diffs)
-
wepop.php (modified) (4 diffs)
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 1 10 .wepop-overlay { 2 11 position: fixed; … … 19 28 opacity: 1; 20 29 } 30 31 body.wepop-noscroll { 32 overflow: hidden; 33 touch-action: none; 34 overscroll-behavior: none; 35 } 36 21 37 22 38 .wepop-content { -
wepop/trunk/includes/config.php
r3322620 r3329395 87 87 <!-- ② グループ化モードの設定 --> 88 88 <tr> 89 <th scope="row"><?php esc_html_e(' Image GroupingMode', 'wepop'); ?></th>89 <th scope="row"><?php esc_html_e('Popup Mode', 'wepop'); ?></th> 90 90 <td> 91 91 <label> 92 92 <input type="radio" name="group_mode" value="gallery" <?php checked($options['group_mode'], 'gallery'); ?>> 93 <strong><?php _e('G roup 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> 95 95 </label><br><br> 96 96 97 97 <label> 98 98 <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 image s (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> 101 101 </label><br><br> 102 102 103 103 <label> 104 104 <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> 107 107 </label> 108 108 </td> 109 109 </tr> 110 110 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> 125 128 126 129 </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 1 9 document.addEventListener('DOMContentLoaded', function () { 2 10 const images = document.querySelectorAll('a[data-wepop]'); … … 16 24 if (groupMode === 'none') { 17 25 imageUrls = [clickedImage.href]; 18 19 26 } else if (groupMode === 'all') { 20 27 const allImages = document.querySelectorAll('a[data-wepop]'); 21 28 imageUrls = Array.from(allImages).map(img => img.href); 22 29 currentIndex = imageUrls.indexOf(clickedImage.href); 23 24 30 } else if (groupMode === 'gallery') { 25 31 const galleryFigure = clickedImage.closest('.wp-block-gallery'); … … 39 45 const overlay = document.createElement('div'); 40 46 overlay.className = 'wepop-overlay'; 47 document.body.classList.add('wepop-noscroll'); 41 48 42 49 const content = document.createElement('div'); … … 98 105 document.body.removeChild(overlay); 99 106 }, 300); 107 document.body.classList.remove('wepop-noscroll'); // ✅ スクロール禁止解除 100 108 document.removeEventListener('keydown', handleKeyPress); 101 109 } … … 158 166 } 159 167 } 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 } 160 192 } -
wepop/trunk/languages/de.po
r3322620 r3329395 5 5 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wepop\n" 6 6 "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" 8 8 "Last-Translator: \n" 9 9 "Language-Team: \n" … … 42 42 msgstr "Ungültige Anfrage." 43 43 44 msgid " Image GroupingMode"45 msgstr " Bildgruppierungsmodus"44 msgid "Popup Mode" 45 msgstr "Modus für Bild-Popups" 46 46 47 msgid "G roup only gallery images (recommended)"48 msgstr " Nur Galerie-Bilder gruppieren (empfohlen)"47 msgid "Gallery Blocks Grouping Mode" 48 msgstr "Modus: Galerieblöcke gruppieren" 49 49 50 50 msgid "" 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." 53 53 msgstr "" 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." 56 57 57 msgid " Group all images in the post"58 msgstr " Alle Bilder im Beitraggruppieren"58 msgid "All Images Grouping Mode" 59 msgstr "Modus: Alle Bilder gruppieren" 59 60 60 61 msgid "" 61 "All image s (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." 63 64 msgstr "" 64 "Alle Bild er (einzeln und in Galerien) im Beitrag werden zu einer einzigen"65 " Diashowgruppiert."65 "Alle Bild-Links im Beitrag werden in einem einzigen Popup-Viewer mit " 66 "Navigation gruppiert." 66 67 67 msgid "No grouping"68 msgstr " Keine Gruppierung"68 msgid "No Grouping Mode" 69 msgstr "Modus: Keine Gruppierung" 69 70 70 msgid "Disables all image grouping in the post. Each image opens individually." 71 msgid "" 72 "Each image opens in its own popup window with no grouping or navigation " 73 "arrows." 71 74 msgstr "" 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 5 5 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wepop\n" 6 6 "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" 8 8 "Last-Translator: \n" 9 9 "Language-Team: \n" … … 42 42 msgstr "Solicitud no válida." 43 43 44 msgid " Image GroupingMode"45 msgstr "Modo de agrupación de imágenes"44 msgid "Popup Mode" 45 msgstr "Modo de ventana emergente" 46 46 47 msgid "G roup only gallery images (recommended)"48 msgstr "Agrupar solo imágenes de la galería (recomendado)"47 msgid "Gallery Blocks Grouping Mode" 48 msgstr "Agrupar por bloques de galería" 49 49 50 50 msgid "" 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." 53 53 msgstr "" 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." 56 57 57 msgid " Group all images in the post"58 msgstr "Agrupar todas las imágenes en la entrada"58 msgid "All Images Grouping Mode" 59 msgstr "Agrupar todas las imágenes" 59 60 60 61 msgid "" 61 "All image s (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." 63 64 msgstr "" 64 "Tod as las imágenes (independientes y en galerías) en la entrada se agruparán"65 "e n 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." 66 67 67 msgid "No grouping"68 msgid "No Grouping Mode" 68 69 msgstr "Sin agrupación" 69 70 70 msgid "Disables all image grouping in the post. Each image opens individually." 71 msgid "" 72 "Each image opens in its own popup window with no grouping or navigation " 73 "arrows." 71 74 msgstr "" 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 5 5 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wepop\n" 6 6 "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" 8 8 "Last-Translator: \n" 9 9 "Language-Team: \n" … … 42 42 msgstr "Requête invalide." 43 43 44 msgid " Image GroupingMode"45 msgstr "Mode d e regroupement des images"44 msgid "Popup Mode" 45 msgstr "Mode d'affichage des popups" 46 46 47 msgid "G roup only gallery images (recommended)"48 msgstr "Regrouper uniquement les images des galeries (recommandé)"47 msgid "Gallery Blocks Grouping Mode" 48 msgstr "Regrouper par blocs de galerie" 49 49 50 50 msgid "" 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." 53 53 msgstr "" 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." 56 57 57 msgid " Group all images in the post"58 msgstr "Regrouper toutes les images de l’article"58 msgid "All Images Grouping Mode" 59 msgstr "Regrouper toutes les images" 59 60 60 61 msgid "" 61 "All image s (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." 63 64 msgstr "" 64 "Tou tes 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." 66 67 67 msgid "No grouping"68 msgstr " Aucunregroupement"68 msgid "No Grouping Mode" 69 msgstr "Sans regroupement" 69 70 70 msgid "Disables all image grouping in the post. Each image opens individually." 71 msgid "" 72 "Each image opens in its own popup window with no grouping or navigation " 73 "arrows." 71 74 msgstr "" 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 41 41 msgstr "" 42 42 43 msgid " Image GroupingMode"43 msgid "Popup Mode" 44 44 msgstr "" 45 45 46 msgid "G roup only gallery images (recommended)"46 msgid "Gallery Blocks Grouping Mode" 47 47 msgstr "" 48 48 49 msgid " Only images inside WordPress gallery blocks will be grouped into slideshows. Each gallery will be grouped separately."49 msgid "Images added using the WordPress Gallery block will be grouped into a popup viewer with navigation arrows. Other images open individually." 50 50 msgstr "" 51 51 52 msgid " Group all images in the post"52 msgid "All Images Grouping Mode" 53 53 msgstr "" 54 54 55 msgid "All image s (both standalone and gallery) in the post will be grouped into one slideshow."55 msgid "All image links in the post will be grouped together into a single popup viewer with navigation arrows." 56 56 msgstr "" 57 57 58 msgid "No grouping"58 msgid "No Grouping Mode" 59 59 msgstr "" 60 60 61 msgid " Disables all image grouping in the post. Each image opens individually."61 msgid "Each image opens in its own popup window with no grouping or navigation arrows." 62 62 msgstr "" -
wepop/trunk/languages/zh_CN.po
r3322620 r3329395 5 5 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wepop\n" 6 6 "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" 8 8 "Last-Translator: \n" 9 9 "Language-Team: \n" … … 22 22 23 23 msgid "Show Alt Text" 24 msgstr "显示替代文本 "24 msgstr "显示替代文本(Alt)" 25 25 26 26 msgid "Display alt text below images" 27 msgstr "在图片下方显示替代文本 "27 msgstr "在图片下方显示替代文本(Alt)" 28 28 29 29 msgid "Language" … … 42 42 msgstr "无效的请求。" 43 43 44 msgid " Image GroupingMode"45 msgstr " 图片分组模式"44 msgid "Popup Mode" 45 msgstr "弹出模式" 46 46 47 msgid "G roup only gallery images (recommended)"48 msgstr "仅 分组图库中的图片(推荐)"47 msgid "Gallery Blocks Grouping Mode" 48 msgstr "仅对图库块中的图片进行分组" 49 49 50 50 msgid "" 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." 53 msgstr "" 54 "使用 WordPress 图库块添加的图片将被分组为带有导航箭头的弹出视图。其他图片将单" 55 "独显示。" 54 56 55 msgid " Group all images in the post"56 msgstr " 分组文章中的所有图片"57 msgid "All Images Grouping Mode" 58 msgstr "将所有图片分组" 57 59 58 60 msgid "" 59 "All image s (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." 63 msgstr "文章中所有图片链接将组合到一个带导航箭头的弹出视图中。" 62 64 63 msgid "No grouping"64 msgstr "不分组 "65 msgid "No Grouping Mode" 66 msgstr "不分组模式" 65 67 66 msgid "Disables all image grouping in the post. Each image opens individually." 67 msgstr "禁用文章中的所有图片分组。每张图片将单独打开。" 68 msgid "" 69 "Each image opens in its own popup window with no grouping or navigation " 70 "arrows." 71 msgstr "每张图片将在自己的弹出窗口中打开,不进行分组或导航。" 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 3 3 Tags: image popup, lightbox, responsive, lightweight, multilingual 4 4 Requires at least: 5.0 5 Tested up to: 6.8. 16 Requires PHP: 7. 07 Stable tag: 1. 5.45 Tested up to: 6.8.2 6 Requires PHP: 7.4 7 Stable tag: 1.6.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 13 13 == Description == 14 14 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. 16 It is designed for long-term stability, simplicity, and compatibility — even as WordPress or jQuery evolves. 17 Built entirely with pure JavaScript, it works across all modern themes and requires no shortcodes or external libraries. 18 Now supports mobile swipe gestures for navigating popup images. 17 19 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.20 Unlike 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. 21 WePOP focuses on **just the essential features** needed for modern websites — fast, clean image popups with easy configuration. 20 22 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 23 24 24 --- 25 Display the image’s **alt attribute** below the popup image as a caption. 26 This improves accessibility and allows for simple descriptions without needing custom fields or captions. 25 27 26 ### 🆕 Image Grouping Modes28 ### ⚙️ Popup Mode 27 29 28 You can now choose how images are grouped using the **Image Grouping Mode** setting in the plugin options:30 You can choose how image links are grouped into popup viewers using the **Popup Mode** setting: 29 31 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. 32 36 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. 35 40 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. 39 43 40 This gives you more control when mixing gallery and non-gallery images in the same post. 44 ### ⚙️ Language 41 45 42 This plugin is multilingual. The interface has been fully translated into the following languages: 46 WePOP supports a multilingual interface. You can select your preferred admin language from the plugin settings. 43 47 44 48 - 🇯🇵 Japanese (ja_JP) … … 47 51 - 🇫🇷 French (fr) 48 52 - 🇩🇪 German (de) 49 - 🇨🇳 Simplified Chinese (zh_CN) 53 - 🇨🇳 Simplified Chinese (zh_CN) 54 - 🇮🇹 Italian 55 - 🇰🇷 Korean 56 - 🇧🇷 Portuguese (Brazil) 50 57 51 The language can be selected from the plugin settings screen. 58 --- 59 60 WePOP is ideal for developers, bloggers, and creators who need a fast and reliable image popup tool — 61 without the bloat or complexity of traditional lightbox plugins. 52 62 53 63 == Installation == … … 104 114 == Changelog == 105 115 116 = 1.6.0 = 117 * 設定画面に「Popup Mode(画像グループ化モード)」の選択肢を追加し、より分かりやすい表記に見直しました(旧称:Image Grouping Mode) 118 * オプション「WordPressギャラリーの画像のみをグループ化」における単一画像のポップアップ不具合を修正しました 119 * スマートフォンでのスワイプ操作による画像切り替えに対応しました(バニラJSによる軽量実装) 120 * ポップアップ表示中の背景スクロールを無効化し、スマホ操作時のユーザー体験を改善しました 121 * 以下の3言語を新たに翻訳ファイルとして追加しました: 122 - イタリア語 123 - 韓国語 124 - ポルトガル語(ブラジル) 125 * 設定項目の英語表記を改善し、それに伴い全翻訳ファイルを更新しました 126 * 翻訳テンプレート(.potファイル)を最新化し、すべてのテキストを翻訳対象に対応しました 127 106 128 = 1.5.4 = 107 Updated wording for "No grouping" option in settings 108 Added missing gettext wrapper for translatability 129 Updated wording for "No grouping" option in settings 130 Added missing gettext wrapper for translatability 109 131 Updated translation template (.pot) and ja_JP translation files (.po/.mo) 110 132 111 133 = 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) 134 Added setting for image grouping mode (none / all / gallery only) 135 In gallery mode, standalone images now popup individually 136 Optimized language loading: supports both Poedit-style (fr.mo, de.mo) and WordPress-style (ja_JP.mo) 115 137 Updated and verified translations for all supported languages 116 138 117 139 = 1.5.2 = 118 Fix: Corrected attribute naming to data-wepop 140 Fix: Corrected attribute naming to data-wepop 119 141 Improved documentation and translations 120 142 121 143 = 1.5.1 = 122 Improved multilingual interface support and gallery grouping behavior 144 Improved multilingual interface support and gallery grouping behavior 123 145 Updated admin settings for better usability 124 146 … … 128 150 == Upgrade Notice == 129 151 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 = 153 New features: swipe gesture support, popup mode selection, improved multilingual files. 154 Recommended for all users. -
wepop/trunk/wepop.php
r3322620 r3329395 4 4 Plugin URI: https://wedok.jp/tools/wepop/ 5 5 Description: Simple image popup and gallery plugin for WordPress, built with pure JavaScript and no dependencies. 6 Version: 1. 5.46 Version: 1.6.0 7 7 Author: WeDOK Konta 8 8 Author URI: https://wedok.jp … … 24 24 $language = isset($options['language']) ? $options['language'] : 'ja'; 25 25 26 // ファイル名マッピング( ja → ja_JP、それ以外はそのまま)26 // ファイル名マッピング(ロケールコードへ変換) 27 27 $map = array( 28 28 'ja' => 'ja_JP', … … 32 32 'es' => 'es', 33 33 'zh_CN' => 'zh_CN', 34 'it_IT' => 'it_IT', 35 'ko_KR' => 'ko_KR', 36 'pt_BR' => 'pt_BR', 34 37 ); 35 38 … … 39 42 } 40 43 add_action('init', 'wedok_pop_load_textdomain'); 44 41 45 42 46 // デフォルトオプション登録
Note: See TracChangeset
for help on using the changeset viewer.