Changeset 355656
- Timestamp:
- 10/27/2026 04:24:18 AM (109 minutes ago)
- Location:
- tervix-lite/1.0.3
- Files:
-
- 1 added
- 6 edited
- 1 copied
-
. (copied) (copied from tervix-lite/1.0.1 )
-
editor-style.css (modified) (1 diff)
-
functions.php (modified) (2 diffs)
-
inc/blocks.php (added)
-
inc/customizer.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
style.css (modified) (2 diffs)
-
template-parts/hero.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tervix-lite/1.0.3/editor-style.css
r355646 r355656 5 5 blockquote{margin:1.6em 0;padding-left:20px;border-left:5px solid #c8102e;font-size:1.3em;font-style:italic} 6 6 img{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 19 19 add_theme_support( 'custom-background', array( 'default-color' => 'f4f5f7' ) ); 20 20 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 ) ); 21 29 add_theme_support( 'customize-selective-refresh-widgets' ); 22 30 add_theme_support( 'starter-content', tervix_starter_content() ); … … 208 216 209 217 require get_template_directory() . '/inc/starter-content.php'; 218 require get_template_directory() . '/inc/blocks.php'; 210 219 require get_template_directory() . '/inc/customizer.php'; -
tervix-lite/1.0.3/inc/customizer.php
r355643 r355656 27 27 $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' ) ) ); 28 28 $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' );30 29 $add( 'tervix_hero_title', __( 'Hero headline', 'tervix-lite' ), 'text', '', 'sanitize_text_field' ); 31 30 $add( 'tervix_hero_sub', __( 'Hero sub-headline', 'tervix-lite' ), 'text', '', 'sanitize_text_field' ); -
tervix-lite/1.0.3/readme.txt
r355646 r355656 4 4 Tested up to: 6.6 5 5 Requires PHP: 7.4 6 Stable tag: 1.0. 16 Stable tag: 1.0.3 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 15 15 == Installation == 16 16 1. 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.17 2. Appearance > Customize > Header Image: upload the home page hero image. Appearance > Customize > Tervix Options: headline, accent colour, ticker and social links. 18 18 3. Appearance > Menus: assign a menu to the Primary location. 19 19 … … 33 33 34 34 == 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 35 42 = 1.0.1 = 36 43 * 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 1 1 /* 2 2 Theme Name: Tervix Lite 3 Theme URI: https://github.com/musabjaffar/tervix-lite 3 4 Author: Muhammad Musab Jaffar 5 Author URI: https://github.com/musabjaffar 4 6 Description: 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. 17 Version: 1.0.3 6 8 Requires at least: 6.0 7 9 Tested up to: 6.6 … … 129 131 .bypostauthor>.comment-body{border-left:3px solid var(--accent);padding-left:60px} 130 132 .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 2 2 if ( ! defined( 'ABSPATH' ) ) { exit; } 3 3 $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(); 6 5 $t = get_theme_mod( 'tervix_hero_title', '' ); 7 6 $s = get_theme_mod( 'tervix_hero_sub', '' ); 8 7 ?> 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"> 10 9 <h1><?php echo esc_html( $t ? $t : $def[0] ); ?></h1> 11 10 <p><?php echo esc_html( $s ? $s : $def[1] ); ?></p>
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)