Skip to content

Commit

Permalink
Merge pull request #1 from JetixWP/release-v0.4.0
Browse files Browse the repository at this point in the history
Release v0.4.0
  • Loading branch information
lushkant committed Aug 16, 2024
2 parents 6eba685 + b09f9cc commit aacb3ec
Show file tree
Hide file tree
Showing 13 changed files with 90 additions and 23 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy-to-wpdotorg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy to WordPress.org

on:
push:
tags:
- "*"

env:
SLUG: really-simple-featured-audio

jobs:
tag:
name: New tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@master
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
21 changes: 21 additions & 0 deletions .github/workflows/update-wpdotorg-assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Plugin asset/readme update

on:
push:
branches:
- develop

env:
SLUG: really-simple-featured-audio

jobs:
master:
name: Push to master
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: WordPress.org plugin asset/readme update
uses: 10up/action-wordpress-plugin-asset-update@develop
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
Binary file added .wordpress-org/banner-1544x500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/banner-772x250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions .wordpress-org/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -250,14 +250,14 @@ public static function woo_audio_markup( $id, $wrapper_class = 'woocommerce-prod
// Generate audio embed url.
$embed_url = Plugin::get_instance()->frontend_provider->generate_embed_url( $input_url );

// Prepare mark up attributes.
$is_autoplay = $is_autoplay ? 'autoplay playsinline' : '';
$is_loop = $is_loop ? 'loop' : '';
$is_muted = $is_muted ? 'muted' : '';
$has_controls = $has_controls ? 'controls' : '';
// Prepare mark up attributes.
$has_controls = $has_controls ? 'controls' : '';
$is_autoplay = $is_autoplay ? 'autoplay playsinline' : '';
$is_loop = $is_loop ? 'loop' : '';
$is_muted = $is_muted ? 'muted' : '';

if ( $embed_url ) {
$audio_html = '<div class="' . esc_attr( $wrapper_class ) . '" data-thumb="' . $thumbnail . '" ' . esc_attr( $wrapper_attributes ) . '><div class="rsfa-audio-wrapper"><audio class="rsfa-audio" id="rsfa_audio_' . $id . '" src="' . $embed_url . '" ' . "{$has_controls} {$is_autoplay} {$is_loop} {$is_muted}" . '"></audio></div></div>';
$audio_html = '<div class="' . esc_attr( $wrapper_class ) . '" data-thumb="' . $thumbnail . '" ' . esc_attr( $wrapper_attributes ) . '><div class="rsfa-audio-wrapper"><audio class="rsfa-audio" id="rsfa_audio_' . $id . '" src="' . $embed_url . '" ' . "{$has_controls} {$is_autoplay} {$is_loop} {$is_muted}" . '></audio></div></div>';
}
}
}
Expand Down Expand Up @@ -329,7 +329,8 @@ public function get_woo_archives_audio( $post_id = '' ) {
public function modify_body_classes( $classes ) {
$options = Options::get_instance();

$product_archives_visibility = $options->get( 'product_archives_visibility' );
// Default is enabled.
$product_archives_visibility = $options->has( 'product_archives_visibility' ) ? $options->get( 'product_archives_visibility' ) : true;

if ( $product_archives_visibility && ( is_shop() || is_product_category() || is_product_tag() ) ) {
$classes[] = 'rsfa-archives-support';
Expand Down
15 changes: 7 additions & 8 deletions includes/class-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function get_audio_markup( $post_id, $post_type ) {
$has_controls = $has_controls ? 'controls' : '';

if ( $audio_url ) {
return '<div class="rsfa-audio-wrapper"><audio class="rsfa-audio" id="rsfa-audio-' . esc_attr( $post_id ) . '" src="' . esc_url( $audio_url ) . '" style="max-width:100%;display:block;" ' . esc_attr( $has_controls ) . ' ' . esc_attr( $is_autoplay ) . ' ' . esc_attr( $is_loop ) . ' ' . esc_attr( $is_muted ) . ' ' . '></audio></div>';
return '<div class="rsfa-audio-wrapper"><audio class="rsfa-audio" id="rsfa-audio-' . esc_attr( $post_id ) . '" src="' . esc_url( $audio_url ) . '" style="max-width:100%;display:block;" ' . "{$has_controls} {$is_autoplay} {$is_loop} {$is_muted}" . '></audio></div>';
}
}

Expand All @@ -126,17 +126,16 @@ public function get_audio_markup( $post_id, $post_type ) {
// Generate audio embed URL.
$embed_url = Plugin::get_instance()->frontend_provider->generate_embed_url( $input_url );

// Prepare mark up attributes.
$is_autoplay = $is_autoplay ? 'autoplay playsinline' : '';
$is_loop = $is_loop ? 'loop' : '';
$is_muted = $is_muted ? 'muted' : '';
$has_controls = $has_controls ? 'controls' : '';
// Prepare mark up attributes.
$has_controls = $has_controls ? 'controls' : '';
$is_autoplay = $is_autoplay ? 'autoplay playsinline' : '';
$is_loop = $is_loop ? 'loop' : '';
$is_muted = $is_muted ? 'muted' : '';

if ( $embed_url ) {
return '<div class="rsfa-audio-wrapper"><audio class="rsfa-audio" id="rsfa-audio-' . esc_attr( $post_id ) . '" src="' . esc_url( $embed_url ) . '" ' . esc_attr( $has_controls ) . esc_attr( $is_autoplay ) . esc_attr( $is_loop ) . esc_attr( $is_muted ) . '"></audio></div>';
return '<div class="rsfa-audio-wrapper"><audio class="rsfa-audio" id="rsfa-audio-' . esc_attr( $post_id ) . '" src="' . esc_url( $embed_url ) . '" ' . "{$has_controls} {$is_autoplay} {$is_loop} {$is_muted}" . '></audio></div>';
}
}
}
}

}
21 changes: 15 additions & 6 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
=== Really Simple Featured Audio - Featured audio support for Posts, Pages & Products ===
=== Really Simple Featured Audio - Featured audio support for Posts, Pages & WooCommerce Products ===
Contributors: jetixwp, lushkant
Requires at least: 6.0
Requires PHP: 8.0
Tested up to: 6.6.1
Stable tag: 0.3.0
Stable tag: 0.4.0
Tags: audio, featured audio, woocommerce, product audio, audio embed
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand All @@ -12,7 +12,7 @@ Really Simple Featured Audio enables featured audio support for WordPress posts,

