Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two meeting single page url mismatch #99

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/public/css/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/public/css/style.min.css

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions src/public/sass/_single.scss
Original file line number Diff line number Diff line change
Expand Up @@ -306,4 +306,19 @@
}
}
}
}
.dpn-zvc-meeting-by-post-id-links{
display: flex;
gap: 25px;
padding: 20px 0;
a{
display: flex;
align-items: center;
justify-content: center;
background: #a5452d;
text-align: center;
width: 50%;
color: white;
padding: 20px;
}
}
29 changes: 27 additions & 2 deletions templates/shortcode/meeting-by-post-id.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
<div class="vczapi-show-by-postid-contents vczapi-show-by-postid-flex">
<?php if ( ! empty( get_the_post_thumbnail_url() ) ) { ?>
<div class="vczapi-show-by-postid-contents-image">
<img src="<?php echo esc_url( get_the_post_thumbnail_url() ); ?>" alt="<?php echo get_the_title(); ?>">
<img src="<?php echo esc_url( get_the_post_thumbnail_url() ); ?>"
alt="<?php echo get_the_title(); ?>">
</div>
<?php } ?>
<div class="<?php echo empty( get_the_post_thumbnail_url() ) ? 'vczapi-show-by-postid-contents-sections vczapi-show-by-postid-contents-sections-full' : 'vczapi-show-by-postid-contents-sections'; ?>">
Expand Down Expand Up @@ -62,7 +63,31 @@

<?php do_action( 'vczapi_html_after_meeting_details' ); ?>
</div>
<div class="dpn-zvc-sidebar-content"></div>

<!--join links rendered using js-->
<!--<div class="dpn-zvc-sidebar-content"></div>-->

<div class="dpn-zvc-meeting-by-post-id-links ">
<?php
$args = [
'link_only' => true
];

if ( ! empty( $zoom['api']->password ) ) {
$args['password'] = $zoom['api']->password;
}
$browser_join = \Codemanas\VczApi\Helpers\Links::getJoinViaBrowserJoinLinks( $args, $zoom['api']->id );
$join_url = $zoom['api']->join_url;

if ( ! empty( $join_url ) ) {
?>
<a target="_blank" href="<?php echo esc_url( $join_url ); ?>"
title="Join via App"><?php _e( 'Join via Zoom App', 'video-conferencing-with-zoom-api' ); ?></a>
<a target="_blank" href="<?php echo esc_url( $browser_join ); ?>"
title="Join via Browser"><?php _e( 'Join via Browser', 'video-conferencing-with-zoom-api' ); ?></a>
<?php } ?>

</div>
</div>
</div>
<?php if ( ! empty( get_the_content() ) ) { ?>
Expand Down