Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Remove Full URL from Downloaded Image

Discussion in 'Misc WordPress Requests' started by chuda2014, Feb 16, 2018.

  1. chuda2014


    Reply To: Remove Full URL from Downloaded Image, by chuda2014

    I Paste Download Page Script Please Help

    i want to hide full download url in downloadable images

    <?php if(isset($_POST['prw'])) {
    $img_url = $_POST['prw'];}

    <img src="<?php echo $img_url; ?>" class="img-responsive" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" />

    <div class="row">
    <div class="panel panel-default">
    <div class="panel-body">
    <div class="col-md-12">

    <div class="row text-center">

    <div class="col-md-6">
    <a class="btn btn-success" href="<?php echo $img_url; ?>" download="<?php echo $img_url; ?>"> <span class="glyphicon glyphicon-download-alt"></span> Download original image</a>

    <div class="col-md-6">
    <form method="POST" action="<?php echo site_url(); ?>/resize.php">

    <select class="selectWidth" name="size" id="size" type="text">
    <optgroup label="Standard">
    <option value="800x600" >800x600</option>
    <option value="1024x768" >1024x768</option>
    <option value="1280x960" >1280x960</option>
    <option value="1280x1024" >1280x1024</option>
    <option value="1400x1050" >1400x1050</option>
    <option value="1600x1200" >1600x1200</option>
    <option value="2560x2048" >2560x2048</option>

    <optgroup label="Widescreen">
    <option value="1024x600" >1024x600</option>
    <option value="1280x800" >1280x800</option>
    <option value="1366x768" >1366x768</option>
    <option value="1440x900" >1440x900</option>
    <option value="1600x900" >1600x900</option>
    <option value="1680x1050" >1680x1050</option>
    <option value="1920x1080" >1920x1080</option>
    <option value="1920x1200" >1920x1200</option>
    <option value="2560x1440" >2560x1440</option>
    <option value="2560x1600" >2560x1600</option>

    <optgroup label="Widescreen">
    <option value="240x320" >240x320 (ipod)</option>
    <option value="320x480" >320x480 (iphone)</option>
    <option value="640x960" >640x960 (iphone4)</option>
    <option value="640x1136" >640x1136 (iphone5)</option>
    <option value="1024x1024" >1024x1024 (ipad)</option>
    <option value="6x4" ></option>
    <input type="hidden" value="<?php echo $img_url?>" name="imagine" />
    <button type="submit" class="btn btn-danger" name="go" value="go"><span class="glyphicon glyphicon-resize-small"></span> Resize</button>

    Reply To: Remove Full URL from Downloaded Image

Share This Page

Monarch Social Sharing Plugin