Make WordPress Themes

Changeset 358063


Ignore:
Timestamp:
11/08/2026 07:08:11 PM (less than one hour ago)
Author:
themedropbox
Message:

New version of Febzor Connect - 1.0.2

Location:
febzor-connect/1.0.2
Files:
2 added
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • febzor-connect/1.0.2/assets/css/header-footer.css

    r357970 r358063  
    5858        .fzc-footer .fzc-inner { flex-direction: column; text-align: center; }
    5959}
     60/* The header image (Customize → Header Image) and the Footer widget area. */
     61.fzc-header-image img { display: block; width: 100%; height: auto; }
     62.fzc-footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; width: 100%; max-width: 1140px; margin-inline: auto; padding: 24px 20px 0; }
     63.fzc-footer-widgets .widget-title { margin-block: 0 .6rem; font-size: 1.1rem; }
     64.fzc-footer-widgets ul { margin: 0; padding-inline-start: 1.1em; }
     65
  • febzor-connect/1.0.2/functions.php

    r357971 r358063  
    1313}
    1414
    15 define( 'FEBZOR_CONNECT_VERSION', '1.0.1' );
     15define( 'FEBZOR_CONNECT_VERSION', '1.0.2' );
    1616define( 'FEBZOR_CONNECT_URL', get_template_directory_uri() . '/' );
    1717define( 'FEBZOR_CONNECT_PATH', get_template_directory() . '/' );
    … …  
    2323require FEBZOR_CONNECT_PATH . 'inc/settings.php';
    2424require FEBZOR_CONNECT_PATH . 'inc/customizer.php';
     25require FEBZOR_CONNECT_PATH . 'inc/blocks.php';
    2526
    2627if ( ! function_exists( 'febzor_connect_setup' ) ) {
    … …  
    5657                        add_theme_support( 'align-wide' );
    5758                        add_theme_support( 'responsive-embeds' );
     59                        add_theme_support( 'wp-block-styles' );
     60                        // An optional header image (in the theme header) and site background: nothing is output until one is set.
     61                        add_theme_support(
     62                                'custom-header',
     63                                array(
     64                                        'width'       => 2000,
     65                                        'height'      => 500,
     66                                        'flex-width'  => true,
     67                                        'flex-height' => true,
     68                                        'header-text' => false,
     69                                )
     70                        );
     71                        add_theme_support( 'custom-background', array( 'default-color' => 'ffffff' ) );
    5872                        add_theme_support( 'editor-styles' );
    5973                        add_editor_style( 'assets/css/editor-styles.css' );
    … …  
    122136// Only the CSS of the blocks a page actually uses (not the whole block library on every page).
    123137add_filter( 'should_load_separate_core_block_assets', '__return_true' );
    124 
    125 /**
    126  * Coming from another theme with the same menu locations and settings: its logo and its theme
    127  * settings come along (WordPress already moves menus between same-named locations).
    128  */
    129 function febzor_connect_after_switch( $old_name, $old_theme = null ) {
    130         if ( ! $old_theme instanceof WP_Theme ) {
    131                 return;
    132         }
    133         $old_mods = get_option( 'theme_mods_' . $old_theme->get_stylesheet() );
    134         if ( is_array( $old_mods ) && ! empty( $old_mods['custom_logo'] ) && ! get_theme_mod( 'custom_logo' ) ) {
    135                 set_theme_mod( 'custom_logo', (int) $old_mods['custom_logo'] );
    136         }
    137         // Its matching theme settings, once (only into an empty Febzor Connect settings option).
    138         if ( false !== get_option( FEBZOR_CONNECT_SETTINGS, false ) ) {
    139                 return;
    140         }
    141         $map      = array(
    142                 'skip_link'     => 'skip_link',
    143                 'header_footer' => 'header_footer',
    144                 'page_title'    => 'page_title',
    145                 'hello_style'   => 'reset_css',
    146                 'hello_theme'   => 'theme_css',
    147         );
    148         $prefix   = str_replace( '-', '_', $old_theme->get_template() ) . '_settings_';
    149         $settings = array();
    150         foreach ( $map as $from => $to ) {
    151                 if ( 'true' === get_option( $prefix . $from ) ) {
    152                         $settings[ $to ] = true;
    153                 }
    154         }
    155         update_option( FEBZOR_CONNECT_SETTINGS, $settings );
    156 }
    157 add_action( 'after_switch_theme', 'febzor_connect_after_switch', 10, 2 );
  • febzor-connect/1.0.2/readme.txt

    r357971 r358063  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    2121* Appearance → Febzor Connect turns parts off: the skip link, the header and footer, the page title, reset.css and theme.css.
    2222* No framework and no jQuery. Three small stylesheets, and a script of under 1 KB only when the header shows a menu. Only the CSS of the blocks a page uses is loaded.
     23* Block styles (Checklist, Card) and block patterns for the block editor, an optional header image and site background, and a Footer widget area.
    2324* Translation-ready, RTL-friendly, accessible (skip link, keyboard-friendly menu), WooCommerce support.
    2425
    25 Switching from a theme with the same menu locations (Header, Footer) keeps your menus, logo and matching theme settings.
     26Switching from a theme with the same menu locations (Header, Footer) keeps your menus.
    2627
    2728== Frequently Asked Questions ==
    … …  
    4142== Changelog ==
    4243
     44= 1.0.2 =
     45* Removed the settings import that ran when the theme was activated.
     46* Added the LICENSE file (GNU GPL version 2).
     47* Block styles: Checklist (lists) and Card (groups).
     48* Block patterns: Call to action, Three features, Checklist.
     49* WordPress's block styles, an optional header image and site background, and a Footer widget area.
     50
    4351= 1.0.1 =
    4452* Theme Review: settings kept in a single option, the settings page uses the edit_theme_options capability and loads its styles only on its own page.
    … …  
    5159== Upgrade Notice ==
    5260
     61= 1.0.2 =
     62Theme Review fixes (no changes on activation, LICENSE included), plus block styles, block patterns, a header image, a background and a Footer widget area.
     63
    5364= 1.0.1 =
    5465Theme Review fixes: one settings option, correct capability, no SEO meta tag.
    … …  
    6071
    6172Febzor Connect WordPress Theme, Copyright 2026 Febzor.
    62 Febzor Connect is distributed under the terms of the GNU GPL v2 or later.
     73Febzor Connect is distributed under the terms of the GNU GPL v2 or later (the full text is in the LICENSE file).
    6374
    6475This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
  • febzor-connect/1.0.2/style.css

    r357971 r358063  
    55Author URI: https://febzor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
    66Description: A very light, minimal theme made to pair with the Febzor page builder. It gives Febzor a clean canvas: a simple header and footer you can style in the Customizer (or replace with Febzor Theme Builder templates), full-width pages for Febzor layouts, and readable defaults for posts, archives and search. No framework, no jQuery, and only a few kilobytes of CSS.
    7 Version: 1.0.1
     7Version: 1.0.2
    88Requires at least: 6.5
    99Tested up to: 7.1
    … …  
    1212License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1313Text Domain: febzor-connect
    14 Tags: one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support, flexible-header, custom-colors
     14Tags: one-column, custom-background, custom-header, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, wide-blocks, block-patterns, block-styles, threaded-comments, translation-ready, rtl-language-support, flexible-header, custom-colors
    1515*/
    1616
  • febzor-connect/1.0.2/template-parts/footer.php

    r357970 r358063  
    2222?>
    2323<footer id="site-footer" class="<?php echo esc_attr( febzor_connect_part_classes( 'footer' ) ); ?>">
     24        <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
     25                <div class="fzc-footer-widgets">
     26                        <?php dynamic_sidebar( 'sidebar-1' ); ?>
     27                </div>
     28        <?php endif; ?>
    2429        <div class="fzc-inner">
    2530                <?php get_template_part( 'template-parts/branding', null, array( 'part' => 'footer' ) ); ?>
  • febzor-connect/1.0.2/template-parts/header.php

    r357970 r358063  
    2626?>
    2727<header id="site-header" class="<?php echo esc_attr( febzor_connect_part_classes( 'header' ) ); ?>">
     28        <?php if ( has_header_image() ) : ?>
     29                <div class="fzc-header-image"><?php the_header_image_tag( array( 'alt' => '' ) ); ?></div>
     30        <?php endif; ?>
    2831        <div class="fzc-inner">
    2932                <?php get_template_part( 'template-parts/branding', null, array( 'part' => 'header' ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.