Skip to content

Commit

Permalink
Merge pull request #108 from techies23/develop
Browse files Browse the repository at this point in the history
Gallery view fix
  • Loading branch information
techies23 authored Jan 24, 2024
2 parents 821b270 + 17005f6 commit ea3afc2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 deletions.
7 changes: 5 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: zoom video conference, video conference, zoom, zoom video conferencing, we
Donate link: https://www.paypal.com/donate?hosted_button_id=2UCQKR868M9WE
Requires at least: 5.0
Tested up to: 6.3
Stable tag: 4.4.0
Stable tag: 4.4.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -159,7 +159,10 @@ Yes, you should be registered in Zoom. Also, depending on the zoom account plan

== Changelog ==

= 4.4.0 January 16th, 2023 =
= 4.4.1 January 2th, 2024 =
* Fixed: Gallery View should now be supported for IFrame join via browser shortcode.

= 4.4.0 January 16th, 2024 =
* Recordings hidable and bug fixes.
* Updated: Fetch Meeting ID recordings asynchronously.
* Updated websdk to version 2.18.2
Expand Down
14 changes: 7 additions & 7 deletions includes/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function __construct() {
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts_backend' ) );
add_action( 'init', array( $this, 'load_plugin_textdomain' ) );

//Block Themes Compat: register scripts on init - required as block themes fire the content before page render
//Block Themes Compat: register scripts on init - required as block themes fire the content before page render
add_action( 'init', [ $this, 'register_scripts' ] );
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
add_filter( 'plugin_action_links', array( $this, 'action_link' ), 10, 2 );
Expand Down Expand Up @@ -105,7 +105,7 @@ public function version_update_warning( $current_version, $new_version ) {
*/
function set_corp_headers( $headers, $wp ) {
$type = filter_input( INPUT_GET, 'type' );
if ( isset( $wp->query_vars['post_type'] ) && $wp->query_vars['post_type'] == 'zoom-meetings' && ! empty( $type ) ) {
if ( ( isset( $wp->query_vars['post_type'] ) && $wp->query_vars['post_type'] == 'zoom-meetings' && ! empty( $type ) ) || has_shortcode( get_post()->post_content, 'zoom_join_via_browser' ) ) {
$headers['Cross-Origin-Embedder-Policy'] = 'require-corp';
$headers['Cross-Origin-Opener-Policy'] = 'same-origin';
}
Expand Down Expand Up @@ -133,7 +133,7 @@ protected function init_api() {
/**
* @return void
*/
public function register_scripts( ) {
public function register_scripts() {
$minified = SCRIPT_DEBUG ? '' : '.min';
wp_register_style( 'video-conferencing-with-zoom-api', ZVC_PLUGIN_PUBLIC_ASSETS_URL . '/css/style' . $minified . '.css', false, $this->plugin_version );

Expand All @@ -152,8 +152,8 @@ public function register_scripts( ) {
'video-conferencing-with-zoom-api-moment',
), $this->plugin_version, true );
}
}
}

/**
* Load Frontend Scriptsssssss
*
Expand Down Expand Up @@ -241,8 +241,8 @@ protected function load_dependencies() {
Blocks::get_instance();
BlockTemplates::get_instance();

//Helpers
Encryption::get_instance();
//Helpers
Encryption::get_instance();
}

/**
Expand Down
5 changes: 3 additions & 2 deletions includes/Shortcodes/Embed.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public function join_via_browser( $atts, $content = null ) {

if ( is_wp_error( $meetingInfo ) ) {
echo $meetingInfo->get_error_message();

return;
} else {
$meeting = json_decode( $meetingInfo );
Expand Down Expand Up @@ -113,12 +114,12 @@ public function join_via_browser( $atts, $content = null ) {
$meeting_time = date( 'Y-m-d h:i a', strtotime( $start_time ) );
}

if( !empty($meeting->timezone) ) {
if ( ! empty( $meeting->timezone ) ) {
$meeting->meeting_timezone_time = Date::dateConverter( 'now', $meeting->timezone, false );
$meeting->meeting_time_check = Date::dateConverter( $meeting_time, $meeting->timezone, false );
}

$meeting->shortcode_attributes = $attributes;
$meeting->shortcode_attributes = $attributes;

$GLOBALS['zoom'] = $meeting;

Expand Down
2 changes: 1 addition & 1 deletion templates/shortcode/embed-session.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
?>
<div class="vczapi-jvb-wrapper zoom-window-wrap">
<div id="<?php echo ! empty( $zoom->shortcode_attributes['id'] ) ? esc_attr( $zoom->shortcode_attributes['id'] ) : 'video-conferncing-embed-iframe'; ?>" class="zoom-iframe-container">
<iframe style="width:100%; <?php echo ! empty( $zoom->shortcode_attributes['height'] ) ? "height: " . $zoom->shortcode_attributes['height'] : "height: 500px;"; ?>" sandbox="allow-forms allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-top-navigation" allow="cross-origin-isolated; encrypted-media; autoplay; microphone; camera" src="<?php echo esc_url( $join_via_browser_link ); ?>"></iframe>
<iframe style="width:100%; <?php echo ! empty( $zoom->shortcode_attributes['height'] ) ? "height: " . $zoom->shortcode_attributes['height'] : "height: 500px;"; ?>" allow="microphone; camera" src="<?php echo esc_url( $join_via_browser_link ); ?>"></iframe>
</div>
</div>
<?php
Expand Down
4 changes: 2 additions & 2 deletions video-conferencing-with-zoom-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Plugin Name: Video Conferencing with Zoom
* Plugin URI: https://wordpress.org/plugins/video-conferencing-with-zoom-api/
* Description: Video Conferencing with Zoom Meetings and Webinars plugin provides you with great functionality of managing Zoom meetings, Webinar scheduling options, and users directly from your WordPress dashboard.
* Version: 4.4.0
* Version: 4.4.1
* Author: Deepen Bajracharya
* Author URI: https://www.imdpen.com
* License: GPL-2.0+
Expand All @@ -24,7 +24,7 @@

defined( 'ZVC_PLUGIN_FILE' ) || define( 'ZVC_PLUGIN_FILE', __FILE__ );
defined( 'ZVC_PLUGIN_SLUG' ) || define( 'ZVC_PLUGIN_SLUG', 'video-conferencing-zoom' );
defined( 'ZVC_PLUGIN_VERSION' ) || define( 'ZVC_PLUGIN_VERSION', '4.4.0' );
defined( 'ZVC_PLUGIN_VERSION' ) || define( 'ZVC_PLUGIN_VERSION', '4.4.1' );
defined( 'ZVC_ZOOM_WEBSDK_VERSION' ) || define( 'ZVC_ZOOM_WEBSDK_VERSION', '2.18.2' );
defined( 'ZVC_PLUGIN_DIR_PATH' ) || define( 'ZVC_PLUGIN_DIR_PATH', plugin_dir_path( __FILE__ ) );
defined( 'ZVC_PLUGIN_DIR_URL' ) || define( 'ZVC_PLUGIN_DIR_URL', plugin_dir_url( __FILE__ ) );
Expand Down

0 comments on commit ea3afc2

Please sign in to comment.