Plugin Directory

Changeset 2970366


Ignore:
Timestamp:
09/22/2023 07:47:53 PM (2 years ago)
Author:
NodleRedoy
Message:

adds 2.2.5

Location:
simple-post-template
Files:
62 added
3 edited

Legend:

Unmodified
Added
Removed
  • simple-post-template/trunk/public/class-advanced-content-templates-public.php

    r1632943 r2970366  
    2121 * @author     Clifton Griffin <[email protected]>
    2222 */
    23 class Simple_Content_Templates_Public {
     23class Simple_Content_Templates_Public
     24{
    2425
    25     /**
    26     * The ID of this plugin.
    27     *
    28     * @since    1.0.0
    29     * @access   private
    30     * @var      string    $Simple_Content_Templates    The ID of this plugin.
    31     */
    32     private $plugin_name;
     26    /**
     27    * The ID of this plugin.
     28    *
     29    * @since    1.0.0
     30    * @access   private
     31    * @var      string    $Simple_Content_Templates    The ID of this plugin.
     32    */
     33    private $plugin_name;
    3334
    34     /**
    35     * The version of this plugin.
    36     *
    37     * @since    1.0.0
    38     * @access   private
    39     * @var      string    $version    The current version of this plugin.
    40     */
    41     private $version;
     35    /**
     36    * The version of this plugin.
     37    *
     38    * @since    1.0.0
     39    * @access   private
     40    * @var      string    $version    The current version of this plugin.
     41    */
     42    private $version;
    4243
    43     /**
    44     * Main instance of this plugin.
    45     *
    46     * @since    1.0.0
    47     * @access   private
    48     * @var      string    $plugin_name    The ID of this plugin.
    49     */
    50     private $plugin;
     44    /**
     45    * Main instance of this plugin.
     46    *
     47    * @since    1.0.0
     48    * @access   private
     49    * @var      string    $plugin_name    The ID of this plugin.
     50    */
     51    private $plugin;
    5152
    52     /**
    53      * Initialize the class and set its properties.
    54      *
    55      * @since    1.0.0
    56      * @param      string    $Simple_Content_Templates       The name of the plugin.
    57      * @param      string    $version    The version of this plugin.
    58      */
    59     public function __construct( $Simple_Content_Templates, $version, $plugin ) {
     53    /**
     54     * Initialize the class and set its properties.
     55     *
     56     * @since    1.0.0
     57     * @param      string    $Simple_Content_Templates       The name of the plugin.
     58     * @param      string    $version    The version of this plugin.
     59     */
     60    public function __construct($Simple_Content_Templates, $version, $plugin)
     61    {
    6062
    61         $this->plugin_name  = $Simple_Content_Templates;
    62         $this->version = $version;
    63         $this->plugin = $plugin;
     63        $this->plugin_name  = $Simple_Content_Templates;
     64        $this->version = $version;
     65        $this->plugin = $plugin;
     66    }
    6467
    65     }
     68    /**
     69     * Registers the post type
     70     *
     71     * @access public
     72     * @return void
     73     */
     74    function register_post_type()
     75    {
    6676
    67     /**
    68      * Registers the post type
    69      *
    70      * @access public
    71      * @return void
    72      */
    73     function register_post_type() {
     77        // Register Post Type
     78        $menu_icon = "dashicons-welcome-write-blog";
    7479
    75         // Register Post Type
    76         $menu_icon = "dashicons-welcome-write-blog";
    77        
    78         register_post_type($this->plugin->post_type, array( 'label' => 'Simple Content Templates','description' => '','public' => false, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true,'capability_type' => 'post','menu_icon' => $menu_icon, 'hierarchical' => false,'rewrite' => array('slug' => ''), 'query_var' => true, 'exclude_from_search' => true, 'show_in_nav_menus' => false, 'supports' => array('title','editor','excerpt','comments','revisions'),'labels' => array (
    79           'name' => 'Simple Content Templates',
    80           'singular_name' => 'Content Template',
    81           'menu_name' => 'Content Templates',
    82           'add_new' => 'Add Template',
    83           'add_new_item' => 'Add New Template',
    84           'edit' => 'Edit',
    85           'edit_item' => 'Edit Template',
    86           'new_item' => 'New Template',
    87           'view' => 'View Template',
    88           'view_item' => 'View Template',
    89           'search_items' => 'Search Templates',
    90           'not_found' => 'No Templates Found',
    91           'not_found_in_trash' => 'No Templates Found in Trash',
    92           'parent' => 'Parent Template',
    93         ),) );
    94 
    95     }
    96 
     80        register_post_type(
     81            $this->plugin->post_type,
     82            array(
     83                'label' => 'Simple Content Templates',
     84                'description' => '',
     85                'public' => false,
     86                'publicly_queryable' => false,
     87                'has_archive' => false,
     88                'show_ui' => true,
     89                'show_in_menu' => true,
     90                'capability_type' => 'post',
     91                'menu_icon' => $menu_icon,
     92                'hierarchical' => false,
     93                'rewrite' => array('slug' => ''),
     94                'query_var' => true,
     95                'exclude_from_search' => true,
     96                'show_in_nav_menus' => false,
     97                'supports' =>
     98                    array(
     99                        'title',
     100                        'editor',
     101                        'excerpt',
     102                        'comments',
     103                        'revisions'
     104                    ),
     105                'labels' =>
     106                    array (
     107                        'name' => 'Simple Content Templates',
     108                        'singular_name' => 'Content Template',
     109                        'menu_name' => 'Content Templates',
     110                        'add_new' => 'Add Template',
     111                        'add_new_item' => 'Add New Template',
     112                        'edit' => 'Edit',
     113                        'edit_item' => 'Edit Template',
     114                        'new_item' => 'New Template',
     115                        'view' => 'View Template',
     116                        'view_item' => 'View Template',
     117                        'search_items' => 'Search Templates',
     118                        'not_found' => 'No Templates Found',
     119                        'not_found_in_trash' => 'No Templates Found in Trash',
     120                        'parent' => 'Parent Template',
     121                    ),
     122            )
     123        );
     124    }
    97125}
  • simple-post-template/trunk/readme.txt

    r2970365 r2970366  
    44Requires at least: 3.6
    55Tested up to: 6.3.1
    6 Stable tag: 2.2.4
     6Stable tag: 2.2.5
    77
    88Create content templates for your posts and pages. When creating a new post or page use one of your content templates as the starting point!
     
    3737== Changelog ==
    3838
     39**Version 2.2.5**
     40
     41* Bump version
     42* Missed on small fix I wanted to make earlier, tweak applied
     43
    3944**Version 2.2.4**
    4045
  • simple-post-template/trunk/simple-content-template.php

    r2970365 r2970366  
    1717 * Plugin URI:        https://www.advancedcontenttemplates.com/
    1818 * Description:       A simple to use content template system. Create similarly structured posts & pages with ease.
    19  * Version:           2.2.4
     19 * Version:           2.2.5
    2020 * Author:            Clifton Griffin
    2121 * Author URI:        https://objectiv.co
     
    3232}
    3333
    34 define('CGD_SCT_VERSION', '2.2.4');
     34define('CGD_SCT_VERSION', '2.2.5');
    3535define('CGD_SCT_NAME', 'Simple Content Templates');
    3636
Note: See TracChangeset for help on using the changeset viewer.