Make WordPress Themes

Changeset 357108


Ignore:
Timestamp:
11/04/2026 06:40:31 AM (71 minutes ago)
Author:
themedropbox
Message:

New version of Novaho - 1.0.1

Location:
novaho/1.0.1
Files:
3 added
2 deleted
11 edited
1 copied

Legend:

Unmodified
Added
Removed
  • novaho/1.0.1/assets/dist/manifest.json

    r354838 r357108  
    11{
    22  "src/js/main.js": {
    3     "file": "assets/main-8Rn8Tty0.js",
     3    "file": "assets/main-BpRG3yDH.js",
    44    "name": "main",
    55    "src": "src/js/main.js",
    66    "isEntry": true,
    77    "css": [
    8       "assets/main-DQUDnNPD.css"
     8      "assets/main-D3MsTyhd.css"
    99    ]
    1010  },
  • novaho/1.0.1/functions.php

    r354838 r357108  
    1010}
    1111
    12 define( 'NOVAHO_VERSION', '1.0.0' );
     12define( 'NOVAHO_VERSION', '1.0.1' );
    1313define( 'NOVAHO_DIR', get_template_directory() );
    1414define( 'NOVAHO_URI', get_template_directory_uri() );
  • novaho/1.0.1/header.php

    r354838 r357108  
    1515        <meta charset="<?php bloginfo( 'charset' ); ?>">
    1616        <meta name="viewport" content="width=device-width, initial-scale=1">
    17         <script>
    18                 // Applies a stored dark/light choice before first paint, so the page
    19                 // never flashes the "wrong" theme. No stored choice = the CSS in
    20                 // _theme-mode.scss falls back to the OS preference on its own.
    21                 ( function () {
    22                         try {
    23                                 var theme = localStorage.getItem( 'novaho-theme' );
    24                                 if ( theme === 'dark' || theme === 'light' ) {
    25                                         document.documentElement.setAttribute( 'data-theme', theme );
    26                                 }
    27                         } catch ( error ) {}
    28                 } )();
    29         </script>
    3017        <?php wp_head(); ?>
    3118</head>
  • novaho/1.0.1/inc/enqueue.php

    r354838 r357108  
    2424
    2525/**
     26 * Apply a stored dark/light choice before first paint, so the page never
     27 * flashes the "wrong" theme. No stored choice = the CSS in _theme-mode.scss
     28 * falls back to the OS preference on its own.
     29 *
     30 * Printed through wp_head (priority 1, ahead of the stylesheets at 8) rather
     31 * than hardcoded in header.php, so child themes and plugins can unhook it.
     32 */
     33function novaho_theme_mode_script() {
     34        wp_print_inline_script_tag(
     35                "( function () {
     36                        try {
     37                                var theme = localStorage.getItem( 'novaho-theme' );
     38                                if ( theme === 'dark' || theme === 'light' ) {
     39                                        document.documentElement.setAttribute( 'data-theme', theme );
     40                                }
     41                        } catch ( error ) {}
     42                } )();"
     43        );
     44}
     45add_action( 'wp_head', 'novaho_theme_mode_script', 1 );
     46
     47/**
    2648 * Block editor styles (matching the frontend look).
    2749 */
  • novaho/1.0.1/inc/setup.php

    r354838 r357108  
    6161        add_theme_support( 'editor-styles' );
    6262        add_theme_support( 'wp-block-styles' );
     63
     64        // Wide / full-width alignment for blocks (styled in components/_wp-core.scss).
     65        add_theme_support( 'align-wide' );
     66
     67        // Background color/image under Customize > Background Image. The default
     68        // matches $color-bg, so core prints no override until the user changes it.
     69        add_theme_support(
     70                'custom-background',
     71                array(
     72                        'default-color' => 'ffffff',
     73                )
     74        );
    6375
    6476        // Menu locations.
  • novaho/1.0.1/package-lock.json

    r354838 r357108  
    11{
    22  "name": "novaho",
    3   "version": "1.0.0",
     3  "version": "1.0.1",
    44  "lockfileVersion": 3,
    55  "requires": true,
    … …  
    77    "": {
    88      "name": "novaho",
    9       "version": "1.0.0",
     9      "version": "1.0.1",
    1010      "devDependencies": {
    1111        "archiver": "^7.0.1",
  • novaho/1.0.1/package.json

    r354838 r357108  
    11{
    22  "name": "novaho",
    3   "version": "1.0.0",
     3  "version": "1.0.1",
    44  "private": true,
    55  "description": "Standard WordPress base theme - assets built with Vite + SCSS",
  • novaho/1.0.1/readme.txt

    r354838 r357108  
    44Tested up to: 7.0
    55Requires PHP: 8.0
    6 Stable tag: 1.0.0
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    5454== Changelog ==
    5555
     56= 1.0.1 =
     57* The dark/light mode bootstrap script is now printed through the wp_head hook instead of being hardcoded in header.php.
     58* Added support for wide and full block alignments (align-wide).
     59* Added Customizer background support (custom-background).
     60* Added styles for WordPress core classes: sticky posts, post author comments, alignleft/alignright/aligncenter, captions and gallery captions.
     61
    5662= 1.0.0 =
    5763* Initial release.
  • novaho/1.0.1/src/scss/layout/_grid.scss

    r354838 r357108  
    4848}
    4949
     50// Reading width is capped per child (components/_wp-core.scss), not on
     51// .entry-content itself, so .alignwide / .alignfull blocks can extend past it.
    5052.entry-content {
    51         max-width: $content-width;
    52 
    5353        > * + * {
    5454                margin-top: map.get($spacers, 3);
  • novaho/1.0.1/src/scss/style.scss

    r354838 r357108  
    2424@use 'components/theme-toggle';
    2525@use 'components/back-to-top';
     26@use 'components/wp-core';
  • novaho/1.0.1/style.css

    r354838 r357108  
    55Author URI: https://wporion.com
    66Description: A lightweight, general-purpose base theme built on classic PHP architecture. Every visual and structural option — header layout, top bar, breadcrumb, single post and page layout, post list card style, and footer — is configurable from Appearance > Customize > Theme Settings, backed by CSS custom properties so changes apply instantly. Includes a built-in dark/light mode toggle, an accessible off-canvas mobile menu, four independent footer widget columns, a custom Recent Posts widget, and related-posts support.
    7 Version: 1.0.0
     7Version: 1.0.1
    88Requires at least: 6.5
    99Requires PHP: 8.0
Note: See TracChangeset for help on using the changeset viewer.