Changeset 357022
- Timestamp:
- 11/03/2026 09:38:09 PM (86 minutes ago)
- Location:
- newsum/1.0.7
- Files:
-
- 5 edited
- 1 copied
-
. (copied) (copied from newsum/1.0.6 )
-
functions.php (modified) (2 diffs)
-
header.php (modified) (1 diff)
-
inc/customizer.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
style.css (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
newsum/1.0.7/functions.php
r355813 r357022 6 6 if ( ! defined( 'NEWSUM_VERSION' ) ) { 7 7 // Replace the version number of the theme on each release. 8 define( 'NEWSUM_VERSION', '1.0. 6' );8 define( 'NEWSUM_VERSION', '1.0.7' ); 9 9 } 10 10 … … 517 517 $ticker_label = get_theme_mod( 'newsum_header_ticker_label', __( 'BREAKING', 'newsum' ) ); 518 518 $ticker_count = get_theme_mod( 'newsum_header_ticker_count', 5 ); 519 $hide_mobile = get_theme_mod( 'newsum_ticker_hide_mobile', false ); 519 520 520 521 if ( ! $show_ticker ) { 521 522 return; 522 523 } 524 525 $ticker_classes = array( 'trending-ticker' ); 526 if ( $hide_mobile ) { 527 $ticker_classes[] = 'hide-on-mobile'; 528 } 523 529 ?> 524 <div class=" trending-ticker" id="trendingTickerHeader">530 <div class="<?php echo esc_attr( implode( ' ', $ticker_classes ) ); ?>" id="trendingTickerHeader"> 525 531 <div class="trending-ticker-inner"> 526 532 <span class="ticker-label"><?php echo esc_html( $ticker_label ); ?></span> -
newsum/1.0.7/header.php
r355813 r357022 31 31 $header_layout = 'standard'; 32 32 } 33 $sticky_header = (bool) get_theme_mod( 'newsum_sticky_header', true ); 33 34 ?> 34 <header class="site-header header-layout-<?php echo esc_attr( $header_layout ); ?> ">35 <header class="site-header header-layout-<?php echo esc_attr( $header_layout ); ?><?php echo $sticky_header ? ' is-sticky' : ' not-sticky'; ?>"> 35 36 <?php 36 37 // Top Bar settings -
newsum/1.0.7/inc/customizer.php
r355813 r357022 2694 2694 'newsum_header_ticker_label', 2695 2695 'newsum_header_ticker_count', 2696 'newsum_ticker_hide_mobile', 2696 2697 ), 2697 2698 'render_callback' => 'newsum_render_trending_ticker', … … 3991 3992 ) ); 3992 3993 3994 $wp_customize->add_setting( 'newsum_ticker_hide_mobile', array( 3995 'default' => false, 3996 'sanitize_callback' => 'newsum_sanitize_checkbox', 3997 'transport' => 'postMessage', 3998 ) ); 3999 $wp_customize->add_control( new NewSum_Toggle_Control( $wp_customize, 'newsum_ticker_hide_mobile', array( 4000 'label' => __( 'Hide Ticker on Mobile', 'newsum' ), 4001 'description' => __( 'Switch off the ticker strip on smartphones and small screens (<= 768px).', 'newsum' ), 4002 'section' => 'newsum_header_section', 4003 'active_callback' => function( $control ) { 4004 $s = $control->manager->get_setting( 'newsum_header_show_ticker' ); 4005 return ! $s || $s->value(); 4006 }, 4007 ) ) ); 4008 3993 4009 // ── Reading List & Offline Bookmarks (Pro Feature) ─────────── 3994 4010 $wp_customize->add_setting( 'newsum_reading_list_heading', array( 'sanitize_callback' => 'sanitize_text_field' ) ); -
newsum/1.0.7/readme.txt
r355813 r357022 4 4 Tested up to: 7.1 5 5 Requires PHP: 7.4 6 Stable tag: 1.0. 66 Stable tag: 1.0.7 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 91 91 == Changelog == 92 92 93 = 1.0.7 = 94 * Bugfix: Resolved responsive single post layout collapse on mobile where sidebar failed to stack below post content. 95 * Bugfix: Fixed breaking news ticker multi-line stacking and orphaned pause control button on mobile viewports. 96 * Feature: Added Customizer toggle control to hide breaking news ticker on mobile devices (newsum_ticker_hide_mobile). 97 * Bugfix: Resolved sticky header Customizer toggle to properly release sticky positioning when disabled. 98 * Polish: Corrected WordPress admin bar sticky header and off-canvas navigation drawer offsets for logged-in mobile views. 99 * Polish: Optimized fluid font size scaling for article headlines and refined nested comment indentation on smartphones. 100 93 101 = 1.0.6 = 94 102 * Enhancement: Added companion integration and OCDI recommendation hooks for Matcha Gallery photo wall and visual portfolio studio. -
newsum/1.0.7/style.css
r355813 r357022 8 8 Tested up to: 7.1 9 9 Requires PHP: 7.4 10 Version: 1.0. 610 Version: 1.0.7 11 11 License: GNU General Public License v2 or later 12 12 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 297 297 298 298 html { 299 overflow-x: hidden;299 overflow-x: clip; 300 300 } 301 301 … … 306 306 line-height: 1.6; 307 307 -webkit-font-smoothing: antialiased; 308 overflow-x: hidden;308 overflow-x: clip; 309 309 } 310 310 … … 343 343 top: 0; 344 344 z-index: 999; 345 } 346 347 .site-header.not-sticky { 348 position: relative; 349 top: auto; 350 } 351 352 .admin-bar .site-header { 353 top: 32px; 354 } 355 356 @media screen and (max-width: 782px) { 357 .admin-bar .site-header { 358 top: 46px; 359 } 360 361 .admin-bar .offcanvas-drawer { 362 top: 46px; 363 height: calc(100vh - 46px); 364 } 365 } 366 367 @media screen and (max-width: 600px) { 368 .admin-bar .site-header { 369 top: 0; 370 } 371 372 .admin-bar .offcanvas-drawer { 373 top: 0; 374 height: 100vh; 375 } 345 376 } 346 377 … … 2740 2771 } 2741 2772 2773 .trending-ticker.hide-on-mobile { 2774 display: none !important; 2775 } 2776 2742 2777 .trending-ticker-inner { 2743 flex-direction: column; 2744 align-items: flex-start; 2778 flex-direction: row; 2779 align-items: center; 2780 padding: 0.35rem 0.65rem; 2781 min-height: 38px; 2782 } 2783 2784 .ticker-label { 2785 font-size: 0.68rem; 2786 padding: 0.2rem 0.5rem; 2787 margin-right: 0.5rem; 2788 flex-shrink: 0; 2789 white-space: nowrap; 2745 2790 } 2746 2791 2747 2792 .ticker-track-wrapper { 2748 width: 100%; 2749 margin-top: 0.5rem; 2793 flex: 1; 2794 min-width: 0; 2795 margin-right: 0.5rem; 2796 margin-top: 0; 2797 overflow: hidden; 2798 } 2799 2800 .ticker-track { 2801 gap: 1rem; 2802 } 2803 2804 .ticker-item { 2805 gap: 0.5rem; 2806 font-size: 0.72rem; 2807 } 2808 2809 .ticker-thumb { 2810 width: 22px; 2811 height: 22px; 2812 flex-shrink: 0; 2813 } 2814 2815 .ticker-toggle { 2816 margin-left: auto; 2817 flex-shrink: 0; 2818 padding: 0.2rem; 2819 display: flex; 2820 align-items: center; 2821 justify-content: center; 2750 2822 } 2751 2823 } … … 4948 5020 color: var(--text-primary); 4949 5021 max-width: 760px; 5022 overflow-wrap: break-word; 5023 word-break: break-word; 5024 } 5025 5026 .article-body iframe, 5027 .article-body video, 5028 .article-body embed, 5029 .article-body object { 5030 max-width: 100%; 5031 } 5032 5033 .article-body table:not(.wp-block-table table) { 5034 display: block; 5035 max-width: 100%; 5036 overflow-x: auto; 5037 -webkit-overflow-scrolling: touch; 4950 5038 } 4951 5039 … … 6823 6911 /* Layouts: Collapse sidebar under main content */ 6824 6912 .content-sidebar-wrap, 6825 .article-layout { 6913 .content-sidebar-wrap.sidebar-left, 6914 .content-sidebar-wrap.sidebar-right, 6915 .article-layout, 6916 .article-layout.has-no-share, 6917 .article-layout.sidebar-none, 6918 .article-layout.sidebar-none.has-no-share { 6826 6919 grid-template-columns: 1fr; 6920 } 6921 6922 .article-layout > * { 6923 min-width: 0; 6924 width: 100%; 6925 } 6926 6927 .article-layout .article-body-wrapper { 6928 order: 1; 6929 } 6930 6931 .article-layout .sidebar-column { 6932 order: 2; 6827 6933 } 6828 6934 … … 6832 6938 } 6833 6939 6834 .sidebar { 6940 .sidebar, 6941 .sidebar-column, 6942 .has-sticky-sidebar .sidebar-column { 6835 6943 position: relative; 6836 6944 top: 0; 6837 margin-top: var(--space-xl);6945 width: 100%; 6838 6946 } 6839 6947 … … 6855 6963 .main-nav { 6856 6964 display: none; 6965 } 6966 6967 .article-layout { 6968 gap: var(--space-lg); 6969 } 6970 6971 .article-hero.hero-style-overlay.has-thumbnail { 6972 min-height: 340px; 6973 padding: var(--space-lg) var(--space-md); 6974 } 6975 6976 .hero-image-wrap { 6977 margin: var(--space-md) 0; 6857 6978 } 6858 6979 … … 6955 7076 /* Single Post & Static Tweaks */ 6956 7077 .article-title { 6957 font-size: 2.5rem; 7078 font-size: clamp(1.75rem, 5.5vw, 2.25rem); 7079 line-height: 1.18; 7080 overflow-wrap: break-word; 7081 } 7082 7083 .article-meta-bottom { 7084 flex-wrap: wrap; 7085 gap: 1rem; 7086 justify-content: center; 6958 7087 } 6959 7088 … … 6962 7091 text-align: center; 6963 7092 align-items: center; 7093 } 7094 7095 .comment-list .children { 7096 padding-left: 0.75rem; 7097 } 7098 7099 .comment-form { 7100 padding: 1.25rem 1rem; 6964 7101 } 6965 7102
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)