Changeset 357017
- Timestamp:
- 11/03/2026 06:50:31 PM (7 hours ago)
- Location:
- newsup/5.6.8
- Files:
-
- 6 edited
- 1 copied
-
. (copied) (copied from newsup/5.6.7 )
-
change-log.txt (modified) (1 diff)
-
css/dynamic-css.php (modified) (1 diff)
-
inc/ansar/font/font.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
style-rtl.css (modified) (2 diffs)
-
style.css (modified) (3 diffs)
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 1 5 = Version 5.6.7 2 6 * Fixed Google Fonts Loading Issue. -
newsup/5.6.8/css/dynamic-css.php
r339896 r357017 8 8 if ( get_theme_mod('enable_newsup_typo', false) == true) { 9 9 /* 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 }'; 18 15 } 19 16 // Attach to the handle -
newsup/5.6.8/inc/ansar/font/font.php
r355366 r357017 13 13 $menu_font_family = newsup_get_option( 'menu_fontfamily' ); 14 14 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 ); 17 19 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 ) { 19 27 $fonts[ $font ][] = $weight; 20 28 } 21 29 } 22 30 31 $fonts = apply_filters( 'blogarise_google_fonts', $fonts ); 32 33 ksort( $fonts ); 34 23 35 $families = array(); 24 36 25 37 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 ); 29 46 } 30 47 -
newsup/5.6.8/readme.txt
r355366 r357017 1422 1422 = Version 5.6.7 1423 1423 * 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 5 5 Author URI: https://themeansar.com 6 6 Description: 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. 77 Version: 5.6.8 8 8 Tested up to: 7.1 9 9 Requires PHP: 7.4 10 Requires at least: 6. 710 Requires at least: 6.0 11 11 Tags: 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 12 12 License: GNU General Public License v3 or later … … 26 26 --weight2: 600; 27 27 --catWeight: 700; 28 --menuFont: var(--headFont); 28 29 } 29 30 -
newsup/5.6.8/style.css
r355366 r357017 5 5 Author URI: https://themeansar.com 6 6 Description: 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. 77 Version: 5.6.8 8 8 Tested up to: 7.1 9 9 Requires PHP: 7.4 10 Requires at least: 6. 710 Requires at least: 6.0 11 11 Tags: 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 12 12 License: GNU General Public License v3 or later … … 26 26 --weight2: 600; 27 27 --catWeight: 700; 28 --menuFont: var(--headFont); 28 29 } 29 30 … … 216 217 font-size: 14px; 217 218 text-transform: uppercase; 218 font-family: var(-- headFont);219 font-family: var(--menuFont); 219 220 line-height: 2.3; 220 221 }
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)