Plugin Directory

Changeset 3450602


Ignore:
Timestamp:
01/30/2026 04:52:30 PM (2 months ago)
Author:
bmltenabled
Message:

Deploy version 1.5.0

Location:
fetch-meditation/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • fetch-meditation/trunk/build.txt

    r3443693 r3450602  
    1 5572a8011889eb6c86d9847329e922c52c7bd5ac
     1ea931dd6ce80ee48d66c8f12bddfe65e8fa9387c
  • fetch-meditation/trunk/fetch-meditation.php

    r3443693 r3450602  
    77 * Contributors:      pjaudiomv, bmltenabled
    88 * Author:            bmltenabled
    9  * Version:           1.4.9
     9 * Version:           1.5.0
    1010 * Requires PHP:      8.1
    1111 * Requires at least: 6.2
     
    493493        $content .= "  <div class=\"meditation-tab-content\">\n";
    494494        $content .= "    <div class=\"meditation-tab-panel\" role=\"tabpanel\" id=\"meditation-panel-jft-{$instance_counter}\" data-tab-id=\"jft\" aria-labelledby=\"tab-jft\">\n";
    495         $content .= '      <style>' . static::get_inline_theme_css( $jft_theme ) . "</style>\n";
     495        $content .= '      <style>' . static::get_inline_theme_css( $jft_theme, '#meditation-panel-jft-' . $instance_counter ) . "</style>\n";
    496496        $content .= $jft_content;
    497497        $content .= "    </div>\n";
    498498        $content .= "    <div class=\"meditation-tab-panel\" role=\"tabpanel\" id=\"meditation-panel-spad-{$instance_counter}\" data-tab-id=\"spad\" aria-labelledby=\"tab-spad\" hidden>\n";
    499         $content .= '      <style>' . static::get_inline_theme_css( $spad_theme ) . "</style>\n";
     499        $content .= '      <style>' . static::get_inline_theme_css( $spad_theme, '#meditation-panel-spad-' . $instance_counter ) . "</style>\n";
    500500        $content .= $spad_content;
    501501        $content .= "    </div>\n";
     
    530530        $content .= "    </button>\n";
    531531        $content .= "    <div class=\"meditation-accordion-panel active\" id=\"meditation-accordion-jft-{$instance_counter}\">\n";
    532         $content .= '      <style>' . static::get_inline_theme_css( $jft_theme ) . "</style>\n";
     532        $content .= '      <style>' . static::get_inline_theme_css( $jft_theme, '#meditation-accordion-jft-' . $instance_counter ) . "</style>\n";
    533533        $content .= $jft_content;
    534534        $content .= "    </div>\n";
     
    542542        $content .= "    </button>\n";
    543543        $content .= "    <div class=\"meditation-accordion-panel\" id=\"meditation-accordion-spad-{$instance_counter}\" hidden>\n";
    544         $content .= '      <style>' . static::get_inline_theme_css( $spad_theme ) . "</style>\n";
     544        $content .= '      <style>' . static::get_inline_theme_css( $spad_theme, '#meditation-accordion-spad-' . $instance_counter ) . "</style>\n";
    545545        $content .= $spad_content;
    546546        $content .= "    </div>\n";
     
    690690     * @return string CSS content
    691691     */
    692     private static function get_inline_theme_css( string $theme ): string {
     692    private static function get_inline_theme_css( string $theme, string $scope_selector = '' ): string {
    693693        $css_file = match ( strtolower( $theme ) ) {
    694694            'jft-style' => 'fetch-meditation-jft.css',
     
    698698        $css_path = plugin_dir_path( __FILE__ ) . 'css/' . $css_file;
    699699        if ( file_exists( $css_path ) ) {
    700             return wp_strip_all_tags( file_get_contents( $css_path ) );
     700            $css = wp_strip_all_tags( file_get_contents( $css_path ) );
     701            if ( $scope_selector ) {
     702                $css = preg_replace( '/^(\s*)#meditation-/m', '$1' . $scope_selector . ' #meditation-', $css );
     703            }
     704            return $css;
    701705        }
    702706        return '';
  • fetch-meditation/trunk/readme.txt

    r3443693 r3450602  
    66Requires PHP: 8.1
    77Tested up to: 6.9
    8 Stable tag: 1.4.9
     8Stable tag: 1.5.0
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5757
    5858== Changelog ==
     59
     60= 1.5.0 =
     61
     62* Scope JFT and SPAD inline CSS to their respective panels so styles don't conflict in tabbed/accordion mode.
    5963
    6064= 1.4.9 =
  • fetch-meditation/trunk/vendor/composer/installed.php

    r3443693 r3450602  
    22    'root' => array(
    33        'name' => 'bmlt/fetch-meditation-wp',
    4         'pretty_version' => '1.4.9',
    5         'version' => '1.4.9.0',
    6         'reference' => '5572a8011889eb6c86d9847329e922c52c7bd5ac',
     4        'pretty_version' => '1.5.0',
     5        'version' => '1.5.0.0',
     6        'reference' => 'ea931dd6ce80ee48d66c8f12bddfe65e8fa9387c',
    77        'type' => 'project',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'bmlt/fetch-meditation-wp' => array(
    23             'pretty_version' => '1.4.9',
    24             'version' => '1.4.9.0',
    25             'reference' => '5572a8011889eb6c86d9847329e922c52c7bd5ac',
     23            'pretty_version' => '1.5.0',
     24            'version' => '1.5.0.0',
     25            'reference' => 'ea931dd6ce80ee48d66c8f12bddfe65e8fa9387c',
    2626            'type' => 'project',
    2727            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.