Make WordPress Themes

Changeset 312325


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

New version of Museum Artifact - 0.2.3

Location:
museum-artifact/0.2.3
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • museum-artifact/0.2.3/functions.php

    r303524 r312325  
    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
  • museum-artifact/0.2.3/includes/color-setting/custom-color-control.php

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

    r310691 r312325  
    741741                'priority'    => 10,
    742742        ] );
     743
     744        Kirki::add_field( 'theme_config_id', [
     745    'type'     => 'custom',
     746    'settings' => 'museum_artifact_show_product_featured_image_hover_heading',
     747    'section'  => 'museum_artifact_woocommerce_settings',
     748    'default'  => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1;">' . __( 'Product Featured Image Hover Effect', 'museum-artifact' ) . '</h3>',
     749    'priority' => 20,
     750   ] );
     751
     752        Kirki::add_field( 'theme_config_id', [
     753    'type'     => 'select',
     754    'settings' => 'museum_artifact_product_featured_image_hover',
     755    'label'    => esc_html__( 'Product Featured Image Hover Effect', 'museum-artifact' ),
     756    'section'  => 'museum_artifact_woocommerce_settings',
     757    'default'  => 'none',
     758    'priority' => 30,
     759    'choices'  => [
     760        'none'      => esc_html__( 'None', 'museum-artifact' ),
     761        'zoom-in'   => esc_html__( 'Zoom In', 'museum-artifact' ),
     762        'zoom-out'  => esc_html__( 'Zoom Out', 'museum-artifact' ),
     763        'scale'     => esc_html__( 'Scale', 'museum-artifact' ),
     764        'grayscale' => esc_html__( 'Grayscale', 'museum-artifact' ),
     765        'blur'      => esc_html__( 'Blur', 'museum-artifact' ),
     766        'bright'    => esc_html__( 'Bright', 'museum-artifact' ),
     767        'sepia'     => esc_html__( 'Sepia', 'museum-artifact' ),
     768        'translate' => esc_html__( 'Translate', 'museum-artifact' ),
     769    ],
     770    ] );
    743771
    744772        //ADDITIONAL SETTINGS
  • museum-artifact/0.2.3/includes/getstart/getstart.css

    r303524 r312325  
    417417}
    418418
     419.quick-btn a:hover{
     420    background:#2195af;
     421}
     422.premium-btn a:hover{
     423    background:#2195af;
     424}
     425.demo-btn a:hover{
     426    background:#2195af;
     427}
     428.doc-btn a:hover{
     429    background:#2195af;
     430}
     431
    419432.premium-features ul li {
    420433    margin-bottom: 10px;
    … …  
    591604
    592605.museum-artifact-recommended-plugins a.button:hover {
    593     border: 1px solid #1E2957;
    594     background: #1E2957;
     606    border: 1px solid #2195af;
     607    background: #2195af;
    595608}
    596609.museum-artifact-recommended-plugins a.button:focus {
  • museum-artifact/0.2.3/readme.txt

    r310691 r312325  
    22Contributors: wpelemento
    33Requires at least: 5.0
    4 Stable tag: 0.2.2
     4Stable tag: 0.2.3
    55Requires PHP: 5.6
    66Tested up to: 6.9
    … …  
    7676
    7777== Changelog ==
     78
     79= February-4-2026 :: 0.2.3
     80
     81* Added hover effect on product featured image.
     82* Added animation on single post.
     83* Added animation on related post.
     84* Hover color on getstarted button.
    7885
    7986= January-12-2026 :: 0.2.2
  • museum-artifact/0.2.3/style.css

    r310691 r312325  
    55Theme URI: https://www.wpelemento.com/products/free-art-gallery-wordpress-theme
    66Author URI: https://www.wpelemento.com/
    7 Version: 0.2.2
     7Version: 0.2.3
    88Requires PHP: 5.6
    99Tested up to: 6.9
  • museum-artifact/0.2.3/template-parts/content-post.php

    r254519 r312325  
    1717<div id="post-<?php the_ID(); ?>" <?php post_class('post-single mb-4'); ?>>
    1818  <?php if ( has_post_thumbnail() && get_theme_mod( 'museum_artifact_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('museum_artifact_enable_post_animation', true) ? 'zoomInUp wow' : '' ); ?>">
    2020      <?php the_post_thumbnail(''); ?>
    2121    </div>
  • museum-artifact/0.2.3/template-parts/related-posts.php

    r266150 r312325  
    2222
    2323if ( $museum_artifact_related_posts->have_posts() ) : ?>
    24     <div class="related-post">
     24    <div class="related-post <?php echo esc_attr( get_theme_mod('museum_artifact_enable_post_animation', true) ? 'zoomInUp wow' : '' ); ?>">
    2525        <h3><?php echo esc_html__('Related Post' ,'museum-artifact' );?></h3>
    2626        <div class="row">
Note: See TracChangeset for help on using the changeset viewer.