Plugin Directory

Changeset 3544609


Ignore:
Timestamp:
05/23/2026 02:19:43 AM (5 months ago)
Author:
satohata
Message:

コミットのメッセージお願い11:19Fix plugin promo icon display to use image when available

Location:
gattsuri-pv-dashboard/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gattsuri-pv-dashboard/trunk/gattsuri-pv-dashboard.php

    r3543576 r3544609  
    33Plugin Name: Gattsuri PV Dashboard
    44Description: Gattsuri PV Dashboard is a lightweight behavior analytics plugin for WordPress that tracks session-based page views and visualizes user engagement directly within the admin dashboard. Unlike traditional analytics, this plugin focuses on on-site behavior — helping site owners understand how deeply visitors navigate and interact with content.
    5 Version: 1.1.0
     5Version: 1.1.1
    66Author: SATORU HATANO
    77License: GPLv2 or later
  • gattsuri-pv-dashboard/trunk/includes/settings.php

    r3543576 r3544609  
    312312            'url_en'      => 'https://satoruhatano.xsrv.jp/gattsuri-pv-dashboard-en/',
    313313            'icon'        => 'dashicons-chart-area',
     314                        'icon_url'    => 'https://ps.w.org/gattsuri-pv-dashboard/assets/icon-128x128.png',
    314315            'wporg'       => 'https://wordpress.org/plugins/gattsuri-pv-dashboard/',
     316
    315317            'active_file' => 'gattsuri-pv-dashboard/gattsuri-pv-dashboard.php',
    316318        ],
    … …  
    324326            'url_en'      => 'https://satoruhatano.xsrv.jp/pochicheck-xml-sitemap-en/',
    325327            'icon'        => 'dashicons-networking',
     328                        'icon_url'    => 'https://ps.w.org/pochicheck-xml-sitemap/assets/icon-128x128.png',
    326329            'wporg'       => 'https://wordpress.org/plugins/pochicheck-xml-sitemap/',
    327330            'active_file' => 'pochicheck-xml-sitemap/pochicheck-xml-sitemap.php',
    … …  
    336339            'url_en'      => 'https://satoruhatano.xsrv.jp/mamotte-login-url-changer-en/',
    337340            'icon'        => 'dashicons-shield',
    338             'wporg'       => '', // 申請中
     341                        'icon_url' => 'https://ps.w.org/mamotte-login-url-changer/assets/icon-128x128.png',
     342                        'wporg'    => 'https://wordpress.org/plugins/mamotte-login-url-changer/',
     343
    339344            'active_file' => 'mamotte-login-url-changer/mamotte-login-url-changer.php',
    340345        ],
    … …  
    367372        echo '<div class="' . esc_attr( $card_class ) . '">';
    368373        echo '<div class="gattpvd-promo-item__header">';
    369         echo '<span class="dashicons ' . esc_attr( $plugin['icon'] ) . ' gattpvd-promo-item__icon"></span>';
     374        if ( ! empty( $plugin['icon_url'] ) ) {
     375            echo '<img src="' . esc_url( $plugin['icon_url'] ) . '" width="40" height="40" alt="" class="gattpvd-promo-item__icon-img">';
     376        } else {
     377            echo '<span class="dashicons ' . esc_attr( $plugin['icon'] ) . ' gattpvd-promo-item__icon"></span>';
     378        }
    370379        echo '<strong class="gattpvd-promo-item__name">' . esc_html( $name ) . '</strong>';
    371380        if ( $is_current ) {
  • gattsuri-pv-dashboard/trunk/readme.txt

    r3543576 r3544609  
    55Tested up to: 7.0
    66Requires PHP: 8.0
    7 Stable tag: 1.1.0
     7Stable tag: 1.1.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    7575== Changelog ==
    7676
     77= 1.1.1 =
     78* Improved: Plugin promotion section now displays actual plugin icons when available, with Dashicons as fallback. (プラグイン紹介セクションのアイコンを実際の画像に対応、未設定時はDashiconsにフォールバック)
     79
    7780= 1.1.0 =
    7881* Tested: Confirmed compatibility with WordPress 7.0. (WordPress 7.0 対応確認)
Note: See TracChangeset for help on using the changeset viewer.