Make WordPress Themes

Changeset 299161


Ignore:
Timestamp:
11/19/2025 09:15:53 AM (5 days ago)
Author:
themedropbox
Message:

New version of Repair Shop - 0.4.5

Location:
repair-shop/0.4.5
Files:
9 edited
1 copied

Legend:

Unmodified
Added
Removed
  • repair-shop/0.4.5/archive.php

    r256259 r299161  
    1111
    1212<div class="container">
    13   <main id="maincontent" class="middle-align pt-5" role="main">
     13  <main id="maincontent" class="middle-align pt-5 web-frame" role="main">
    1414    <header>
    1515      <?php
  • repair-shop/0.4.5/custom-style.php

    r294398 r299161  
    10531053        $repair_shop_custom_css .= 'display: none;';
    10541054        $repair_shop_custom_css .='}';
    1055     }   
     1055    }
     1056   
     1057    // Web Frame
     1058    $repair_shop_web_frame = get_theme_mod('repair_shop_web_frame',false);
     1059    if($repair_shop_web_frame == false && get_theme_mod( 'repair_shop_web_frame',false) != true){
     1060        $repair_shop_custom_css .='.web-frame{';
     1061        $repair_shop_custom_css .='border: 1px !important';
     1062        $repair_shop_custom_css .='}';
     1063    }
     1064
     1065    $repair_shop_web_frame_border_color = get_theme_mod('repair_shop_web_frame_border_color');
     1066    if($repair_shop_web_frame_border_color != false){
     1067        $repair_shop_custom_css .='.web-frame{';
     1068            $repair_shop_custom_css .='border-color: '.esc_attr($repair_shop_web_frame_border_color).'!important;';
     1069        $repair_shop_custom_css .='}';
     1070    }
     1071   
     1072    $repair_shop_web_frame_border_width = get_theme_mod('repair_shop_web_frame_border_width');
     1073    if($repair_shop_web_frame_border_width != false){
     1074        $repair_shop_custom_css .='.web-frame{';
     1075            $repair_shop_custom_css .='border-width: '.esc_attr($repair_shop_web_frame_border_width).'!important;';
     1076        $repair_shop_custom_css .='}';
     1077    }
     1078
     1079    // change the Category style //
     1080    $repair_shop_single_post_styling = get_theme_mod( 'repair_shop_single_post_styling','Button');
     1081        if($repair_shop_single_post_styling == 'Underline'){
     1082        $repair_shop_custom_css .='.single-post-category .post-categories li a{';
     1083            $repair_shop_custom_css .='text-decoration: underline; color: #000; background-color: transparent;';
     1084        $repair_shop_custom_css .='}';
     1085    }
     1086    else if($repair_shop_single_post_styling == 'Default'){
     1087        $repair_shop_custom_css .='.single-post-category .post-categories li a{';
     1088            $repair_shop_custom_css .='text-decoration: none; color: #000; background-color: transparent;';
     1089        $repair_shop_custom_css .='}';
     1090    }
  • repair-shop/0.4.5/image.php

    r256259 r299161  
    99
    1010<div class="container">
    11   <main id="maincontent" class="middle-align pt-5" role="main">
     11  <main id="maincontent" class="middle-align pt-5 " role="main">
    1212    <?php
    1313      $repair_shop_theme_lay = get_theme_mod( 'repair_shop_theme_options','Right Sidebar');
  • repair-shop/0.4.5/inc/customizer.php

    r294398 r299161  
    17651765  )));
    17661766
     1767  // Web Frame //
     1768   
     1769    $wp_customize->add_setting( 'repair_shop_blog_web_frame',array(
     1770        'default' => 0,
     1771        'transport' => 'refresh',
     1772        'sanitize_callback' => 'repair_shop_switch_sanitization'
     1773    ) );
     1774    $wp_customize->add_control( new Repair_shop_Toggle_Switch_Custom_Control( $wp_customize, 'repair_shop_web_frame',array(
     1775        'label' => esc_html__( 'Show / Hide Blog Page Border','repair-shop' ),
     1776        'section' => 'repair_shop_post_settings'
     1777    )));
     1778
     1779    $wp_customize->add_setting('repair_shop_web_frame_border_color', array(
     1780        'default'           => '',
     1781        'sanitize_callback' => 'sanitize_hex_color',
     1782    ));
     1783    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'repair_shop_web_frame_border_color', array(
     1784        'label'    => __('Blog Page Border Color', 'repair-shop'),
     1785        'section'  => 'repair_shop_post_settings',
     1786    )));
     1787
     1788    $wp_customize->add_setting('repair_shop_web_frame_border_width',array(
     1789        'default'=> '',
     1790        'sanitize_callback' => 'sanitize_text_field'
     1791    ));
     1792    $wp_customize->add_control('repair_shop_web_frame_border_width',array(
     1793        'label' => __('Blog Page Width','repair-shop'),
     1794        'description' => __('Enter a value in pixels Example:20px','repair-shop'),
     1795        'input_attrs' => array(
     1796        'placeholder' => __( '10px', 'repair-shop' ),
     1797    ),
     1798        'section'=> 'repair_shop_post_settings',
     1799        'type'=> 'text'
     1800));
     1801
    17671802    $wp_customize->add_setting('repair_shop_blog_excerpt_suffix',array(
    17681803        'default'=> '',
     
    22692304        'section' => 'repair_shop_single_blog_settings'
    22702305    )));
     2306   
     2307    $wp_customize->add_setting('repair_shop_single_post_styling',array(
     2308    'default' => 'Button',
     2309    'transport' => 'refresh',
     2310    'sanitize_callback' => 'repair_shop_sanitize_choices'
     2311    ));
     2312    $wp_customize->add_control('repair_shop_single_post_styling',array(
     2313    'description' => __('Change the styling of Category .','repair-shop'),
     2314    'type' => 'select',
     2315    'section' => 'repair_shop_single_blog_settings',
     2316    'choices' => array(
     2317        'Button' => __('Button','repair-shop'),
     2318        'Underline' => __('Underline','repair-shop'),
     2319        'Default' => __('Default','repair-shop'),
     2320      ),
     2321    ) );
    22712322
    22722323    $wp_customize->add_setting( 'repair_shop_singlepost_image_box_shadow', array(
  • repair-shop/0.4.5/index.php

    r256259 r299161  
    1414
    1515<div class="container">
    16   <main id="maincontent" class="middle-align pt-5" role="main">
     16  <main id="maincontent" class="middle-align pt-5 web-frame" role="main">
    1717    <?php
    1818      $repair_shop_theme_lay = get_theme_mod( 'repair_shop_theme_options','Right Sidebar');
  • repair-shop/0.4.5/readme.txt

    r296193 r299161  
    55Tested up to: 6.8
    66Requires PHP: 7.2
    7 Stable tag: 0.4.4
     7Stable tag: 0.4.5
    88License: GNU General Public License v3.0
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1414
    1515== Changelog ==
     16
     17= 0.4.5 =
     18* Added show /hide blog page border,border color and border width setting.
     19* Changed category text styling in single post.
    1620
    1721= 0.4.4 =
  • repair-shop/0.4.5/sidebar.php

    r294398 r299161  
    77?>
    88
    9 <div class="sidebar <?php if( get_theme_mod( 'repair_shop_sticky_sidebar', false) == 1) { ?> sidebar-sticky"<?php } else { ?>close-sticky <?php } ?>">
     9<div class="sidebar wow zoomInUp delay-1000 <?php if( get_theme_mod( 'repair_shop_sticky_sidebar', false) == 1) { ?> sidebar-sticky"data-wow-duration="2s"<?php } else { ?>close-sticky <?php } ?>">
    1010    <div id="sidebar" class="wow zoomInUp delay-1000" data-wow-duration="2s"<?php if( is_page_template('blog-post-left-sidebar.php')){?> style="float:left;"<?php } ?>>   
    1111        <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
  • repair-shop/0.4.5/single.php

    r256259 r299161  
    99
    1010<div class="container">
    11   <main id="maincontent" class="middle-align pt-5" role="main">
     11  <main id="maincontent" class="middle-align pt-5 " role="main">
    1212    <?php
    1313      $repair_shop_theme_lay = get_theme_mod( 'repair_shop_theme_options','Right Sidebar');
  • repair-shop/0.4.5/style.css

    r296193 r299161  
    88Tested up to: 6.8
    99Requires PHP: 7.2
    10 Version: 0.4.4
     10Version: 0.4.5
    1111License: GNU General Public License v3.0
    1212License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    455455    z-index: 999;
    456456  }
     457}
     458@media screen and (min-width: 768px)and (max-width: 1199px){
     459  .sidebar-fixed {
     460    width: 22%;
     461  }
     462}
     463/* Web Frame */
     464.web-frame{
     465  border: 2px #00A3FC solid !important;
     466  padding: 20px 20px 20px 20px !important;
     467  margin-top: 35px !important;
     468  margin-bottom: 20px !important;
    457469}
    458470/*footer without classic widgets*/
Note: See TracChangeset for help on using the changeset viewer.