Make WordPress Themes

Changeset 266319

Timestamp:
04/08/2025 06:37:59 AM (8 months ago)
Author:
themedropbox
Message:

New version of Books Printing - 0.3

Location:
books-printing/0.3
Files:
1 added
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • books-printing/0.3/includes/customizer.php

    r262463 r266319  
    12561256    ) );
    12571257
     1258    Kirki::add_field( 'theme_config_id', [
     1259        'type'        => 'custom',
     1260        'tab'      => 'single-post',
     1261        'settings'    => 'books_printing_show_related_post_heading',
     1262        'section'     => 'books_printing_blog_post',
     1263            'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Related post', 'books-printing' ) . '</h3>',
     1264        'priority'    => 10,
     1265    ] );
     1266
     1267    Kirki::add_field( 'theme_config_id', [
     1268        'type'        => 'toggle',
     1269        'tab'      => 'single-post',
     1270        'settings'    => 'books_printing_show_related_post',
     1271        'label'       => esc_html__( 'Enable or Disable Related post', 'books-printing' ),
     1272        'section'     => 'books_printing_blog_post',
     1273        'default'     => true,
     1274        'priority'    => 10,
     1275    ] );
     1276
    12581277    // No Results Page Settings
    12591278
  • books-printing/0.3/readme.txt

    r262463 r266319  
    22Contributors: wpelemento
    33Requires at least: 5.0
    4 Stable tag: 0.2.9
     4Stable tag: 0.3
    55Requires PHP: 5.6
    66Tested up to: 6.7
     
    7070
    7171== Changelog ==
     72
     73= April-7-2025 :: 0.3
     74
     75* Added related post.
     76* Added enable / disable related post option.
    7277
    7378= March-8-2025 :: 0.2.9
  • books-printing/0.3/single.php

    r225410 r266319  
    5252
    5353            comments_template();
     54            if(get_theme_mod('books_printing_show_related_post', true )== true):
     55              get_template_part( 'template-parts/related-posts' );
     56            endif;
    5457          endwhile;
    5558        ?>
  • books-printing/0.3/style.css

    r262463 r266319  
    55Theme URI: https://www.wpelemento.com/products/free-books-wordpress-theme
    66Author URI: https://www.wpelemento.com/
    7 Version: 0.2.9
     7Version: 0.3
    88Requires PHP: 5.6
    99Tested up to: 6.7
Note: See TracChangeset for help on using the changeset viewer.