Changeset 357597
- Timestamp:
- 11/06/2026 07:41:24 AM (30 hours ago)
- Location:
- skt-lights/2.2
- Files:
-
- 1 deleted
- 4 edited
- 1 copied
-
. (copied) (copied from skt-lights/2.1 )
-
functions.php (modified) (2 diffs)
-
inc/about-themes.php (deleted)
-
languages/skt-lights.pot (modified) (7 diffs)
-
readme.txt (modified) (4 diffs)
-
style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
skt-lights/2.2/functions.php
r252755 r357597 219 219 } 220 220 add_action( 'widgets_init', 'skt_lights_unregister_widgets_area', 11 ); 221 222 require_once get_stylesheet_directory() . '/inc/about-themes.php'; 221 223 222 require_once get_stylesheet_directory() . '/inc/customizer.php'; 224 223 … … 239 238 return $fragments; 240 239 } 240 241 /** 242 * Parent theme dashboard customizations. 243 */ 244 if ( 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 */ 255 function 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 278 function 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 4 4 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 5 5 "Project-Id-Version: SKT Lights\n" 6 "POT-Creation-Date: 202 4-12-03 15:23+0530\n"7 "PO-Revision-Date: 202 4-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" 8 8 "Last-Translator: \n" 9 9 "Language-Team: \n" … … 38 38 msgstr "" 39 39 40 #. Authorof the plugin/theme41 #: footer.php:7 1 footer.php:74 inc/about-themes.php:2842 msgid "SKT Themes"43 msgstr "" 44 45 #: footer.php: 8240 #. Theme Name of the plugin/theme 41 #: footer.php:70 42 msgid "SKT Lights" 43 msgstr "" 44 45 #: footer.php:78 46 46 msgid "Facebook" 47 47 msgstr "" 48 48 49 #: footer.php:8 549 #: footer.php:81 50 50 msgid "Twitter" 51 51 msgstr "" 52 52 53 #: footer.php:84 54 msgid "Linkedin" 55 msgstr "" 56 53 57 #: footer.php:88 54 msgid "Linkedin"55 msgstr ""56 57 #: footer.php:9258 58 msgid "Instagram" 59 59 msgstr "" … … 83 83 msgstr "" 84 84 85 #: functions.php:13 185 #: functions.php:132 86 86 msgid "Thank you for installing SKT Lights!" 87 87 msgstr "" 88 88 89 #: functions.php:13 289 #: functions.php:133 90 90 msgid "" 91 91 "SKT Lights comes with 150+ ready to use Elementor templates. Install the SKT " … … 93 93 msgstr "" 94 94 95 #: functions.php:261 96 msgid "Let Us Build with SKT Themes" 97 msgstr "" 98 95 99 #: header.php:24 96 100 msgid "Skip to content" … … 103 107 #: header.php:77 104 108 msgid "View your shopping cart" 105 msgstr ""106 107 #: inc/about-themes.php:5108 msgid "About Theme"109 msgstr ""110 111 #: inc/about-themes.php:15112 msgid "Theme Information"113 msgstr ""114 115 #: inc/about-themes.php:17116 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:18127 msgid "Free Vs Pro"128 msgstr ""129 130 #: inc/about-themes.php:23131 msgid "Live Demo"132 msgstr ""133 134 #: inc/about-themes.php:24135 msgid "Buy Pro"136 msgstr ""137 138 #: inc/about-themes.php:25139 msgid "Documentation"140 109 msgstr "" 141 110 … … 224 193 #: sidebar.php:20 225 194 msgid "Meta" 226 msgstr ""227 228 #. Theme Name of the plugin/theme229 msgid "SKT Lights"230 195 msgstr "" 231 196 … … 246 211 msgstr "" 247 212 213 #. Author of the plugin/theme 214 msgid "SKT Themes" 215 msgstr "" 216 248 217 #. Author URI of the plugin/theme 249 msgid "https://w ww.sktthemes.org"250 msgstr "" 218 msgid "https://wordpress.org/themes/author/sonalsinha21/" 219 msgstr "" -
skt-lights/2.2/readme.txt
r316221 r357597 3 3 Contributors: sonalsinha21 4 4 Requires PHP: 5.6 5 Tested up to: 6.96 Version: 2. 15 Tested up to: 7.1 6 Version: 2.2 7 7 License: GPL-2.0-or-later 8 8 License URI: https://www.gnu.org/licenses/license-list.html#GPLv2 … … 20 20 21 21 * 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 24 23 skt-lights/images/icon-fb.png 25 24 skt-lights/images/icon-in.png … … 29 28 skt-lights/images/icon-tw.png 30 29 skt-lights/images/logo.png 31 skt-lights/images/sktskill.jpg32 30 33 31 = Declaring these self designed images under GPL license version 2.0 = … … 76 74 77 75 = 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 6 6 Description: 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/ 7 7 Template: skt-glass 8 Version: 2. 19 Tested up to: 6.98 Version: 2.2 9 Tested up to: 7.1 10 10 Requires PHP: 5.6 11 11 License: GNU General Public License
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)