Changeset 2886956
- Timestamp:
- 03/25/2023 11:59:14 PM (17 months ago)
- Location:
- sheet-music-library/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sheet-music-library/trunk/admin/customize-options.php
r1319668 r2886956 24 24 'section' => 'sheet_music_library', 25 25 ) ); 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 26 56 } -
sheet-music-library/trunk/sheet-music-library.php
r2270479 r2886956 4 4 * Plugin URI: http://celloexpressions.com/plugins/sheet-music-library 5 5 * Description: Add a sheet music library, including PDFs, audio, descriptions and more to your site. 6 * Version: 1. 26 * Version: 1. 7 7 * Author: Nick Halsey 8 8 * Author URI: http://celloexpressions.com/ … … 12 12 13 13 ===================================================================================== 14 Copyright (C) 20 18Nick Halsey14 Copyright (C) 20 Nick Halsey 15 15 16 16 This program is free software; you can redistribute it and/or … … 36 36 require( plugin_dir_path( __FILE__ ) . '/taxonomies.php' ); 37 37 38 39 40 38 41 // Set up custom post meta. 39 42 require( plugin_dir_path( __FILE__ ) . '/admin/post-meta.php' ); … … 44 47 // Plugin options UI, via the Customizer. 45 48 require( plugin_dir_path( __FILE__ ) . '/admin/customize-options.php' ); 49 50 51 46 52 47 53 // Load template-filtering functions. … … 63 69 add_action( 'wp_enqueue_scripts', 'sml_enqueue_scripts' ); 64 70 function sml_enqueue_scripts() { 65 if ( ! current_theme_supports( 'sheet_music_library' ) ) {71 if ( ! current_theme_supports( 'sheet_music_library' ) ) { 66 72 wp_enqueue_style( 'sheet-music-library', plugins_url( '/template/sheet-music-library.css', __FILE__ ) ); 67 73 } … … 72 78 add_filter( 'the_excerpt', 'sml_template_filter' ); 73 79 function sml_template_filter( $the_content ) { 74 if ( 'sheet_music' === get_post_type() && ! current_theme_supports( 'sheet_music_library' ) ) {80 if ( 'sheet_music' === get_post_type() && ! current_theme_supports( 'sheet_music_library' ) ) { 75 81 if ( is_singular() ) { 76 82 return sml_single_content_filter( $the_content );
Note: See TracChangeset
for help on using the changeset viewer.