Make WordPress Themes

Changeset 294971


Ignore:
Timestamp:
10/27/2025 09:33:14 AM (12 months ago)
Author:
themedropbox
Message:

New version of Photo Gallery - 0.1.3

Location:
photo-gallery/0.1.3
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • photo-gallery/0.1.3/archive.php

    r257949 r294971  
    131131        </div>
    132132        <div class="col-lg-4 col-md-4">
    133           <div class="sidebar-area">
     133          <div class="sidebar-area <?php echo esc_attr( get_theme_mod('photo_gallery_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    134134            <?php
    135135              dynamic_sidebar('sidebar-2');
    … …  
    166166        </div>
    167167        <div class="col-lg-3 col-md-3">
    168           <div class="sidebar-area">
     168          <div class="sidebar-area <?php echo esc_attr( get_theme_mod('photo_gallery_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    169169            <?php
    170170              dynamic_sidebar('sidebar-2');
    … …  
    173173        </div>
    174174        <div class="col-lg-3 col-md-3">
    175           <div class="sidebar-area sidebar-three">
     175          <div class="sidebar-area sidebar-three <?php echo esc_attr( get_theme_mod('photo_gallery_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    176176            <?php
    177177              dynamic_sidebar('sidebar-3');
  • photo-gallery/0.1.3/assets/js/script.js

    r260084 r294971  
    273273};
    274274photo_gallery_progressBar.init();
     275
     276/* ===============================================
     277   sticky copyright
     278============================================= */
     279
     280window.addEventListener('scroll', function() {
     281  var photo_gallery_footer = document.querySelector('.sticky-copyright');
     282  if (!photo_gallery_footer) return;
     283
     284  var photo_gallery_scrollTop = window.scrollY || document.documentElement.photo_gallery_scrollTop;
     285
     286  if (photo_gallery_scrollTop >= 100) {
     287    photo_gallery_footer.classList.add('active-sticky');
     288  }
     289});
  • photo-gallery/0.1.3/footer.php

    r269576 r294971  
    3535          $photo_gallery_col_class = $photo_gallery_active_sidebars > 0 ? 'col-lg-' . (12 / $photo_gallery_active_sidebars) . ' col-md-6 col-sm-12' : 'col-lg-3 col-md-6 col-sm-12';
    3636        ?>
    37         <div class="row pt-2">
     37        <div class="row pt-2 <?php echo esc_attr( get_theme_mod('photo_gallery_enable_footer_animation', true) ? 'zoomInUp wow' : '' ); ?>">
    3838          <?php for ( $photo_gallery_i = 1; $photo_gallery_i <= 4; $photo_gallery_i++ ) : ?>
    3939            <div class="footer-area <?php echo esc_attr($photo_gallery_col_class); ?>">
    … …  
    7979  <?php endif; ?>
    8080  <?php if( get_theme_mod( 'photo_gallery_show_footer_copyright',true)) : ?>
    81     <div class="footer-copyright">
     81    <div class="footer-copyright <?php if( get_theme_mod( 'photo_gallery_sticky_copyright_enable','off') == 'on') { ?>sticky-copyright<?php } else { ?>close-sticky <?php } ?>">
    8282      <div class="container">
    8383        <div class="row pt-2">
  • photo-gallery/0.1.3/includes/customizer.php

    r269576 r294971  
    787787                'type'        => 'custom',
    788788                'tab'      => 'general',
     789                'settings'    => 'photo_gallery_enable_sidebar_animation_heading',
     790                'section'     => 'photo_gallery_additional_setting',
     791                        'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Animation', 'photo-gallery' ) . '</h3>',
     792                'priority'    => 10,
     793        ] );
     794
     795        Kirki::add_field( 'theme_config_id', [
     796                'type'        => 'toggle',
     797                'tab'      => 'general',
     798                'settings'    => 'photo_gallery_enable_sidebar_animation',
     799                'label'       => esc_html__( 'Enable or Disable Sidebar Animation', 'photo-gallery' ),
     800                'section'     => 'photo_gallery_additional_setting',
     801                'default'     => true,
     802                'priority'    => 10,
     803        ] );
     804
     805        Kirki::add_field( 'theme_config_id', [
     806                'type'        => 'toggle',
     807                'tab'      => 'general',
     808                'settings'    => 'photo_gallery_enable_footer_animation',
     809                'label'       => esc_html__( 'Enable or Disable Footer Animation', 'photo-gallery' ),
     810                'section'     => 'photo_gallery_additional_setting',
     811                'default'     => true,
     812                'priority'    => 10,
     813        ] );
     814
     815        Kirki::add_field( 'theme_config_id', [
     816                'type'        => 'custom',
     817                'tab'      => 'general',
    789818                'settings'    => 'photo_gallery_scroll_alignment_heading',
    790819                'section'     => 'photo_gallery_additional_setting',
    … …  
    13901419                'default'  => '',
    13911420                'priority' => 10,
     1421        ] );
     1422
     1423        Kirki::add_field( 'theme_config_id', [
     1424                'type'        => 'custom',
     1425                'settings'    => 'photo_gallery_footer_sticky_heading',
     1426                'section'     => 'photo_gallery_footer_section',
     1427                        'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Footer Sticky Copyright', 'photo-gallery' ) . '</h3>',
     1428                'priority'    => 10,
     1429        ] );
     1430        Kirki::add_field( 'theme_config_id', [
     1431                'type'        => 'switch',
     1432                'settings'    => 'photo_gallery_sticky_copyright_enable',
     1433                'label'       => esc_html__( ' Sticky Copyright Section Enable / Disable', 'photo-gallery' ),
     1434                'section'     => 'photo_gallery_footer_section',
     1435                'default'     => '0',
     1436                'priority'    => 10,
     1437                'choices'     => [
     1438                        'on'  => esc_html__( 'Enable', 'photo-gallery' ),
     1439                        'off' => esc_html__( 'Disable', 'photo-gallery' ),
     1440                ],
    13921441        ] );
    13931442
  • photo-gallery/0.1.3/index.php

    r257949 r294971  
    131131        </div>
    132132        <div class="col-lg-4 col-md-4">
    133           <div class="sidebar-area">
     133          <div class="sidebar-area <?php echo esc_attr( get_theme_mod('photo_gallery_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    134134            <?php
    135135              dynamic_sidebar('sidebar-2');
    … …  
    166166        </div>
    167167        <div class="col-lg-3 col-md-3">
    168           <div class="sidebar-area">
     168          <div class="sidebar-area <?php echo esc_attr( get_theme_mod('photo_gallery_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    169169            <?php
    170170              dynamic_sidebar('sidebar-2');
    … …  
    173173        </div>
    174174        <div class="col-lg-3 col-md-3">
    175           <div class="sidebar-area sidebar-three">
     175          <div class="sidebar-area sidebar-three <?php echo esc_attr( get_theme_mod('photo_gallery_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    176176            <?php
    177177              dynamic_sidebar('sidebar-3');
  • photo-gallery/0.1.3/page.php

    r257949 r294971  
    5151        <div class="row">
    5252          <div class="col-lg-4 col-md-4">
    53             <div class="sidebar-area">
     53            <div class="sidebar-area <?php echo esc_attr( get_theme_mod('photo_gallery_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    5454              <?php
    5555                dynamic_sidebar('sidebar-2');
    … …  
    9797          </div>
    9898          <div class="col-lg-4 col-md-4">
    99             <div class="sidebar-area">
     99            <div class="sidebar-area <?php echo esc_attr( get_theme_mod('photo_gallery_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    100100              <?php
    101101                dynamic_sidebar('sidebar-2');
  • photo-gallery/0.1.3/readme.txt

    r291836 r294971  
    22Contributors: wpelemento
    33Requires at least: 5.0
    4 Stable tag: 0.1.2
     4Stable tag: 0.1.3
    55Requires PHP: 5.6
    66Tested up to: 6.8
    … …  
    120120== Changelog ==
    121121
     122= October-25-2025 :: 0.1.3
     123
     124* Added animation on footer and sidebar.
     125* Added sticky copyright.
     126
    122127= October-1-2025 :: 0.1.2
    123128
  • photo-gallery/0.1.3/search.php

    r257949 r294971  
    131131        </div>
    132132        <div class="col-lg-4 col-md-4">
    133           <div class="sidebar-area">
     133          <div class="sidebar-area <?php echo esc_attr( get_theme_mod('photo_gallery_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    134134            <?php
    135135              dynamic_sidebar('sidebar-2');
    … …  
    166166        </div>
    167167        <div class="col-lg-3 col-md-3">
    168           <div class="sidebar-area">
     168          <div class="sidebar-area <?php echo esc_attr( get_theme_mod('photo_gallery_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    169169            <?php
    170170              dynamic_sidebar('sidebar-2');
    … …  
    173173        </div>
    174174        <div class="col-lg-3 col-md-3">
    175           <div class="sidebar-area sidebar-three">
     175          <div class="sidebar-area sidebar-three <?php echo esc_attr( get_theme_mod('photo_gallery_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    176176            <?php
    177177              dynamic_sidebar('sidebar-3');
  • photo-gallery/0.1.3/sidebar.php

    r257949 r294971  
    99?>
    1010
    11 <div class="sidebar-area">
     11<div class="sidebar-area <?php echo esc_attr( get_theme_mod('photo_gallery_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    1212  <?php if ( ! dynamic_sidebar( 'photo-gallery-sidebar' ) ) : ?>
    1313    <div role="complementary" aria-label="<?php echo esc_attr__( 'sidebar1', 'photo-gallery' ); ?>" id="Search" class="sidebar-widget">
  • photo-gallery/0.1.3/style.css

    r291836 r294971  
    55Theme URI: https://www.wpelemento.com/products/free-photo-gallery-wordpress-theme
    66Author URI: https://www.wpelemento.com/
    7 Version: 0.1.2
     7Version: 0.1.3
    88Requires PHP: 5.6
    99Tested up to: 6.8
    … …  
    18111811}
    18121812
    1813 
     1813/* Sticky Copyright */
     1814
     1815.sticky-copyright.footer-copyright{
     1816  position: fixed;
     1817  bottom:0;
     1818  left:0;
     1819  width: 100%;
     1820  z-index: 999;
     1821  transition: bottom 0.4s;
     1822  box-shadow: 0px 0px 8px #000000;
     1823}
     1824.close-sticky {
     1825  position: static;
     1826}
     1827
     1828
Note: See TracChangeset for help on using the changeset viewer.