• Resolved Sebwite

    (@sebwite)


    First of all thanks for the great plugin.

    Unfortunate we’re missing the share button at the right top corner. Could you please add it to your plugin? It is easy to add by adding the following code to photo-swipe.php

    Add this in <div class=”pswp__top-bar”> after <button class=”pswp__button pswp__button–close” title=”Close (Esc)”></button>

    <button class="pswp__button pswp__button--share" title="Share"></button>

    Add this in <div class=”pswp__ui pswp__ui–hidden”> after <div class=”pswp__top-bar”>

    <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
    <div class="pswp__share-tooltip"></div>
    </div>

    It would look like:

    <div class="pswp__ui pswp__ui--hidden">
                <div class="pswp__top-bar">
                    <div class="pswp__counter"></div>
                    <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
                    <button class="pswp__button pswp__button--share" title="Share"></button>
                    <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
                    <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
                    <div class="pswp__preloader">
                        <div class="pswp__preloader__icn">
                          <div class="pswp__preloader__cut">
                            <div class="pswp__preloader__donut"></div>
                          </div>
                        </div>
                    </div>
                </div>
    
                <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                    <div class="pswp__share-tooltip"></div>
                </div>
    
                <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
                </button>
                <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
                </button>
                <div class="pswp__caption">
                    <div class="pswp__caption__center"></div>
                </div>
            </div>

    We hope you can fix this so we keep updating the plugin in the future.

    https://www.ads-software.com/plugins/photo-swipe/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Louy Alakkad

    (@louyx)

    Hi Sebwite,

    I am aware of this feature as I removed it manually. The reason is that this will require images to be sharable, and to be sharable they should have IDs, which might not always be the case.

    I’ll add an option to allow this. But it might take some time to ensure IDs work correctly. It’s not just a matter of adding the share button because the link will not work then. I also don’t want to make the plugin complicated as there will be an official version soon which allows you to control everything the original library offers.

    Regards,

    Hi Louy,

    Your last comment mentioned an official version. Is this an official version of your plugin? Or an official WordPress plugin for the original PhotoSwipe library?

    I’m evaluating whether to use this plugin on a production site and this would be very helpful to know. Thanks very much!

    Jenn

    Plugin Author Louy Alakkad

    (@louyx)

    Hi Jenn,

    There was supposed to be an official version but I think it isn’t ready yet. I have no more details about it.

    Cheers,

    Interesting. Thanks for the response, Louy!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Share button’ is closed to new replies.