Changeset 1712244
- Timestamp:
- 08/11/2017 06:34:02 PM (9 years ago)
- Location:
- sel-church-sermons/trunk
- Files:
-
- 7 edited
-
README.txt (modified) (4 diffs)
-
inc/sermons-columns.php (modified) (1 diff)
-
inc/sermons-meta.php (modified) (1 diff)
-
inc/sermons-post-type.php (modified) (6 diffs)
-
inc/sermons-widget.php (modified) (1 diff)
-
inc/tgmpa/required-plugin.php (modified) (1 diff)
-
plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sel-church-sermons/trunk/README.txt
r1710517 r1712244 1 === Sel Church Sermon s===1 === Sel Church Sermon === 2 2 Contributors: selthemes 3 3 Tags: church sermon, sermons, church 4 4 Requires at least: 4.0 5 5 Tested up to: 4.8 6 Stable tag: 1.0. 06 Stable tag: 1.0.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 11 11 12 12 == Description == 13 This plugin registers a custom post type for sermon items, taxonomy, widgets and metabox (cmb2). 13 This plugin registers a custom post type for sermon items, taxonomy, widgets and metabox (cmb2). 14 14 15 15 *This plugin doesn’t show sermon items in your theme itself.* … … 19 19 20 20 = Installation Details = 21 1. Upload 'sel-church-sermon s' to the '/wp-content/plugins/' directory21 1. Upload 'sel-church-sermon' to the '/wp-content/plugins/' directory 22 22 1. Activate the plugin through the 'Plugins' menu in WordPress. 23 23 1. Install required plugin, called 'CMB2'. … … 29 29 30 30 == Changelog == 31 = 1.0.1 = 32 * Bug fixes 31 33 32 = 1.0 =34 = 1.0.0 = 33 35 * Initial release. -
sel-church-sermons/trunk/inc/sermons-columns.php
r1708732 r1712244 15 15 16 16 17 add_filter('manage_selthemes_sermon_posts_columns', 'se rmon_columns_head');18 add_action('manage_selthemes_sermon_posts_custom_column', 'se rmon_columns', 10, 2);17 add_filter('manage_selthemes_sermon_posts_columns', 'selt_sermon_columns_head'); 18 add_action('manage_selthemes_sermon_posts_custom_column', 'selt_sermon_columns', 10, 2); 19 19 20 function se rmon_columns_head($defaults){20 function selt_sermon_columns_head($defaults){ 21 21 $defaults['sermon_featured_image_preview'] = __('Thumbnail', 'selthemes'); //name of the column 22 22 return $defaults; 23 23 } 24 24 25 function se rmon_columns($column_name, $id){25 function selt_sermon_columns($column_name, $id){ 26 26 if($column_name === 'sermon_featured_image_preview'){ 27 27 echo the_post_thumbnail( array(50,50) ); //size of the thumbnail -
sel-church-sermons/trunk/inc/sermons-meta.php
r1708732 r1712244 29 29 'id' => 'selthemes_sermons_meta', 30 30 'title' => esc_html__( 'Sermon Media', 'selthemes' ), 31 'object_types' => array( 'selt hemes_sermon', ), // Post type31 'object_types' => array( 'selt_sermon', ), // Post type 32 32 'context' => 'normal', 33 33 'priority' => 'high', -
sel-church-sermons/trunk/inc/sermons-post-type.php
r1708732 r1712244 60 60 'labels' => $labels, 61 61 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', ), 62 'taxonomies' => array( 'selt hemes_sermon_series', 'selthemes_sermon_topic', 'selthemes_sermon_tag' ),62 'taxonomies' => array( 'selt_sermon_series', 'selt_sermon_topic', 'selt_sermon_tag', 'selt_sermon_speaker' ), 63 63 'hierarchical' => false, 64 64 'public' => true, … … 76 76 'capability_type' => 'post', 77 77 ); 78 register_post_type( 'selt hemes_sermon', $args );78 register_post_type( 'selt_sermon', $args ); 79 79 80 80 } … … 129 129 'rewrite' => $rewrite, 130 130 ); 131 register_taxonomy( 'selt hemes_sermon_series', array( 'selthemes_sermon' ), $args );131 register_taxonomy( 'selt_sermon_series', array( 'selt_sermon' ), $args ); 132 132 133 133 } … … 181 181 'rewrite' => $rewrite, 182 182 ); 183 register_taxonomy( 'selt hemes_sermon_topic', array( 'selthemes_sermon' ), $args );183 register_taxonomy( 'selt_sermon_topic', array( 'selt_sermon' ), $args ); 184 184 185 185 } … … 232 232 'rewrite' => $rewrite, 233 233 ); 234 register_taxonomy( 'selt hemes_sermon_tag', array( 'selthemes_sermon' ), $args );234 register_taxonomy( 'selt_sermon_tag', array( 'selt_sermon' ), $args ); 235 235 236 236 } … … 282 282 'rewrite' => $rewrite, 283 283 ); 284 register_taxonomy( 'selt hemes_sermon_speaker', array( 'selthemes_sermon' ), $args );284 register_taxonomy( 'selt_sermon_speaker', array( 'selt_sermon' ), $args ); 285 285 286 286 } -
sel-church-sermons/trunk/inc/sermons-widget.php
r1708732 r1712244 56 56 */ 57 57 $r = new WP_Query( apply_filters( 'widget_sermons_args', array( 58 'post_type' => 'selt hemes_sermon',58 'post_type' => 'selt_sermon', 59 59 'posts_per_page' => $number, 60 60 'no_found_rows' => true, -
sel-church-sermons/trunk/inc/tgmpa/required-plugin.php
r1708732 r1712244 79 79 */ 80 80 $config = array( 81 'id' => 'selt hemes', // Unique ID for hashing notices for multiple instances of TGMPA.81 'id' => 'selt_sermon', // Unique ID for hashing notices for multiple instances of TGMPA. 82 82 'default_path' => '', // Default absolute path to bundled plugins. 83 83 'menu' => 'tgmpa-install-plugins', // Menu slug. -
sel-church-sermons/trunk/plugin.php
r1708740 r1712244 4 4 * Plugin Name: Sel Church Sermons 5 5 * 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. 06 * 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 8 8 * Author: Selthemes 9 9 * Author URI: https://selthemes.com … … 43 43 function selthemes_sermons_activate() { 44 44 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(); 49 49 50 50 flush_rewrite_rules();
Note: See TracChangeset
for help on using the changeset viewer.