Plugin Directory

Changeset 913656

Timestamp:
05/14/2014 03:30:33 AM (10 years ago)
Author:
zourbuth
Message:
  • Fixed widget transparent background
  • Updated readme.txt
Location:
flickr-badges-widget
Files:
12 added
5 edited

Legend:

Unmodified
Added
Removed
  • flickr-badges-widget/trunk/css/dialog.css

    r756020 r913656  
    229229}
    230230.widget .ntotalWidgetBg {
    231     background: url("../img/background.png") no-repeat scroll left top transparent;
     231    background: url("../img/background.png") no-repeat scroll left top ;
    232232    border-top: 1px solid #E4E4E4;
    233233    position: relative;
  • flickr-badges-widget/trunk/index.php

    r756020 r913656  
    22 /*
    33    Plugin Name: Flickr Badges Widget
    4     Plugin URI: http://zourbuth.com/archives/500/flickr-badge-widget/
     4    Plugin URI: http://-widget/
    55    Description: Display your Flickr latest photostream in widget area using javascript. Easy to customize, just put your Flickr id and your widget ready to lunch.
    6     Version: 1.2.5
     6    Version: 1.2.
    77    Author: zourbuth
    88    Author URI: http://zourbuth.com
    99    License: Under GPL2
    1010 
    11     Copyright 2013 zourbuth (email : zourbuth@gmail.com)
     11    Copyright 201 zourbuth (email : zourbuth@gmail.com)
    1212
    1313    This program is free software; you can redistribute it and/or modify
     
    3838 * @since 1.0
    3939 */
    40 define( 'FLICKR_BADGES_WIDGET_VERSION', '1.2.5' );
     40define( 'FLICKR_BADGES_WIDGET_VERSION', '1.2.' );
    4141define( 'FLICKR_BADGES_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
    4242define( 'FLICKR_BADGES_WIDGET_URL', plugin_dir_url( __FILE__ ) );
  • flickr-badges-widget/trunk/readme.txt

    r756020 r913656  
    22Contributors: zourbuth
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W6D3WAJTVKAFC
    4 Tags: flickr, widget, badge, feed, photostream, javascript, sidebar, gallery, photo, photo gallery, photography, sidebar, user, group, image, images, recent, random
    5 Requires at least: 3.6
     4Tags: flickr, widget, badge, feed, photostream, javascript, sidebar, gallery, photo, photo gallery, photography, sidebar, user, group, image, images, recent, random
     5Requires at least: 3.
    66Tested up to: 3.0
    7 Stable tag: 1.2.5
     7Stable tag: 1.2.
    88
    9 Display your Flickr latest photostream in a sidebar widget area.
     9.
    1010
    1111== Description ==
     
    2222<li>Flickr NSID support.</li>
    2323<li>Get the image from recent or use random function.</li>
     24
    2425<li>Intro text for additional text before the widget content.</li>
    2526<li>Outro text for additional text after the widget content.</li>
     
    2829
    2930<h3><strong>Usefull Links</strong></h3>
    30 <a href="http://zourbuth.com/?p=500">Flickr Badges Widget - Free WordPress Plugin</a><br />
     31<a href="http://</a><br />
    3132<a href="http://goo.gl/PM6rZ">Flickr NSID Lookup</a>
    3233
     
    3536Having trouble installing? Or need some custom modifications that aren’t already included?
    3637Or you want more features on next release? Please leave messages or comments here:<br />
    37 http://zourbuth.com/archives/500/flickr-badges-widget-free-wordpress-plugin/
     38http:///
    3839
    3940== Installation ==
     
    4647
    4748= Features Request & Support =
    48 http://zourbuth.com/archives/500/flickr-badges-widget-free-wordpress-plugin/
     49http:///
    4950
    5051= Flickr NSID Lookup =
     
    5354
    5455== Screenshots ==
    55 
     56More screenshots at http://www.ground6.com/wordpress-plugins/flickr-badges-widget/screenshots/
    56571. Widget Settings
    57582. Widget in frontend
    5859
    5960== Changelog ==
     61
     62
     63
     64
    6065
    6166= 1.2.5 =
  • flickr-badges-widget/trunk/widget.php

    r756020 r913656  
    4040        // Load additional scripts and styles file to the widget admin area
    4141        add_action( 'load-widgets.php', array(&$this, 'widget_admin') );
    42         add_action('wp_ajax_fes_load_utility', array(&$this, 'fes_load_utility') );
    4342       
    4443        // Load the widget stylesheet for the widgets screen.
     
    7069        wp_enqueue_style( 'z-flickr-admin', FLICKR_BADGES_WIDGET_URL . 'css/dialog.css' );
    7170        wp_enqueue_script( 'jquery' );
    72         wp_enqueue_script( 'z-flickr-admin', FLICKR_BADGES_WIDGET_URL . 'js/jquery.dialog.js' );
    73         wp_localize_script( 'z-flickr-admin', 'fes', array(
    74             'nonce'     => wp_create_nonce( 'fes-nonce' ),  // generate a nonce for further checking below
    75             'action'    => 'fes_load_utility'
    76         ));     
     71        wp_enqueue_script( 'z-flickr-admin', FLICKR_BADGES_WIDGET_URL . 'js/jquery.dialog.js' );   
    7772    }
    7873   
     
    8681    function fes_load_utility() {
    8782        // Check the nonce and if not isset the id, just die.
    88         $nonce = $_POST['nonce'];
    89         if ( ! wp_verify_nonce( $nonce, 'fes-nonce' ) )
    90             die();
    91 
    92         $ch = curl_init('http://marketplace.envato.com/api/edge/new-files-from-user:zourbuth,codecanyon.json');
    93         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    94         $data = curl_exec($ch);
    95         curl_close($ch);
    96         $data = json_decode($data);
    97        
    98         $i = 0; $html = '';
    99         if( $data ) {
    100             $i = 0;
    101             foreach( $data->{'new-files-from-user'} as $key => $value ) {
    102                 if( $i < 15 ) {
    103                     $html .= '<a href="'.$value->url.'?ref=zourbuth"><img src="'.$value->thumbnail.'"></a>&nbsp;';
    104                     $i++;
    105                 }
    106             }
     83        //$nonce = $_POST['nonce'];
     84        //if ( ! wp_verify_nonce( $nonce, 'fes-nonce' ) )
     85        //  die();
     86
     87        if ( false === ( $res = get_transient( '_premium_plugins' ) ) ) {
     88       
     89            $request = wp_remote_get( "http://marketplace.envato.com/api/edge/collection:4204349.json" );
     90
     91            if ( ! is_wp_error( $request ) )
     92                $res = json_decode( wp_remote_retrieve_body( $request ) );
     93               
     94            set_transient( '_premium_plugins', $res, 60*60*24*7 ); // cache for a week
    10795        }
    108         echo $html;
    109         exit;
     96       
     97        if( isset( $res->collection ) )         
     98            foreach( $res->collection as $item )
     99                echo "<a href='{$item->url}?ref=zourbuth'><img src='{$item->thumbnail}'></a>&nbsp;";
    110100    }
    111101
     
    145135            echo '<p>' . do_shortcode( $instance['intro_text'] ) . '</p>';
    146136
    147         echo "<div class='zframe-flickr-wrap-$dir'>";
     137        echo "<div class='zframe-flickr-wrap-$dir'>";
    148138   
    149139        // If the widget have an ID, we can continue
     
    343333                    <ul>
    344334                        <li>
    345                             <h3><?php _e( 'Zourbuth Blog Feeds', $this->textdomain ) ; ?></h3>
    346                             <?php wp_widget_rss_output( 'http://zourbuth.com/feed/', array( 'items' => 10 ) ); ?>
     335                            <h>
     336                            <?php wp_widget_rss_output( 'http:///feed/', array( 'items' => 10 ) ); ?>
    347337                        </li>
    348338                    </ul>
     
    352342                        <li>
    353343                            <p><strong>Our Premium Plugins</strong></p>
    354                             <div class="fesem"></div>
     344                            <>
    355345                        </li>
    356346                        <li>   
     347
     348
    357349                            <a href="http://feedburner.google.com/fb/a/mailverify?uri=zourbuth&amp;loc=en_US">Subscribe to zourbuth by Email</a><br />
    358350                            <?php _e( 'Like my work? Please consider to ', $this->textdomain ); ?><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W6D3WAJTVKAFC" title="Donate"><?php _e( 'donate', $this->textdomain ); ?></a>.<br /><br />
     
    366358
    367359            </ul>
    368         </div>
    369         <script type='text/javascript'>
    370             jQuery(document).ready(function($){
    371                 $(document).on("click", ".fes-3", function(){
    372                     var c, t;
    373                     t = $(this);
    374                     c = t.parents(".totalControls").find(".fesem");
    375                    
    376                     if ( c.is(':empty')) {
    377                         c.append("<span class='fes-loading total-loading'>Loading item...</span>");
    378                         $.post( ajaxurl, { action: fes.action, nonce : fes.nonce }, function(data){
    379                             $(".fes-loading").remove();
    380                             c.append(data);         
    381                         });
    382                     }
    383                 });
    384             });
    385         </script>           
     360        </div>         
    386361        <?php
    387362    }
Note: See TracChangeset for help on using the changeset viewer.