Plugin Directory

Changeset 3203434


Ignore:
Timestamp:
12/06/2024 07:50:43 AM (12 months ago)
Author:
woodyhayday
Message:

Small tweak to provide better messaging to non-block-theme users, and readme tweaks

Location:
project-pages
Files:
346 added
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • project-pages/trunk/ProjectPages.php

    r3164075 r3203434  
    44Plugin URI: https://projectpages.io
    55Description: Project Pages is the simplest way to share your projects beautifully.
    6 Version: 2.0.4
     6Version: 2.0.5
    77Author: <a href="https://projectpages.io">Project Pages.io</a>
    88*/
  • project-pages/trunk/includes/ProjectPages.Blocks.php

    r3131704 r3203434  
    6363
    6464    }
    65 
    6665    register_block_type( PROJECTPAGES_PATH . 'blocks/build/' . $dir, $args );
    6766  }
  • project-pages/trunk/includes/ProjectPages.Pre.Init.php

    r3131704 r3203434  
    4444        $html = '<div id="project-page-settings-template-info">';
    4545
     46            if ( function_exists('wp_is_block_theme') ){
     47
     48                if ( !wp_is_block_theme() ){
     49                        $html .= '<div><span class="dashicons dashicons-marker"></span> ' . __( 'Your theme is not block-ready, you will not be able to use the modern templates unless you move to a block-ready theme.', 'projectpages' ) .' <a href="'.esc_url( ppurl('kb-not-block-based') ) . '" target="_blank" class="button button-primary">Read More</a></div>';                   
     50                } else {
     51                        $html .= '<div><span class="dashicons dashicons-yes-alt success"></span> ' . __( 'Your theme is block-ready, you are able to use the modern templates.', 'projectpages' ) . '</div>';                   
     52                }
     53
     54            }
    4655            if ( is_child_theme() ){
    4756
  • project-pages/trunk/pages/settings.php

    r3161397 r3203434  
    209209    $pro_flag = apply_filters( 'project_pages_pro_flag', false );
    210210
     211    // theme block based notice
     212    $theme_is_block_based = wp_is_block_theme();
     213
    211214    // Vue App out
    212215
     
    229232                'welcome_url' => get_admin_url( null, 'options.php?page=projectpages' ),
    230233                'nonce' => wp_create_nonce( 'pp-settings-edit' ),
    231                 'pro_flag' => $pro_flag
     234                'pro_flag' => $pro_flag,
     235                'theme_is_block_based' => $theme_is_block_based
    232236            )
    233237        ); ?>;
  • project-pages/trunk/readme.txt

    r3164075 r3203434  
    66Tested up to: 6.6
    77Requires PHP: 7.4
    8 Stable tag: 2.0.4
     8Stable tag: 2.0.5
    99License: GPLv2
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5656- Photographers
    5757- Software Engineers
     58- Side-Project Machines
    5859
    5960
     
    153154
    154155
     156### A note about block-ready themes
     157
     158Please note that if you are using an older theme which is not block-ready, you will not currently be able to use the new templates. This is because they take advantage of the block editor to allow you to customise your project pages.
     159
     160I highly recommend you move to a block-ready theme, though I understand if you have a long-existing website you may not be able to do this quickly. Hence there is legacy support in Project Pages, ( so I'm sorry if the templates don't look as pretty as [the examples](https://projectpages.io/) but unfortunately this is only available to modern themes, as supporting non-block themes is outside of what I can do for this for free! )
     161
    155162* 🧊 **Portfolio Blocks**
    156163
     
    189196### Project Pages - The online home for stuff you make
    190197
    191 Whether you make furniture, buildings, art, take photos, collect rare objects, or invent things: Project Pages is the perfect place to log and share your projects, (especially if you're already using WordPress).
    192 
    193 Built by a maker, for makers. This is adaptable, simple (but not shallow!). Project Pages helps you take the essence of each thing you make, record the making process, and share it in the most constructive way possible.
     198Whether you make furniture, buildings, art, take photos, collect rare objects, or invent things: Project Pages is the perfect place to log and share your side-projects, (especially if you're already using WordPress).
     199
     200Built by a maker, for makers. This is an adaptable, simple (but not shallow!), Project Portfolio generator. Project Pages helps you take the essence of each thing you make, record the making process, and share it in the most constructive way possible.
    194201
    195202🛠️ [ProjectPages.io](https://projectpages.io) | 📚 [Docs](https://projectpages.io/docs) | 👊 [Join the Community](https://projectpages.io/join/)
     
    216223First up the thing 90% of people miss: MAKE A PORTFOLIO. So many people leave folders on their computers never to be shared publically.
    217224
    218 Once you've got your Project Pages up, sharing becomes a consistent part of the workflow. Consistently sharing your work will get it noticed.
     225Once you've got your Project Pages displaying your recent work, sharing becomes a consistent part of the workflow. Consistently sharing your work will get it noticed.
    219226
    220227
     
    322329
    323330== Changelog ==
     331
     332= 2.0.5 - 06/12/2024 =
     333* Added: A further check and notice if user is on a non-block-ready theme, regarding templates
    324334
    325335= 2.0.4 - 07/10/2024 =
Note: See TracChangeset for help on using the changeset viewer.