Plugin Directory

Changeset 1712244


Ignore:
Timestamp:
08/11/2017 06:34:02 PM (9 years ago)
Author:
selthemes
Message:
  • modified post type.
Location:
sel-church-sermons/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • sel-church-sermons/trunk/README.txt

    r1710517 r1712244  
    1 === Sel Church Sermons ===
     1=== Sel Church Sermon ===
    22Contributors: selthemes
    33Tags: church sermon, sermons, church
    44Requires at least: 4.0
    55Tested up to: 4.8
    6 Stable tag: 1.0.0
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1111
    1212== Description ==
    13 This plugin registers a custom post type for sermon items, taxonomy, widgets and metabox (cmb2). 
     13This plugin registers a custom post type for sermon items, taxonomy, widgets and metabox (cmb2).
    1414
    1515*This plugin doesn’t show sermon items in your theme itself.*
     
    1919
    2020= Installation Details =
    21 1. Upload 'sel-church-sermons' to the '/wp-content/plugins/' directory
     211. Upload 'sel-church-sermon' to the '/wp-content/plugins/' directory
    22221. Activate the plugin through the 'Plugins' menu in WordPress.
    23231. Install required plugin, called 'CMB2'.
     
    2929
    3030== Changelog ==
     31= 1.0.1 =
     32* Bug fixes
    3133
    32 = 1.0 =
     34= 1.0.0 =
    3335* Initial release.
  • sel-church-sermons/trunk/inc/sermons-columns.php

    r1708732 r1712244  
    1515
    1616
    17 add_filter('manage_selthemes_sermon_posts_columns', 'sermon_columns_head');
    18 add_action('manage_selthemes_sermon_posts_custom_column', 'sermon_columns', 10, 2);
     17add_filter('manage_selthemes_sermon_posts_columns', 'selt_sermon_columns_head');
     18add_action('manage_selthemes_sermon_posts_custom_column', 'selt_sermon_columns', 10, 2);
    1919
    20 function sermon_columns_head($defaults){
     20function selt_sermon_columns_head($defaults){
    2121    $defaults['sermon_featured_image_preview'] = __('Thumbnail', 'selthemes'); //name of the column
    2222    return $defaults;
    2323}
    2424
    25 function sermon_columns($column_name, $id){
     25function selt_sermon_columns($column_name, $id){
    2626        if($column_name === 'sermon_featured_image_preview'){
    2727        echo the_post_thumbnail( array(50,50) ); //size of the thumbnail
  • sel-church-sermons/trunk/inc/sermons-meta.php

    r1708732 r1712244  
    2929        'id'            => 'selthemes_sermons_meta',
    3030        'title'         => esc_html__( 'Sermon Media', 'selthemes' ),
    31         'object_types'  => array( 'selthemes_sermon', ), // Post type
     31        'object_types'  => array( 'selt_sermon', ), // Post type
    3232        'context'       => 'normal',
    3333        'priority'      => 'high',
  • sel-church-sermons/trunk/inc/sermons-post-type.php

    r1708732 r1712244  
    6060        'labels'                => $labels,
    6161        'supports'              => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', ),
    62         'taxonomies'            => array( 'selthemes_sermon_series', 'selthemes_sermon_topic', 'selthemes_sermon_tag' ),
     62        'taxonomies'            => array( 'selt_sermon_series', 'selt_sermon_topic', 'selt_sermon_tag', 'selt_sermon_speaker' ),
    6363        'hierarchical'          => false,
    6464        'public'                => true,
     
    7676        'capability_type'       => 'post',
    7777    );
    78     register_post_type( 'selthemes_sermon', $args );
     78    register_post_type( 'selt_sermon', $args );
    7979
    8080}
     
    129129        'rewrite'                    => $rewrite,
    130130    );
    131     register_taxonomy( 'selthemes_sermon_series', array( 'selthemes_sermon' ), $args );
     131    register_taxonomy( 'selt_sermon_series', array( 'selt_sermon' ), $args );
    132132
    133133}
     
    181181        'rewrite'                    => $rewrite,
    182182    );
    183     register_taxonomy( 'selthemes_sermon_topic', array( 'selthemes_sermon' ), $args );
     183    register_taxonomy( 'selt_sermon_topic', array( 'selt_sermon' ), $args );
    184184
    185185}
     
    232232        'rewrite'                    => $rewrite,
    233233    );
    234     register_taxonomy( 'selthemes_sermon_tag', array( 'selthemes_sermon' ), $args );
     234    register_taxonomy( 'selt_sermon_tag', array( 'selt_sermon' ), $args );
    235235
    236236}
     
    282282        'rewrite'                    => $rewrite,
    283283    );
    284     register_taxonomy( 'selthemes_sermon_speaker', array( 'selthemes_sermon' ), $args );
     284    register_taxonomy( 'selt_sermon_speaker', array( 'selt_sermon' ), $args );
    285285
    286286}
  • sel-church-sermons/trunk/inc/sermons-widget.php

    r1708732 r1712244  
    5656         */
    5757        $r = new WP_Query( apply_filters( 'widget_sermons_args', array(
    58             'post_type'             => 'selthemes_sermon',
     58            'post_type'             => 'selt_sermon',
    5959            'posts_per_page'      => $number,
    6060            'no_found_rows'         => true,
  • sel-church-sermons/trunk/inc/tgmpa/required-plugin.php

    r1708732 r1712244  
    7979     */
    8080    $config = array(
    81         'id'           => 'selthemes',                 // Unique ID for hashing notices for multiple instances of TGMPA.
     81        'id'           => 'selt_sermon',                 // Unique ID for hashing notices for multiple instances of TGMPA.
    8282        'default_path' => '',                      // Default absolute path to bundled plugins.
    8383        'menu'         => 'tgmpa-install-plugins', // Menu slug.
  • sel-church-sermons/trunk/plugin.php

    r1708740 r1712244  
    44 * Plugin Name:       Sel Church Sermons
    55 * Plugin URI:        https://selthemes.com/plugins/sel-sermons
    6  * Description:       This plugin created for official church themes from Selthemes.com. This plugin registers a custom post type for sermon items, taxonomy, widgets and metabox (cmb2).
    7  * Version:           1.0.0
     6 * Description:        This plugin created for official church themes from Selthemes.com. This plugin registers a custom post type for sermon items, taxonomy, widgets and metabox (cmb2).
     7 * Version:           1.0.1
    88 * Author:            Selthemes
    99 * Author URI:        https://selthemes.com
     
    4343function selthemes_sermons_activate() {
    4444    selthemes_church_sermon_post_type();
    45     selthemes_sermon_series_taxonomy();
    46     selthemes_sermon_topic_taxonomy();
    47     selthemes_sermon_tag_taxonomy();
    48     selthemes_sermon_speaker_taxonomy();
     45  selthemes_sermon_series_taxonomy();
     46  selthemes_sermon_topic_taxonomy();
     47  selthemes_sermon_tag_taxonomy();
     48  selthemes_sermon_speaker_taxonomy();
    4949
    5050    flush_rewrite_rules();
Note: See TracChangeset for help on using the changeset viewer.