Make WordPress Themes

Changeset 355656


Ignore:
Timestamp:
10/27/2026 04:24:18 AM (109 minutes ago)
Author:
themedropbox
Message:

New version of Tervix Lite - 1.0.3

Location:
tervix-lite/1.0.3
Files:
1 added
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • tervix-lite/1.0.3/editor-style.css

    r355646 r355656  
    55blockquote{margin:1.6em 0;padding-left:20px;border-left:5px solid #c8102e;font-size:1.3em;font-style:italic}
    66img{max-width:100%;height:auto;border-radius:8px}
     7.is-style-tervix-rounded img{border-radius:18px}
     8.is-style-tervix-highlight{background:#f4f5f7;border-left:5px solid #c8102e;padding:1em 1.4em;border-radius:0 10px 10px 0}
     9.is-style-tervix-pill .wp-block-button__link{border-radius:99px}
     10.tervix-banner{background:#c8102e;color:#fff;padding:12px 20px;border-radius:8px}
     11.tervix-cta{background:#f4f5f7;border:1px solid #e4e6ea;border-radius:14px;padding:32px;text-align:center}
  • tervix-lite/1.0.3/functions.php

    r355646 r355656  
    1919        add_theme_support( 'custom-background', array( 'default-color' => 'f4f5f7' ) );
    2020        add_editor_style( 'editor-style.css' );
     21        add_theme_support( 'custom-header', array(
     22                'default-image' => get_template_directory_uri() . '/assets/images/hero-news.jpg',
     23                'width'         => 1600,
     24                'height'        => 700,
     25                'flex-width'    => true,
     26                'flex-height'   => true,
     27                'header-text'   => false,
     28        ) );
    2129        add_theme_support( 'customize-selective-refresh-widgets' );
    2230        add_theme_support( 'starter-content', tervix_starter_content() );
    … …  
    208216
    209217require get_template_directory() . '/inc/starter-content.php';
     218require get_template_directory() . '/inc/blocks.php';
    210219require get_template_directory() . '/inc/customizer.php';
  • tervix-lite/1.0.3/inc/customizer.php

    r355643 r355656  
    2727        $add( 'tervix_scheme', __( 'Colour scheme', 'tervix-lite' ), 'select', 'auto', 'tervix_san_scheme', array( 'auto' => __( 'Automatic', 'tervix-lite' ), 'light' => __( 'Light', 'tervix-lite' ), 'dark' => __( 'Dark', 'tervix-lite' ) ) );
    2828        $add( 'tervix_accent', __( 'Accent colour (leave empty for demo default)', 'tervix-lite' ), 'color', '', 'sanitize_hex_color' );
    29         $add( 'tervix_hero_image', __( 'Home page hero image', 'tervix-lite' ), 'image', '', 'esc_url_raw' );
    3029        $add( 'tervix_hero_title', __( 'Hero headline', 'tervix-lite' ), 'text', '', 'sanitize_text_field' );
    3130        $add( 'tervix_hero_sub', __( 'Hero sub-headline', 'tervix-lite' ), 'text', '', 'sanitize_text_field' );
  • tervix-lite/1.0.3/readme.txt

    r355646 r355656  
    44Tested up to: 6.6
    55Requires PHP: 7.4
    6 Stable tag: 1.0.1
     6Stable tag: 1.0.3
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    1515== Installation ==
    16161. Appearance > Themes > Add New > Upload Theme, choose tervix-lite.zip and activate.
    17 2. Appearance > Customize > Tervix Options: set the hero image, headline, accent colour, ticker and social links.
     172. Appearance > Customize > Header Image: upload the home page hero image. Appearance > Customize > Tervix Options: headline, accent colour, ticker and social links.
    18183. Appearance > Menus: assign a menu to the Primary location.
    1919
    … …  
    3333
    3434== Changelog ==
     35= 1.0.3 =
     36* Added Theme URI and Author URI.
     37
     38= 1.0.2 =
     39* Added block styles (Highlight quote, Rounded image, Pill button) and four block patterns.
     40* Hero image now uses the native Header Image setting (custom header support).
     41
    3542= 1.0.1 =
    3643* Added editor styles, custom background support and core alignment, sticky, gallery and comment-author CSS classes.
  • tervix-lite/1.0.3/style.css

    r355646 r355656  
    11/*
    22Theme Name: Tervix Lite
     3Theme URI: https://github.com/musabjaffar/tervix-lite
    34Author: Muhammad Musab Jaffar
     5Author URI: https://github.com/musabjaffar
    46Description: A responsive, accessible news and magazine theme with a hero image, breaking news ticker, light and dark mode, share buttons, threaded comments, a separate banner colour for every category, and right-to-left support.
    5 Version: 1.0.1
     7Version: 1.0.3
    68Requires at least: 6.0
    79Tested up to: 6.6
    … …  
    129131.bypostauthor>.comment-body{border-left:3px solid var(--accent);padding-left:60px}
    130132.wp-caption{max-width:100%}.wp-caption-text{font-size:13px;color:var(--mu)}
     133
     134/* Block styles and pattern classes */
     135.is-style-tervix-rounded img{border-radius:18px}
     136.is-style-tervix-highlight{background:var(--pg);border-left:5px solid var(--accent);padding:1em 1.4em;border-radius:0 10px 10px 0}
     137.is-style-tervix-pill .wp-block-button__link{border-radius:99px}
     138.wp-block-button__link{background:var(--accent);color:#fff}
     139.tervix-banner{background:var(--accent);color:#fff;padding:12px 20px;border-radius:8px}.tervix-banner p{margin:0}
     140.tervix-cta{background:var(--pg);border:1px solid var(--ln);border-radius:14px;padding:clamp(20px,4vw,40px);text-align:center}
     141.tv-hero{background-color:#14161a}
  • tervix-lite/1.0.3/template-parts/hero.php

    r355643 r355656  
    22if ( ! defined( 'ABSPATH' ) ) { exit; }
    33$def = array( __( 'Stories that matter, as they happen', 'tervix-lite' ), __( 'Reporting, analysis and fresh coverage from across the country and the world.', 'tervix-lite' ) );
    4 $img = get_theme_mod( 'tervix_hero_image', '' );
    5 $img = $img ? $img : get_template_directory_uri() . '/assets/images/hero-news.jpg';
     4$img = get_header_image();
    65$t   = get_theme_mod( 'tervix_hero_title', '' );
    76$s   = get_theme_mod( 'tervix_hero_sub', '' );
    87?>
    9 <section class="tv-hero" style="background-image:url('<?php echo esc_url( $img ); ?>')"><div class="tv-hero-shade"><div class="tv-wrap">
     8<section class="tv-hero"<?php echo $img ? ' style="background-image:url(\'' . esc_url( $img ) . '\')"' : ''; // phpcs:ignore WordPress.Security.EscapeOutput ?>><div class="tv-hero-shade"><div class="tv-wrap">
    109        <h1><?php echo esc_html( $t ? $t : $def[0] ); ?></h1>
    1110        <p><?php echo esc_html( $s ? $s : $def[1] ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.