- Timestamp:
- 07/10/2024 09:52:48 AM (17 months ago)
- Location:
- blogbd/1.1
- Files:
-
- 1 added
- 8 edited
- 1 copied
-
. (copied) (copied from blogbd/1.0.12)
-
assets/images/hero.jpg (added)
-
footer.php (modified) (1 diff)
-
functions.php (modified) (4 diffs)
-
inc/customizer.php (modified) (4 diffs)
-
inc/template-tags.php (modified) (2 diffs)
-
index.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
-
screenshot.jpg (modified) (previous)
-
style.css (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blogbd/1.1/footer.php
r229959 r234536 17 17 ?> 18 18 </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 --> 26 27 </div><!-- #page --> 27 28 <?php wp_footer(); ?> -
blogbd/1.1/functions.php
r232750 r234536 41 41 ) ); 42 42 add_theme_support( 'custom-background', apply_filters( 'blogbd_custom_background_args', array( 43 'default-color' => ' ffffff',43 'default-color' => 'dddddd', 44 44 'default-image' => '', 45 45 ) ) ); … … 63 63 add_theme_support( 'custom-header', array( 64 64 'default-image' => '', 65 'default-text-color' => ' ffffff',65 'default-text-color' => 'dddddd', 66 66 'width' => 1000, 67 67 'height' => 250, … … 121 121 // Enqueue Submenu Keyboard Navigation 122 122 wp_enqueue_script('blogbd-keyboard-navigation', get_template_directory_uri() . '/assets/js/blogbd-keyboard-navigation.js', array('jquery'), null, true); 123 124 123 } 125 124 add_action( 'wp_enqueue_scripts', 'blogbd_scripts' ); … … 165 164 'title' => __( 'Hero Section', 'blogbd' ), 166 165 '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 -->", 168 167 ) 169 168 ); -
blogbd/1.1/inc/customizer.php
r230801 r234536 28 28 29 29 $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' ), 31 31 'section' => 'colors', 32 32 'settings' => 'header_background_color', … … 41 41 ) ); 42 42 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( 44 44 'label' => __( 'Link Color', 'blogbd' ), 45 45 'section' => 'colors', … … 95 95 ) ); 96 96 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 97 121 } 98 122 … … 104 128 a { color: <?php echo esc_attr( get_theme_mod( 'blogbd_link_color', '#0073aa' ) ); ?>; } 105 129 #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' ) ); ?>; 110 136 color: #<?php echo esc_attr( get_header_textcolor() ); ?>; 111 137 } -
blogbd/1.1/inc/template-tags.php
r230213 r234536 48 48 if ( $categories_list && blogbd_categorized_blog() ) { 49 49 printf( '<span class="cat-links">' . esc_html__( 'Posted in %1$s', 'blogbd' ) . '</span>', $categories_list ); 50 echo ' '; // blank space added 50 51 } 51 52 52 53 $tags_list = get_the_tag_list( '', esc_html__( ', ', 'blogbd' ) ); 53 54 if ( $tags_list ) { 55 printf( '<span class="tags-links">' . esc_html__( 'Tags: %1$s', 'blogbd' ) . '</span>', $tags_list ); 54 56 echo ' '; // blank space added 55 printf( '<span class="tags-links">' . esc_html__( 'Tags: %1$s', 'blogbd' ) . '</span>', $tags_list );56 57 } 57 58 } 58 59 59 echo ' ';60 60 61 61 if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { … … 63 63 comments_popup_link( esc_html__( 'Leave a comment', 'blogbd' ), esc_html__( '1 Comment', 'blogbd' ), esc_html__( '% Comments', 'blogbd' ) ); 64 64 echo '</span>'; 65 echo ' '; // blank space added 65 66 } 66 67 echo ' ';68 67 69 68 edit_post_link( -
blogbd/1.1/index.php
r230946 r234536 22 22 <div id="primary" class="content-area"> 23 23 <main id="main" class="site-main"> 24 <hr>25 24 <?php 26 25 … … 34 33 endif; 35 34 35 echo '<div id="dotted"></div>'; 36 36 while ( have_posts() ) : the_post(); 37 37 ?> 38 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>38 <article class="dotted" id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 39 39 <header class="entry-header"> 40 40 … … 62 62 63 63 </article><!-- #post-<?php the_ID(); ?> --> 64 <br><hr>65 64 <?php 66 65 endwhile; -
blogbd/1.1/readme.txt
r233540 r234536 1 1 === BlogBD === 2 2 Contributors: 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 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, entertainment, full-width-template, post-formats, rtl-language-support, threaded-comments, blog-theme, classic, classic-theme, clean, clean-theme 4 4 Requires at least: 5.0 5 Tested up to: 6. 56 Stable tag: 1. 0.125 Tested up to: 6.6 6 Stable tag: 1.1 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html 9 9 10 10 == 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.11 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. 12 12 13 13 == Features == -
blogbd/1.1/style.css
r233540 r234536 2 2 Theme Name: BlogBD 3 3 Author: Mehraz Morshed 4 Description: A simple and elegant blog theme.5 Version: 1. 0.124 Description: 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. 5 Version: 1.1 6 6 Requires at least: 5.0 7 Tested up to: 6. 57 Tested up to: 6.6 8 8 Requires PHP: 7.0 9 9 License: GNU General Public License v2 or later … … 11 11 Text Domain: blogbd 12 12 Domain 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, blog13 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, entertainment, full-width-template, post-formats, rtl-language-support, threaded-comments 14 14 15 15 Screenshot image is a collage of actual sites created using the BlogBD WordPress Theme. … … 62 62 63 63 .site-title { 64 color: #333333; 64 65 margin: 0; 65 66 font-size: 36px; … … 68 69 69 70 .site-title a { 70 color: #333333 !important;71 71 text-decoration: none; 72 72 } … … 110 110 } 111 111 112 article.dotted { 113 padding-bottom: 20px; 114 border-bottom: 2px dotted #0073aa; 115 } 116 117 div#dotted{ 118 119 border-bottom: 2px dotted #0073aa; 120 } 121 112 122 .entry-header { 113 border-bottom: 1px solid #eee; 114 margin-bottom: 20px; 115 padding-bottom: 10px; 123 margin-bottom: 0; 124 padding-bottom: 0; 116 125 } 117 126 … … 119 128 font-size: 24px; 120 129 color: #333; 130 margin-bottom: 0; 131 padding-bottom: 0; 121 132 } 122 133 … … 127 138 128 139 .entry-content { 129 margin-top: 2 0px;140 margin-top: 2px; 130 141 line-height: 1.8; 131 142 } 132 143 133 144 .entry-footer { 134 margin-top: 2 0px;135 border-top: 1px solid # eee;136 padding-top: 10px;145 margin-top: 2px; 146 border-top: 1px solid #ddd; 147 padding-top: 2px; 137 148 font-size: 14px; 138 149 color: #777; … … 347 358 display: block; 348 359 width: 100%; 349 background-color: # 0073AA;360 background-color: #333333; 350 361 } 351 362 … … 373 384 374 385 .main-navigation ul li:hover { 375 background-color: # 4a4a4a;386 background-color: #666666; 376 387 } 377 388 … … 717 728 text-decoration: underline; /* Underline on hover in header/footer */ 718 729 } 730 731 aside .wp-block-latest-comments{ 732 padding-left: 0; 733 }
Note: See TracChangeset
for help on using the changeset viewer.