Make WordPress Themes

Changeset 251472

Timestamp:
12/07/2024 06:31:56 AM (12 months ago)
Author:
themedropbox
Message:

New version of Lightning - 15.29.0

Location:
lightning/15.29.0
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • lightning/15.29.0/_g2/functions.php

    r249386 r251472  
    11<?php
     2// 無料版の _g2/functions.php と Lightning Pro (G2) の functions.php と基本的には同期している。
     3// 無料版の Lightning では autoload.php は Lightning/functions.php で読み込んでいるが、
     4// Lightning Pro では読み込まれていないため、無料版では重複読み込みになるがPro版のためにここでも読み込む
     5require_once get_template_directory() . '/vendor/autoload.php';
    26
    37$theme_opt = wp_get_theme( get_template() );
     
    4650    Theme setup
    4751/*-------------------------------------------*/
    48 add_action( 'after_setup_theme', 'lightning_theme_setup' );
     52
     53/**
     54 * Lightning theme setup( after_setup_theme )
     55 */
    4956function lightning_theme_setup() {
    5057
     
    123130    add_theme_support( 'customize-selective-refresh-widgets' );
    124131
     132    require __DIR__ . '/functions-compatible.php';
     133
     134    /*
     135        Load Custom template tags for this theme.
     136    /*-------------------------------------------*/
     137    require __DIR__ . '/inc/template-tags.php';
     138    require __DIR__ . '/inc/template-tags-old.php';
     139    require __DIR__ . '/inc/vk-helpers/config.php';
     140
     141    /*
     142        Load Theme Customizer additions.
     143    /*-------------------------------------------*/
     144    require __DIR__ . '/inc/customize/customize-design.php';
     145    require __DIR__ . '/inc/customize/customize-top-slide.php';
     146    require __DIR__ . '/inc/customize/customize-functions.php';
     147
     148    /*
     149        Load allow customize modules
     150    /*-------------------------------------------*/
     151    require __DIR__ . '/inc/vk-mobile-nav/vk-mobile-nav-config.php';
     152
     153    /*
     154        Load modules
     155    /*-------------------------------------------*/
     156    require __DIR__ . '/inc/package-manager.php';
     157    require __DIR__ . '/inc/term-color/term-color-config.php';
     158    require __DIR__ . '/inc/vk-components/vk-components-config.php';
     159    require __DIR__ . '/inc/template-redirect.php';
     160    require __DIR__ . '/inc/layout-controller/layout-controller.php';
     161    require __DIR__ . '/inc/vk-footer-customize/vk-footer-customize-config.php';
     162    require __DIR__ . '/inc/vk-css-optimize/config.php';
     163
    125164    /*
    126165        Option init
     
    141180    }
    142181}
     182add_action( 'after_setup_theme', 'lightning_theme_setup' );
     183
     184/*
     185    Load Setup Files ( out of after_setup_theme )
     186/*-------------------------------------------*/
     187
     188// * Be cautious, as translation may stop working if you place it before add_action( 'after_setup_theme', 'lightning_theme_setup' ).
     189require __DIR__ . '/inc/class-design-manager.php';
    143190
    144191/*
     
    216263    );
    217264}
    218 
    219 
    220 require __DIR__ . '/functions-compatible.php';
    221 
    222 
    223 /*
    224     Load Custom template tags for this theme.
    225 /*-------------------------------------------*/
    226 require __DIR__ . '/inc/template-tags.php';
    227 require __DIR__ . '/inc/template-tags-old.php';
    228 require __DIR__ . '/inc/vk-helpers/config.php';
    229 
    230 /*
    231     Load Theme Customizer additions.
    232 /*-------------------------------------------*/
    233 require __DIR__ . '/inc/customize/customize-design.php';
    234 require __DIR__ . '/inc/customize/customize-top-slide.php';
    235 require __DIR__ . '/inc/customize/customize-functions.php';
    236 
    237 /*
    238     Load allow customize modules
    239 /*-------------------------------------------*/
    240 require __DIR__ . '/inc/vk-mobile-nav/vk-mobile-nav-config.php';
    241 
    242 /*
    243     Load modules
    244 /*-------------------------------------------*/
    245 require __DIR__ . '/inc/package-manager.php';
    246 require __DIR__ . '/inc/class-design-manager.php';
    247 // require dirname( __FILE__ ) . '/inc/font-awesome/font-awesome-config.php';
    248 require __DIR__ . '/inc/term-color/term-color-config.php';
    249 require __DIR__ . '/inc/vk-components/vk-components-config.php';
    250 require __DIR__ . '/inc/template-redirect.php';
    251 require __DIR__ . '/inc/layout-controller/layout-controller.php';
    252 require __DIR__ . '/inc/vk-footer-customize/vk-footer-customize-config.php';
    253 require __DIR__ . '/inc/vk-css-optimize/config.php';
    254265
    255266/*
  • lightning/15.29.0/_g2/inc/package-manager.php

    r249543 r251472  
    99    Load Package
    1010/*-------------------------------------------*/
    11 add_action( 'after_setup_theme', 'Lightning_load_packages' );
     11add_action( 'after_setup_theme', 'Lightning_load_packages', 11 );
    1212function Lightning_load_packages() {
    1313    $options  = get_option( 'lightning_theme_options' );
  • lightning/15.29.0/_g3/inc/template-tags.php

    r233625 r251472  
    356356
    357357                if ( $option['author_image'] ) {
    358                     $html .= '<span class="entry-meta-item-author-image">';
    359 
    360358                    // VK Post Author Display の画像を取得.
    361359                    $profile_image_id = get_the_author_meta( 'user_profile_image' );
    362360                    if ( $profile_image_id ) {
    363                         $profile_image_src = wp_get_attachment_image_src( $profile_image_id, 'thumbnail' );
    364                         $html             .= '<img src="' . $profile_image_src[0] . '" alt="' . esc_attr( $author ) . '" />';
     361                        $vk_post_author_display_image_src = wp_get_attachment_image_src( $profile_image_id, 'thumbnail' );
     362                    }
     363                    // 画像がメディアライブラリ側で削除されたりもするため、 is_array で判定.
     364                    if ( isset( $vk_post_author_display_image_src ) && is_array( $vk_post_author_display_image_src ) ) {
     365                        $profile_image = '<img src="' . $vk_post_author_display_image_src[0] . '" alt="' . esc_attr( $author ) . '" />';
    365366                    } else {
    366                         $html .= get_avatar( get_the_author_meta( 'email' ), 30 );
     367                        // プロフィール画像がない場合は Gravatar.
     368                        $profile_image = get_avatar( get_the_author_meta( 'email' ), 30 );
    367369                    }
    368370
    369                     $html .= '</span>';
     371                    if ( $profile_image ) {
     372                        $html .= '<span class="entry-meta-item-author-image">';
     373                        $html .= $profile_image;
     374                        $html .= '</span>';
     375                    }
    370376                }
    371377
  • lightning/15.29.0/readme.txt

    r250057 r251472  
    33Lightning WordPress theme is licensed under the GPL.
    44Tested up to: 6.7
    5 Stable tag: 15.28.2
     5Stable tag: 15.29.0
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3131
    3232== Author ==
    33 The theme built by Hidekazu Ishikawa (kurudrive) at Vektor,Inc.
    34 You can contact me at inquiry form.
    35 https://www.vektor-inc.co.jp/inquiry/
    36 
     33The theme built by Vektor,Inc.
     34vk-develop@vektor-inc.co.jp
    3735
    3836== Changelog ==
     37
     38v15.29.0
     39[ G2 ][ Specification Change ] Change load module priority ( cope with WordPress 6.7 translation )
     40[ G3 ][ Bug fix ] Fix profile image warning
    3941
    4042v15.28.2
  • lightning/15.29.0/style.css

    r250057 r251472  
    66Author: Vektor,Inc.
    77Author URI: https://www.vektor-inc.co.jp
    8 Version: 15.28.2
     8Version: 15.29.0
    99Requires at least: 6.4
    1010Tested up to: 6.7
  • lightning/15.29.0/vendor/composer/installed.php

    r250057 r251472  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'e5756f10bc5cad5116c4f2d2eed1e72dd9d9524a',
     6        'reference' => '44f2f8d73d8ecdb6bd74ed33a7c825ab4953d4cc',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    2323            'pretty_version' => 'dev-master',
    2424            'version' => 'dev-master',
    25             'reference' => 'e5756f10bc5cad5116c4f2d2eed1e72dd9d9524a',
     25            'reference' => '44f2f8d73d8ecdb6bd74ed33a7c825ab4953d4cc',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.