Make WordPress Themes

Changeset 282139 for inspiro


Ignore:
Timestamp:
08/04/2025 06:30:32 AM (4 months ago)
Author:
themedropbox
Message:

New version of Inspiro - 2.1.1

Location:
inspiro/2.1.1
Files:
9 added
1 deleted
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • inspiro/2.1.1/README.md

    r281989 r282139  
    99**Requires at least:** 6.0 
    1010**Tested up to:** 6.8 
    11 **Version:** 2.1.0 
     11**Version:** 2.1.1 
    1212**License:** GPLv2 or later 
    1313**License URI:** http://www.gnu.org/licenses/gpl-2.0.html 
     
    117117## Changelog
    118118
     119### 2.1.1
     120* Minor bug fixes
     121* Added a survey to collect feedback after theme switch
     122
    119123### 2.1.0
    120124* New: Change Theme Width in Customizer > Theme Layout.
  • inspiro/2.1.1/assets/js/unminified/plugins.js

    r281989 r282139  
    11/*! WPZOOM
    2  * inspiro - v2.1.0
     2 * inspiro - v2.1.1
    33 * Author website: https://wpzoom.com/
    44 * This file is automatically created! Do not edit this file directly! */
  • inspiro/2.1.1/assets/js/unminified/scripts.js

    r281989 r282139  
    11/*! WPZOOM
    2  * inspiro - v2.1.0
     2 * inspiro - v2.1.1
    33 * Author website: https://wpzoom.com/
    44 * This file is automatically created! Do not edit this file directly! */
  • inspiro/2.1.1/functions.php

    r281989 r282139  
    1616 * Define Constants
    1717 */
    18 define( 'INSPIRO_THEME_VERSION', '2.1.0' );
     18define( 'INSPIRO_THEME_VERSION', '2.1.1' );
    1919define( 'INSPIRO_THEME_DIR', trailingslashit( get_template_directory() ) );
    2020define( 'INSPIRO_THEME_URI', trailingslashit( esc_url( get_template_directory_uri() ) ) );
     
    132132        require INSPIRO_THEME_DIR . 'inc/classes/class-inspiro-notices.php';
    133133        require INSPIRO_THEME_DIR . 'inc/classes/class-inspiro-notice-review.php';
     134        require INSPIRO_THEME_DIR . 'inc/classes/class-inspiro-theme-deactivation.php';
    134135    }
    135136}
  • inspiro/2.1.1/inc/common-functions.php

    r274773 r282139  
    587587 */
    588588function 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   
    589592    // Don't run on fresh sites as that's handled by inspiro_set_fresh_site_mods
    590593    if (!get_option('fresh_site')) {
     
    596599}
    597600add_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 */
     607function 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 */
     641function 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  
    11/*! WPZOOM
    2  * inspiro - v2.1.0
     2 * inspiro - v2.1.1
    33 * Author website: https://wpzoom.com/
    44 * This file is automatically created! Do not edit this file directly! */
  • inspiro/2.1.1/readme.txt

    r281989 r282139  
    33Requires at least: 6.0
    44Tested up to: 6.8
    5 Version: 2.1.0
     5Version: 2.1.1
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    111111== Changelog ==
    112112
     113= 2.1.1 =
     114* Minor bug fixes
     115* Added a survey to collect feedback after theme switch
     116
    113117= 2.1.0 =
    114118* New: Change Theme Width in Customizer > Theme Layout.
  • inspiro/2.1.1/style.css

    r281989 r282139  
    66Description: 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/
    77Tags: 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.0
     8Version: 2.1.1
    99Requires at least: 6.0
    1010Requires PHP: 7.4
Note: See TracChangeset for help on using the changeset viewer.