Changeset 195984
- Timestamp:
- 07/05/2023 09:03:02 AM (2 years ago)
- Location:
- pressbook-media/1.2.8
- Files:
-
- 8 edited
- 1 copied
- . (copied) (copied from pressbook-media/1.2.7)
- assets/css/block-editor-rtl.css (modified) (1 diff)
- assets/css/block-editor.css (modified) (1 diff)
- functions.php (modified) (1 diff)
- inc/classes/class-pressbook-media-editor.php (modified) (3 diffs)
- languages/pressbook-media.pot (modified) (4 diffs)
- readme.txt (modified) (2 diffs)
- style-rtl.css (modified) (1 diff)
- style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pressbook-media/1.2.8/assets/css/block-editor-rtl.css
r177574 r195984 1 . block-editor-page.editor-styles-wrapper a {1 .editor-styles-wrapper.editor-styles-wrapper a { 2 2 color: #094ae9; 3 3 } 4 4 5 . block-editor-page.editor-styles-wrapper a:hover,6 . block-editor-page.editor-styles-wrapper a:focus,7 . block-editor-page.editor-styles-wrapper a:active {5 .editor-styles-wrapper.editor-styles-wrapper a:hover, 6 .editor-styles-wrapper.editor-styles-wrapper a:focus, 7 .editor-styles-wrapper.editor-styles-wrapper a:active { 8 8 color: #a41e6d; 9 9 } -
pressbook-media/1.2.8/assets/css/block-editor.css
r177574 r195984 1 . block-editor-page.editor-styles-wrapper a {1 .editor-styles-wrapper.editor-styles-wrapper a { 2 2 color: #094ae9; 3 3 } 4 4 5 . block-editor-page.editor-styles-wrapper a:hover,6 . block-editor-page.editor-styles-wrapper a:focus,7 . block-editor-page.editor-styles-wrapper a:active {5 .editor-styles-wrapper.editor-styles-wrapper a:hover, 6 .editor-styles-wrapper.editor-styles-wrapper a:focus, 7 .editor-styles-wrapper.editor-styles-wrapper a:active { 8 8 color: #a41e6d; 9 9 } -
pressbook-media/1.2.8/functions.php
r186336 r195984 10 10 defined( 'ABSPATH' ) || die(); 11 11 12 define( 'PRESSBOOK_MEDIA_VERSION', '1.2. 7' );12 define( 'PRESSBOOK_MEDIA_VERSION', '1.2.8' ); 13 13 14 14 /** -
pressbook-media/1.2.8/inc/classes/class-pressbook-media-editor.php
r160100 r195984 11 11 class PressBook_Media_Editor extends PressBook\Editor { 12 12 /** 13 * Enqueue editor assets.13 * Register service features. 14 14 */ 15 public function enqueue_editor_assets() { 16 $current_screen = get_current_screen(); 17 if ( $current_screen && in_array( $current_screen->id, array( 'widgets', 'nav-menus' ), true ) ) { 18 return; 15 public function register() { 16 add_action( 'after_setup_theme', array( $this, 'support_editor_styles' ) ); 17 18 add_action( 'enqueue_block_assets', array( $this, 'enqueue_block_assets' ) ); 19 } 20 21 /** 22 * Enqueue block assets. 23 */ 24 public function enqueue_block_assets() { 25 if ( $this->is_block_screen() ) { 26 $this->enqueue_assets(); 19 27 } 28 } 20 29 30 /** 31 * Enqueue assets. 32 */ 33 public function enqueue_assets() { 21 34 // Enqueue fonts. 22 35 wp_enqueue_style( 'pressbook-media-editor-fonts', PressBook_Media_Scripts::fonts_url(), array(), null ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion … … 34 47 35 48 /** 49 * Check if block editor screen, but not widgets or nav-menus screen. 50 * 51 * @return bool 52 */ 53 public function is_block_screen() { 54 if ( function_exists( '\get_current_screen' ) ) { 55 $current_screen = get_current_screen(); 56 if ( $current_screen ) { 57 if ( \in_array( $current_screen->id, array( 'widgets', 'nav-menus' ), true ) ) { 58 return false; 59 } 60 61 if ( \method_exists( $current_screen, 'is_block_editor' ) && $current_screen->is_block_editor() ) { 62 return true; 63 } 64 } 65 } 66 67 return false; 68 } 69 70 /** 36 71 * Add inline style for fonts in the block editor. 37 72 */ … … 42 77 $mulish = _x( 'on', 'Mulish font (in the editor): on or off', 'pressbook-media' ); 43 78 if ( 'off' !== $mulish ) { 44 $fonts_css .= ( '. block-editor-page.editor-styles-wrapper{font-family:\'Mulish\', sans-serif;}' );79 $fonts_css .= ( '.editor-styles-wrapper.editor-styles-wrapper{font-family:\'Mulish\', sans-serif;}' ); 45 80 } 46 81 -
pressbook-media/1.2.8/languages/pressbook-media.pot
r186336 r195984 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: PressBook Media 1.2. 7\n"5 "Project-Id-Version: PressBook Media 1.2.8\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/theme/pressbook-media\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2023-0 3-02T07:44:09+00:00\n"12 "POT-Creation-Date: 2023-07-04T17:23:33+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.5.0\n" … … 122 122 123 123 #. translators: If there are characters in your language that are not supported by Mulish, translate this to 'off'. Do not translate into your own language. 124 #: inc/classes/class-pressbook-media-editor.php: 42124 #: inc/classes/class-pressbook-media-editor.php:77 125 125 msgctxt "Mulish font (in the editor): on or off" 126 126 msgid "on" … … 128 128 129 129 #. translators: If there are characters in your language that are not supported by Source Sans Pro, translate this to 'off'. Do not translate into your own language. 130 #: inc/classes/class-pressbook-media-editor.php: 48130 #: inc/classes/class-pressbook-media-editor.php:83 131 131 msgctxt "Source Sans Pro font (in the editor): on or off" 132 132 msgid "on" -
pressbook-media/1.2.8/readme.txt
r186336 r195984 4 4 Donate link: https://scriptstown.com/ 5 5 Requires at least: 5.3 6 Tested up to: 6. 26 Tested up to: 6.3 7 7 Requires PHP: 7.0 8 Stable tag: 1.2. 78 Stable tag: 1.2.8 9 9 License: GNU General Public License v2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 59 59 60 60 == Changelog == 61 62 = 1.2.8 = 63 * Improvement: Changed hook for editor styles. 64 * Improvement: Minor CSS fixes. 61 65 62 66 = 1.2.7 = -
pressbook-media/1.2.8/style-rtl.css
r186336 r195984 6 6 Description: PressBook Media is a professional, fast, clean, and modern theme for business, agency, and educational websites. The theme is unique, well-designed, fully responsive, and mobile-friendly with an elegant layout and excellent typography. This multi-purpose theme with an interactive look is very well-suited for digital marketing and affiliate marketing agencies, consultancy, firms, news, blogging, magazine, and institutional website. The components of the theme include sticky-floating single and double sidebars, top advertisement banner, info section with contact details, accessible multi-level dropdown menu, social links, topbar with gradient color, footer, and side widgets, multiple block patterns including hero section, buttons, and columns, block areas to place any custom Gutenberg blocks in the header and footer, and many options for easy customization. Even with many elements, the theme loads very quickly with high speed and fast loading time. The configuration of themes is never that easy as this theme offers with its flexible options that makes it very simple to configure. The theme is great for bloggers, writers, and marketers. The widget blocks can be used to place Google Adsense scripts to show ads on the sidebars. It is optimized for SEO and offers high accessibility as well as a great performance with minimal dependency. This theme can also be used to create websites for schools, institutes, academy, or university portal that offers courses, guides, tutorials, and documentation. Additionally, this can be used to publish stories, newsfeeds, reviews, images, movies, videos, etc. The info section allows placing CTA buttons for users to book appointments or request a quote, etc. The theme comes with support for WooCommerce, Jetpack's infinite scrolling, and page builder plugins like Elementor, Divi, etc. This theme is also translation-ready with RTL language support. Many options are available to customize the theme that includes blog options, accent colors, header and background image, related posts options, page-level settings, etc. There are many page templates available to create fluid-width pages to showcase services, portfolios, gallery, and testimonials. 7 7 Template: pressbook 8 Version: 1.2. 78 Version: 1.2.8 9 9 Requires at least: 5.3 10 Tested up to: 6. 210 Tested up to: 6.3 11 11 Requires PHP: 7.0 12 12 License: GNU General Public License v2 or later -
pressbook-media/1.2.8/style.css
r186336 r195984 6 6 Description: PressBook Media is a professional, fast, clean, and modern theme for business, agency, and educational websites. The theme is unique, well-designed, fully responsive, and mobile-friendly with an elegant layout and excellent typography. This multi-purpose theme with an interactive look is very well-suited for digital marketing and affiliate marketing agencies, consultancy, firms, news, blogging, magazine, and institutional website. The components of the theme include sticky-floating single and double sidebars, top advertisement banner, info section with contact details, accessible multi-level dropdown menu, social links, topbar with gradient color, footer, and side widgets, multiple block patterns including hero section, buttons, and columns, block areas to place any custom Gutenberg blocks in the header and footer, and many options for easy customization. Even with many elements, the theme loads very quickly with high speed and fast loading time. The configuration of themes is never that easy as this theme offers with its flexible options that makes it very simple to configure. The theme is great for bloggers, writers, and marketers. The widget blocks can be used to place Google Adsense scripts to show ads on the sidebars. It is optimized for SEO and offers high accessibility as well as a great performance with minimal dependency. This theme can also be used to create websites for schools, institutes, academy, or university portal that offers courses, guides, tutorials, and documentation. Additionally, this can be used to publish stories, newsfeeds, reviews, images, movies, videos, etc. The info section allows placing CTA buttons for users to book appointments or request a quote, etc. The theme comes with support for WooCommerce, Jetpack's infinite scrolling, and page builder plugins like Elementor, Divi, etc. This theme is also translation-ready with RTL language support. Many options are available to customize the theme that includes blog options, accent colors, header and background image, related posts options, page-level settings, etc. There are many page templates available to create fluid-width pages to showcase services, portfolios, gallery, and testimonials. 7 7 Template: pressbook 8 Version: 1.2. 78 Version: 1.2.8 9 9 Requires at least: 5.3 10 Tested up to: 6. 210 Tested up to: 6.3 11 11 Requires PHP: 7.0 12 12 License: GNU General Public License v2 or later
Note: See TracChangeset for help on using the changeset viewer.