Make WordPress Themes

Changeset 312324


Ignore:
Timestamp:
02/06/2026 12:51:50 PM (9 months ago)
Author:
themedropbox
Message:

New version of Old Age Home - 0.2.5

Location:
old-age-home/0.2.5
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • old-age-home/0.2.5/functions.php

    r303523 r312324  
    375375}
    376376
     377add_filter( 'woocommerce_single_product_image_thumbnail_html', function( $html ) {
     378    return '<div class="product-img">' . $html . '</div>';
     379});
     380
    377381/**
    378382 * Change number or products per row to 4
  • old-age-home/0.2.5/includes/color-setting/custom-color-control.php

    r310690 r312324  
    9494    }
    9595}
     96
     97// Product Featured Image Hover Effect
     98    $old_age_home_show_featured = get_theme_mod('old_age_home_featured_image_hide_show', 1);
     99    $old_age_home_hover_effect = get_theme_mod('old_age_home_product_featured_image_hover','none');
     100
     101    if ( $old_age_home_show_featured && $old_age_home_hover_effect !== 'none' ) {
     102
     103    $old_age_home_theme_custom_setting_css .= '
     104    .product-img img{
     105        transition: all 0.4s ease;
     106    }';
     107
     108    if ( $old_age_home_hover_effect === 'zoom-in' ) {
     109        $old_age_home_theme_custom_setting_css .= '
     110        .product-img:hover img{
     111            transform: scale(1.2);
     112        }';
     113    }
     114
     115    if ( $old_age_home_hover_effect === 'zoom-out' ) {
     116        $old_age_home_theme_custom_setting_css .= '
     117        .product-img img{ transform: scale(1.2); }
     118        .product-img:hover img{ transform: scale(1); }';
     119    }
     120
     121    if ( $old_age_home_hover_effect === 'grayscale' ) {
     122        $old_age_home_theme_custom_setting_css .= '
     123        .product-img img{ filter: grayscale(100%); }
     124        .product-img:hover img{ filter: grayscale(0); }';
     125    }
     126
     127    if ( $old_age_home_hover_effect === 'sepia' ) {
     128        $old_age_home_theme_custom_setting_css .= '
     129        .product-img:hover img{ filter: sepia(100%); }';
     130    }
     131
     132    if ( $old_age_home_hover_effect === 'blur' ) {
     133        $old_age_home_theme_custom_setting_css .= '
     134        .product-img:hover img{ filter: blur(3px); }';
     135    }
     136
     137    if ( $old_age_home_hover_effect === 'bright' ) {
     138        $old_age_home_theme_custom_setting_css .= '
     139        .product-img:hover img{ filter: brightness(1.3); }';
     140    }
     141
     142    if ( $old_age_home_hover_effect === 'translate' ) {
     143        $old_age_home_theme_custom_setting_css .= '
     144        .product-img:hover img{ transform: translateY(-10px); }';
     145    }
     146
     147    if ( $old_age_home_hover_effect === 'scale' ) {
     148        $old_age_home_theme_custom_setting_css .= '
     149        .product-img:hover img{ transform: scale(1.1); }';
     150    }
     151}   
  • old-age-home/0.2.5/includes/customizer.php

    r310690 r312324  
    751751        ] );
    752752
     753        Kirki::add_field( 'theme_config_id', [
     754    'type'     => 'custom',
     755    'settings' => 'old_age_home_show_product_featured_image_hover_heading',
     756    'section'  => 'old_age_home_woocommerce_settings',
     757    'default'  => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1;">' . __( 'Product Featured Image Hover Effect', 'old-age-home' ) . '</h3>',
     758    'priority' => 20,
     759   ] );
     760
     761        Kirki::add_field( 'theme_config_id', [
     762    'type'     => 'select',
     763    'settings' => 'old_age_home_product_featured_image_hover',
     764    'label'    => esc_html__( 'Product Featured Image Hover Effect', 'old-age-home' ),
     765    'section'  => 'old_age_home_woocommerce_settings',
     766    'default'  => 'none',
     767    'priority' => 30,
     768    'choices'  => [
     769        'none'      => esc_html__( 'None', 'old-age-home' ),
     770        'zoom-in'   => esc_html__( 'Zoom In', 'old-age-home' ),
     771        'zoom-out'  => esc_html__( 'Zoom Out', 'old-age-home' ),
     772        'scale'     => esc_html__( 'Scale', 'old-age-home' ),
     773        'grayscale' => esc_html__( 'Grayscale', 'old-age-home' ),
     774        'blur'      => esc_html__( 'Blur', 'old-age-home' ),
     775        'bright'    => esc_html__( 'Bright', 'old-age-home' ),
     776        'sepia'     => esc_html__( 'Sepia', 'old-age-home' ),
     777        'translate' => esc_html__( 'Translate', 'old-age-home' ),
     778    ],
     779    ] );
     780
    753781        //ADDITIONAL SETTINGS
    754782
  • old-age-home/0.2.5/includes/getstart/getstart.css

    r303523 r312324  
    416416    background: #ff2c6f;
    417417}
     418.quick-btn a:hover{
     419    background:#2195af;
     420}
     421.premium-btn a:hover{
     422    background:#2195af;
     423}
     424.demo-btn a:hover{
     425    background:#2195af;
     426}
     427.doc-btn a:hover{
     428    background:#2195af;
     429}
    418430
    419431.premium-features ul li {
    … …  
    591603
    592604.old-age-home-recommended-plugins a.button:hover {
    593     border: 1px solid #1E2957;
    594     background: #1E2957;
     605    border: 1px solid #2195af;
     606    background: #2195af;
    595607}
    596608.old-age-home-recommended-plugins a.button:focus {
  • old-age-home/0.2.5/readme.txt

    r310690 r312324  
    22Contributors: wpelemento
    33Requires at least: 5.0
    4 Stable tag: 0.2.4
     4Stable tag: 0.2.5
    55Requires PHP: 5.6
    66Tested up to: 6.9
    … …  
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
    99Tags:  blog, portfolio, e-commerce, one-column, two-columns, right-sidebar, left-sidebar, grid-layout, three-columns, four-columns, custom-background, custom-colors, custom-header, custom-logo, custom-menu, featured-images, flexible-header, footer-widgets, full-width-template, editor-style, sticky-post, theme-options, threaded-comments, translation-ready,  rtl-language-support, wide-blocks
    10 
    1110
    1211== Description ==
    … …  
    8382== Changelog ==
    8483
     84= February-4-2026 :: 0.2.5
     85
     86* Added hover effect on product featured image.
     87* Added animation on single post.
     88* Added animation on related post.
     89* Hover color on getstarted button.
     90
    8591= January-12-2026 :: 0.2.4
    8692
  • old-age-home/0.2.5/style.css

    r310690 r312324  
    55Theme URI: https://www.wpelemento.com/products/free-senior-care-wordpress-theme
    66Author URI: https://www.wpelemento.com/
    7 Version: 0.2.4
     7Version: 0.2.5
    88Requires PHP: 5.6
    99Tested up to: 6.9
  • old-age-home/0.2.5/template-parts/content-post.php

    r254518 r312324  
    1717<div id="post-<?php the_ID(); ?>" <?php post_class('post-single mb-4'); ?>>
    1818  <?php if ( has_post_thumbnail() && get_theme_mod( 'old_age_home_single_post_featured_image',true) ) { ?>
    19     <div class="post-thumbnail post-img">
     19    <div class="post-thumbnail post-img <?php echo esc_attr( get_theme_mod('old_age_home_enable_post_animation', true) ? 'zoomInUp wow' : '' ); ?>">
    2020      <?php the_post_thumbnail(''); ?>
    2121    </div>
  • old-age-home/0.2.5/template-parts/related-posts.php

    r266151 r312324  
    2222
    2323if ( $old_age_home_related_posts->have_posts() ) : ?>
    24     <div class="related-post">
     24    <div class="related-post <?php echo esc_attr( get_theme_mod('old_age_home_enable_post_animation', true) ? 'zoomInUp wow' : '' ); ?>">
    2525        <h3><?php echo esc_html__('Related Post' ,'old-age-home' );?></h3>
    2626        <div class="row">
Note: See TracChangeset for help on using the changeset viewer.