我正在使用Jquery PrettyPhoto制作幻灯片展示,但它不允许用户下载图片。有人知道如何添加链接,以便用户能够下载图片吗?
以下是我的代码:(我在Yii中使用prettyPhoto小部件,但任何适用于prettyPhoto的答案都可以)
以下是我的代码:(我在Yii中使用prettyPhoto小部件,但任何适用于prettyPhoto的答案都可以)
<?php
$this->beginWidget('ext.prettyPhoto.PrettyPhoto', array(
'id'=>'pretty_photo',
// prettyPhoto options
'options'=>array(
'opacity'=>0.60,
'modal'=>true,
),
));
?>
<div class="column4-front image-gallery">
<a href="/files/show/<?php echo $data->image; ?>" rel="prettyPhoto[pp_gal]" title="<?php echo $data->caption; ?>">
<img src="/files/show/thumb/<?php echo $data->image; ?>" />
</a>
</div>
<?php $this->endWidget('widgets.prettyPhoto');?>