Make WordPress Themes

Changeset 195983

Timestamp:
07/05/2023 08:53:33 AM (2 years ago)
Author:
themedropbox
Message:

New version of Pest Control Lite - 2.0

Location:
pest-control-lite/2.0
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • pest-control-lite/2.0/core/includes/customizer.php

    r194727 r195983  
    178178] );
    179179
     180Kirki::add_field( 'theme_config_id', [
     181        'type'        => 'toggle',
     182        'settings'    => 'pest_control_lite_site_loader',
     183        'label'       => esc_html__( 'Here you can enable or disable your Site Loader.', 'pest-control-lite' ),
     184        'section'     => 'pest_control_lite_additional_settings',
     185        'default'     => false,
     186        'priority'    => 10,
     187    ] );
     188
    180189    // Woocommerce Settings
    181190
     
    205214    ] );
    206215
    207 
     216    Kirki::add_field( 'theme_config_id', [
     217            'type'        => 'toggle',
     218            'settings'    => 'pest_control_lite_related_product_setting',
     219            'label'       => esc_html__( 'Here you can enable or disable your related products.', 'pest-control-lite' ),
     220            'section'     => 'pest_control_lite_woocommerce_settings',
     221            'default'     => true,
     222            'priority'    => 10,
     223        ] );
    208224
    209225    // POST SECTION
  • pest-control-lite/2.0/core/includes/inline.php

    r191384 r195983  
    106106
    107107    }
     108
     109    /*---------------------------related Product Settings-------------------*/
     110
     111
     112    $pest_control_lite_related_product_setting = get_theme_mod('pest_control_lite_related_product_setting',true);
     113
     114        if($pest_control_lite_related_product_setting == false){
     115
     116            $pest_control_lite_custom_css .='.related.products, .related h2{';
     117
     118                $pest_control_lite_custom_css .='display: none;';
     119
     120            $pest_control_lite_custom_css .='}';
     121        }
  • pest-control-lite/2.0/header.php

    r194727 r195983  
    2222
    2323<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'pest-control-lite' ); ?></a>
     24
     25<?php if ( get_theme_mod('pest_control_lite_site_loader', false) == true ) : ?>
     26    <div class="cssloader">
     27        <div class="sh1"></div>
     28        <div class="sh2"></div>
     29        <h1 class="lt"><?php esc_html_e( 'loading',  'pest-control-lite' ); ?></h1>
     30    </div>
     31<?php endif; ?>
    2432
    2533<header id="site-navigation" class="header text-center text-md-left">
  • pest-control-lite/2.0/js/script.js

    r194727 r195983  
    109109        else sticky.removeClass('fixed-header');
    110110    });
     111
     112  /*===============================================
     113 PRELOADER
     114=============================================== */
     115
     116jQuery('document').ready(function($){
     117  setTimeout(function () {
     118  jQuery(".cssloader").fadeOut("slow");
     119},1000);
     120});
  • pest-control-lite/2.0/readme.txt

    r194727 r195983  
    33Tags: portfolio, education, e-commerce, wide-blocks, one-column, two-columns, right-sidebar, left-sidebar, grid-layout, custom-background, custom-colors, custom-header, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, editor-style, theme-options, threaded-comments, sticky-post
    44Requires at least: 5.0
    5 Stable tag: 1.9
     5Stable tag: 2.0
    66Requires PHP: 5.6
    77Tested up to: 6.2
     
    7474* Added heading in slider section.
    7575
     76= 2.0 = June - 28 - 2023
     77
     78* Added preloader.
     79* Added related product settings.
     80
    7681== Resources ==
    7782
  • pest-control-lite/2.0/style.css

    r194727 r195983  
    55Theme URI: https://www.misbahwp.com/themes/free-pest-control-wordpress-theme/
    66Author URI: https://www.misbahwp.com/
    7 Version: 1.9
     7Version: 2.0
    88Requires PHP: 5.6
    99Tested up to: 6.2
     
    432432  transition: all 0.3s ease 0s;
    433433  box-shadow: 0 0 10px rgb(0 0 0 / 20%);
     434}
     435
     436/*===============================================
     437   PRELOADER
     438=============================================== */
     439
     440.cssloader {
     441  padding-top: calc(45vh - 25px);
     442  position: fixed;
     443  width: 100%;
     444  height: 100%;
     445  top:0;
     446  right: 0;
     447  left: 0;
     448  bottom: 0;
     449  background: #212121;
     450  z-index: 99999;
     451}
     452
     453.sh1 {
     454  width: 0;
     455  height: 0;
     456  border-style: solid;
     457  border-width: 50px 50px 0 0;
     458  border-color: #354952 transparent #ffffff transparent;
     459  margin: 0 auto;
     460  animation: shk1 1s ease-in-out infinite normal;
     461}
     462
     463.sh2 {
     464  width: 0;
     465  height: 0;
     466  border-style: solid;
     467  border-width: 0 0 50px 50px;
     468  border-color: transparent  transparent #ff576f transparent ;
     469  margin: -50px auto 0;
     470  animation: shk2 1s ease-in-out infinite alternate;
     471}
     472
     473/** animation starts here **/
     474@keyframes shk1 {
     475  0% {
     476    transform: rotate(-360deg);
     477  }
     478
     479  100% {
     480  }
     481}
     482
     483@keyframes shk2 {
     484  0% {
     485    transform: rotate(360deg);
     486  }
     487  100% {
     488  }
     489}
     490.lt {
     491  color: #fff;
     492  margin: 30px auto;
     493  text-align: center;
     494  font-weight: 100;
     495  letter-spacing: 10px;
    434496}
    435497
Note: See TracChangeset for help on using the changeset viewer.