Changeset 358063
- Timestamp:
- 11/08/2026 07:08:11 PM (less than one hour ago)
- Location:
- febzor-connect/1.0.2
- Files:
-
- 2 added
- 6 edited
- 1 copied
-
. (copied) (copied from febzor-connect/1.0.1 )
-
LICENSE (added)
-
assets/css/header-footer.css (modified) (1 diff)
-
functions.php (modified) (4 diffs)
-
inc/blocks.php (added)
-
readme.txt (modified) (5 diffs)
-
style.css (modified) (2 diffs)
-
template-parts/footer.php (modified) (1 diff)
-
template-parts/header.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
febzor-connect/1.0.2/assets/css/header-footer.css
r357970 r358063 58 58 .fzc-footer .fzc-inner { flex-direction: column; text-align: center; } 59 59 } 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 13 13 } 14 14 15 define( 'FEBZOR_CONNECT_VERSION', '1.0. 1' );15 define( 'FEBZOR_CONNECT_VERSION', '1.0.2' ); 16 16 define( 'FEBZOR_CONNECT_URL', get_template_directory_uri() . '/' ); 17 17 define( 'FEBZOR_CONNECT_PATH', get_template_directory() . '/' ); … … 23 23 require FEBZOR_CONNECT_PATH . 'inc/settings.php'; 24 24 require FEBZOR_CONNECT_PATH . 'inc/customizer.php'; 25 require FEBZOR_CONNECT_PATH . 'inc/blocks.php'; 25 26 26 27 if ( ! function_exists( 'febzor_connect_setup' ) ) { … … 56 57 add_theme_support( 'align-wide' ); 57 58 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' ) ); 58 72 add_theme_support( 'editor-styles' ); 59 73 add_editor_style( 'assets/css/editor-styles.css' ); … … 122 136 // Only the CSS of the blocks a page actually uses (not the whole block library on every page). 123 137 add_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 theme127 * 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 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 21 21 * Appearance → Febzor Connect turns parts off: the skip link, the header and footer, the page title, reset.css and theme.css. 22 22 * 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. 23 24 * Translation-ready, RTL-friendly, accessible (skip link, keyboard-friendly menu), WooCommerce support. 24 25 25 Switching from a theme with the same menu locations (Header, Footer) keeps your menus , logo and matching theme settings.26 Switching from a theme with the same menu locations (Header, Footer) keeps your menus. 26 27 27 28 == Frequently Asked Questions == … … 41 42 == Changelog == 42 43 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 43 51 = 1.0.1 = 44 52 * 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. … … 51 59 == Upgrade Notice == 52 60 61 = 1.0.2 = 62 Theme Review fixes (no changes on activation, LICENSE included), plus block styles, block patterns, a header image, a background and a Footer widget area. 63 53 64 = 1.0.1 = 54 65 Theme Review fixes: one settings option, correct capability, no SEO meta tag. … … 60 71 61 72 Febzor Connect WordPress Theme, Copyright 2026 Febzor. 62 Febzor Connect is distributed under the terms of the GNU GPL v2 or later .73 Febzor Connect is distributed under the terms of the GNU GPL v2 or later (the full text is in the LICENSE file). 63 74 64 75 This 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 5 5 Author URI: https://febzor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash 6 6 Description: 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. 17 Version: 1.0.2 8 8 Requires at least: 6.5 9 9 Tested up to: 7.1 … … 12 12 License URI: https://www.gnu.org/licenses/gpl-2.0.html 13 13 Text Domain: febzor-connect 14 Tags: one-column, custom- logo, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support, flexible-header, custom-colors14 Tags: 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 15 15 */ 16 16 -
febzor-connect/1.0.2/template-parts/footer.php
r357970 r358063 22 22 ?> 23 23 <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; ?> 24 29 <div class="fzc-inner"> 25 30 <?php get_template_part( 'template-parts/branding', null, array( 'part' => 'footer' ) ); ?> -
febzor-connect/1.0.2/template-parts/header.php
r357970 r358063 26 26 ?> 27 27 <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; ?> 28 31 <div class="fzc-inner"> 29 32 <?php get_template_part( 'template-parts/branding', null, array( 'part' => 'header' ) ); ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)