Changeset 251472
- Timestamp:
- 12/07/2024 06:31:56 AM (12 months ago)
- Location:
- lightning/15.29.0
- Files:
-
- 6 edited
- 1 copied
- . (copied) (copied from lightning/15.28.2)
- _g2/functions.php (modified) (5 diffs)
- _g2/inc/package-manager.php (modified) (1 diff)
- _g3/inc/template-tags.php (modified) (1 diff)
- readme.txt (modified) (2 diffs)
- style.css (modified) (1 diff)
- vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lightning/15.29.0/_g2/functions.php
r249386 r251472 1 1 <?php 2 // 無料版の _g2/functions.php と Lightning Pro (G2) の functions.php と基本的には同期している。 3 // 無料版の Lightning では autoload.php は Lightning/functions.php で読み込んでいるが、 4 // Lightning Pro では読み込まれていないため、無料版では重複読み込みになるがPro版のためにここでも読み込む 5 require_once get_template_directory() . '/vendor/autoload.php'; 2 6 3 7 $theme_opt = wp_get_theme( get_template() ); … … 46 50 Theme setup 47 51 /*-------------------------------------------*/ 48 add_action( 'after_setup_theme', 'lightning_theme_setup' ); 52 53 /** 54 * Lightning theme setup( after_setup_theme ) 55 */ 49 56 function lightning_theme_setup() { 50 57 … … 123 130 add_theme_support( 'customize-selective-refresh-widgets' ); 124 131 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 125 164 /* 126 165 Option init … … 141 180 } 142 181 } 182 add_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' ). 189 require __DIR__ . '/inc/class-design-manager.php'; 143 190 144 191 /* … … 216 263 ); 217 264 } 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 modules239 /*-------------------------------------------*/240 require __DIR__ . '/inc/vk-mobile-nav/vk-mobile-nav-config.php';241 242 /*243 Load modules244 /*-------------------------------------------*/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';254 265 255 266 /* -
lightning/15.29.0/_g2/inc/package-manager.php
r249543 r251472 9 9 Load Package 10 10 /*-------------------------------------------*/ 11 add_action( 'after_setup_theme', 'Lightning_load_packages' );11 add_action( 'after_setup_theme', 'Lightning_load_packages', 11 ); 12 12 function Lightning_load_packages() { 13 13 $options = get_option( 'lightning_theme_options' ); -
lightning/15.29.0/_g3/inc/template-tags.php
r233625 r251472 356 356 357 357 if ( $option['author_image'] ) { 358 $html .= '<span class="entry-meta-item-author-image">';359 360 358 // VK Post Author Display の画像を取得. 361 359 $profile_image_id = get_the_author_meta( 'user_profile_image' ); 362 360 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 ) . '" />'; 365 366 } else { 366 $html .= get_avatar( get_the_author_meta( 'email' ), 30 ); 367 // プロフィール画像がない場合は Gravatar. 368 $profile_image = get_avatar( get_the_author_meta( 'email' ), 30 ); 367 369 } 368 370 369 $html .= '</span>'; 371 if ( $profile_image ) { 372 $html .= '<span class="entry-meta-item-author-image">'; 373 $html .= $profile_image; 374 $html .= '</span>'; 375 } 370 376 } 371 377 -
lightning/15.29.0/readme.txt
r250057 r251472 3 3 Lightning WordPress theme is licensed under the GPL. 4 4 Tested up to: 6.7 5 Stable tag: 15.2 8.25 Stable tag: 15.29.0 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 31 31 32 32 == 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 33 The theme built by Vektor,Inc. 34 vk-develop@vektor-inc.co.jp 37 35 38 36 == Changelog == 37 38 v15.29.0 39 [ G2 ][ Specification Change ] Change load module priority ( cope with WordPress 6.7 translation ) 40 [ G3 ][ Bug fix ] Fix profile image warning 39 41 40 42 v15.28.2 -
lightning/15.29.0/style.css
r250057 r251472 6 6 Author: Vektor,Inc. 7 7 Author URI: https://www.vektor-inc.co.jp 8 Version: 15.2 8.28 Version: 15.29.0 9 9 Requires at least: 6.4 10 10 Tested up to: 6.7 -
lightning/15.29.0/vendor/composer/installed.php
r250057 r251472 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' e5756f10bc5cad5116c4f2d2eed1e72dd9d9524a',6 'reference' => '44f2f8d73d8ecdb6bd74ed33a7c825ab4953d4cc', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 23 23 'pretty_version' => 'dev-master', 24 24 'version' => 'dev-master', 25 'reference' => ' e5756f10bc5cad5116c4f2d2eed1e72dd9d9524a',25 'reference' => '44f2f8d73d8ecdb6bd74ed33a7c825ab4953d4cc', 26 26 'type' => 'library', 27 27 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.