Make WordPress Themes

Changeset 234536 for blogbd


Ignore:
Timestamp:
07/10/2024 09:52:48 AM (17 months ago)
Author:
themedropbox
Message:

New version of BlogBD - 1.1

Location:
blogbd/1.1
Files:
1 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • blogbd/1.1/footer.php

    r229959 r234536  
    1717?>
    1818    </div><!-- #content -->
    19     <footer id="colophon" class="site-footer">
    20         <div class="site-info">
    21             <?php
    22             printf( esc_html__( 'Proudly powered by %s', 'blogbd' ), '<a href="' . esc_url( __( 'https://wordpress.org/', 'blogbd' ) ) . '">WordPress</a>' );
    23             ?>
    24         </div><!-- .site-info -->
    25     </footer><!-- #colophon -->
     19<footer id="colophon" class="site-footer">
     20    <div class="site-info">
     21        <?php
     22        $footer_text = get_theme_mod( 'blogbd_footer_text', __( 'Proudly powered by WordPress', 'blogbd' ) );
     23        echo esc_html( $footer_text );
     24        ?>
     25    </div><!-- .site-info -->
     26</footer><!-- #colophon -->
    2627</div><!-- #page -->
    2728<?php wp_footer(); ?>
  • blogbd/1.1/functions.php

    r232750 r234536  
    4141        ) );
    4242        add_theme_support( 'custom-background', apply_filters( 'blogbd_custom_background_args', array(
    43             'default-color' => 'ffffff',
     43            'default-color' => 'dddddd',
    4444            'default-image' => '',
    4545        ) ) );
     
    6363        add_theme_support( 'custom-header', array(
    6464            'default-image'      => '',
    65             'default-text-color' => 'ffffff',
     65            'default-text-color' => 'dddddd',
    6666            'width'              => 1000,
    6767            'height'             => 250,
     
    121121    // Enqueue Submenu Keyboard Navigation
    122122    wp_enqueue_script('blogbd-keyboard-navigation', get_template_directory_uri() . '/assets/js/blogbd-keyboard-navigation.js', array('jquery'), null, true);
    123 
    124123}
    125124add_action( 'wp_enqueue_scripts', 'blogbd_scripts' );
     
    165164            'title'       => __( 'Hero Section', 'blogbd' ),
    166165            'description' => _x( 'A custom hero section with a background image and heading.', 'Block pattern description', 'blogbd' ),
    167             'content'     => "<!-- wp:cover {\"url\":\"" . esc_url( get_template_directory_uri() ) . "/assets/hero.jpg\"} -->\n<div class=\"wp-block-cover\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\"></span><div class=\"wp-block-cover__inner-container\"><!-- wp:heading {\"textAlign\":\"center\",\"level\":1} -->\n<h1 class=\"has-text-align-center\">Welcome to blogbd</h1>\n<!-- /wp:heading --></div></div>\n<!-- /wp:cover -->",
     166            'content'     => "<!-- wp:cover {\"url\":\"" . esc_url( get_template_directory_uri() ) . "/assets/images/hero.jpg\"} -->\n<div class=\"wp-block-cover\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\"></span><div class=\"wp-block-cover__inner-container\"><!-- wp:heading {\"textAlign\":\"center\",\"level\":1} -->\n<h1 class=\"has-text-align-center\">Welcome to BlogBD</h1>\n<!-- /wp:heading --></div></div>\n<!-- /wp:cover -->",
    168167        )
    169168    );
  • blogbd/1.1/inc/customizer.php

    r230801 r234536  
    2828
    2929    $wp_customize->add_control( new WP_Customize_Color_control( $wp_customize, 'header_background_color', array(
    30         'label'    => __( 'Header Background Color', 'blogbd' ),
     30        'label'    => __( 'Header Background', 'blogbd' ),
    3131        'section'  => 'colors',
    3232        'settings' => 'header_background_color',
     
    4141    ) );
    4242
    43     $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'blogbd_link_color_control', array(
     43    $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'blogbd_link_color', array(
    4444        'label'      => __( 'Link Color', 'blogbd' ),
    4545        'section'    => 'colors',
     
    9595    ) );
    9696
     97
     98
     99    // Add a new section for the footer text
     100    $wp_customize->add_section( 'blogbd_footer_section', array(
     101        'title'       => __( 'Footer Text', 'blogbd' ),
     102        'priority'    => 130,
     103    ) );
     104
     105    // Add the setting for the footer text
     106    $wp_customize->add_setting( 'blogbd_footer_text', array(
     107        'default'           => __( 'BlogBD WordPress Theme', 'blogbd' ),
     108        'sanitize_callback' => 'sanitize_text_field',
     109    ) );
     110
     111    // Add the control for the footer text
     112    $wp_customize->add_control( 'blogbd_footer_text', array(
     113        'label'    => __( 'Footer Text', 'blogbd' ),
     114        'section'  => 'blogbd_footer_section',
     115        'type'     => 'text',
     116    ) );
     117
     118
     119
     120
    97121}
    98122
     
    104128        a { color: <?php echo esc_attr( get_theme_mod( 'blogbd_link_color', '#0073aa' ) ); ?>; }
    105129        #secondary.widget-area ul li a { color: <?php echo esc_attr( get_theme_mod( 'blogbd_link_color', '#0073aa' ) ); ?>; }
    106         body { color: <?php echo esc_attr( get_theme_mod( 'blogbd_text_color', '#333333' ) ); ?>; }
    107         .site-header a { color: #<?php echo esc_attr( get_header_textcolor() ); ?>; }
    108         .site-header {
    109             background-color: <?php echo esc_attr( get_theme_mod( 'header_background_color', '#ffffff' ) ); ?>;
     130        body {
     131            color: <?php echo esc_attr( get_theme_mod( 'blogbd_text_color', '#333333' ) ); ?>;
     132        }
     133        header.site-header a { color: #<?php echo esc_attr( get_header_textcolor() ); ?>; }
     134        header.site-header {
     135            background-color: <?php echo esc_attr( get_theme_mod( 'header_background_color', '#0073aa' ) ); ?>;
    110136            color: #<?php echo esc_attr( get_header_textcolor() ); ?>;
    111137        }
  • blogbd/1.1/inc/template-tags.php

    r230213 r234536  
    4848            if ( $categories_list && blogbd_categorized_blog() ) {
    4949                printf( '<span class="cat-links">' . esc_html__( 'Posted in %1$s', 'blogbd' ) . '</span>', $categories_list );
     50                echo '&nbsp; &nbsp; &nbsp;'; // blank space added
    5051            }
    5152
    5253            $tags_list = get_the_tag_list( '', esc_html__( ', ', 'blogbd' ) );
    5354            if ( $tags_list ) {
     55                printf( '<span class="tags-links">' . esc_html__( 'Tags: %1$s', 'blogbd' ) . '</span>', $tags_list );
    5456                echo '&nbsp; &nbsp; &nbsp;'; // blank space added
    55                 printf( '<span class="tags-links">' . esc_html__( 'Tags: %1$s', 'blogbd' ) . '</span>', $tags_list );
    5657            }
    5758        }
    5859
    59         echo '&nbsp; &nbsp; &nbsp;';
    6060
    6161        if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
     
    6363            comments_popup_link( esc_html__( 'Leave a comment', 'blogbd' ), esc_html__( '1 Comment', 'blogbd' ), esc_html__( '% Comments', 'blogbd' ) );
    6464            echo '</span>';
     65            echo '&nbsp; &nbsp; &nbsp;'; // blank space added
    6566        }
    66 
    67         echo '&nbsp; &nbsp; &nbsp;';
    6867
    6968        edit_post_link(
  • blogbd/1.1/index.php

    r230946 r234536  
    2222    <div id="primary" class="content-area">
    2323        <main id="main" class="site-main">
    24             <hr>
    2524            <?php
    2625
     
    3433            endif;
    3534
     35            echo '<div id="dotted"></div>';
    3636            while ( have_posts() ) : the_post();
    3737                ?>
    38                 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     38                <article class="dotted" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    3939                    <header class="entry-header">
    4040
     
    6262
    6363                </article><!-- #post-<?php the_ID(); ?> -->
    64                 <br><hr>
    6564            <?php
    6665            endwhile;
  • blogbd/1.1/readme.txt

    r233540 r234536  
    11=== BlogBD ===
    22Contributors: mehrazmorshed
    3 Tags: one-column, two-columns, right-sidebar, flexible-header, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, theme-options, translation-ready, blog
     3Tags: one-column, two-columns, right-sidebar, flexible-header, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, theme-options, translation-ready, blog, entertainment, full-width-template, post-formats, rtl-language-support, threaded-comments, blog-theme, classic, classic-theme, clean, clean-theme
    44Requires at least: 5.0
    5 Tested up to: 6.5
    6 Stable tag: 1.0.12
     5Tested up to: 6.6
     6Stable tag: 1.1
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
    99
    1010== Description ==
    11 BlogBD is a simple, clean, and modern blog theme for WordPress. It is perfect for bloggers who want a stylish yet functional platform to share their content. BlogBD is fully customizable, compatible with Elementor page builder, and comes with various layout options and features.
     11BlogBD is a classic WordPress theme designed specifically for bloggers who value simplicity and elegance. With its clean design and intuitive layout, BlogBD provides a seamless reading experience that keeps your content at the forefront.
    1212
    1313== Features ==
  • blogbd/1.1/style.css

    r233540 r234536  
    22Theme Name: BlogBD
    33Author: Mehraz Morshed
    4 Description: A simple and elegant blog theme.
    5 Version: 1.0.12
     4Description: BlogBD is a classic WordPress theme designed specifically for bloggers who value simplicity and elegance. With its clean design and intuitive layout, BlogBD provides a seamless reading experience that keeps your content at the forefront.
     5Version: 1.1
    66Requires at least: 5.0
    7 Tested up to: 6.5
     7Tested up to: 6.6
    88Requires PHP: 7.0
    99License: GNU General Public License v2 or later
     
    1111Text Domain: blogbd
    1212Domain Path: /languages
    13 Tags: custom-menu, custom-logo, entertainment, one-column, two-columns, right-sidebar, custom-colors, editor-style, featured-images, full-width-template, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready, blog
     13Tags: one-column, two-columns, right-sidebar, flexible-header, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, theme-options, translation-ready, blog, entertainment, full-width-template, post-formats, rtl-language-support, threaded-comments
    1414
    1515Screenshot image is a collage of actual sites created using the BlogBD WordPress Theme.
     
    6262
    6363.site-title {
     64    color: #333333;
    6465    margin: 0;
    6566    font-size: 36px;
     
    6869
    6970.site-title a {
    70     color: #333333 !important;
    7171    text-decoration: none;
    7272}
     
    110110}
    111111
     112article.dotted {
     113    padding-bottom: 20px;
     114    border-bottom: 2px dotted #0073aa;
     115}
     116
     117div#dotted{
     118
     119    border-bottom: 2px dotted #0073aa;
     120}
     121
    112122.entry-header {
    113     border-bottom: 1px solid #eee;
    114     margin-bottom: 20px;
    115     padding-bottom: 10px;
     123    margin-bottom: 0;
     124    padding-bottom: 0;
    116125}
    117126
     
    119128    font-size: 24px;
    120129    color: #333;
     130    margin-bottom: 0;
     131    padding-bottom: 0;
    121132}
    122133
     
    127138
    128139.entry-content {
    129     margin-top: 20px;
     140    margin-top: 2px;
    130141    line-height: 1.8;
    131142}
    132143
    133144.entry-footer {
    134     margin-top: 20px;
    135     border-top: 1px solid #eee;
    136     padding-top: 10px;
     145    margin-top: 2px;
     146    border-top: 1px solid #ddd;
     147    padding-top: 2px;
    137148    font-size: 14px;
    138149    color: #777;
     
    347358    display: block;
    348359    width: 100%;
    349     background-color: #0073AA;
     360    background-color: #333333;
    350361}
    351362
     
    373384
    374385.main-navigation ul li:hover {
    375     background-color: #4a4a4a;
     386    background-color: #666666;
    376387}
    377388
     
    717728    text-decoration: underline; /* Underline on hover in header/footer */
    718729}
     730
     731aside .wp-block-latest-comments{
     732    padding-left: 0;
     733}
Note: See TracChangeset for help on using the changeset viewer.