Plugin Directory

Changeset 2008184


Ignore:
Timestamp:
01/08/2019 05:58:21 AM (7 years ago)
Author:
PowieT
Message:

No need to query the API Code

Location:
plinks
Files:
10 added
2 edited

Legend:

Unmodified
Added
Removed
  • plinks/trunk/plinks.php

    r2007657 r2008184  
    44Plugin URI: https://powie.de/wordpress/plinks
    55Description: Link directory pageview with pagepeeker preview and shortcodes
    6 Version: 1.0.1
     6Version: 1.0.2
    77License: GPLv2
    88Author: Thomas Ehrhardt
     
    1313
    1414//Define some stuff
    15 define( 'PL_VERSION', '1.0.1');
     15define( 'PL_VERSION', '1.0.2');
    1616define( 'PL_PLUGIN_DIR', dirname( plugin_basename( __FILE__ ) ) );
    1717define( 'PL_PAGEPEEKER_URL', 'http://free.pagepeeker.com/v2/thumbs.php?size=%s&url=%s');
    1818define( 'PL_LOVE', 'Linkdirectory made with <a href="https://powie.de" target="_blank">Powies</a> pLinks Plugin '.PL_VERSION );
    19 define( 'PL_PAGEPEEKER_API_URL', 'https://api.pagepeeker.com/v2/thumbs.php?size=%s&code=%s&url=%s');
     19define( 'PL_PAGEPEEKER_API_URL', 'https://api.pagepeeker.com/v2/thumbs.php?size=%s&url=%s');
    2020load_plugin_textdomain( 'plinks', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
    2121
     
    6666    $sc = '<!-- pLinks Plugin PagePeeker Output -->';
    6767    if  (get_option('ppapikey') != '') {
    68         $sc.=sprintf( '<img src="'.PL_PAGEPEEKER_API_URL.'" border="0" alt="preview" />',$size , get_option('ppapikey') ,  $url);
     68        $sc.=sprintf( '<img src="'.PL_PAGEPEEKER_API_URL.'" border="0" alt="preview" />',$size , $url);
    6969    } else {
    7070        $sc.=sprintf( '<img src="'.PL_PAGEPEEKER_URL.'" border="0" alt="preview" />',$size,  $url);
     
    9999                $sc.=sprintf( ' <div style="float:left; padding-right:0.5em; padding-bottom:0.5em;">
    100100                                <img src="'.PL_PAGEPEEKER_API_URL.'" border="0" />
    101                                 </div> ',$websnapr_size, get_option('ppapikey'),  $bm->link_url );
     101                                </div> ',$websnapr_size, $bm->link_url );
    102102            } else {
    103103                $sc.=sprintf( ' <div style="float:left; padding-right:0.5em; padding-bottom:0.5em;">
  • plinks/trunk/readme.txt

    r2007657 r2008184  
    55Requires at least: 4.0
    66Tested up to: 5.0.2
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPLv2
    99
     
    1919[Demo 1](https://powie.de/links/) -
    2020[Demo 2](https://www.jet-hangar.de/links/modell-hersteller/) -
    21 [Demo 3](https://www.be-webspace.de/referenzen/)
     21[Demo 3](https://mountainbike-rennsteig.de/verzeichnis/)
    2222
    2323= Including: =
     
    6060Post it at my Forum: [powie.de Forum](https://forum.powie.de)
    6161
     62= I have an API Key but PagePeeker Screenshots arent displayd =
     63Make sure your Sites Domain is validated in your PagePeeker Account at [pagepeeker.com](http://pagepeeker.com/manage/sites.php)
     64
    6265== Changelog ==
     66= 1.0.2 (08.01.2019) =
     67* API Support. No need to query the API Key. Make sure your Site is authed.
     68
    6369= 1.0.1 (07.01.2019) =
    6470* API Support. If you have an API KEY, SSL is used
Note: See TracChangeset for help on using the changeset viewer.