Make WordPress Themes

Changeset 357597


Ignore:
Timestamp:
11/06/2026 07:41:24 AM (30 hours ago)
Author:
themedropbox
Message:

New version of SKT Lights - 2.2

Location:
skt-lights/2.2
Files:
1 deleted
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • skt-lights/2.2/functions.php

    r252755 r357597  
    219219}
    220220add_action( 'widgets_init', 'skt_lights_unregister_widgets_area', 11 );
    221 
    222 require_once get_stylesheet_directory() . '/inc/about-themes.php'; 
     221 
    223222require_once get_stylesheet_directory() . '/inc/customizer.php';
    224223
    … …  
    239238    return $fragments;
    240239}
     240
     241/**
     242 * Parent theme dashboard customizations.
     243 */
     244if ( is_admin() ) {
     245        add_filter( 'skt_glass_ti_links', 'skt_lights_override_ti_links', 20 );
     246        add_filter( 'template_directory_uri', 'skt_lights_override_ti_shot_uri', 20 );
     247}
     248
     249/**
     250 * Override the parent theme info-page links.
     251 *
     252 * @param array $links Links from the parent theme.
     253 * @return array
     254 */
     255function skt_lights_override_ti_links( $links ) {
     256        if ( ! is_array( $links ) ) {
     257                return $links;
     258        }
     259
     260        $overrides = array(
     261                'brand'           => __( 'Let Us Build with SKT Themes', 'skt-lights' ),
     262                'pro_buy'         => 'https://www.sktthemes.org/shop/led-lighting-wordpress-theme/',
     263                'live_demo'       => 'https://sktperfectdemo.com/themepack/lights/',
     264                'support'         => 'https://wordpress.org/support/theme/skt-lights/',
     265                'pro_doc'         => 'https://www.sktthemesdemo.net/documentation/skt-elementor-doc/',
     266                'free_doc'        => 'https://www.sktthemesdemo.net/documentation/skt-ayurveda-doc/',
     267                'bundle_buy'      => 'https://www.sktthemes.org/shop/all-themes/',
     268                'bundle_lifetime' => 'https://www.sktthemes.org/shop/lifetime-access-wordpress-themes/',
     269                'bundle_doc'      => 'https://sktthemesdemo.net/documentation/',
     270                'theme_count'     => '420+',
     271                'bundle_price'    => '$69',
     272                'lifetime_price'  => '$199',
     273        );
     274
     275        return array_merge( $links, $overrides );
     276}
     277
     278function skt_lights_override_ti_shot_uri( $uri ) {
     279        static $source_cache = array();
     280
     281        if ( ! is_child_theme() ) {
     282                return $uri;
     283        }
     284
     285        // Parent functions whose $shot should use the child theme screenshot.
     286        $allowed_callers = array(
     287                'skt_glass_ti_page_display',
     288                'skt_glass_ti_welcome_notice', // Replace with the real function name from theme-welcome.php.
     289        );
     290
     291        $trace = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, 6 ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_debug_backtrace
     292
     293        foreach ( $trace as $i => $frame ) {
     294                if ( ! isset( $frame['function'] ) || 'get_template_directory_uri' !== $frame['function'] ) {
     295                        continue;
     296                }
     297
     298                $caller = isset( $trace[ $i + 1 ]['function'] ) ? $trace[ $i + 1 ]['function'] : '';
     299                if ( ! in_array( $caller, $allowed_callers, true ) || empty( $frame['file'] ) || empty( $frame['line'] ) ) {
     300                        return $uri;
     301                }
     302
     303                if ( ! isset( $source_cache[ $frame['file'] ] ) ) {
     304                        $source_cache[ $frame['file'] ] = file( $frame['file'] );
     305                }
     306                $lines = $source_cache[ $frame['file'] ];
     307                $code  = isset( $lines[ $frame['line'] - 1 ] ) ? $lines[ $frame['line'] - 1 ] : '';
     308
     309                if ( false !== strpos( $code, 'screenshot.png' )
     310                        && file_exists( get_stylesheet_directory() . '/screenshot.png' ) ) {
     311                        return get_stylesheet_directory_uri();
     312                }
     313
     314                return $uri;
     315        }
     316
     317        return $uri;
     318}
     319/**
     320 * Parent theme dashboard customizations.
     321 */
  • skt-lights/2.2/languages/skt-lights.pot

    r250964 r357597  
    44"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
    55"Project-Id-Version: SKT Lights\n"
    6 "POT-Creation-Date: 2024-12-03 15:23+0530\n"
    7 "PO-Revision-Date: 2024-12-03 15:23+0530\n"
     6"POT-Creation-Date: 2026-11-05 11:56+0530\n"
     7"PO-Revision-Date: 2026-11-05 11:55+0530\n"
    88"Last-Translator: \n"
    99"Language-Team: \n"
    … …  
    3838msgstr ""
    3939
    40 #. Author of the plugin/theme
    41 #: footer.php:71 footer.php:74 inc/about-themes.php:28
    42 msgid "SKT Themes"
    43 msgstr ""
    44 
    45 #: footer.php:82
     40#. Theme Name of the plugin/theme
     41#: footer.php:70
     42msgid "SKT Lights"
     43msgstr ""
     44
     45#: footer.php:78
    4646msgid "Facebook"
    4747msgstr ""
    4848
    49 #: footer.php:85
     49#: footer.php:81
    5050msgid "Twitter"
    5151msgstr ""
    5252
     53#: footer.php:84
     54msgid "Linkedin"
     55msgstr ""
     56
    5357#: footer.php:88
    54 msgid "Linkedin"
    55 msgstr ""
    56 
    57 #: footer.php:92
    5858msgid "Instagram"
    5959msgstr ""
    … …  
    8383msgstr ""
    8484
    85 #: functions.php:131
     85#: functions.php:132
    8686msgid "Thank you for installing SKT Lights!"
    8787msgstr ""
    8888
    89 #: functions.php:132
     89#: functions.php:133
    9090msgid ""
    9191"SKT Lights comes with 150+ ready to use Elementor templates. Install the SKT "
    … …  
    9393msgstr ""
    9494
     95#: functions.php:261
     96msgid "Let Us Build with SKT Themes"
     97msgstr ""
     98
    9599#: header.php:24
    96100msgid "Skip to content"
    … …  
    103107#: header.php:77
    104108msgid "View your shopping cart"
    105 msgstr ""
    106 
    107 #: inc/about-themes.php:5
    108 msgid "About Theme"
    109 msgstr ""
    110 
    111 #: inc/about-themes.php:15
    112 msgid "Theme Information"
    113 msgstr ""
    114 
    115 #: inc/about-themes.php:17
    116 msgid ""
    117 "Illuminate your website with the SKT Lights free theme, perfect for "
    118 "showcasing lamps, lighting fixtures, bulbs, chandeliers, luminaires, "
    119 "lanterns, fluorescents, and spotlights. This flexible and scalable theme "
    120 "supports SEO plugins, one-click demo import via Elementor, and WooCommerce "
    121 "compatibility for seamless e-commerce integration. Its built-in call-to-"
    122 "action features and contact form plugin compatibility ensure enhanced user "
    123 "engagement."
    124 msgstr ""
    125 
    126 #: inc/about-themes.php:18
    127 msgid "Free Vs Pro"
    128 msgstr ""
    129 
    130 #: inc/about-themes.php:23
    131 msgid "Live Demo"
    132 msgstr ""
    133 
    134 #: inc/about-themes.php:24
    135 msgid "Buy Pro"
    136 msgstr ""
    137 
    138 #: inc/about-themes.php:25
    139 msgid "Documentation"
    140109msgstr ""
    141110
    … …  
    224193#: sidebar.php:20
    225194msgid "Meta"
    226 msgstr ""
    227 
    228 #. Theme Name of the plugin/theme
    229 msgid "SKT Lights"
    230195msgstr ""
    231196
    … …  
    246211msgstr ""
    247212
     213#. Author of the plugin/theme
     214msgid "SKT Themes"
     215msgstr ""
     216
    248217#. Author URI of the plugin/theme
    249 msgid "https://www.sktthemes.org"
    250 msgstr ""
     218msgid "https://wordpress.org/themes/author/sonalsinha21/"
     219msgstr ""
  • skt-lights/2.2/readme.txt

    r316221 r357597  
    33Contributors: sonalsinha21
    44Requires PHP:  5.6
    5 Tested up to: 6.9
    6 Version: 2.1
     5Tested up to: 7.1
     6Version: 2.2
    77License: GPL-2.0-or-later
    88License URI: https://www.gnu.org/licenses/license-list.html#GPLv2
    … …  
    2020
    2121*   SKT Themes Self Designed Images:
    22         skt-lights/images/cart-icon.png
    23         skt-lights/images/free-vs-pro.png
     22        skt-lights/images/cart-icon.png
    2423        skt-lights/images/icon-fb.png
    2524        skt-lights/images/icon-in.png
    … …  
    2928        skt-lights/images/icon-tw.png
    3029        skt-lights/images/logo.png
    31         skt-lights/images/sktskill.jpg
    3230
    3331=       Declaring these self designed images under GPL license version 2.0 =
    … …  
    7674         
    7775= 2.1 =
    78           Author URL to be rectified.     
     76          Author URL to be rectified.
     77         
     78= 2.2 =
     79          Added the Theme Dashboard menu and corrected the author.           
  • skt-lights/2.2/style.css

    r316221 r357597  
    66Description: Illuminate your website. with the SKT Lights free theme, perfect for showcasing lamps, lighting fixtures, bulbs, chandeliers, luminaires, lanterns, fluorescents, and spotlights. This flexible and scalable theme supports SEO plugins, one-click demo import via Elementor, and WooCommerce compatibility for seamless e-commerce integration. Its built-in call-to-action features and contact form plugin compatibility ensure enhanced user engagement. Documentation: https://www.sktthemesdemo.net/documentation/skt-glass-doc/
    77Template: skt-glass
    8 Version: 2.1
    9 Tested up to: 6.9
     8Version: 2.2
     9Tested up to: 7.1
    1010Requires PHP: 5.6
    1111License: GNU General Public License
Note: See TracChangeset for help on using the changeset viewer.