item media view url help

Post date: 2022-05-17 22:25:33
Views: 120

Someone want helping me? i want  add here a link to the media uploaded file but i  dont now how to be url to uploaded media file.  will be domain. com /uploads/avril-lavigne.mp3 

but i dont now how to make this url for homepage items ... want help me with this link? 

this is code from my teheme: 

public function q_item_content( $q_item ) {

$text = $q_item'raw']'content'];

$nsfw = $q_item'raw']'nsfw'];

if ( null !== $nsfw && ! qa_is_logged_in() ) {

$this->output( '<a href="' . $q_item'url'] . '" class="item-a"><span class="king-nsfw-post"><p><i class="fas fa-mask fa-2x"></i></p>' . qa_lang_html( 'misc/nsfw_post' ) . '</span></a>' );

} elseif ( ! empty( $text ) ) {

$text2 = king_get_uploads( $text );

$this->output( '<A class="item-a" HREF="' . $q_item'url'] . '">' );

here i want add a download button to the uploaded file but i dont know whow is. 

"' . $q_item'media url i dont know how to make this'] . '

if ( $text2 ) {

$this->output_raw( '<span class="post-featured-img"><img class="item-img king-lazy" width="' . $text2'width'] . '" height="' . $text2'height'] . '" data-king-img-src="' . $text2'furl'] . '" alt=""/></span>' );

} else {

$this->output_raw( '<span class="post-featured-img"><img class="item-img" data-king-img-src="' . $text . '" alt=""/></span>' );

}

$this->output( '</A>' );

} else {

$this->output( '<a href="' . $q_item'url'] . '" class="king-nothumb"></a>' );

}

}

Please click Here to read the full story.
 
Other Top and Latest Questions:
FedEx beats earnings estimates, forecasts $1 billion cost savings in the next fiscal year
Answered: User can create account only with Gmail.
Sweat is hurting my face
Nvidia heads for 5-day win streak as it hits record highs
NATO allies agree to higher 5% defense spending target
CDC vaccine panel holds first meeting since RFK Jr. put immunization critics in place
21-year-old new grad has applied to ‘200 to 300 jobs’ since fall: ‘I probably get, like, one rejection each day’
Our top 3 gainers and laggards over the past month amid tariff and Mideast uncertainty
Rubrik agrees to buy AI startup Predibase for over $100 million
The No. 1 biggest communication mistake most people make, says public speaking expert who's coached billionaire CEOs