Changeset 3450602
- Timestamp:
- 01/30/2026 04:52:30 PM (2 months ago)
- Location:
- fetch-meditation/trunk
- Files:
-
- 4 edited
-
build.txt (modified) (1 diff)
-
fetch-meditation.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fetch-meditation/trunk/build.txt
r3443693 r3450602 1 5572a8011889eb6c86d9847329e922c52c7bd5ac1 ea931dd6ce80ee48d66c8f12bddfe65e8fa9387c -
fetch-meditation/trunk/fetch-meditation.php
r3443693 r3450602 7 7 * Contributors: pjaudiomv, bmltenabled 8 8 * Author: bmltenabled 9 * Version: 1. 4.99 * Version: 1.5.0 10 10 * Requires PHP: 8.1 11 11 * Requires at least: 6.2 … … 493 493 $content .= " <div class=\"meditation-tab-content\">\n"; 494 494 $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"; 496 496 $content .= $jft_content; 497 497 $content .= " </div>\n"; 498 498 $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"; 500 500 $content .= $spad_content; 501 501 $content .= " </div>\n"; … … 530 530 $content .= " </button>\n"; 531 531 $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"; 533 533 $content .= $jft_content; 534 534 $content .= " </div>\n"; … … 542 542 $content .= " </button>\n"; 543 543 $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"; 545 545 $content .= $spad_content; 546 546 $content .= " </div>\n"; … … 690 690 * @return string CSS content 691 691 */ 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 { 693 693 $css_file = match ( strtolower( $theme ) ) { 694 694 'jft-style' => 'fetch-meditation-jft.css', … … 698 698 $css_path = plugin_dir_path( __FILE__ ) . 'css/' . $css_file; 699 699 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; 701 705 } 702 706 return ''; -
fetch-meditation/trunk/readme.txt
r3443693 r3450602 6 6 Requires PHP: 8.1 7 7 Tested up to: 6.9 8 Stable tag: 1. 4.98 Stable tag: 1.5.0 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 57 57 58 58 == 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. 59 63 60 64 = 1.4.9 = -
fetch-meditation/trunk/vendor/composer/installed.php
r3443693 r3450602 2 2 'root' => array( 3 3 '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', 7 7 'type' => 'project', 8 8 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 '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', 26 26 'type' => 'project', 27 27 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.