Make WordPress Themes

Changeset 357017


Ignore:
Timestamp:
11/03/2026 06:50:31 PM (7 hours ago)
Author:
themedropbox
Message:

New version of Newsup - 5.6.8

Location:
newsup/5.6.8
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • newsup/5.6.8/change-log.txt

    r355366 r357017  
     1= Version 5.6.8
     2* Enhanced Google Fonts.
     3* Added Fonts Variables.
     4
    15= Version 5.6.7
    26* Fixed Google Fonts Loading Issue.
  • newsup/5.6.8/css/dynamic-css.php

    r339896 r357017  
    88  if ( get_theme_mod('enable_newsup_typo', false) == true) {
    99    /* Headings Typography*/
    10     $newsup_custom_css .= 'h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, .wp-block-search__label {
    11                               font-family:'. esc_attr(newsup_get_option('heading_fontfamily')).' !important;
    12                               font-weight:'. esc_attr(newsup_get_option('heading_fontweight')).' !important;
    13                             }';
    14       /* Menus Font Family*/
    15     $newsup_custom_css .= '.navbar-wp .navbar-nav > li > a {
    16                               font-family:'. esc_attr(newsup_get_option('menu_fontfamily')).' !important;
    17                             }';
     10    $newsup_custom_css .= ':root {
     11                              --headFont:'. esc_attr(newsup_get_option('heading_fontfamily')).';
     12                              --headWeight:'. esc_attr(newsup_get_option('heading_fontweight')).';
     13                              --menuFont:'. esc_attr(newsup_get_option('menu_fontfamily')).';
     14                            }';                           
    1815  }
    1916  // Attach to the handle
  • newsup/5.6.8/inc/ansar/font/font.php

    r355366 r357017  
    1313        $menu_font_family    = newsup_get_option( 'menu_fontfamily' );
    1414
    15     foreach ( array( $heading_font_family => $heading_font_weight, $menu_font_family => '400' ) as $font => $weight ) {
    16         $font = trim( explode( ',', $font )[0] );
     15    $requested = array(
     16        array( newsup_get_option( 'heading_fontfamily' ), newsup_get_option( 'heading_fontweight' ) ),
     17        array( newsup_get_option( 'menu_fontfamily' ), '400' ),
     18    );
    1719
    18         if ( $font ) {
     20    foreach ( $requested as $item ) {
     21        list( $font, $weight ) = $item;
     22
     23        $font   = trim( explode( ',', (string) $font )[0], " \t\n\r\0\x0B'\"" );
     24        $weight = absint( $weight );
     25
     26        if ( $font && $weight >= 100 && $weight <= 900 ) {
    1927            $fonts[ $font ][] = $weight;
    2028        }
    2129    }
    2230
     31    $fonts = apply_filters( 'blogarise_google_fonts', $fonts );
     32
     33    ksort( $fonts );
     34
    2335    $families = array();
    2436
    2537    foreach ( $fonts as $font => $weights ) {
    26         $families[] = 'family=' . rawurlencode(
    27             $font . ':wght@' . implode( ';', array_unique( $weights ) )
    28         );
     38        $weights = array_filter( array_unique( array_map( 'absint', (array) $weights ) ) );
     39        sort( $weights, SORT_NUMERIC );
     40
     41        if ( ! $font || empty( $weights ) ) {
     42            continue;
     43        }
     44
     45        $families[] = 'family=' . urlencode( $font ) . ':wght@' . implode( ';', $weights );
    2946    }
    3047
  • newsup/5.6.8/readme.txt

    r355366 r357017  
    14221422= Version 5.6.7
    14231423* Fixed Google Fonts Loading Issue.
     1424
     1425= Version 5.6.8
     1426* Enhanced Google Fonts.
     1427* Added Fonts Variables.
  • newsup/5.6.8/style-rtl.css

    r355366 r357017  
    55Author URI: https://themeansar.com
    66Description: Newsup is a fast, clean, modern-looking Best Responsive News Magazine WordPress theme. The theme is fully widgetized, so users can manage the content by using easy to use widgets. Newsup is suitable for dynamic news, newspapers, magazine, publishers, blogs, editors, online and gaming magazines, newsportals,personal blogs, newspaper, publishing or review siteand any creative website. Newsup is SEO friendly, WPML,Gutenberg, translation and RTL ready. Live preview : https://newsup.themeansar.com/lite/ and documentation at https://docs.themeansar.com/docs/newsup/
    7 Version: 5.6.7
     7Version: 5.6.8
    88Tested up to: 7.1
    99Requires PHP: 7.4
    10 Requires at least: 6.7
     10Requires at least: 6.0
    1111Tags: one-column, two-columns ,right-sidebar, flexible-header, custom-background, custom-header, custom-menu, editor-style, featured-images, footer-widgets,  theme-options, threaded-comments, rtl-language-support, translation-ready, full-width-template, custom-logo, blog, news
    1212License: GNU General Public License v3 or later
    … …  
    2626        --weight2: 600;
    2727        --catWeight: 700;
     28        --menuFont: var(--headFont);
    2829}
    2930
  • newsup/5.6.8/style.css

    r355366 r357017  
    55Author URI: https://themeansar.com
    66Description: Newsup is a fast, clean, modern-looking Best Responsive News Magazine WordPress theme. The theme is fully widgetized, so users can manage the content by using easy to use widgets. Newsup is suitable for dynamic news, newspapers, magazine, publishers, blogs, editors, online and gaming magazines, newsportals,personal blogs, newspaper, publishing or review siteand any creative website. Newsup is SEO friendly, WPML,Gutenberg, translation and RTL ready. Live preview : https://newsup.themeansar.com/lite and documentation at https://docs.themeansar.com/docs/newsup/
    7 Version: 5.6.7
     7Version: 5.6.8
    88Tested up to: 7.1
    99Requires PHP: 7.4
    10 Requires at least: 6.7
     10Requires at least: 6.0
    1111Tags: one-column, two-columns ,right-sidebar, flexible-header, custom-background, custom-header, custom-menu, editor-style, featured-images, footer-widgets,  theme-options, threaded-comments, rtl-language-support, translation-ready, full-width-template, custom-logo, blog, news
    1212License: GNU General Public License v3 or later
    … …  
    2626        --weight2: 600;
    2727        --catWeight: 700;
     28        --menuFont: var(--headFont);
    2829}
    2930
    … …  
    216217        font-size: 14px;
    217218        text-transform: uppercase;
    218         font-family: var(--headFont);
     219        font-family: var(--menuFont);
    219220        line-height: 2.3;
    220221}
Note: See TracChangeset for help on using the changeset viewer.