Make WordPress Themes

Changeset 195984

Timestamp:
07/05/2023 09:03:02 AM (2 years ago)
Author:
themedropbox
Message:

New version of PressBook Media - 1.2.8

Location:
pressbook-media/1.2.8
Files:
8 edited
1 copied

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 {
    22    color: #094ae9;
    33}
    44
    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 {
    88    color: #a41e6d;
    99}
  • 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 {
    22    color: #094ae9;
    33}
    44
    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 {
    88    color: #a41e6d;
    99}
  • pressbook-media/1.2.8/functions.php

    r186336 r195984  
    1010defined( 'ABSPATH' ) || die();
    1111
    12 define( 'PRESSBOOK_MEDIA_VERSION', '1.2.7' );
     12define( 'PRESSBOOK_MEDIA_VERSION', '1.2.8' );
    1313
    1414/**
  • pressbook-media/1.2.8/inc/classes/class-pressbook-media-editor.php

    r160100 r195984  
    1111class PressBook_Media_Editor extends PressBook\Editor {
    1212    /**
    13      * Enqueue editor assets.
     13     * Register service features.
    1414     */
    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();
    1927        }
     28    }
    2029
     30    /**
     31     * Enqueue assets.
     32     */
     33    public function enqueue_assets() {
    2134        // Enqueue fonts.
    2235        wp_enqueue_style( 'pressbook-media-editor-fonts', PressBook_Media_Scripts::fonts_url(), array(), null ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion
     
    3447
    3548    /**
     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    /**
    3671     * Add inline style for fonts in the block editor.
    3772     */
     
    4277        $mulish = _x( 'on', 'Mulish font (in the editor): on or off', 'pressbook-media' );
    4378        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;}' );
    4580        }
    4681
  • pressbook-media/1.2.8/languages/pressbook-media.pot

    r186336 r195984  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: PressBook Media 1.2.7\n"
     5"Project-Id-Version: PressBook Media 1.2.8\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/pressbook-media\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-03-02T07:44:09+00:00\n"
     12"POT-Creation-Date: 2023-07-04T17:23:33+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.5.0\n"
     
    122122
    123123#. 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:42
     124#: inc/classes/class-pressbook-media-editor.php:77
    125125msgctxt "Mulish font (in the editor): on or off"
    126126msgid "on"
     
    128128
    129129#. 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:48
     130#: inc/classes/class-pressbook-media-editor.php:83
    131131msgctxt "Source Sans Pro font (in the editor): on or off"
    132132msgid "on"
  • pressbook-media/1.2.8/readme.txt

    r186336 r195984  
    44Donate link: https://scriptstown.com/
    55Requires at least: 5.3
    6 Tested up to: 6.2
     6Tested up to: 6.3
    77Requires PHP: 7.0
    8 Stable tag: 1.2.7
     8Stable tag: 1.2.8
    99License: GNU General Public License v2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5959
    6060== Changelog ==
     61
     62= 1.2.8 =
     63* Improvement: Changed hook for editor styles.
     64* Improvement: Minor CSS fixes.
    6165
    6266= 1.2.7 =
  • pressbook-media/1.2.8/style-rtl.css

    r186336 r195984  
    66Description: 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.
    77Template: pressbook
    8 Version: 1.2.7
     8Version: 1.2.8
    99Requires at least: 5.3
    10 Tested up to: 6.2
     10Tested up to: 6.3
    1111Requires PHP: 7.0
    1212License: GNU General Public License v2 or later
  • pressbook-media/1.2.8/style.css

    r186336 r195984  
    66Description: 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.
    77Template: pressbook
    8 Version: 1.2.7
     8Version: 1.2.8
    99Requires at least: 5.3
    10 Tested up to: 6.2
     10Tested up to: 6.3
    1111Requires PHP: 7.0
    1212License: GNU General Public License v2 or later
Note: See TracChangeset for help on using the changeset viewer.