close

Plugin Directory

Changeset 3071422


Ignore:
Timestamp:
04/16/2024 09:07:01 AM (2 years ago)
Author:
osompress
Message:

update to 1.2

Location:
genesis-author-pro
Files:
33 added
2 edited

Legend:

Unmodified
Added
Removed
  • genesis-author-pro/trunk/plugin.php

    r3012924 r3071422  
    55Plugin URI: https://wordpress.org/plugins/genesis-author-pro/
    66Description: Adds default Book CPT to any Genesis HTML5 theme.
    7 Version: 1.1
     7Version: 1.2
    88Author: OsomPress
    99Author URI: https://www.osompress.com/
     
    6868add_action( 'init', array( 'Genesis_Author_Pro_CPT', 'init' ), 1 );
    6969
     70add_action( 'init', 'author_pro_init' );
     71/**
     72 * Action added on the init hook.
     73 * @access public
     74 * @return void
     75 */
     76
     77function author_pro_init(){
     78
     79    add_action( 'after_setup_theme'         , array( 'Genesis_Author_Pro_CPT', 'maybe_add_image_size'              )        );
     80    add_action( 'load-post.php'             , array( 'Genesis_Author_Pro'    , 'maybe_do_book_meta'                )        );
     81    add_action( 'load-post-new.php'         , array( 'Genesis_Author_Pro'    , 'maybe_do_book_meta'                )        );
     82    add_action( 'load-edit-tags.php'        , array( 'Genesis_Author_Pro'    , 'maybe_enqueue_scripts'             )        );
     83    add_filter( 'bulk_post_updated_messages', array( 'Genesis_Author_Pro'    , 'bulk_updated_messages'             ), 10, 2 );
     84    add_action( 'save_post'                 , array( 'Genesis_Author_Pro'    , 'maybe_do_save'                     ), 10, 2 );
     85
     86}
     87
    7088add_action( 'genesis_init', 'genesis_author_pro_init' );
     89
    7190/**
    7291 * Action added on the genesis_init hook.
     
    7796 * @return void
    7897 */
     98
    7999function genesis_author_pro_init(){
    80100
    81101    $archive_page_hook = sprintf( 'load-%1$s_page_genesis-cpt-archive-%1$s', 'books' );
    82 
    83     add_filter( 'template_include', array( 'Genesis_Author_Pro_Template', 'maybe_include_template' ) );
    84 
    85102    add_action( 'init'                      , array( 'Genesis_Author_Pro_CPT', 'maybe_remove_genesis_sidebar_form' ), 11    );
    86103    add_action( 'admin_init'                , array( 'Genesis_Author_Pro_CPT', 'remove_genesis_layout_options'     ), 11    );
    87     add_action( 'after_setup_theme'         , array( 'Genesis_Author_Pro_CPT', 'maybe_add_image_size'              )        );
    88     add_action( 'load-post.php'             , array( 'Genesis_Author_Pro'    , 'maybe_do_book_meta'                )        );
    89     add_action( 'load-post-new.php'         , array( 'Genesis_Author_Pro'    , 'maybe_do_book_meta'                )        );
    90     add_action( 'load-edit-tags.php'        , array( 'Genesis_Author_Pro'    , 'maybe_enqueue_scripts'             )        );
     104    add_filter( 'template_include', array( 'Genesis_Author_Pro_Template', 'maybe_include_template' ) );
    91105    add_action( $archive_page_hook          , array( 'Genesis_Author_Pro'    , 'maybe_enqueue_scripts'             )        );
    92     add_filter( 'bulk_post_updated_messages', array( 'Genesis_Author_Pro'    , 'bulk_updated_messages'             ), 10, 2 );
    93     add_action( 'save_post'                 , array( 'Genesis_Author_Pro'    , 'maybe_do_save'                     ), 10, 2 );
    94106    add_action( 'widgets_init'              , array( 'Genesis_Author_Pro'    , 'widgets_init'                      )        );
    95107
  • genesis-author-pro/trunk/readme.txt

    r3063463 r3071422  
    44Requires at least: 5.0
    55Tested up to: 6.5
    6 Stable tag: 1.1
     6Stable tag: 1.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    99
    10 Adds a book library to any Genesis child theme to attractively display book details in single and archive views.
     10Adds a book library to any any WordPress theme.
     11In Genesis child theme also attractively display book details in single and archive views.
    1112
    1213== Description ==
     
    5657The date will be stored in a computer readable format and then output following the date format set in the WordPress options.
    5758
    58 Templates are built into the plugin with default CSS to create the basic layout for all child themes. Templates follow standard WP template hierarchy so if the template is in the child theme, that will override the template in the plugin. Templates include:
     59For Genesis child themes also offer templates that are built into the plugin with default CSS to create the basic layout for all child themes. Templates follow standard WP template hierarchy so if the template is in the child theme, that will override the template in the plugin. Templates include:
    5960
    6061* single-books.php
     
    7273
    7374== Changelog ==
     75
     76= 1.2 =
     77* You can use now the plugin with other themes, not only Genesis child themes.
    7478
    7579= 1.1 =
Note: See TracChangeset for help on using the changeset viewer.