== Description ==

Really Simple Featured Audio plugin provides a really straightforward way of adding featured audio support to your custom post types. Adding your own audios to the site is a breeze and you get an easy to use settings panel with the options you really need.
Really Simple Featured Audio plugin provides a really straightforward way of adding featured audio support to your custom post types. Host audio podcasts, blogs and Featured audio for WooCommerce products easily. Adding your own audios to the site is a breeze and you get an easy to use settings panel with the options you really need.

With Really Simple Featured Audio you get a metabox at posts, pages, CPTs & Woo products edit screen at the very bottom and a very similar interface as you're used to with featured image.

Expand All @@ -22,7 +22,7 @@ You get a really simple settings page which has all the controls you need for ma
== 👉️ Features ==

* **Self host audios** - Upload and feature audios on posts/pages and WooCommerce products directly from your site.
* **Embed support for Audio from external sources** – Embed audio files from anywhere directly at each post/page/product or any custom type that supports featured images.
* **Embed support for Audio from external sources** – Embed audio files from anywhere (link should end in .mp3/wav or supported audio files) directly at each post/page/product or any custom type that supports featured images.
* **WooCommerce Single and Shop Archives Support** - A straightforward implementation for WooCommerce Product Featured Audio.
* **Elementor Pro Support** - Support for Posts/archive widgets with Elementor Pro builder.
* **Support for Core themes** - We support all the newer core themes such as TwentyTwenty Four to Classic themes.
Expand Down Expand Up @@ -50,17 +50,26 @@ There are also shortcodes to embed featured audio at any post, page or product y
You can send a feedback or a feature request at [github.com/JetixWP/really-simple-featured-audio](https://github.com/JetixWP/really-simple-featured-audio) Or create a thread at forums here, in any case.

== Screenshots ==
1. Blog page with Featured audio on Twenty Twenty-Four theme.
2. WooCommerce Shop page with Featured audio.
3. Product page with Featured Audio gallery.
4. Settings page view.

== Frequently Asked Questions ==

= Will this plugin work with any theme? =
Yes, as long as the theme you use follows standard WordPress/WooCommerce way of handling post thumbnails, this plugin should work without any problems.
Well Yes and No, So Yes as long as the theme you use follows standard WordPress/WooCommerce way of handling post thumbnails, this plugin should work without any problems and No if the theme goes beyond the standard ways of Featured post thumbnails in such cases we need to add custom support for it.

= Where can I get help? =
You can get support at the forums here.
You can get support at the forums here or via support@jetixwp.com.

== Changelog ==

= 0.4.0 =
- Wp.org release
- Fixes issue at Woo Shop pages with new block themes
- Other minor changes

= 0.3.0 =
- Wp.org review update

Expand Down
4 changes: 2 additions & 2 deletions really-simple-featured-audio.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Really Simple Featured Audio
* Plugin URI: https://jetixwp.com/plugins/really-simple-featured-audio
* Description: Adds support for Featured Audio to WordPress posts, pages & WooCommerce products.
* Version: 0.3.0
* Version: 0.4.0
* Author: JetixWP Plugins
* Author URI: https://jetixwp.com
* License: GPL2
Expand All @@ -16,7 +16,7 @@

defined( 'ABSPATH' ) || exit;

define( 'RSFA_VERSION', '0.3.0' );
define( 'RSFA_VERSION', '0.4.0' );
define( 'RSFA_PLUGIN_FILE', __FILE__ );
define( 'RSFA_PLUGIN_URL', plugin_dir_url( RSFA_PLUGIN_FILE ) );
define( 'RSFA_PLUGIN_DIR', plugin_dir_path( RSFA_PLUGIN_FILE ) );
Expand Down

0 comments on commit aacb3ec

Please sign in to comment.