Make WordPress Themes

Changeset 232467 for lightning/15.25.0

Timestamp:
06/24/2024 07:24:42 AM (17 months ago)
Author:
themedropbox
Message:

New version of Lightning - 15.25.0

Location:
lightning/15.25.0
Files:
7 edited
1 copied

Legend:

Unmodified
Added
Removed
  • lightning/15.25.0/_g3/inc/customize/customize-design.php

    r155349 r232467  
    11<?php
    22/*
    3   customize_register
     3    customize_register
    44/*-------------------------------------------*/
    55add_action( 'customize_register', 'lightning_customize_register_design' );
     
    6666    );
    6767
     68    // Logo max height (PC)
     69    $wp_customize->add_setting(
     70        'lightning_theme_options[logo_max_height_pc]',
     71        array(
     72            'default'           => '',
     73            'type'              => 'option',
     74            'capability'        => 'edit_theme_options',
     75            'sanitize_callback' => 'absint',
     76        )
     77    );
     78    $wp_customize->add_control(
     79        new VK_Custom_Text_Control(
     80            $wp_customize,
     81            'logo_max_height_pc',
     82            array(
     83                'label'       => __( 'Logo max height [ PC ]', 'lightning' ),
     84                'section'     => 'lightning_design',
     85                'settings'    => 'lightning_theme_options[logo_max_height_pc]',
     86                'type'        => 'number',
     87                'priority'    => 502,
     88                'description' => '',
     89                'input_after' => 'px',
     90            )
     91        )
     92    );
     93
     94    // Logo max height (Mobile)
     95    $wp_customize->add_setting(
     96        'lightning_theme_options[logo_max_height_mobile]',
     97        array(
     98            'default'           => '',
     99            'type'              => 'option',
     100            'capability'        => 'edit_theme_options',
     101            'sanitize_callback' => 'absint',
     102        )
     103    );
     104    $wp_customize->add_control(
     105        new VK_Custom_Text_Control(
     106            $wp_customize,
     107            'logo_max_height_mobile',
     108            array(
     109                'label'       => __( 'Logo max height [ Mobile ]', 'lightning' ),
     110                'section'     => 'lightning_design',
     111                'settings'    => 'lightning_theme_options[logo_max_height_mobile]',
     112                'type'        => 'number',
     113                'priority'    => 503,
     114                'description' => '',
     115                'input_after' => 'px',
     116            )
     117        )
     118    );
     119
    68120    /*********************************************
    69121     * Color Setting
     
    113165        )
    114166    );
    115 
    116167}
    117168
     
    139190    }
    140191    ';
     192
     193    // Logo max height
     194    $max_height_pc     = ! empty( $options['logo_max_height_pc'] ) ? absint( $options['logo_max_height_pc'] ) : '';
     195    $max_height_mobile = ! empty( $options['logo_max_height_mobile'] ) ? absint( $options['logo_max_height_mobile'] ) : '';
     196
     197    if ( $max_height_pc ) {
     198        $dynamic_css .= '@media (min-width: 992px) { .site-header-logo img { max-height: ' . $max_height_pc . 'px; } }';
     199    }
     200    if ( $max_height_mobile ) {
     201        $dynamic_css .= '@media (max-width: 991px) { .site-header-logo img { max-height: ' . $max_height_mobile . 'px; } }';
     202    }
     203
    141204    // delete before after space.
    142205    $dynamic_css = trim( $dynamic_css );
  • lightning/15.25.0/readme.txt

    r231723 r232467  
    33Lightning WordPress theme is licensed under the GPL.
    44Tested up to: 6.5
    5 Stable tag: 15.24.0
     5Stable tag: 15.25.0
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3737
    3838== Changelog ==
     39
     40v15.25.0
     41[ G3 ][ Add function ] Add max height setteing for header logo.
    3942
    4043v15.24.0
  • lightning/15.25.0/style.css

    r231723 r232467  
    66Author: Vektor,Inc.
    77Author URI: https://www.vektor-inc.co.jp
    8 Version: 15.24.0
     8Version: 15.25.0
    99Requires at least: 5.9
    1010Tested up to: 6.5
  • lightning/15.25.0/vendor/autoload.php

    r231723 r232467  
    1010require_once __DIR__ . '/composer/autoload_real.php';
    1111
    12 return ComposerAutoloaderInit2235211c1b962bf27f759bf59c715a1e::getLoader();
     12return ComposerAutoloaderInitd2e1be9678aadebf4ba68a3ac3270dc0::getLoader();
  • lightning/15.25.0/vendor/composer/autoload_real.php

    r231723 r232467  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit2235211c1b962bf27f759bf59c715a1e
     5class ComposerAutoloaderInitd2e1be9678aadebf4ba68a3ac3270dc0
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit2235211c1b962bf27f759bf59c715a1e', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitd2e1be9678aadebf4ba68a3ac3270dc0', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit2235211c1b962bf27f759bf59c715a1e', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitd2e1be9678aadebf4ba68a3ac3270dc0', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit2235211c1b962bf27f759bf59c715a1e::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInitd2e1be9678aadebf4ba68a3ac3270dc0::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $includeFiles = \Composer\Autoload\ComposerStaticInit2235211c1b962bf27f759bf59c715a1e::$files;
     36        $includeFiles = \Composer\Autoload\ComposerStaticInitd2e1be9678aadebf4ba68a3ac3270dc0::$files;
    3737        foreach ($includeFiles as $fileIdentifier => $file) {
    38             composerRequire2235211c1b962bf27f759bf59c715a1e($fileIdentifier, $file);
     38            composerRequired2e1be9678aadebf4ba68a3ac3270dc0($fileIdentifier, $file);
    3939        }
    4040
     
    4848 * @return void
    4949 */
    50 function composerRequire2235211c1b962bf27f759bf59c715a1e($fileIdentifier, $file)
     50function composerRequired2e1be9678aadebf4ba68a3ac3270dc0($fileIdentifier, $file)
    5151{
    5252    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • lightning/15.25.0/vendor/composer/autoload_static.php

    r231723 r232467  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit2235211c1b962bf27f759bf59c715a1e
     7class ComposerStaticInitd2e1be9678aadebf4ba68a3ac3270dc0
    88{
    99    public static $files = array (
     
    6565    {
    6666        return \Closure::bind(function () use ($loader) {
    67             $loader->prefixLengthsPsr4 = ComposerStaticInit2235211c1b962bf27f759bf59c715a1e::$prefixLengthsPsr4;
    68             $loader->prefixDirsPsr4 = ComposerStaticInit2235211c1b962bf27f759bf59c715a1e::$prefixDirsPsr4;
    69             $loader->classMap = ComposerStaticInit2235211c1b962bf27f759bf59c715a1e::$classMap;
     67            $loader->prefixLengthsPsr4 = ComposerStaticInitd2e1be9678aadebf4ba68a3ac3270dc0::$prefixLengthsPsr4;
     68            $loader->prefixDirsPsr4 = ComposerStaticInitd2e1be9678aadebf4ba68a3ac3270dc0::$prefixDirsPsr4;
     69            $loader->classMap = ComposerStaticInitd2e1be9678aadebf4ba68a3ac3270dc0::$classMap;
    7070
    7171        }, null, ClassLoader::class);
  • lightning/15.25.0/vendor/composer/installed.php

    r231723 r232467  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => '979afd45f6be236fb7a1148a6dc5b679423cfaea',
     6        'reference' => '62335901064812d5d91b0936ded76209696bdfb8',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    2323            'pretty_version' => 'dev-master',
    2424            'version' => 'dev-master',
    25             'reference' => '979afd45f6be236fb7a1148a6dc5b679423cfaea',
     25            'reference' => '62335901064812d5d91b0936ded76209696bdfb8',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.