- Timestamp:
- 08/04/2025 06:30:32 AM (4 months ago)
- Location:
- inspiro/2.1.1
- Files:
-
- 9 added
- 1 deleted
- 8 edited
- 1 copied
-
. (copied) (copied from inspiro/2.1.0)
-
README.md (modified) (2 diffs)
-
README_DEV.md (deleted)
-
assets/css/minified/survey-dashboard-rtl.min.css (added)
-
assets/css/minified/theme-deactivation-rtl.min.css (added)
-
assets/css/minified/theme-deactivation.min.css (added)
-
assets/css/unminified/survey-dashboard-rtl.css (added)
-
assets/css/unminified/theme-deactivation-rtl.css (added)
-
assets/css/unminified/theme-deactivation.css (added)
-
assets/js/minified/theme-deactivation.min.js (added)
-
assets/js/unminified/plugins.js (modified) (1 diff)
-
assets/js/unminified/scripts.js (modified) (1 diff)
-
assets/js/unminified/theme-deactivation.js (added)
-
functions.php (modified) (2 diffs)
-
inc/classes/class-inspiro-theme-deactivation.php (added)
-
inc/common-functions.php (modified) (2 diffs)
-
inc/customizer/custom-controls/assets/js/unminified/custom-controls.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
inspiro/2.1.1/README.md
r281989 r282139 9 9 **Requires at least:** 6.0 10 10 **Tested up to:** 6.8 11 **Version:** 2.1. 011 **Version:** 2.1.1 12 12 **License:** GPLv2 or later 13 13 **License URI:** http://www.gnu.org/licenses/gpl-2.0.html … … 117 117 ## Changelog 118 118 119 ### 2.1.1 120 * Minor bug fixes 121 * Added a survey to collect feedback after theme switch 122 119 123 ### 2.1.0 120 124 * New: Change Theme Width in Customizer > Theme Layout. -
inspiro/2.1.1/assets/js/unminified/plugins.js
r281989 r282139 1 1 /*! WPZOOM 2 * inspiro - v2.1. 02 * inspiro - v2.1.1 3 3 * Author website: https://wpzoom.com/ 4 4 * This file is automatically created! Do not edit this file directly! */ -
inspiro/2.1.1/assets/js/unminified/scripts.js
r281989 r282139 1 1 /*! WPZOOM 2 * inspiro - v2.1. 02 * inspiro - v2.1.1 3 3 * Author website: https://wpzoom.com/ 4 4 * This file is automatically created! Do not edit this file directly! */ -
inspiro/2.1.1/functions.php
r281989 r282139 16 16 * Define Constants 17 17 */ 18 define( 'INSPIRO_THEME_VERSION', '2.1. 0' );18 define( 'INSPIRO_THEME_VERSION', '2.1.1' ); 19 19 define( 'INSPIRO_THEME_DIR', trailingslashit( get_template_directory() ) ); 20 20 define( 'INSPIRO_THEME_URI', trailingslashit( esc_url( get_template_directory_uri() ) ) ); … … 132 132 require INSPIRO_THEME_DIR . 'inc/classes/class-inspiro-notices.php'; 133 133 require INSPIRO_THEME_DIR . 'inc/classes/class-inspiro-notice-review.php'; 134 require INSPIRO_THEME_DIR . 'inc/classes/class-inspiro-theme-deactivation.php'; 134 135 } 135 136 } -
inspiro/2.1.1/inc/common-functions.php
r274773 r282139 587 587 */ 588 588 function inspiro_after_switch_theme($old_name, $old_theme) { 589 // Store theme activation timestamp for usage tracking 590 update_option('inspiro_theme_activated_at', current_time('timestamp')); 591 589 592 // Don't run on fresh sites as that's handled by inspiro_set_fresh_site_mods 590 593 if (!get_option('fresh_site')) { … … 596 599 } 597 600 add_action('after_switch_theme', 'inspiro_after_switch_theme', 10, 2); 601 602 /** 603 * Get theme usage duration in human-readable format. 604 * 605 * @return array Array with usage time data or null if not available 606 */ 607 function inspiro_get_theme_usage_duration() { 608 $activated_at = get_option('inspiro_theme_activated_at'); 609 610 if (!$activated_at) { 611 return null; 612 } 613 614 $current_time = current_time('timestamp'); 615 $usage_seconds = $current_time - $activated_at; 616 617 // Convert to days, hours, minutes 618 $days = floor($usage_seconds / DAY_IN_SECONDS); 619 $hours = floor(($usage_seconds % DAY_IN_SECONDS) / HOUR_IN_SECONDS); 620 $minutes = floor(($usage_seconds % HOUR_IN_SECONDS) / MINUTE_IN_SECONDS); 621 622 return array( 623 'activated_at' => $activated_at, 624 'current_time' => $current_time, 625 'usage_seconds' => $usage_seconds, 626 'usage_days' => $days, 627 'usage_hours' => $hours, 628 'usage_minutes' => $minutes, 629 'formatted' => inspiro_format_usage_duration($days, $hours, $minutes) 630 ); 631 } 632 633 /** 634 * Format usage duration into human-readable string. 635 * 636 * @param int $days Days 637 * @param int $hours Hours 638 * @param int $minutes Minutes 639 * @return string Formatted duration string 640 */ 641 function inspiro_format_usage_duration($days, $hours, $minutes) { 642 if ($days > 0) { 643 return sprintf( 644 _n('%d day', '%d days', $days, 'inspiro'), $days 645 ) . ($hours > 0 ? sprintf(', %d %s', $hours, _n('hour', 'hours', $hours, 'inspiro')) : ''); 646 } elseif ($hours > 0) { 647 return sprintf( 648 _n('%d hour', '%d hours', $hours, 'inspiro'), $hours 649 ) . ($minutes > 0 ? sprintf(', %d %s', $minutes, _n('minute', 'minutes', $minutes, 'inspiro')) : ''); 650 } elseif ($minutes > 0) { 651 return sprintf(_n('%d minute', '%d minutes', $minutes, 'inspiro'), $minutes); 652 } else { 653 return __('Less than a minute', 'inspiro'); 654 } 655 } -
inspiro/2.1.1/inc/customizer/custom-controls/assets/js/unminified/custom-controls.js
r281989 r282139 1 1 /*! WPZOOM 2 * inspiro - v2.1. 02 * inspiro - v2.1.1 3 3 * Author website: https://wpzoom.com/ 4 4 * This file is automatically created! Do not edit this file directly! */ -
inspiro/2.1.1/readme.txt
r281989 r282139 3 3 Requires at least: 6.0 4 4 Tested up to: 6.8 5 Version: 2.1. 05 Version: 2.1.1 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 111 111 == Changelog == 112 112 113 = 2.1.1 = 114 * Minor bug fixes 115 * Added a survey to collect feedback after theme switch 116 113 117 = 2.1.0 = 114 118 * New: Change Theme Width in Customizer > Theme Layout. -
inspiro/2.1.1/style.css
r281989 r282139 6 6 Description: Inspiro is a versatile, ultra-lightweight WordPress theme ideal for small businesses, creative professionals, and visual portfolios. Combining modern aesthetics with lightning-fast performance, it enhances user experience and boosts SEO rankings. Get started instantly with 10+ beautiful starter sites crafted for specific business niches, letting you launch your website quickly. Inspiro features unique fullscreen video backgrounds supporting Vimeo, YouTube, and self-hosted videos, perfect for photography and multimedia projects. It integrates seamlessly with popular page builders (Elementor, Beaver Builder) and WooCommerce, making it effortless to create any type of site, from business and agency websites to online shops and blogs. Fully responsive, GDPR-compliant, and privacy-focused (no external Google fonts), Inspiro looks perfect on every device. Explore more powerful features in our Premium version: https://www.wpzoom.com/themes/inspiro/ 7 7 Tags: one-column, two-columns, right-sidebar, flexible-header, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, e-commerce, wide-blocks, portfolio, blog, custom-background, featured-image-header, full-width-template, theme-options, block-styles, block-patterns 8 Version: 2.1. 08 Version: 2.1.1 9 9 Requires at least: 6.0 10 10 Requires PHP: 7.4
Note: See TracChangeset
for help on using the changeset viewer.