Skip to content

Commit

Permalink
Media Control: updated code snippet (#235)
Browse files Browse the repository at this point in the history
* Update control-media.md

* Update src/editor-controls/control-media.md

Co-authored-by: Rami Yushuvaev <[email protected]>

---------

Co-authored-by: Rami Yushuvaev <[email protected]>
  • Loading branch information
benediktgrether and rami-elementor authored Sep 19, 2023
1 parent 220e1c1 commit c8b6250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor-controls/control-media.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class Elementor_Test_Widget extends \Elementor\Widget_Base {
$settings = $this->get_settings_for_display();
$pdf_url = $settings['pdf']['url'];

if ( empty( $pdf_url ) ) {
if ( ! empty( $pdf_url ) ) {
?>
<a download href="<?php echo esc_attr( $pdf_url ); ?>">
<?php echo esc_html__( 'Download PDF', 'textdomain' ); ?>
Expand Down

0 comments on commit c8b6250

Please sign in to comment.