Plugin Directory

Changeset 1089386


Ignore:
Timestamp:
02/13/2015 08:47:39 PM (11 years ago)
Author:
emuki
Message:

Version 1.3 being uploaded

Location:
broadednet/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • broadednet/trunk/broadedNET.php

    r1002648 r1089386  
    55Description: A wide network for blog promotion and traffic
    66Author: Enstine Muki
    7 Version: 1.2
     7Version: 1.3
    88Author URI: http://enstinemuki.com/
    99*/
     
    2525$BPN_Num = $instance['BPN_Num'];
    2626$BPN_url= $instance['BPN_url'];
     27$show_gravatar= $instance['show_gravatar'];
     28$gravatar_size = $instance['gravatar_size'];
    2729$BPN_cat= $instance['BPN_cat'];
    2830$BPN_camtype=$instance['BPN_camtype'];
     
    3840        $BPN_camtype='';
    3941        $BPN_custom_widget='';
     42        $gravatar_size='80';
     43        $show_gravatar='on';
    4044    }
    4145?>
     
    96100<input class="widefat" id="<?php echo $this->get_field_id('BPN_Num'); ?>" name="<?php echo $this->get_field_name('BPN_Num'); ?>" type="text" value="<?php echo $BPN_Num; ?>" />
    97101</p>
     102<p>Show Gravatar
     103<input class="checkbox" type="checkbox" <?php checked($instance['show_gravatar'], 'on'); ?> id="<?php echo $this->get_field_id('show_gravatar'); ?>" name="<?php echo $this->get_field_name('show_gravatar'); ?>" /> </p>
     104
     105<p>Gravatar Size (Default is 80)
     106<input class="widefat" id="<?php echo $this->get_field_id('gravatar_size'); ?>" name="<?php echo $this->get_field_name('gravatar_size'); ?>" type="text" value="<?php echo $gravatar_size; ?>" />
     107</p>
     108
     109
     110
    98111
    99112<p>Show <i>Powered by</i> Link (Articles)
     
    114127        $new_instance['BPN_Num'] = 5;
    115128    }
     129///////////////////////Set default gravata
     130if(empty($new_instance['gravatar_size']))
     131    {
     132        $new_instance['gravatar_size'] = 80;
     133    }
     134if($new_instance['gravatar_size'] > 80 )
     135    {
     136        $new_instance['gravatar_size'] = 80;
     137    }
     138/////////////////////////////////////////
    116139$instance['title'] = strip_tags(trim($new_instance['title']));
    117140$instance['BPNapi'] = strip_tags(trim($new_instance['BPNapi']));
     
    121144$instance['BPN_camtype'] = strip_tags($new_instance['BPN_camtype']);
    122145$instance['BPN_custom_widget'] = strip_tags(trim($new_instance['BPN_custom_widget']));
     146$instance['show_gravatar'] = strip_tags($new_instance['show_gravatar']);
     147$instance['gravatar_size'] = strip_tags($new_instance['gravatar_size']);
    123148
    124149return $instance;
     
    136161$BPN_camtype=$instance['BPN_camtype'];
    137162$BPN_custom_widget = $instance['BPN_custom_widget'];
     163$show_gravatar= $instance['show_gravatar'];
     164$gravatar_size = $instance['gravatar_size'];
     165$gravatarOption="showGravatar=$show_gravatar&dsize=$gravatar_size";
    138166echo $before_widget;
    139167if (!empty($title))
     
    155183            $external="camtype=$BPN_camtype";
    156184        }
    157 $extQuery="?MyCustomWidget=$BPN_camtype&MyCustomWidgetId=$BPN_custom_widget&api=$BPNapi&num=$BPN_Num&r=".$_SERVER['HTTP_HOST']."&url=$BPN_url&cat=$BPN_cat&$external";
     185$extQuery="?MyCustomWidget=$BPN_camtype&MyCustomWidgetId=$BPN_custom_widget&api=$BPNapi&num=$BPN_Num&r=".$_SERVER['HTTP_HOST']."&url=$BPN_url&cat=$BPN_cat&$external&$gravatarOption";
    158186
    159187$ch = curl_init();
  • broadednet/trunk/readme.txt

    r1002648 r1089386  
    44Donate link: http://broaded.net
    55Requires at least: 3.0
    6 Tested up to: 4.0
     6Tested up to: 4.1
    77Stable tag: trunk
    88License: GPLv2 or later
     
    2626== Screenshots ==
    27271. BroadedNet Widget configuration
     282. This is how the widget looks like on one blog in the network. This widget is configured to show gravatar of bloggers who posted campaings.
     293. Here is the widget on another blog, this time configured not to show gravatar. Note that the widget takes the inbuilt design of your theme.
    2830
    2931== Changelog ==
     32
     331.3 Added more widget features
    3034
    31351.2 Security update
     
    3640
    3741== Upgrade Notice ==
     421.3 More features were added on the widet in this version
     43
    38441.2 Security update
    3945
Note: See TracChangeset for help on using the changeset viewer.