Make WordPress Themes

Changeset 357022


Ignore:
Timestamp:
11/03/2026 09:38:09 PM (86 minutes ago)
Author:
themedropbox
Message:

New version of Newsum - 1.0.7

Location:
newsum/1.0.7
Files:
5 edited
1 copied

Legend:

Unmodified
Added
Removed
  • newsum/1.0.7/functions.php

    r355813 r357022  
    66if ( ! defined( 'NEWSUM_VERSION' ) ) {
    77        // Replace the version number of the theme on each release.
    8         define( 'NEWSUM_VERSION', '1.0.6' );
     8        define( 'NEWSUM_VERSION', '1.0.7' );
    99}
    1010
    … …  
    517517        $ticker_label = get_theme_mod( 'newsum_header_ticker_label', __( 'BREAKING', 'newsum' ) );
    518518        $ticker_count = get_theme_mod( 'newsum_header_ticker_count', 5 );
     519        $hide_mobile  = get_theme_mod( 'newsum_ticker_hide_mobile', false );
    519520
    520521        if ( ! $show_ticker ) {
    521522                return;
    522523        }
     524
     525        $ticker_classes = array( 'trending-ticker' );
     526        if ( $hide_mobile ) {
     527                $ticker_classes[] = 'hide-on-mobile';
     528        }
    523529        ?>
    524         <div class="trending-ticker" id="trendingTickerHeader">
     530        <div class="<?php echo esc_attr( implode( ' ', $ticker_classes ) ); ?>" id="trendingTickerHeader">
    525531                <div class="trending-ticker-inner">
    526532                        <span class="ticker-label"><?php echo esc_html( $ticker_label ); ?></span>
  • newsum/1.0.7/header.php

    r355813 r357022  
    3131            $header_layout = 'standard';
    3232        }
     33        $sticky_header = (bool) get_theme_mod( 'newsum_sticky_header', true );
    3334?>
    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'; ?>">
    3536        <?php
    3637        // Top Bar settings
  • newsum/1.0.7/inc/customizer.php

    r355813 r357022  
    26942694                'newsum_header_ticker_label',
    26952695                'newsum_header_ticker_count',
     2696                'newsum_ticker_hide_mobile',
    26962697            ),
    26972698            'render_callback'     => 'newsum_render_trending_ticker',
    … …  
    39913992    ) );
    39923993
     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
    39934009    // ── Reading List & Offline Bookmarks (Pro Feature) ───────────
    39944010    $wp_customize->add_setting( 'newsum_reading_list_heading', array( 'sanitize_callback' => 'sanitize_text_field' ) );
  • newsum/1.0.7/readme.txt

    r355813 r357022  
    44Tested up to: 7.1
    55Requires PHP: 7.4
    6 Stable tag: 1.0.6
     6Stable tag: 1.0.7
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    9191== Changelog ==
    9292
     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
    93101= 1.0.6 =
    94102* 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  
    88Tested up to: 7.1
    99Requires PHP: 7.4
    10 Version: 1.0.6
     10Version: 1.0.7
    1111License: GNU General Public License v2 or later
    1212License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    297297
    298298html {
    299     overflow-x: hidden;
     299    overflow-x: clip;
    300300}
    301301
    … …  
    306306    line-height: 1.6;
    307307    -webkit-font-smoothing: antialiased;
    308     overflow-x: hidden;
     308    overflow-x: clip;
    309309}
    310310
    … …  
    343343    top: 0;
    344344    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    }
    345376}
    346377
    … …  
    27402771    }
    27412772
     2773    .trending-ticker.hide-on-mobile {
     2774        display: none !important;
     2775    }
     2776
    27422777    .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;
    27452790    }
    27462791
    27472792    .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;
    27502822    }
    27512823}
    … …  
    49485020    color: var(--text-primary);
    49495021    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;
    49505038}
    49515039
    … …  
    68236911    /* Layouts: Collapse sidebar under main content */
    68246912    .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 {
    68266919        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;
    68276933    }
    68286934
    … …  
    68326938    }
    68336939
    6834     .sidebar {
     6940    .sidebar,
     6941    .sidebar-column,
     6942    .has-sticky-sidebar .sidebar-column {
    68356943        position: relative;
    68366944        top: 0;
    6837         margin-top: var(--space-xl);
     6945        width: 100%;
    68386946    }
    68396947
    … …  
    68556963    .main-nav {
    68566964        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;
    68576978    }
    68586979
    … …  
    69557076    /* Single Post & Static Tweaks */
    69567077    .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;
    69587087    }
    69597088
    … …  
    69627091        text-align: center;
    69637092        align-items: center;
     7093    }
     7094
     7095    .comment-list .children {
     7096        padding-left: 0.75rem;
     7097    }
     7098
     7099    .comment-form {
     7100        padding: 1.25rem 1rem;
    69647101    }
    69657102
Note: See TracChangeset for help on using the changeset viewer.