Plugin Directory

Changeset 2886956

Timestamp:
03/25/2023 11:59:14 PM (17 months ago)
Author:
celloexpressions
Message:

Sheet Music Library: Add UI options to replicate theme supports toggle. Add references to new block function files.

Location:
sheet-music-library/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sheet-music-library/trunk/admin/customize-options.php

    r1319668 r2886956  
    2424        'section' => 'sheet_music_library',
    2525    ) );
     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
    2656}
  • sheet-music-library/trunk/sheet-music-library.php

    r2270479 r2886956  
    44 * Plugin URI: http://celloexpressions.com/plugins/sheet-music-library
    55 * Description: Add a sheet music library, including PDFs, audio, descriptions and more to your site.
    6  * Version: 1.2
     6 * Version: 1.
    77 * Author: Nick Halsey
    88 * Author URI: http://celloexpressions.com/
     
    1212
    1313=====================================================================================
    14 Copyright (C) 2018 Nick Halsey
     14Copyright (C) 20 Nick Halsey
    1515
    1616This program is free software; you can redistribute it and/or
     
    3636require( plugin_dir_path( __FILE__ ) . '/taxonomies.php' );
    3737
     38
     39
     40
    3841// Set up custom post meta.
    3942require( plugin_dir_path( __FILE__ ) . '/admin/post-meta.php' );
     
    4447// Plugin options UI, via the Customizer.
    4548require( plugin_dir_path( __FILE__ ) . '/admin/customize-options.php' );
     49
     50
     51
    4652
    4753// Load template-filtering functions.
     
    6369add_action( 'wp_enqueue_scripts', 'sml_enqueue_scripts' );
    6470function sml_enqueue_scripts() {
    65     if ( ! current_theme_supports( 'sheet_music_library' ) ) {
     71    if ( ! current_theme_supports( 'sheet_music_library' ) ) {
    6672        wp_enqueue_style( 'sheet-music-library', plugins_url( '/template/sheet-music-library.css', __FILE__ ) );
    6773    }
     
    7278add_filter( 'the_excerpt', 'sml_template_filter' );
    7379function 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' ) ) {
    7581        if ( is_singular() ) {
    7682            return sml_single_content_filter( $the_content );
Note: See TracChangeset for help on using the changeset viewer.